windows-spawn: Export another auxiliary function.
[gnulib.git] / ChangeLog
blobd140497d8cad9516282dc3c7497177c929d50340
1 2020-12-24  Bruno Haible  <bruno@clisp.org>
3         windows-spawn: Export another auxiliary function.
4         * lib/windows-spawn.h (compose_envblock): New declaration.
5         * lib/windows-spawn.c (compose_envblock): New function, extracted from
6         spawnpvech.
7         (spawnpvech): Use it.
9 2020-12-24  Bruno Haible  <bruno@clisp.org>
11         windows-spawn: Export an auxiliary function.
12         * lib/windows-spawn.h (compose_command): New declaration.
13         * lib/windows-spawn.c (compose_command): New function, extracted from
14         spawnpvech.
15         (spawnpvech): Use it.
17 2020-12-24  Bruno Haible  <bruno@clisp.org>
19         posix_spawn* tests: Add support for native Windows.
20         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
21         like Cygwin.
22         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
23         SIGHUP and SIGPIPE. On native Windows, don't call
24         posix_spawnattr_setsigmask.
25         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
26         * tests/test-posix_spawn-fchdir.c (main): Likewise.
27         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
28         output from Cygwin's 'pwd' program.
29         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
30         executable-shell-script part of the test.
31         * tests/test-posix_spawnp-script.c (main): Likewise.
32         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
33         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
34         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
35         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
36         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
37         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
38         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
39         test the POSIX_SPAWN_PORTED conditional.
40         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
41         Define the POSIX_SPAWN_PORTED conditional here.
43 2020-12-24  Bruno Haible  <bruno@clisp.org>
45         sh-filename: Add support for native Windows.
46         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
48 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
50         careadlinkat: improve warning line number
51         This propagates an idea first used in canonicalize-lgpl.
52         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
53         New macro.
54         (careadlinkat): Use it.
56         linkat: use eloop-threshold
57         * lib/linkat.c: Include eloop-threshold.h.
58         Do not include sys/param.h.
59         (MAXSYMLINKS): Remove.
60         (link_follow, linkat_follow): Use __eloop_threshold instead
61         of MAXSYMLINKS.
62         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
63         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
65         canonicalize-lgpl: use eloop-threshold
66         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
67         (MAXSYMLINKS, __eloop_threshold): Remove.
68         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
70         eloop-threshold: new module
71         * config/srclist.txt: Add a comment about it.
72         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
74         canonicalize: prefer faccessat to stat
75         A proper faccessat doesn't have the EOVERFLOW problem, and can be
76         more efficient as it needn't gather data from the filesystem to
77         fill in struct stat.  So use stat only if faccessat is absent,
78         or when checking for symlink loops in canonicalize.c.
79         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
80         Include fcntl.h, for AT_EACCESS.
81         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
82         (file_accessible): New function, based on faccessat but with
83         a fallback to stat and with an EOVERFLOW workaround.
84         (dir_check): Use it.
85         (dir_suffix): New static constant.
86         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
87         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
88         (__faccessat) [!_LIBC]: Define.
89         (realpath_stk): Use dir_suffix now.
90         * lib/canonicalize.c (canonicalize_filename_mode_stk):
91         If logical, don't check each component's existence; just check
92         at the end, as that's enough.
93         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
94         (gl_CANONICALIZE_LGPL_SEPARATE):
95         Require gl_FUNC_FACCESSAT_EOVERFLOW,
96         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
97         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
98         as the code does not use HAVE_READLINK.
99         * modules/canonicalize, modules/canonicalize-lgpl (Files):
100         Add m4/faccessat.m4, m4/lstat.m4.
101         (Depends-on): Add fcntl-lh.
103         faccessat: work around F_OK EOVERFLOW bug
104         * doc/posix-functions/faccessat.texi: Mention the problem.
105         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
106         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
107         for F_OK and EOVERFLOW, which means we can return 0.
108         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
109         (gl_FUNC_FACCESSAT): Use it.
111         stat failing with EOVERFLOW implies existence
112         * lib/euidaccess.c (euidaccess):
113         * lib/file-has-acl.c (file_has_acl):
114         * lib/link.c (link, rpl_link):
115         * lib/mkdir.c (rpl_mkdir):
116         * lib/mkfifo.c (rpl_mkfifo):
117         * lib/mknod.c (rpl_mknod):
118         * lib/ptsname_r.c (__ptsname_r):
119         * lib/symlink.c (rpl_symlink):
120         * lib/symlinkat.c (rpl_symlinkat):
121         * lib/unlink.c (rpl_unlink):
122         * lib/unlinkat.c (rpl_unlinkat):
123         * lib/utime.c (utime):
124         If stat fails with EOVERFLOW the file exists, so treat it that way
125         in file-existence tests that do not need struct stat values.
127         canonicalize-lgpl: remove freea macro
128         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
130         canonicalize, canonicalize-lgpl: fix symlink bug
131         Problem reported by Adhemerval Zanella in:
132         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
133         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
134         (suffix_requires_dir_check, dir_check): New functions.
135         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
136         closer to the related GCC diagnostics.
137         * lib/canonicalize-lgpl.c (realpath_stk):
138         * lib/canonicalize.c (canonicalize_file_mode_stk):
139         Use them to fix a bug with .../symlink-to-regular-file/ etc.
140         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
141         (realpath_stk): New function,
142         with the contents of the old __realpath and a new scratch buffer arg.
143         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
144         (__realpath): Use it.
145         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
146         Add test cases for the bugs.
148 2020-12-24  Bruno Haible  <bruno@clisp.org>
150         execute: Treat signalled processes like wait-process does.
151         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
152         (execute): Recognize the case where the exit code indicates a signalled
153         child process.
154         * tests/test-execute-main.c (main): Update expected test result.
155         * modules/execute (Depends-on): Add sys_wait.
157 2020-12-24  Bruno Haible  <bruno@clisp.org>
159         windows-spawn: Improve errno upon failure on native Windows.
160         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
161         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
162         * tests/executable-script.sh: New file.
163         * tests/test-posix_spawn-script.c (main): Also try executing
164         executable-script.sh.
165         * tests/test-posix_spawnp-script.c (main): Likewise.
166         * tests/test-execute-script.c (main): Likewise.
167         * tests/test-spawn-pipe-script.c (main): Likewise.
168         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
169         * modules/posix_spawnp-tests (Files): Likewise.
170         * modules/execute-tests (Files): Likewise.
171         * modules/spawn-pipe-tests (Files): Likewise.
173 2020-12-24  Bruno Haible  <bruno@clisp.org>
175         findprog-in: Improve errno upon failure on native Windows.
176         * lib/findprog-in.c (find_in_given_path): If the file basename has no
177         dot and the search with a suffix returned no result, do also a search
178         without a suffix, and set errno = ENOEXEC if we find a file in this way.
179         * tests/test-spawn-pipe-script.c (main): Update expected errno.
181 2020-12-23  Bruno Haible  <bruno@clisp.org>
183         posix_spawn, posix_spawnp: Fix execution of scripts.
184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
185         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
186         or posix_spawnp allows unsecure execution of scripts.
187         * doc/posix-functions/posix_spawn.texi: Document the script execution
188         problem.
189         * doc/posix-functions/posix_spawnp.texi: Likewise.
191 2020-12-23  Bruno Haible  <bruno@clisp.org>
193         Add unit tests regarding execution of scripts.
194         * tests/executable-script: New file.
195         * tests/executable-shell-script: New file.
196         * tests/test-posix_spawn-script.c: New file.
197         * tests/test-posix_spawnp-script.c: New file.
198         * tests/test-execute-script.c: New file.
199         * tests/test-spawn-pipe-script.c: New file.
200         * modules/posix_spawn-tests (Files): Add
201         tests/test-posix_spawn-script.c, tests/executable-script,
202         tests/executable-shell-script.
203         (Makefile.am): Compile and run test-posix_spawn-script.
204         * modules/posix_spawnp-tests (Files): Add
205         tests/test-posix_spawnp-script.c, tests/executable-script,
206         tests/executable-shell-script.
207         (Makefile.am): Compile and run test-posix_spawnp-script.
208         * modules/execute-tests (Files): Add tests/test-execute-script.c,
209         tests/executable-script, tests/executable-shell-script.
210         (Makefile.am): Compile and run test-execute-script.
211         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
212         tests/executable-script, tests/executable-shell-script.
213         (Makefile.am): Compile and run test-spawn-pipe-script.
215 2020-12-23  Bruno Haible  <bruno@clisp.org>
217         Don't execute scripts without '#!' marker through /bin/sh.
218         This reflects the change done in glibc through
219         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
220         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
221         * lib/spawni.c (internal_function): Remove macro.
222         (script_execute): Remove function.
223         (__spawni): Don't invoke script_execute.
224         * lib/execute.c (execute): Disable the ENOEXEC handling.
225         * lib/spawn-pipe.c (create_pipe): Likewise.
226         * NEWS: Mention the change.
228 2020-12-23  Bruno Haible  <bruno@clisp.org>
230         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
231         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
232         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
233         * lib/spawni.c (__spawni): Update function parameters.
235 2020-12-23  Bruno Haible  <bruno@clisp.org>
237         posix_spawn tests: Add two more tests.
238         * tests/test-posix_spawn-inherit0.c: New file, based on
239         tests/test-posix_spawn-open2.c.
240         * tests/test-posix_spawn-inherit1.c: New file, based on
241         tests/test-posix_spawn-open2.c.
242         * modules/posix_spawn-tests (Files): Add them.
243         (Depends-on): Add fflush.
244         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
245         test-posix_spawn-inherit1.
247 2020-12-23  Bruno Haible  <bruno@clisp.org>
249         posix_spawn tests: Add another test.
250         * tests/test-posix_spawn-open2.c: New file, based on
251         tests/test-posix_spawn-open1.c.
252         * modules/posix_spawn-tests (Files): Add it.
253         (Makefile.am): Compile and run test-posix_spawn-open1.
255 2020-12-20  Bruno Haible  <bruno@clisp.org>
257         Remove support for broken <wchar.h> in AIX 3.
258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
260 2020-12-20  Bruno Haible  <bruno@clisp.org>
262         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
263         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
264         * lib/mbchar.h: Likewise.
265         * lib/mbiter.h: Likewise.
266         * lib/mbuiter.h: Likewise.
267         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
268         * lib/mbfile.h: Don't include <time.h>.
269         * lib/mbswidth.h: Update comment.
270         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
271         <wchar.h>.
272         * lib/wctype.in.h: Likewise.
273         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
274         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
275         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
276         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
277         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
278         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
279         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
280         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
281         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
282         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
283         AC_FUNC_MBRTOWC): Likewise.
284         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
285         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
286         Likewise.
287         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
288         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
289         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
291         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
292         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
293         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
294         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
295         Likewise.
296         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
297         gl_WCSRTOMBS_NULL): Likewise.
298         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
299         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
300         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
302         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
303         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
304         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
305         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
306         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
307         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
309 2020-12-20  Bruno Haible  <bruno@clisp.org>
311         isnanf: Fix autoconf test.
312         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
314 2020-12-20  Bruno Haible  <bruno@clisp.org>
316         Remove some of the support for obsolete IRIX 4 and 5.
317         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
318         libsun.
319         * tests/init.sh (setup_): Don't talk about IRIX 5.
321 2020-12-20  Bruno Haible  <bruno@clisp.org>
323         filemode: Remove Cray support.
324         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
325         (filemodestring): Don't produce an 'M' type.
326         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
327         * m4/st_dm_mode.m4: Remove file.
328         * modules/filemode (Files): Remove it.
330 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
332         free-posix: assume glibc 2.33 fixes this.
333         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
334         Use compile-time test rather than guessing for cross-builds.
336 2020-12-20  Bruno Haible  <bruno@clisp.org>
338         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
339         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
340         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
341         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
343 2020-12-20  Bruno Haible  <bruno@clisp.org>
345         float: Fix compilation error when gnulib's float.h exists twice.
346         Reported by Santiago Vila <sanvila@unex.es>.
347         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
349 2020-12-19  Bruno Haible  <bruno@clisp.org>
351         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
352         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
353         Don't trust _POSIX_VERSION for this test.
355 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
357         free-posix: port to GNU/Linux
358         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
359         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
360         other GNU/Linux hosts.
362 2020-12-19  Bruno Haible  <bruno@clisp.org>
364         free-posix: Add tests.
365         * tests/test-free.c: New file.
366         * tests/macros.h (ASSERT_NO_STDIO,
367         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
368         WRITE_TO_STDERR): New macros.
369         * modules/free-posix-tests: New file.
371 2020-12-18  Bruno Haible  <bruno@clisp.org>
373         free-posix: Add C++ declaration test.
374         * tests/test-stdlib-c++.cc (free): New declaration.
376 2020-12-18  Bruno Haible  <bruno@clisp.org>
378         free-posix: New module, renamed from 'free'.
379         * modules/free-posix: Renamed from modules/free.
380         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
382         not GNULIB_FREE.
383         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
384         GNULIB_FREE.
385         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
386         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
387         what it does.
388         * NEWS: Mention that module 'free' no longer exists.
389         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
390         * modules/canonicalize-lgpl (Depends-on): Likewise.
392 2020-12-18  Bruno Haible  <bruno@clisp.org>
394         free: Remove support for obsolete platforms.
395         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
396         CANNOT_FREE_NULL.
397         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
398         * modules/free (Description): Update.
399         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
401 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
403         intprops: port to ICC 2021.1 Beta 20201112
404         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
405         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
406         Add a clause for other compilers that claim to support
407         __builtin_mul_overflow_p, since we might as well find out about
408         slackers other than Clang and ICC.
409         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
410         like older GCCs even when it claims to be a newer one.
412 2020-12-18  Bruno Haible  <bruno@clisp.org>
414         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
415         Reported by Stefan Liebler <stli@linux.ibm.com> in
416         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
417         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
418         GCC 5.x and 6.x.
419         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
420         GCC 5.x and 6.x.
422 2020-12-17  Bruno Haible  <bruno@clisp.org>
424         free: Fix warning.
425         Reported by Pádraig Brady <P@draigBrady.com> in
426         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
427         * lib/stdlib.in.h (free): New declaration.
428         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
429         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
430         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
431         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
432         'free' as a macro here.
433         * modules/free (Depends-on): Add stdlib.
434         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
436 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
438         canonicalize-lgpl: fix AIX test failures
439         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
440         Problem reported by Bruno Haible in:
441         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
442         * lib/canonicalize-lgpl.c: Include sys/stat.h.
443         (__realpath): When testing a file name ending in '/', use stat
444         rather than readlink, so that it does the right thing on AIX.
445         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
447         canonicalize: omit second readlink when not needed
448         * lib/canonicalize.c (canonicalize_filename_mode_stk):
449         Omit second readlink when (can_exist != CAN_MISSING
450         && startlen != 0 && !logical).  Simplify.
452         canonicalize: remove arbitrary 8192-byte limit
453         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
454         like GNU Hurd that do not define the PATH_MAX macro, and similarly
455         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
456         using scratch buffers.  Lessen the number of differences between
457         the two source files, to simplify this and future maintenance.
458         * lib/canonicalize-lgpl.c (__realpath):
459         * lib/canonicalize.c (canonicalize_filename_mode_stk):
460         Use scratch buffers instead of malloc and malloca.  This avoids
461         the need for alloca, and avoids the need for malloc in most cases.
462         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
463         easier to compare, e.g., by sorting include files and by switching
464         to the GNU convention of calling file names "file names", not
465         "path names".  Include stdbool.h, scratch_buffer.h.
466         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
467         (malloca) [_LIBC]: Remove.
468         [!_LIBC]: Do not include malloca.h.
469         (get_path_max): New function, so that pathconf is called only in
470         the rare and dubious case when when RESOLVED is not null and
471         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
472         file name, as we care about the longest file name starting from
473         "/" (not from the input file name), and POSIX does not specify
474         what pathconf does on a non-directory file anyway.  If PATH_MAX is
475         not defined, do not worry about overriding a path_max of 0, and do
476         not let path_max exceed IDX_MAX.
477         (__realpath): Remove an assumption that file name components
478         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
479         the Hurd, presumably).
480         When allocating the result, allocate it to just the right size;
481         this costs nothing when the result is smaller than 1023 bytes,
482         and for larger results it's probably worth the CPU to call realloc,
483         as canonicalize.c already does.
484         * lib/canonicalize.c: Include attribute.h.
485         Do not include pathmax.h or xgetcwd.h.
486         (PATH_MAX): Do not define, so file names longer than 8192 bytes
487         work on platforms with no fixed limit.
488         (canonicalize_filename_mode_stk): New function, with
489         the content of the old canonicalize_filename_mode.
490         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
491         since the scratch buffers now do memory management for us.
492         Use rawmemchr instead of adding strlen.
493         Use mempcpy instead of mempcpy + size.
494         Assume free preserves errno.
495         (canonicalize_filename_mode): Use it.
496         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
497         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
498         scratch_buffer, stdbool, xalloc-die.
499         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
500         malloca, realloc-posix.  Add scratch_buffer, stdbool.
502         canonicalize-lgpl: simplify merge to glibc
503         This patch lessens the differences between git glibc
504         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
505         The (perhaps wishful) goal is to make them identical.
506         * lib/canonicalize-lgpl.c [!_LIBC]:
507         Include <libc-config.h>, not config.h.
508         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
509         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
510         Do not include alloca.h, since we use malloca now.
511         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
512         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
513         freea so that the mainline code can be kept #ifdef free.
514         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
515         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
516         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
517         __eloop_threshold.  All uses of their definiens changed.
518         (SIZE_MAX): Remove; no longer needed.
519         (alloc_failed): Remove, and remove all instances.
520         No need for alloc_failed now that free preserves errno.
521         (__realpath): Default path_max to 1024 instead of 8192, as that’s
522         the glibc tradition and is safer when the 2nd argument is null.
523         Use __rawmemchr instead of strchr.
524         Use __mempcpy where appropriate.
525         Simplify test for overflow so that it does not need SIZE_MAX.
526         Do not preserve errno around free or freea calls; no longer needed.
527         Mark __realpath with libc_hidden_def.
528         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
529         malloc-posix, mempcpy, realloc-posix, rawmemchr.
530         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
532         free: preserve errno
533         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
534         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
535         platforms that do not preserve errno.
536         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
537         Also, define CANNOT_FREE_NULL if free cannot free NULL.
538         * modules/free (configure.ac): Also replace 'free' if
539         it does not preserve errno.
541         idx: simplify IDX_MAX, remove IDX_WIDTH
542         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
543         to UNSIGNED_IDX_T.
544         (IDX_WIDTH): Remove, since it’s not used and its value
545         arguably should be PTRDIFF_WIDTH anyway.
547 2020-12-16  Bruno Haible  <bruno@clisp.org>
549         posix_spawn_file_actions_addfchdir-tests: Rename test.
550         * tests/test-posix_spawn-fchdir.c: Renamed from
551         tests/test-posix_spawn5.c.
552         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
553         Update.
555         posix_spawn_file_actions_addchdir-tests: Rename test.
556         * tests/test-posix_spawn-chdir.c: Renamed from
557         tests/test-posix_spawn4.c.
558         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
559         Update.
561         posix_spawn-tests: Rename test.
562         * tests/test-posix_spawn-open1.c: Renamed from
563         tests/test-posix_spawn3.c.
564         * modules/posix_spawn-tests (Files, Makefile.am): Update.
566         posix_spawnp-tests: Rename test.
567         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
568         tests/test-posix_spawn2.c.
569         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
570         tests/test-posix_spawn2.in.sh.
571         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
573         posix_spawnp-tests: Rename test.
574         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
575         tests/test-posix_spawn1.c.
576         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
577         tests/test-posix_spawn1.in.sh.
578         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
580 2020-12-14  Bruno Haible  <bruno@clisp.org>
582         findprog-in: Allow overriding the current directory.
583         * lib/findprog.h (find_in_given_path): Add directory argument.
584         * lib/findprog-in.c (find_in_given_path): Likewise.
585         * lib/execute.c (execute): Update caller.
586         * lib/spawn-pipe.c (create_pipe): Likewise.
587         * lib/windows-spawn.c (spawnpvech): Likewise.
588         * NEWS: Mention the change.
590 2020-12-14  Bruno Haible  <bruno@clisp.org>
592         posix_spawn-internal: Make better use of 'const'.
593         * lib/spawn_int.h (__spawni): Does not need write access to the elements
594         of argv and envp.
595         * lib/spawni.c (__spawni, script_execute): Likewise.
596         * lib/spawn.c (posix_spawn): Update caller.
597         * lib/spawnp.c (posix_spawnp): Likewise.
599 2020-12-14  Bruno Haible  <bruno@clisp.org>
601         spawn: Make it compile on native Windows.
602         * modules/spawn (Depends-on): Add signal-h.
604 2020-12-14  Bruno Haible  <bruno@clisp.org>
606         windows-spawn: Avoid shadowing a variable.
607         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
609 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
611         string: port memchr macro to AIX 7.2 XLC
612         Its <string.h> defines a memchr macro to help inlining.
613         * lib/string.in.h (memchr): #undef before #defining.
615         canonicalize: fix AIX test failures
616         Problem reported by Bruno Haible in:
617         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
618         * lib/canonicalize.c (canonicalize_filename_mode):
619         When testing a file name ending in '/', use stat rather than
620         readlink, so that it does the right thing on AIX.
621         * modules/canonicalize (Depends-on): Add readlink, to pull in the
622         recent changes in the Gnulib readlink module.
624         Assume readlink/readlinkat ERANGE fix
625         * lib/areadlink-with-size.c (areadlink_with_size):
626         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
627         * lib/careadlinkat.c (readlink_stk):
628         Do not worry about readlink or readlinkat failing with errno == ERANGE,
629         since the Gnulib readlink and readlinkat modules now fix that.
631         getcwd: port to AIX
632         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
633         in case our sys/stat.h #defined a function macro with the same name.
635         readlink, readlinkat: add ERANGE portability
636         Fix some portability issues with Gnulib's readlink and readlinkat,
637         notably mostly working around the ERANGE problem in AIX and HP-UX.
638         * doc/posix-functions/readlink.texi:
639         * doc/posix-functions/readlinkat.texi:
640         ERANGE problem is mostly fixed now.  Mention AIX problem with
641         trailing / and EINVAL.  Lessen differences between these two files.
642         * lib/readlink.c (rpl_readlink):
643         * lib/readlinkat.c (rpl_readlinkat):
644         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
645         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
646         Lessen spurious differences between the readlink and readlinkat code.
647         * lib/readlinkat.c (rpl_readlinkat):
648         Fix bug where stat was used where fstatat was intended.
649         * m4/readlink.m4 (gl_FUNC_READLINK):
650         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
651         to identify readlink problems more precisely.  All uses changed.
652         Guess no on AIX or HP-UX for this variable.
653         Add check for whether readlink truncates results,
654         and define new macro READLINK_TRUCATE_BUG accordingly.
655         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
656         Also check gl_cv_func_readlink_trailing_slash when deciding
657         whether to replace readlinkat.
658         * modules/readlinkat (Depends-on): Most dependencies are also
659         needed if replacing readlinkat.  fstatat is different, as it
660         is needed only if replacing an existing readlinkat.
662 2020-12-13  Bruno Haible  <bruno@clisp.org>
664         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
665         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
666         the stdin_handle and/or stdout_handle.
668 2020-12-12  Bruno Haible  <bruno@clisp.org>
670         Fix gnulib-tool error when some modules occur in tests/.
671         * doc/gnulib.texi (Specification): Update statistics.
672         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
673         (Using AC_LIBOBJ): New section.
674         * check-AC_LIBOBJ: New file.
675         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
676         * modules/fopen-gnu (Files): Add lib/fopen.c.
677         * modules/memmem (Files): Add lib/memmem.c.
678         * modules/renameat (Files): Add lib/at-func2.c.
679         * modules/strcasestr (Files): Add lib/strcasestr.c.
680         * modules/strstr (Files): Add lib/strstr.c.
682 2020-12-11  Bruno Haible  <bruno@clisp.org>
684         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
685         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
686         elements of argv.
687         * lib/sh-quote.c (shell_quote_argv): Likewise.
688         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
689         the return type.
690         * lib/windows-spawn.c (prepare_spawn): Likewise.
691         * lib/os2-spawn.h (prepare_spawn): Likewise.
692         * lib/os2-spawn.c (prepare_spawn): Likewise.
693         * lib/execute.h (execute): Does not need write access to the elements of
694         prog_argv.
695         * lib/execute.c (execute): Likewise.
696         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
697         Likewise.
698         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
699         create_pipe_out): Likewise.
700         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
701         Likewise.
702         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
703         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
704         * lib/javaexec.h (execute_fn): Does not need write access to the
705         elements of prog_argv.
706         * lib/javaexec.c (execute_java_class): Update variable types and remove
707         casts to 'char *'.
708         * lib/csharpexec.h (execute_fn): Does not need write access to the
709         elements of prog_argv.
710         * lib/csharpexec.c (execute_csharp_using_mono,
711         execute_csharp_using_sscli): Update variable types and remove casts to
712         'char *'.
713         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
714         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
715         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
716         is_jikes_present): Update variable types and remove casts to 'char *'.
717         * lib/javaversion.c (execute_and_read_line): Does not need write access
718         to the elements of prog_argv.
719         * lib/csharpcomp.c (compile_csharp_using_mono,
720         compile_csharp_using_sscli): Update variable types and remove casts to
721         'char *'.
722         * tests/test-sh-quote.c (main): Update variable types and remove casts
723         to 'char *'.
724         * tests/test-execute-main.c (main): Update variable types and remove
725         casts to 'char *'.
726         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
727         remove casts to 'char *'.
728         * NEWS: Mention the changes.
730 2020-12-11  Bruno Haible  <bruno@clisp.org>
732         execute-tests: Fix compilation error with MSVC.
733         * tests/test-execute-child.c (is_device): With _fstat, use
734         'struct _stat', not 'struct stat'.
736 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
738         vararrays: just use 2.70
739         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
740         and later, since Autoconf 2.70 matches Gnulib now.
742         sys_types: just use 2.70
743         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
744         Reindent to match Autoconf sources.
745         Use Autoconf 2.70 as a prerequisite, not 2.69c.
747         stdint: port to Autoconf 2.70
748         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
749         instead of assuming that AC_INCLUDES_DEFAULT does it.
750         The old code relied on AC_INCLUDES_DEFAULT being called
751         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
752         but this does not occur in Autoconf 2.70.
754         pid_t.m4: just use 2.70
755         * m4/pid_t.m4 (AC_TYPE_PID_T):
756         Use Autoconf 2.70 as a prerequisite, not 2.69c.
758         largefile: just use 2.70
759         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
760         Use Autoconf 2.70 as a prerequisite, not 2.69c.
762         AC_C_RESTRICT: update from Autoconf
763         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
764         as a prerequisite, not 2.69c, since 2.70 is now out.
765         (AC_C_RESTRICT): Define only for 2.70 or earlier.
766         Try __restrict__ before __restrict.
768         extensions: update from Autoconf
769         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
770         Provide a default implementation for Autoconf 2.69 or earlier.
771         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
772         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
774         alloca: update from Autoconf
775         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
776         Trivial update to match Autoconf 2.70.
778 2020-12-11  Bruno Haible  <bruno@clisp.org>
780         memchr: Work around memory overrun bug on AIX 7.2.
781         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
782         * doc/posix-functions/memchr.texi: Mention the AIX bug.
784 2020-12-11  Bruno Haible  <bruno@clisp.org>
786         execute-tests: Fix compilation error on AIX in 32-bit mode.
787         * tests/test-execute-child.c: In order to get the original definition of
788         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
789         include the system's <sys/stat.h> and use it before including other
790         header files.
792 2020-12-10  Bruno Haible  <bruno@clisp.org>
794         windows-spawn: Relicense under LGPLv2+.
795         * modules/windows-spawn (License): Change to LGPLv2+.
797 2020-12-10  Bruno Haible  <bruno@clisp.org>
799         execute, spawn-pipe: Fix memory leak on native Windows.
800         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
801         * lib/windows-spawn.c: Don't include xalloc.h.
802         (quoted_arg_length, quoted_arg_string): New functions, extracted from
803         prepare_spawn.
804         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
805         elements of *new_argv together.
806         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
807         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
808         * lib/os2-spawn.c: Don't include xalloc.h.
809         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
810         elements of *new_argv together.
811         * lib/execute.c: Include xalloc.h.
812         (execute): Check return value of prepare_spawn. Free the memory
813         allocated by prepare_spawn.
814         * modules/execute (Depends-on): Add xalloc-die.
815         * lib/spawn-pipe.c: Include xalloc.h.
816         (create_pipe): Check return value of prepare_spawn. Free the memory
817         allocated by prepare_spawn.
818         * modules/spawn-pipe (Depends-on): Add xalloc-die.
820 2020-12-10  Bruno Haible  <bruno@clisp.org>
822         findprog-in: Relicense under LGPLv2+.
823         Paul Smith's approval is in
824         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
825         * modules/findprog-in (License): Change to LGPLv2+.
827 2020-12-10  Bruno Haible  <bruno@clisp.org>
829         findprog-in: Don't exit upon out-of-memory.
830         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
831         code.
832         * lib/findprog-in.c: Don't include xalloc.h.
833         (find_in_given_path): Call concatenated_filename, not
834         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
835         return NULL with errno set.
836         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
837         concat-filename, strdup-posix, malloc-posix.
839 2020-12-09  Bruno Haible  <bruno@clisp.org>
841         fmaf: Work around a bug on FreeBSD 12.2/arm.
842         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
843         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
845 2020-12-09  Bruno Haible  <bruno@clisp.org>
847         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
848         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
849         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
850         * lib/glthread/threadlib.c: Include <errno.h>.
851         (glthread_in_use): For FreeBSD, provide an alternative implementation
852         that uses pthread_key_create.
854 2020-12-09  Bruno Haible  <bruno@clisp.org>
856         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
857         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
858         not 'isnan'.
860 2020-12-08  Bruno Haible  <bruno@clisp.org>
862         std-gnu11: Make compatible with Autoconf 2.70.
863         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
864         use.
866 2020-12-08  Bruno Haible  <bruno@clisp.org>
868         argp: Avoid undefined behaviour when invoking qsort().
869         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
870         Reported by Jeffrey Walton <noloader@gmail.com> in
871         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
872         * lib/argp-help.c (group_cmp): Remove third argument.
873         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
874         upon hol_cluster_cmp.
875         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
876         (hol_entry_cmp): Rewritten to implement a total order.
878 2020-12-08  Bruno Haible  <bruno@clisp.org>
880         argp: Improve comments.
881         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
882         null pointer.
883         (struct hol_entry): Fix comment regarding sort order of group.
884         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
885         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
886         (hol_cluster_is_child, argp_hol): Move functions.
887         (HOL_ENTRY_PTRCMP): Remove unused macro.
889 2020-12-08  Bruno Haible  <bruno@clisp.org>
891         argp: Don't pass invalid arguments to isspace() and isalnum().
892         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
893         before passing it to isspace() or isalnum().
895 2020-12-08  Bruno Haible  <bruno@clisp.org>
897         argp: Don't rely on undefined behaviour of _tolower().
898         Patch by Eric Blake
899         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
900         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
901         not upper-case.  Pass correct range to tolower.
903 2020-12-07  Bruno Haible  <bruno@clisp.org>
905         unicodeio: Fix wrong result on FreeBSD.
906         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
907         characters on all platforms.
909 2020-12-07  Bruno Haible  <bruno@clisp.org>
911         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
912         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
913         FreeBSD systems.
915 2020-12-07  Bruno Haible  <bruno@clisp.org>
917         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
918         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
919         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
920         trivially of sbrk is not available.
921         * doc/glibc-functions/sbrk.texi: Mention that the function does not
922         exist in FreeBSD 12.2/arm64.
923         * doc/glibc-functions/brk.texi: Likewise.
925 2020-12-07  Bruno Haible  <bruno@clisp.org>
927         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
928         Suggested by Zack Weinberg in
929         <https://savannah.gnu.org/support/?110294>.
930         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
931         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
933 2020-12-07  Bruno Haible  <bruno@clisp.org>
935         Tweak the Windows oldnames workaround.
936         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
937         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
938         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
939         always.
940         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
941         * lib/stdlib.in.h (putenv): Likewise.
943 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
945         doc: fix flat address space discussion
946         * doc/gnulib-readme.texi (Other portability assumptions):
947         Move the all-bits-zero assumption outside the flat address space
948         section, since the two issues are independent.
950         doc: document -static-libubsan more
951         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
952         -static-libubsan a bit more.  Mostly cons.
954 2020-12-06  Bruno Haible  <bruno@clisp.org>
956         doc: Add more details regarding the undefined behaviour sanitizer.
957         * doc/gnulib-readme.texi (High Quality): Describe
958         -fsanitize-undefined-trap-on-error better.
960 2020-12-06  Bruno Haible  <bruno@clisp.org>
962         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
963         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
964         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
965         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
966         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
967         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
968         a preprocessor #define.
969         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
970         * lib/search.in.h (lfind, lsearch): Likewise.
971         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
972         Likewise.
973         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
974         * lib/string.in.h (memccpy, strdup): Likewise.
975         * lib/sys_stat.in.h (chmod, umask): Likewise.
976         * lib/time.in.h (tzset): Likewise.
977         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
978         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
979         read, rmdir, swab, unlink, write): Likewise.
980         * lib/utime.in.h (utime): Likewise.
981         * lib/wchar.in.h (wcsdup): Likewise.
982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
983         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
984         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
986         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
987         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
988         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
989         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
991         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
993         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
994         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
995         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
997 2020-12-06  Bruno Haible  <bruno@clisp.org>
999         doc: Mention some missing function declarations.
1000         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
1001         AIX.
1002         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
1003         FreeBSD.
1004         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
1005         Cygwin.
1006         * doc/pastposix-functions/fcvt.texi: Likewise.
1007         * doc/pastposix-functions/gcvt.texi: Likewise.
1009 2020-12-06  Bruno Haible  <bruno@clisp.org>
1011         doc: Tweak example.
1012         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
1013         'print'.
1015 2020-12-06  Bruno Haible  <bruno@clisp.org>
1017         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
1018         * tests/test-filenamecat.c: Include idx.h.
1019         (main): Mark prefixlen as nonnegative.
1020         * modules/filenamecat-tests (Depends-on): Add idx.
1022 2020-12-06  Bruno Haible  <bruno@clisp.org>
1024         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
1025         * lib/time_rz.c: Include idx.h.
1026         (save_abbr): Mark zone_size as nonnegative.
1027         * modules/time_rz (Depends-on): Add idx.
1029 2020-12-06  Bruno Haible  <bruno@clisp.org>
1031         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
1032         * lib/parse-datetime.y: Include idx.h.
1033         (textint): Mark digits as nonnegative.
1034         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
1035         dsts_seen, times_seen, zones_seen as nonnegative.
1036         (lookup_word): Mark wordlen as nonnegative.
1037         (yylex): Mark count as nonnegative.
1038         (parse_datetime2): Mark tzsize as nonnegative.
1039         * modules/parse-datetime (Depends-on): Add idx.
1041 2020-12-06  Bruno Haible  <bruno@clisp.org>
1043         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
1044         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
1045         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
1046         nonnegative.
1047         * modules/fnmatch (Depends-on): Add idx.
1049 2020-12-06  Bruno Haible  <bruno@clisp.org>
1051         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
1052         * lib/c-stack.c: Include idx.h.
1053         (die): Mark buflen as nonnegative.
1054         * modules/c-stack (Depends-on): Add idx.
1056 2020-12-06  Bruno Haible  <bruno@clisp.org>
1058         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
1059         * lib/backupfile.c: Include idx.h.
1060         (numbered_backup): Mark base_offset as nonnegative.
1061         (backupfile_internal): Likewise.
1062         * modules/backup-rename (Depends-on): Add idx.
1063         * modules/backupfile (Depends-on): Likewise.
1065 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1067         doc: fix curved quotes issue
1068         * doc/gnulib.texi: Set txicodequoteundirected and
1069         txicodequotebacktick so that ` and ' in examples do not generate
1070         curved single quotes that do the wrong thing when cut and pasted.
1072         doc: mention static and dynamic checking
1073         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
1074         for static and dynamic checking.
1076         intprops: Add INT_ADD_OK etc.
1077         * doc/intprops.texi (Checking Integer Overflow): New section.
1078         * lib/intprops.h: From a suggestion by Bruno Haible in:
1079         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
1080         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
1082         doc: move exotic platfroms to Target Platforms
1083         * doc/gnulib-intro.texi (Supported Platforms)
1084         (Formerly Supported Platforms, Unsupported Platforms):
1085         New subsections, split off from Target Platforms.
1086         (Unsupported Platforms): Move the exotic-platform stuff here ...
1087         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
1088         section.
1090         doc: mention intptr_t etc. and IBM i
1091         * doc/gnulib-readme.texi (Other portability assumptions):
1092         Mention intptr_t and uintptr_t, and that arithmetic on them
1093         works in the usual way.
1094         (Exotic platforms): New section, containing material from
1095         the old 'Integer Portability' section.  Also mention IBM i.
1096         * doc/intprops.texi (Wraparound Arithmetic):
1097         Say that the macros work on unsigned integers too.
1098         (Integer Portability): Remove.
1100 2020-12-04  Bruno Haible  <bruno@clisp.org>
1102         utime: Fix a test failure on macOS 10.13.
1103         Reported by Martin Storsjö <martin@martin.st> in
1104         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1105         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
1106         slashes on files.
1107         * lib/utime.c (utime): Add alternative implementation for Unix
1108         platforms.
1109         * modules/utime (Depends-on): Add stat.
1110         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
1111         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
1112         trailing-slash bug.
1113         * doc/posix-functions/open.texi: Likewise.
1114         * doc/posix-functions/stat.texi: Likewise.
1115         * doc/posix-functions/symlink.texi: Likewise.
1117 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1119         intprops: update doc and mention Unisys
1120         * doc/gnulib-readme.texi (Other portability assumptions):
1121         Also mention ptrdiff_t when talking about widths and overflow.
1122         * doc/intprops.texi (Integer Properties): Summarize new section.
1123         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
1124         evaluates its argument.
1125         (Integer Bounds): Fix typo.
1126         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
1127         Document that the _WRAPV macros now support pointers to unsigned
1128         integers.
1129         (Integer Range Overflow): Update SEI CERT citation.
1130         (Integer Portability): New subsection, which mentions
1131         the oddball Unisys platforms as non-Gnulib targets.
1133 2020-12-03  Bruno Haible  <bruno@clisp.org>
1135         idx: Clarify that idx_t always behaves like a signed type.
1136         Suggested by Paul Eggert in
1137         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
1138         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
1139         Don't test UNSIGNED_IDX_T.
1141 2020-12-03  Bruno Haible  <bruno@clisp.org>
1143         idx: New module.
1144         * lib/idx.h: New file.
1145         * modules/idx: New file.
1146         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
1147         ptrdiff_t.
1148         * lib/canonicalize.c: Likewise.
1149         * modules/canonicalize-lgpl (Depends-on): Add idx.
1150         * modules/canonicalize (Depends-on): Likewise.
1152 2020-12-03  Bruno Haible  <bruno@clisp.org>
1154         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
1155         Reported by Martin Storsjö <martin@martin.st> in
1156         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1157         * tests/test-fprintf-posix3.c: Skip the test on macOS.
1158         (main): Return a different exit code at each point. Allow 100 KB extra
1159         memory consumption.
1160         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
1161         doesn't work" diagnostic.
1163 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1165         canonicalize: refactor can_mode flag
1166         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
1167         (multiple_bits_set): ... this new static function.  Uses changed.
1168         (canonicalize_filename_mode): Refactor for clarity to avoid
1169         modifying the CAN_MODE argument.
1171         canonicalize: prefer signed integer types
1172         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1173         (seen_triple, canonicalize_filename_mode): Prefer signed to
1174         unsigned types where either will do, as they avoid some glitches
1175         in comparisons and can trap on overflow when debugging.
1177         canonicalize: fix most of another EOVERFLOW issue
1178         * lib/canonicalize.c (canonicalize_filename_mode):
1179         Do not call stat if fewer than 20 symlinks have been traversed.
1180         This avoids EOVERFLOW failure in the common case where there
1181         are not that many symlinks, while continuing to catch loops
1182         (or fail due to EOVERFLOW) in the unusual case when there
1183         are many symlinks to traverse.
1185         canonicalize: do not assume symlinks have st_ino
1186         * lib/canonicalize.c (canonicalize_filename_mode):
1187         When checking for loops, use st_dev and st_ino from the parent
1188         directory not from the symlink, as pre-2017 POSIX says these
1189         members are not reliable for symlinks.  Couple this with START
1190         (the remaining file name to be resolved), not NAME (the whole file
1191         name with START as its suffix).
1192         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
1194         canonicalize: fix EOVERFLOW bug
1195         * lib/canonicalize.c (canonicalize_filename_mode):
1196         When testing whether a directory entry is a symbolic link, or a
1197         directory or other, do not use lstat or stat or
1198         areadlink_with_size.  Just use areadlink, as this suffices and it
1199         avoids the EOVERFLOW problem that lstat and stat have.
1200         * modules/canonicalize (Depends-on): Depend on areadlink instead
1201         of areadlink-with-size and stat.
1203         canonicalize-lgpl: fix EOVERFLOW bug
1204         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
1205         (__realpath): Do not use lstat.  Just use readlink, as this
1206         suffices and it avoids the EOVERFLOW problem that lstat has.
1207         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
1209 2020-12-02  Bruno Haible  <bruno@clisp.org>
1211         strsignal-tests: Fix test failure on macOS 10.13.
1212         Reported by Martin Storsjö <martin@martin.st> in
1213         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1214         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
1215         to be longer than the expected result.
1217 2020-12-02  Bruno Haible  <bruno@clisp.org>
1219         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
1220         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
1221         recursive self-include problem on FreeBSD 12.2 in C++ mode.
1223 2020-12-02  Bruno Haible  <bruno@clisp.org>
1225         spawn-pipe: Allow caller to specify directory for the subprocess.
1226         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1227         Add directory argument.
1228         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
1229         (create_pipe): Add directory argument. If specified, resolve the program
1230         file name and make it absolute, first. Pass the directory to spawnpvech
1231         and posix_spawn_file_actions_addchdir.
1232         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
1233         argument.
1234         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
1235         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
1236         * tests/test-spawn-pipe-main.c (test_pipe): Update.
1237         * NEWS: Mention the change.
1238         * lib/csharpcomp.c (compile_csharp_using_mono,
1239         compile_csharp_using_sscli): Update.
1240         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
1241         is_gcj_43): Update.
1242         * lib/javaversion.c (execute_and_read_line): Update.
1243         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
1244         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
1246 2020-12-02  Bruno Haible  <bruno@clisp.org>
1248         execute: Allow caller to specify directory for the subprocess.
1249         * lib/execute.h (execute): Add directory argument.
1250         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
1251         (execute): Add directory argument. If specified, resolve the program
1252         file name and make it absolute, first. Pass the directory to spawnpvech
1253         and posix_spawn_file_actions_addchdir.
1254         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
1255         posix_spawn, posix_spawn_file_actions_addchdir.
1256         * tests/test-execute-main.c: Add test for passing a directory.
1257         * tests/test-execute-child.c: Likewise.
1258         * tests/test-execute.sh: Update.
1259         * modules/execute-tests (Depends-on): Add mkdir.
1260         * NEWS: Mention the change.
1261         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
1262         * lib/csharpexec.c (execute_csharp_using_mono,
1263         execute_csharp_using_sscli): Update.
1264         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1265         compile_using_javac, compile_using_jikes, is_javac_present,
1266         is_jikes_present): Update.
1267         * lib/javaexec.c (execute_java_class): Update.
1269 2020-12-01  Bruno Haible  <bruno@clisp.org>
1271         vma-iter: Add support for macOS11/arm64.
1272         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
1273         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
1274         and by Martin Storsjö <martin@martin.st> in
1275         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1276         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
1278 2020-12-01  Bruno Haible  <bruno@clisp.org>
1280         spawn-pipe: Fix handling of OS/2 kLIBC.
1281         Reported by KO Myung-Hun <komh78@gmail.com> in
1282         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
1283         * modules/spawn-pipe (configure.ac): Use the common idiom for
1284         recognizing the OS/2 operating system.
1286 2020-11-30  Bruno Haible  <bruno@clisp.org>
1288         execute: Fix uninitialized use of errno.
1289         * lib/execute.c (execute): Preserve errno across several system calls.
1291 2020-11-30  Bruno Haible  <bruno@clisp.org>
1293         access tests: Fix test failure on native Windows.
1294         * tests/test-access.c (main): Change permissions of f2 file before
1295         attempting to remove it.
1297 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1299         faccessat: link with $(LIB_EACCESS)
1300         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
1301         module depends on euidaccess.
1303 2020-11-30  Bruno Haible  <bruno@clisp.org>
1305         execute, spawn-pipe: Make multithread-safe on native Windows.
1306         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
1307         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
1308         (spawnpvech): New declaration.
1309         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
1310         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
1311         (_): Remove macro.
1312         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
1313         undup_safer_noinherit): Remove functions.
1314         (spawnpvech): New function.
1315         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
1316         cloexec, dup2, error, gettext-h.
1317         * lib/execute.c: Include msvc-nothrow.h.
1318         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
1319         * lib/spawn-pipe.c: Include msvc-nothrow.h.
1320         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
1321         instead of _spawnvpe.
1322         * modules/execute (Depends-on): Add msvc-nothrow.
1323         * modules/spawn-pipe (Depends-on): Likewise.
1325 2020-11-30  Bruno Haible  <bruno@clisp.org>
1327         execute, spawn-pipe: Improve documentation.
1328         * lib/execute.h: Describe progname, prog_path, prog_argv.
1329         * lib/spawn-pipe.h: Likewise.
1331 2020-11-30  Bruno Haible  <bruno@clisp.org>
1333         execute tests: Add more tests.
1334         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
1335         inherited file descriptors >= 3.
1336         * tests/test-execute-child.c: Likewise.
1337         * tests/test-execute.sh: Update.
1339 2020-11-30  Bruno Haible  <bruno@clisp.org>
1341         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1342         Reported by comex <comexk@gmail.com> in
1343         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1344         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1345         don't expect an ELF header.
1347 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1349         bitset: use integer_length in table implementation
1350         * lib/bitset/table.c (tbitset_list_reverse): Use
1351         BITSET_FOR_EACH_BIT_REVERSE.
1353 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1355         bitset: use integer_length in list implementation
1356         * lib/bitset/list.c (lbitset_list_reverse): Use
1357         BITSET_FOR_EACH_BIT_REVERSE.
1359 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1361         bitset: use integer_length in vector implementation
1362         * lib/bitset/array.c (vbitset_list_reverse): Use
1363         BITSET_FOR_EACH_BIT_REVERSE.
1365 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1367         bitset: use integer_length in array implementation
1368         * modules/bitset (Depends-on): Add integer_length_l.
1369         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1370         * lib/bitset/array.c (abitset_list_reverse): Use it.
1372 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1374         bitset: style: use consistent names
1375         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1376         and 'boffset' as 'bitoff', for consistency with the other
1377         implementations.
1378         * bitset/table.c (tbitset_list_reverse): Likewise.
1380 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1382         bitset: style: sort header
1383         * lib/bitset/base.h (bitset_ffs): Rename as...
1384         (bitset_ffs_): this.
1385         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1387 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1389         bitset: tests: check BITSET_FOR_EACH_REVERSE
1390         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1391         Check BITSET_FOR_EACH_REVERSE.
1393 2020-11-29  Bruno Haible  <bruno@clisp.org>
1395         spawn-pipe tests: Fix test failure with MSVC.
1396         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1397         (gl_msvc_invalid_parameter_handler): New function.
1398         (main): Set a global invalid-parameter handler.
1399         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1401 2020-11-29  Bruno Haible  <bruno@clisp.org>
1403         execute: Add tests.
1404         * tests/test-execute.sh: New file.
1405         * tests/test-execute-main.c: New file.
1406         * tests/test-execute-child.c: New file.
1407         * modules/execute-tests: New file.
1409 2020-11-29  Bruno Haible  <bruno@clisp.org>
1411         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1412         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1413         works.
1414         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1415         fallback implementation as on Haiku.
1416         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1417         effective.
1418         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1420 2020-11-29  Bruno Haible  <bruno@clisp.org>
1422         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1423         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1424         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1425         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1426         * lib/windows-spawn.c: Remove modifications for kLIBC.
1427         * modules/spawn-pipe (Files): Add the new files.
1428         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1430 2020-11-28  Bruno Haible  <bruno@clisp.org>
1432         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1433         Reported by Paul Eggert in
1434         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1435         * m4/sparcv8+.m4: New file.
1436         * modules/sparcv8+: New file.
1437         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1439 2020-11-28  Bruno Haible  <bruno@clisp.org>
1441         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1442         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1444 2020-11-28  Bruno Haible  <bruno@clisp.org>
1446         windows-spawn: New module.
1447         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1448         implementations.
1449         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1450         * modules/windows-spawn: New file.
1451         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1452         * lib/spawn-pipe.c: Likewise.
1453         * modules/execute (Files): Remove lib/w32spawn.h.
1454         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1455         xalloc.
1456         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1457         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
1458         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1459         xalloc.
1460         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1462 2020-11-27  Bruno Haible  <bruno@clisp.org>
1464         ssfmalloc tests: Port to macOS 11.
1465         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
1467 2020-11-26  Bruno Haible  <bruno@clisp.org>
1469         Fix dependencies of modules that use '_exit' on native Windows.
1470         Reported by Jim Meyering in
1471         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
1472         * modules/_Exit (Depends-on): Add unistd.
1473         * modules/closein (Depends-on): Likewise.
1474         * modules/closeout (Depends-on): Likewise.
1475         * modules/forkpty (Depends-on): Likewise.
1476         * modules/posix_spawn-internal (Depends-on): Likewise.
1477         * modules/savewd (Depends-on): Likewise.
1478         * modules/stat-time-tests (Depends-on): Likewise.
1480 2020-11-26  Bruno Haible  <bruno@clisp.org>
1482         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
1483         * modules/raise-tests (Depends-on): Add unistd.
1484         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
1486 2020-11-25  Jim Meyering  <meyering@fb.com>
1488         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
1489         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
1490         non-NULL, since we don't bother handing strdup failure.
1492         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
1493         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
1494         * tests/test-raise.c: Include unistd.h.
1495         (handler): Use _exit, not exit.
1497 2020-11-23  Bruno Haible  <bruno@clisp.org>
1499         Use the correct printf format attribute for mingw.
1500         Reported by Reuben Thomas <rrt@sc3d.org> in
1501         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
1503         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
1504         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
1506         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
1507         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
1508         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1509         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
1510         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
1511         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
1513         * modules/vasnprintf (Depends-on): Add stdio.
1514         * lib/vasnprintf.h: Include <stdio.h>.
1515         (asnprintf, vasnprintf): Use the standard printf format attribute.
1517         * modules/xvasprintf (Depends-on): Add stdio.
1518         * lib/xvasprintf.h: Include <stdio.h>.
1519         (xasprintf, xvasprintf): Use the standard printf format attribute.
1521         * modules/xprintf (Depends-on): List stdio first.
1522         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
1523         depends on GNULIB_VPRINTF_POSIX.
1524         (xfprintf, xvfprintf): Use a printf format attribute that depends on
1525         GNULIB_VFPRINTF_POSIX.
1527         * modules/c-vasnprintf (Depends-on): Add stdio.
1528         * lib/c-vasnprintf.h: Include <stdio.h>.
1529         (c_vasnprintf): Use the standard printf format attribute.
1531         * modules/c-vasprintf (Depends-on): Add stdio.
1532         * lib/c-vasprintf.h: Include <stdio.h>.
1533         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
1535         * modules/c-vsnprintf (Depends-on): Add stdio.
1536         * lib/c-vsnprintf.h: Include <stdio.h>.
1537         (c_vsnprintf): Use the standard printf format attribute.
1539         * modules/c-snprintf (Depends-on): Add stdio.
1540         * lib/c-snprintf.h: Include <stdio.h>.
1541         (c_snprintf): Use the standard printf format attribute.
1543         * modules/c-xvasprintf (Depends-on): Add stdio.
1544         * lib/c-xvasprintf.h: Include <stdio.h>.
1545         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
1547         * modules/error (Depends-on): Depend on stdio always.
1548         * lib/error.h: Include <stdio.h>.
1549         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
1550         (error, error_at_line): Use a printf format attribute that depends on
1551         GNULIB_VFPRINTF_POSIX.
1552         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1553         _GL_ATTRIBUTE_FORMAT_PRINTF.
1555         * modules/verror (Depends-on): Add stdio.
1556         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
1557         (verror, verror_at_line): Use the standard printf format attribute.
1558         * lib/verror.c: Include "error.h".
1560         * modules/argp (Depends-on): Add stdio.
1561         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
1562         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
1564         * modules/libtextstyle-optional (Depends-on): Add stdio.
1565         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
1566         printf format attribute.
1568         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
1569         format attribute.
1571 2020-11-23  Pádraig Brady  <P@draigBrady.com>
1573         selinux-at, selinux-h: use const correct declarations
1574         * lib/se-selinux.in.h: Use const for "set" functions,
1575         to match current selinux, and support cleaner user code.
1576         * lib/selinux-at.c: Likewise.
1577         * lib/selinux-at.h: Likewise.
1579 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1581         canonicalize-lgpl: fix memory leak
1582         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
1583         which could have occurred if BUF was so large that malloc was
1584         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
1585         this eliminates the need to free BUF separately.
1587 2020-11-22  Bruno Haible  <bruno@clisp.org>
1589         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1590         * modules/xvasprintf (Depends-on): Add xalloc.
1591         * modules/pipe-filter-gi (Depends-on): Likewise.
1592         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1593         * modules/spawn-pipe (Depends-on): Likewise.
1595 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
1597         bootstrap: add option hooks
1598         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
1599         (bootstrap_option_hook): Likewise.
1600         (usage): Call bootstrap_print_option_usage_hook.
1602 2020-11-22  Bruno Haible  <bruno@clisp.org>
1604         argp: Don't break getprogname on non-glibc systems.
1605         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
1606         program_invocation_name and program_invocation_short_name.
1608 2020-11-22  Bruno Haible  <bruno@clisp.org>
1610         doc: Document <link.h>.
1611         * doc/glibc-headers/link.texi: New file.
1612         * doc/gnulib.texi: Include it.
1614 2020-11-22  Bruno Haible  <bruno@clisp.org>
1616         doc: Add references to the LSB.
1617         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
1618         * doc/posix-functions/*.texi: Likewise.
1620 2020-11-22  Bruno Haible  <bruno@clisp.org>
1622         doc: Fix a makeinfo warning (regression 2020-11-03).
1623         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
1625 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1627         parse-datetime: fix printf format typo
1628         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
1629         previous patch to this file.  Problem reported by Chris Elvidge in
1630         <https://bugs.gnu.org/44763#32>.
1632         setlocale-null-tests: work around GCC bug 44511
1633         * tests/test-setlocale_null-mt-all.c:
1634         * tests/test-setlocale_null-mt-one.c:
1635         Ignore -Wreturn-type, to work around GCC bug 44511.
1637         nl_langinfo-tests: work around GCC bug 44511
1638         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
1639         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
1640         Problem reported for GNU grep by Andreas Schwab
1641         <https://bugs.gnu.org/44535>.
1643         selinux-h: add stubs for selabel_open etc.
1644         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
1645         because matchpathcon is deprecated in favor of selabel_open etc.,
1646         so this patch adds stubs for these functions.
1647         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
1648         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
1649         as it is needed for selabel_open and selinux/selinux.h declares
1650         this type here.
1651         * modules/selinux-h (Files): Add the new files.
1652         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
1653         (lib_SOURCES): Add se-label.in.h, se-label.c.
1654         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
1655         (selinux/label.h): New rule, mimicking selinux/context.h.
1656         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
1657         (Include): Add selinux/label.h.
1659 2020-11-21  Bruno Haible  <bruno@clisp.org>
1661         Update after 'test-driver' in Automake changed.
1662         * build-aux/test-driver.diff: Rebase.
1664 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1666         read-file: remove dead assignment
1667         * lib/read-file.c (fread_file): Remove dead assignment when
1668         RF_SENSITIVE is set, flagged by clang-analyzer.
1670 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1672         bitset: tests: exercise the stats too
1674         * tests/test-bitset.c: Display the stats at the end of the test.
1675         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1676         last bin, display "256-..." rather that "256-511", since the last bin
1677         does count item greater than or equal to 256.
1679 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1681         bitset: tests: try harder to break it
1682         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1683         BITSET_LIST_SIZE.
1684         (main): Likewise.
1685         While at it, also exercise super small bitsets.
1687 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1689         bitset: use ffs where possible in the vector implementation
1690         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1692 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1694         bitset: use ffs where possible in the table implementation
1695         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1697 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1699         bitset: check empty and full bitsets
1700         * tests/test-bitset.c (check_zero, check_ones): New.
1701         (check_attributes): Use them.
1703 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1705         bitset: be sure to always return a value
1706         * lib/bitset/array.c (abitset_small_list): Always update *next and
1707         return a value.
1709 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1711         vcs-to-changelog: Expect spaces in file names
1712         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1713         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1714         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1715         tabs to spaces.
1716         (list_changes): Use tabs to identify file names.
1718 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1720         bitset: strengthen tests
1721         * tests/test-bitset.c (compare): Also check count.
1722         Deal only with random values, move the one-bit tests to...
1723         (check_one_bit): this new function.
1724         (check_attributes): Call it.
1726 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1728         bitset: fix iteration over table bitsets
1729         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1731 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1733         bitset: rename internal details for consistency
1734         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1736 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1738         bitset: test: run deterministic tests on several bitset sizes
1739         * tests/test-bitset.c (check_attributes): Run it with small and large
1740         sizes.
1742 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1744         bitset: use ffs where possible in the list implementation
1745         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1747 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1749         bitset: use ffs where possible in array implementation
1750         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1752 2020-11-17  Bruno Haible  <bruno@clisp.org>
1754         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1755         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1756         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1757         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1758         C++ mode.
1760 2020-11-17  Bruno Haible  <bruno@clisp.org>
1762         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1763         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1764         is always declared.
1765         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1766         declared.
1768 2020-11-17  Bruno Haible  <bruno@clisp.org>
1770         Fix link errors on AIX.
1771         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1772         * modules/getumask (Link): Link with $(LIBTHREAD).
1773         * modules/getumask-tests (Makefile.am): Link test-getumask with
1774         $(LIBTHREAD).
1775         * modules/supersede (Link): Link with $(LIBTHREAD).
1776         * modules/supersede-tests (Makefile.am): Link test-supersede with
1777         $(LIBTHREAD).
1778         * modules/fatal-signal (Link): New section.
1779         * modules/execute (Link): New section.
1780         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1781         * modules/javaexec (Link): Link with $(LIBTHREAD).
1782         * modules/spawn-pipe (Link): New section.
1783         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1784         $(LIBTHREAD).
1785         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1786         * modules/javacomp (Link): Link with $(LIBTHREAD).
1787         * modules/javaversion (Link): Link with $(LIBTHREAD).
1788         * modules/pipe-filter-gi (Link): New section.
1789         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1790         test-pipe-filter-gi2-main with $(LIBTHREAD).
1791         * modules/pipe-filter-ii (Link): New section.
1792         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1793         test-pipe-filter-ii2-main with $(LIBTHREAD).
1794         * modules/term-style-control (Link): New section.
1795         * modules/term-style-control-tests (Makefile.am): Link
1796         test-term-style-control-hello, test-term-style-control-yes with
1797         $(LIBTHREAD).
1798         * modules/wait-process (Link): New section.
1799         * modules/nonblocking-pipe-tests (Makefile.am): Link
1800         test-nonblocking-pipe-main with $(LIBTHREAD).
1801         * modules/nonblocking-socket-tests (Makefile.am): Link
1802         test-nonblocking-socket-main with $(LIBTHREAD).
1804 2020-11-16  Bruno Haible  <bruno@clisp.org>
1806         Fix link errors on platforms with libunistring.
1807         * modules/c32isalnum (Link): New section.
1808         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1809         $(LIBUNISTRING).
1810         * modules/c32isalpha (Link): New section.
1811         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1812         $(LIBUNISTRING).
1813         * modules/c32isblank (Link): New section.
1814         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1815         $(LIBUNISTRING).
1816         * modules/c32iscntrl (Link): New section.
1817         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1818         $(LIBUNISTRING).
1819         * modules/c32isdigit (Link): New section.
1820         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1821         $(LIBUNISTRING).
1822         * modules/c32isgraph (Link): New section.
1823         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1824         $(LIBUNISTRING).
1825         * modules/c32islower (Link): New section.
1826         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1827         $(LIBUNISTRING).
1828         * modules/c32isprint (Link): New section.
1829         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1830         $(LIBUNISTRING).
1831         * modules/c32ispunct (Link): New section.
1832         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1833         $(LIBUNISTRING).
1834         * modules/c32isspace (Link): New section.
1835         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1836         $(LIBUNISTRING).
1837         * modules/c32isupper (Link): New section.
1838         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1839         $(LIBUNISTRING).
1840         * modules/c32isxdigit (Link): New section.
1841         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1842         $(LIBUNISTRING).
1843         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1844         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1845         $(LIBUNISTRING).
1847 2020-11-16  Bruno Haible  <bruno@clisp.org>
1849         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1850         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1851         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1852         * modules/getumask-tests (Makefile.am): Link test-getumask with
1853         $(LIBINTL).
1854         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1855         * modules/supersede-tests (Makefile.am): Link test-supersede with
1856         $(LIBINTL).
1857         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1858         $(LIBINTL).
1860 2020-11-16  Bruno Haible  <bruno@clisp.org>
1862         getumask: Document link dependencies.
1863         * modules/getumask (Link): New section.
1865 2020-11-16  Bruno Haible  <bruno@clisp.org>
1867         Update link dependencies in modules after 2020-09-09 change.
1868         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1869         * modules/mkdtemp (Link): Likewise.
1870         * modules/mkostemp (Link): Likewise.
1871         * modules/mkostemps (Link): Likewise.
1872         * modules/mkstemp (Link): Likewise.
1873         * modules/mkstemps (Link): Likewise.
1874         * modules/supersede (Link): Likewise.
1875         * modules/tmpfile (Link): Likewise.
1876         * modules/tmpfile-safer (Link): Likewise.
1878 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1880         getumask-tests: port to Solaris 10 etc.
1881         Problem reported by Tom Christensen in:
1882         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1883         * modules/getumask-tests (test_getumask_LDADD):
1884         Add $(LIB_CLOCK_GETTIME).
1886 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1888         bitset: use ffsl to accelerate iterations over set bits
1889         Suggested by Bruno Haible.
1890         * modules/bitset: Depend upon ffsl.
1891         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1892         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1894 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1896         bitset: more tests
1897         * tests/test-bitset.c (compare): Make it clear that the random values
1898         should not be modified.
1899         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1901 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1903         bitset: fix the copy from lbitset to other types
1904         * lib/bitset/list.c (lbitset_copy): Rename as...
1905         (lbitset_copy_): this.
1906         (lbitset_copy): New.
1907         Dispatch to heterogeneous/homogeneous copy.
1909 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1911         bitset: making debug traces more useful
1912         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1914         bitset: comment changes
1915         * lib/bitset.c: Move some documenting comments to...
1916         * lib/bitset.h: here.
1917         * lib/bitset/array.c: Fix some comments.
1919 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1921         careadlinkat: warn better about GCC bug 93644
1922         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1923         not in effect, use "#warning" to let builders know more clearly
1924         about GCC bug 93644, because the bug triggers even if no -W option
1925         is given to GCC.
1927 2020-11-13  Jim Meyering  <meyering@fb.com>
1929         hard-locale-tests: avoid a -Wstrict-prototypes warning
1930         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1931         changing "main ()" to "main (void)". This was the only case that
1932         triggered a warning when building grep with --enable-gcc-warnings.
1934 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1936         time_rz: simplify CVE-2017-7476 fix
1937         * lib/time_rz.c: Do not include limits.h; I think it was included
1938         under the mistaken impression that limits.h defines SIZE_MAX.
1939         (SIZE_MAX): Remove.
1940         (save_abbr): Put string length into a ptrdiff_t variable,
1941         so that the size comparison works naturally.  This
1942         fixes CVE-2017-7476 in a cleaner way.
1944         parse-datetime: streamline overflow checking
1945         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1946         did not work for unsigned destinations, and since time_t might
1947         be unsigned that meant it did not work for time_t destinations.
1948         This limitation of INT_ADD_WRAPV has been fixed, so we can
1949         now streamline parse-datetime.y a bit.
1950         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1951         has not been used for a while.
1952         (yylex, parse_datetime2): Assume C99 declarations after statements.
1953         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1954         to TYPE_MINIMUM.
1955         (parse_datetime2): No need for time_overflow now that
1956         INT_ADD_WRAPV works for unsigned results.
1958         parse-datetime-tests: port to Alpine Linux 3.12.1
1959         * tests/test-parse-datetime.c: Include errno.h for errno,
1960         and unistd.h for _SC_TZNAME_MAX and sysconf.
1961         (main): In the outlandishly-long time zone abbreviation test,
1962         do not exceed TZNAME_MAX as this has undefined behavior,
1963         and on Alpine Linux 3.12.1 it makes the test fail.
1965 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1967         mgetgroups: avoid warning with clang
1968         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1969         so disable -Wpointer-sign for all clang versions.
1971 2020-11-07  Bruno Haible  <bruno@clisp.org>
1973         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1974         Reported by Simon Josefsson in
1975         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1976         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1977         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1978         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1980 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1982         tests: pacify Sun C 5.9
1983         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1984         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1985         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1986         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1987         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1988         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1989         Remove unreachable ‘return NULL;’s.
1991         tests: port better to XLC 12.01
1992         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1993         even in code that is not executed, as IBM XLC 12.01 complains "The
1994         subscript -1 is less than zero."
1995         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1996         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1997         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1998         arguments than are required by the macro definition."
2000 2020-11-03  Bruno Haible  <bruno@clisp.org>
2002         aligned-malloc: Use fixes from the new modules.
2003         * modules/aligned-malloc (Depends-on): Add posix_memalign,
2004         aligned_alloc, memalign.
2005         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2007 2020-11-03  Bruno Haible  <bruno@clisp.org>
2009         aligned_alloc: Add tests.
2010         * tests/test-aligned_alloc.c: New file.
2011         * modules/aligned_alloc-tests: New file.
2013         aligned_alloc: New module.
2014         * lib/stdlib.in.h (aligned_alloc): New declaration.
2015         * lib/aligned_alloc.c: New file.
2016         * m4/aligned_alloc.m4: New file.
2017         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
2018         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
2019         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2020         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
2021         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2022         * modules/aligned_alloc: New file.
2023         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
2024         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
2025         AIX bug.
2027 2020-11-03  Bruno Haible  <bruno@clisp.org>
2029         posix_memalign: Add tests.
2030         * tests/test-posix_memalign.c: New file.
2031         * modules/posix_memalign-tests: New file.
2033         posix_memalign: New module.
2034         * lib/stdlib.in.h (posix_memalign): New declaration.
2035         * lib/posix_memalign.c: New file.
2036         * m4/posix_memalign.m4: New file.
2037         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
2038         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
2039         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2040         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
2041         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2042         * modules/posix_memalign: New file.
2043         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
2044         * doc/posix-functions/posix_memalign.texi: Mention the new module and
2045         the OpenBSD bug.
2047 2020-11-03  Bruno Haible  <bruno@clisp.org>
2049         memalign: Add tests.
2050         * tests/test-memalign.c: New file.
2051         * modules/memalign-tests: New file.
2053         memalign: New module.
2054         * modules/memalign: New file.
2055         * doc/glibc-functions/memalign.texi: Mention the new module.
2057 2020-11-03  Bruno Haible  <bruno@clisp.org>
2059         verify tests: Fix crash with GCC (regression 2020-11-02).
2060         * tests/test-verify.c (main): Fix initializer of s.
2062 2020-11-03  Pádraig Brady  <P@draigBrady.com>
2064         mountlist: recognize more file system types as remote
2066         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
2067         "remote" file systems from stat.c in coreutils.
2069 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
2071         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
2072         * tests/test-verify.c (main): Initialize state variable.
2073         Reported by Bruno Haible for GCC 5.4.0.
2075 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2077         dfa.h: support inclusion from C++
2078         * lib/dfa.h: Allow multiple inclusion, and inclusion from
2079         C++ code.  The latter was suggested by Arnold Robbins.
2081 2020-11-01  Bruno Haible  <bruno@clisp.org>
2083         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
2084         * tests/test-ssfmalloc.c: Include <limits.h>.
2085         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
2087 2020-11-01  Bruno Haible  <bruno@clisp.org>
2089         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
2090         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
2092 2020-11-01  Jim Meyering  <meyering@fb.com>
2094         dfa-tests: test for today's invalid-merge fix
2095         * tests/test-dfa-invalid-merge.sh: New file.
2096         * modules/dfa-tests (Files): Add it.
2097         (TESTS): Add it.
2099 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2101         dfa: retain sequences of similar nodes in optimization
2102         DFA was merging similar nodes when it should not.  For example,
2103         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
2104         is not merged.  Problem reported by Gonzalo Padrino in
2105         https://bugs.gnu.org/44351
2106         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
2107         optimization.
2109 2020-11-01  Jim Meyering  <meyering@fb.com>
2111         test-dfa-match-aux.c: accept EREs, not BREs
2112         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
2113         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
2115 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
2117         verify tests: avoid -Wmissing-declarations warnings
2118         * tests/test-verify.c (test_assume_expressions): Add declaration.
2119         (test_assume_optimization): Likewise.
2120         (test_assume_noreturn): Likewise.
2121         (main): Move down after all other definitions.  While at it, also
2122         call test_assume_expressions and test_assume_optimization as a
2123         runtime check.
2125 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2127         sys_stat: update comments for S_IRWXUGO, S_IXUGO
2128         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
2129         Perhaps these macros should be removed, as they’re not in either
2130         POSIX or GNU.  They could be moved to stat-macros.h, which would
2131         be cleaner in some sense.
2133 2020-10-25  Bruno Haible  <bruno@clisp.org>
2135         ssfmalloc tests: Small tweaks.
2136         * tests/test-ssfmalloc.c: Add comments.
2137         (alloc_pages): Don't require PROT_EXEC bits.
2138         (block_sizes): Add more small sizes, for better coverage of
2139         ssfmalloc-bitmap.h.
2141         ssfmalloc tests: Portability to Minix.
2142         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
2143         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
2144         * m4/mmap-anon.m4: Update comment.
2146         ssfmalloc: Portability to AIX.
2147         * modules/ssfmalloc (Include): Add ssfmalloc.h.
2148         (Link): New section.
2149         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
2150         $(LIBTHREAD).
2152         ssfmalloc: Portability to Cygwin.
2153         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
2154         (pg_offset_t): Define depending on PAGESIZE_MAX.
2155         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
2156         (PAGESIZE_MAX): New macro.
2158         ssfmalloc: Fix buffer overrun in bitmap search.
2159         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
2160         word *words_end.
2162 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2164         doc: mention ‘restrict’ and C++
2165         * doc/gnulib-readme.texi (C99 features assumed): Document
2166         that ‘restrict’ should be avoided in C++ code.
2168 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2170         selinux-at, selinux-h: port to SELinux 3.1
2171         The new release finally deprecated the typedef 'security_context_t',
2172         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2173         Use the simpler 'char *' instead.
2174         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2175         (lgetfilecon): Likewise.
2176         (fgetfilecon): Likewise.
2177         (map_to_failure): Likewise.
2178         (rpl_getfilecon): Likewise.
2179         (rpl_lgetfilecon): Likewise.
2180         (rpl_fgetfilecon): Likewise.
2181         * lib/se-selinux.in.h (security_context_t): Remove typedef.
2182         (getcon): Adjust type of context parameter.
2183         (freecon): Likewise.
2184         (getfscreatecon): Likewise.
2185         (setfscreatecon): Likewise.
2186         (matchpathcon): Likewise.
2187         (getfilecon): Likewise.
2188         (lgetfilecon): Likewise.
2189         (fgetfilecon): Likewise.
2190         (setfilecon): Likewise.
2191         (lsetfilecon): Likewise.
2192         (fsetfilecon): Likewise.
2193         (security_check_context): Likewise.
2194         (security_check_context_raw): Likewise.
2195         (setexeccon): Likewise.
2196         (security_compute_create): Likewise.
2197         * lib/selinux-at.c (getfileconat): Likewise.
2198         (lgetfileconat): Likewise.
2199         (setfileconat): Likewise.
2200         (lsetfileconat): Likewise.
2201         * lib/selinux-at.h: Likewise.
2203 2020-10-19  Bruno Haible  <bruno@clisp.org>
2205         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
2206         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
2207         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
2208         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
2209         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
2210         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
2211         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
2213 2020-10-18  Bruno Haible  <bruno@clisp.org>
2215         ssfmalloc: Add tests.
2216         * tests/test-ssfmalloc.c: New file.
2217         * modules/ssfmalloc-tests: New file.
2219         ssfmalloc: New module.
2220         * lib/ssfmalloc.h: New file.
2221         * lib/ssfmalloc-bitmap.h: New file.
2222         * modules/ssfmalloc: New file.
2224 2020-10-18  Bruno Haible  <bruno@clisp.org>
2226         wchar: Fix configure test result on some versions of AIX.
2227         Reported by Clément Chigot <clement.chigot@atos.net> in
2228         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
2229         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
2230         systems.
2232 2020-10-18  Bruno Haible  <bruno@clisp.org>
2234         time: Fix warning about asctime when asctime is not used.
2235         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
2236         invocation.
2238 2020-10-18  Bruno Haible  <bruno@clisp.org>
2240         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
2241         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
2242         '_GL_ATTRIBUTE_CONST'.
2243         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
2244         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
2245         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2246         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
2247         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
2248         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
2249         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
2251 2020-10-18  Bruno Haible  <bruno@clisp.org>
2253         obstack: Fix a clang warning.
2254         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
2256 2020-10-16  Bruno Haible  <bruno@clisp.org>
2258         hash: Rename hash_delete to hash_remove.
2259         * lib/hash.h (hash_remove): Renamed from hash_delete.
2260         (hash_delete): New declaration.
2261         * lib/hash.c (hash_remove): Renamed from hash_delete.
2262         (hash_delete): New function.
2263         * tests/test-hash.c (main): Update.
2264         * lib/fts-cycle.c (leave_dir): Likewise.
2265         * NEWS: Mention the change.
2267 2020-10-16  Bruno Haible  <bruno@clisp.org>
2269         hash, xhash: Make usable from C++.
2270         * lib/hash.h: Add extern "C".
2272 2020-10-16  Bruno Haible  <bruno@clisp.org>
2274         hash, xhash: Move comments to the .h file.
2275         * lib/hash.c: Move comments meant for the user from here...
2276         * lib/xhash.c: ... and here...
2277         * lib/hash.h: ... to here.
2279 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
2281         Don't declare an intention to modify the return value of strerror.
2282         * tests/test-perror2.c (main): Assign the return value of strerror to a
2283         'const char *' variable.
2285 2020-10-11  Bruno Haible  <bruno@clisp.org>
2287         *printf: Avoid "expanded before it was required" warning.
2288         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
2289         AC_DEFUN_ONCE.
2291 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
2293         getprogname: Add support for OpenServer 6 and UnixWare 7.
2294         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
2295         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
2297 2020-10-11  Bruno Haible  <bruno@clisp.org>
2299         tests: Avoid a name clash on UnixWare.
2300         Reported by Tim Rice <tim@multitalents.net> in
2301         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
2302         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
2304 2020-10-11  Bruno Haible  <bruno@clisp.org>
2306         stdioext: Update comments regarding UnixWare.
2307         Reported by Tim Rice <tim@multitalents.net> in
2308         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2309         * lib/fbufmode.c: Update comments.
2310         * lib/fflush.c: Likewise.
2311         * lib/fpending.c: Likewise.
2312         * lib/fpurge.c: Likewise.
2313         * lib/freadable.h: Likewise.
2314         * lib/freadable.c: Likewise.
2315         * lib/freadahead.c: Likewise.
2316         * lib/freading.h: Likewise.
2317         * lib/freading.c: Likewise.
2318         * lib/freadptr.c: Likewise.
2319         * lib/freadseek.c: Likewise.
2320         * lib/fseeko.c: Likewise.
2321         * lib/fseterr.c: Likewise.
2322         * lib/fwritable.h: Likewise.
2323         * lib/fwritable.c: Likewise.
2324         * lib/fwriting.h: Likewise.
2325         * lib/fwriting.c: Likewise.
2327 2020-10-11  Bruno Haible  <bruno@clisp.org>
2329         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
2330         Reported by Tim Rice <tim@multitalents.net> in
2331         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2332         Uses the info from
2333         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
2334         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
2336 2020-10-11  Bruno Haible  <bruno@clisp.org>
2338         stdioext: Avoid compilation errors on UnixWare 7.
2339         Reported by Tim Rice <tim@multitalents.net> in
2340         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
2341         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2342         * lib/fpurge.c: Likewise.
2343         * lib/freadable.h: Likewise.
2344         * lib/freading.h: Likewise.
2345         * lib/fwritable.h: Likewise.
2346         * lib/fwriting.h: Likewise.
2347         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2348         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2349         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2350         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2351         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2352         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2354 2020-10-11  Bruno Haible  <bruno@clisp.org>
2356         stdioext: Update comments regarding Cygwin.
2357         * lib/fpending.c: Update comments.
2358         * lib/fpurge.c: Likewise.
2359         * lib/freadable.h: Likewise.
2360         * lib/freadable.c: Likewise.
2361         * lib/freading.h: Likewise.
2362         * lib/freading.c: Likewise.
2363         * lib/fwritable.h: Likewise.
2364         * lib/fwritable.c: Likewise.
2365         * lib/fwriting.h: Likewise.
2366         * lib/fwriting.c: Likewise.
2368 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2370         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2371         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2372         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2374 2020-10-10  Bruno Haible  <bruno@clisp.org>
2376         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2377         Reported by Marc Nieper-Wißkirchen in
2378         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2379         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2380         gl_linked_iterator_from_to): Mark as 'pure'.
2381         (gl_linked_iterator_free): Mark as 'const'.
2382         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2383         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2384         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2385         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2386         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2387         (gl_tree_iterator_free): Mark as 'const'.
2388         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2389         'pure'.
2390         (gl_tree_iterator_free): Mark as 'const'.
2391         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2392         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2393         (gl_tree_iterator_free): Mark as 'const'.
2394         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2395         compare_position_threshold): Mark as 'pure'.
2396         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2397         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2398         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2399         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2400         'pure'.
2401         (gl_array_iterator_free): Mark as 'const'.
2402         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2403         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2404         (gl_array_iterator_free): Mark as 'const'.
2405         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2406         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2407         gl_array_iterator_atleast): Mark as 'pure'.
2408         (gl_array_iterator_free): Mark as 'const'.
2409         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2410         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2411         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2412         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2413         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2414         gl_carray_sortedlist_search): Mark as 'pure'.
2415         (gl_carray_iterator_free): Mark as 'const'.
2417 2020-10-10  Bruno Haible  <bruno@clisp.org>
2419         rbtree-list: Avoid possible compiler warnings.
2420         This mirrors the change of avltree-list on 2014-09-16.
2421         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2422         declaration. Add cast to void for ignored value of check_invariants.
2424 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2426         stack: New module.
2427         * MODULES.html.sh: Add entry for the stack module.
2428         * modules/stack: New file.
2429         * modules/stack-tests: New file.
2430         * lib/stack.h: New file.
2431         * tests/test-stack.c: New file.
2433 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2435         attribute: improve const, pure doc
2436         Problem reported by Marc Nieper-Wißkirchen in:
2437         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2438         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2439         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2441 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2443         thread: pacify GCC on Solaris 10
2444         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2445         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2446         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2447         where pthread_t is unsigned int.
2449 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2451         c-stack: avoid AS_IF
2452         Problem reported by Bruno Haible in:
2453         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
2454         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
2456         c-stack: pacify GCC 9.3.1 when using libsigsegv
2457         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
2459 2020-10-04  Bruno Haible  <bruno@clisp.org>
2461         localename: Fix a couple of "unused parameter" warnings.
2462         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
2463         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
2464         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
2465         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
2466         parameter list.
2468 2020-10-04  Bruno Haible  <bruno@clisp.org>
2470         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
2471         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
2472         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
2473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
2474         HAVE_SNPRINTF_TRUNCATION_C99.
2475         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
2476         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
2478 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2480         c-stack: streamline Solaris configuration
2481         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
2482         the code is used only if a test for sigaltstack worked
2483         in some other way.
2484         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
2485         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
2486         heuristic does not work).
2487         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
2488         we no longer require the libsigsegv module.
2489         (Depends-on): Depend on havelib, not libsigsegv.
2491         c-stack: stop using SIGSTKSZ
2492         It’s been proposed to stop making SIGSTKSZ an integer constant:
2493         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
2494         Also, using SIGSTKSZ in #if did not conform to current POSIX.
2495         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
2496         * lib/c-stack.c (SIGSTKSZ): Remove.
2497         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
2498         All uses changed.
2500         c-stack: fix libsigsegv typo
2501         Problem reported by Bruno Haible in:
2502         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
2503         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
2504         to be used only on Solaris (exactly where it is not needed!).
2506 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
2508         MODULES.html.sh: Fix typo.
2509         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
2511 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2513         version-etc: pacify Oracle Studio 12.6
2514         Without this patch, it complains: "version-etc.h", line 64:
2515         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
2516         pedantic mode.
2517         * lib/version-etc.h (version_etc): Port to C89 macro rules.
2519 2020-09-27  Bruno Haible  <bruno@clisp.org>
2521         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
2522         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2523         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2524         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
2525         ourselves; don't use AC_DECL_SYS_SIGLIST.
2527 2020-09-27  Bruno Haible  <bruno@clisp.org>
2529         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
2530         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2531         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2532         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
2533         instead of _AC_COMPUTE_INT.
2535 2020-09-27  Bruno Haible  <bruno@clisp.org>
2537         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
2538         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2539         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2540         Based on a patch by Paul Eggert.
2541         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
2542         test STDC_HEADERS. Assume <stdlib.h> exists.
2543         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
2545 2020-09-27  Bruno Haible  <bruno@clisp.org>
2547         Enable testing of prereleases of Autoconf 2.70.
2548         Suggested by Paul Eggert in
2549         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
2550         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
2551         >= 2.70.
2552         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
2553         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
2554         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
2556 2020-09-27  Bruno Haible  <bruno@clisp.org>
2558         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
2559         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2560         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2561         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
2562         AC_PROG_CC, depending on the Autoconf version.
2564 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
2566         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
2567         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
2568         of AC_HELP_STRING.
2569         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
2571 2020-09-27  Bruno Haible  <bruno@clisp.org>
2573         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
2574         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2575         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2576         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
2578 2020-09-27  Bruno Haible  <bruno@clisp.org>
2580         extensions: Simplify last commit.
2581         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
2582         AC_GNU_SOURCE ever.
2584 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2586         extensions: require AC_GNU_SOURCE only for <=2.63
2587         Problem reported by Gavin Smith in:
2588         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2590         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2591         shouldn’t be needed after that, and Autoconf 2.70 complains about
2592         it being obsolete.
2594 2020-09-26  Bruno Haible  <bruno@clisp.org>
2596         regex-tests: Make test more robust.
2597         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
2598         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
2600 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2602         regex-tests: fix possible Turkish false-alarm
2603         * modules/regex-tests (Depends-on): Add wctype-h.
2604         * tests/test-regex.c: Include wctype.h.
2605         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
2606         as the Turkish regex test assumes this.
2608         regex-tests: fix test and add debug output
2609         Perhaps this will fix the recent grep test failure reported at:
2610         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
2611         At least, the debug output should help narrow down the failure.
2612         * tests/test-regex.c: Include stdarg.h, stdio.h.
2613         (exit_status): New var.
2614         (report_error): New function.
2615         (main): Use it to report failures to stdout instead of merely
2616         exiting with some nonzero status.  The status info alone isn’t
2617         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
2618         regex before calling re_compile_pattern, fixing a portability bug.
2620         regex: no longer match glibc
2621         * config/srclist.txt: Comment out regex_internal.c for now.
2623 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2625         regex: fix ignore-case Turkish bug
2626         * lib/regex_internal.c (build_wcs_upper_buffer):
2627         Do not assume that converting single-byte character to upper
2628         yields a single-byte character.  This is not true for Turkish,
2629         where towupper (L'i') yields L'İ', which is not single-byte.
2630         * tests/test-regex.c (main): Test for this bug.
2632         regex: port to weird isascii platforms
2633         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
2635 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2637         dfa: make dfasupported a global function
2638         * lib/dfa.c (dfasupported): Rename, and make it global.
2639         Update caller.
2640         * lib/dfa.h (dfasupported): Add prototype.
2642 2020-09-20  Bruno Haible  <bruno@clisp.org>
2644         canonicalize: Add support for UNC file names on native Windows.
2645         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
2646         <https://savannah.gnu.org/bugs/?59079>.
2647         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
2648         extend the prefix to include the server.
2650 2020-09-20  Bruno Haible  <bruno@clisp.org>
2652         supersede: Fix test failures on native Windows.
2653         * lib/supersede.c (open_supersede): Handle non-regular files on native
2654         Windows like on Solaris.
2655         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
2657 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2659         test-stdalign: test Oracle Studio better
2660         * doc/posix-headers/stdalign.texi (stdalign.h):
2661         * tests/test-stdalign.c (main):
2662         Sun Studio Bug #2125432 seems to be fixed.
2664         c-stack: output diagnostic in single 'write'
2665         * lib/c-stack.c (die): In the typical case, use just one 'write'
2666         syscall to output the diagnostic, as this lessens interleaving.
2667         (die, c_stack_action): Assume C99.
2668         * modules/c-stack (Depends-on): Add c99, mempcpy.
2670         c-stack: improve checking if !libsigsegv
2671         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2672         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2673         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2674         I found these problems while looking into this bug report:
2675         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2676         * lib/c-stack.c: Include c-stack.h first, to test interface.
2677         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2678         max_align_t, intprops.h for INT_ADD_WRAPV.
2679         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2680         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2681         for libsigsegv 2.8 and earlier since the bug should be fixed
2682         after that.
2683         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2684         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2685         Assume sprintf returns byte count; this assumption is safe now.
2686         (page_size): New static volatile variable, since sysconf isn’t
2687         documented to be async-signal-safe on Solaris.  This variable is
2688         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2689         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2690         SIGINFO_WORKS).
2691         (segv_handler): Use it if present.  Never report null pointer
2692         dereference as a stack overflow.  Check for (unlikely) unsigned
2693         and/or pointer overflow.
2694         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2695         Rename cache variables to gl_cv_sys_stack_overflow_works
2696         and gl_cv_sys_xsi_stack_overflow_heuristic.
2697         All uses changed.
2698         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2699         c-stack no longer uses STACK_DIRECTION.
2700         Do not check for unistd.h, since we depend on unistd.
2701         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2702         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2703         stdbool, stddef.
2705 2020-09-20  Bruno Haible  <bruno@clisp.org>
2707         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2708         * m4/musl.m4: Revert 2020-09-19 patch.
2709         * m4/setlocale_null.m4: Likewise.
2710         * modules/setlocale-null: Likewise.
2712 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2713             Bruno Haible  <bruno@clisp.org>
2715         relocatable-prog: Fix for multiple relocatable library directories.
2716         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2717         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2718         being attached to a single one.
2720 2020-09-19  Jim Meyering  <meyering@fb.com>
2722         test-verify.c: avoid -Wshadow warnings
2723         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2724         (enum): Capitalize member names. Adjust uses.
2726 2020-09-19  Bruno Haible  <bruno@clisp.org>
2728         havelib: Avoid linking with libc.a on GNU systems.
2729         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2730         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2731         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2732         dependency_libs value of a .la file, ignore '-lc' options on GNU
2733         systems.
2735 2020-09-19  Bruno Haible  <bruno@clisp.org>
2737         Fix recognition of musl libc on Alpine Linux 3.10.
2738         Reported by Jeffrey Walton <noloader@gmail.com> in
2739         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2740         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2741         (gl_MUSL_LIBC): Require it.
2742         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2743         * modules/setlocale-null (Files): Add m4/musl.m4.
2745 2020-09-19  Bruno Haible  <bruno@clisp.org>
2747         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2748         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2749         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2750         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2751         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2752         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2753         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2754         or <threads.h>.
2755         (ITEMS, MAX_RESULT_LEN): New macros.
2756         (nl_langinfo_unlocked): New function.
2757         (gl_get_nl_langinfo_lock): New declaration.
2758         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2759         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2760         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2761         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2762         REPLACE_NL_LANGINFO.
2763         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2764         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2765         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2766         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2767         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2769 2020-09-18  Bruno Haible  <bruno@clisp.org>
2771         fsusage, getaddrinfo: Produce more regular configure output.
2772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2773         corresponding AC_MSG_RESULT.
2774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2776 2020-09-18  Bruno Haible  <bruno@clisp.org>
2778         Add back gl_SILENT.
2779         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2781 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2783         c-stack-tests: fix -fsanitize=undefined false alarm
2784         * tests/test-c-stack2.sh: Skip the test-harness self-test
2785         if ‘gcc -fsanitize=undefined’ is in use.
2787 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2789         signalblocking: simplify and remove gl_SILENT
2790         gl_SILENT was problematic because if a trap was sprung, stderr
2791         generated during the trap was lost.  Avoid the problem by
2792         removing the need for gl_SILENT.
2793         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2794         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2795         Simplify, avoiding the need for gl_SILENT while preserving the
2796         ability of the user to override the value of the cache variable,
2797         now ac_cv_func_sigprocmask.
2799 2020-09-17  Bruno Haible  <bruno@clisp.org>
2801         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2802         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2803         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2804         AS_MESSAGE_FD.
2806 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2808         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2809         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2810         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2811         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2812         Define to 0.
2813         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2814         Do not use __builtin_mul_overflow_p.
2816         libc-config: port __THROW to Ubuntu 4
2817         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2818         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2819         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2820         The GCC 3.3.4 documentation says the attribute should work, but
2821         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2822         little point or desire to research this circa-2004 platform further,
2823         so just avoid the attribute there.
2825 2020-09-17  Jim Meyering  <meyering@fb.com>
2827         test-dfa-match.sh: port timeout work-around to newer Busybox
2828         * tests/test-dfa-match.sh: Update timeout -t portability test to
2829         accommodate Busybox 1.30.0 and newer.
2831 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2833         fnmatch: adjust to match glibc fix
2834         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2835         This does not affect Gnulib; it merely keeps Gnulib and glibc
2836         closer together, to help with any eventual merge, by incorporating
2837         a recent glibc patch.  The patch and the following commentary is
2838         by Andreas Schwab.
2839         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2840         contains the index into the extra array, whereas wextra points
2841         into the extra array at this index, containing the length of the
2842         following collating sequence in the wide character representation.
2844 2020-09-16  Bruno Haible  <bruno@clisp.org>
2846         stat, fstat: Fix compilation error with old mingw headers.
2847         Reported by Eli Zaretskii <eliz@gnu.org> in
2848         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2849         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2850         define it.
2852 2020-09-16  Bruno Haible  <bruno@clisp.org>
2854         stat, fstat: Fix when compiling for versions older than Windows Vista.
2855         Reported by Eli Zaretskii <eliz@gnu.org> in
2856         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2857         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2858         that was originally set before we redefined it.
2859         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2860         (gl_PREREQ_STAT): Require it.
2861         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2863 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2865         dfa: remove dfa-heap-overrun workaround
2866         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2867         both sets map[*] and does other things.  This reverts
2868         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2869         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2870         fixed the underlying problem.
2872 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2874         dfa: avoid use of uninitialized constraint
2875         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2876         to zero here.
2877         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2878         use of an uninitialized constraint by later code when ! (flags[i]
2879         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2880         the constraint.  Problem found by running 'valgrind src/grep -E
2881         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2883         dfa: assume C99 in reorder_tokens
2884         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2886         dfa: fix dfa-heap-overrun failure
2887         * lib/dfa.c (reorder_tokens): When setting
2888         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2889         that (i < d->follows[i].elems[j].index), use two loops, one to set
2890         the map array and the other to use it.  The incorrect assumption
2891         caused some elements to be missed, and this in turn caused grep's
2892         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2893         with GCC.  I found this bug while investigating
2894         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2895         and I think the bug also occurs on GNU/Linux but with more-subtle
2896         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2897         recent changes make the bug more likely.
2899 2020-09-13  Bruno Haible  <bruno@clisp.org>
2901         parse-datetime: Make the build rule work with parallel 'make'.
2902         Reported by Daiki Ueno <ueno@gnu.org> in
2903         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2904         * modules/parse-datetime (Makefile.am): Use a phony target and the
2905         general idiom for rules that produce multiple files.
2907 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2909         getpass: Check for nonnull prompt argument while avoiding warnings.
2910         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2911         (getpass) [!_WIN32]: Print prompt only if nonnull.
2913 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2915         dfa: epsilon-closure tweaks (Bug#40634)
2916         Rename BACKWORD to BACKWARD consistently.
2917         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2918         (addtok_mb): Redo slightly to make it act more like a state machine.
2919         Check depth only when it increases.
2920         (epsclosure): Let the switch test the tokens.
2921         (dfaanalyze): Cache tindex.  Simplify position loops.
2922         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2923         only if it is not null, since we're testing that anyway.
2924         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2926 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2928         dfa: use backward set in removal of epsilon closure
2929         When removing in epsilon closure, the code searched all nodes
2930         sequentially, and this was slow for some cases.  Build a backward
2931         set before search, and only check previous position with the set.
2932         Problem reported in <https://bugs.gnu.org/40634>.
2933         * lib/dfa.c (struct dfa): New member 'epsilon'.
2934         (addtok_mb): Check whether a pattern has epsilon node or not.
2935         (epsclosure): New arg BACKWORD; caller changed.  When removing
2936         epsilon node and reconnecting, check only previous positions.
2937         Treat BEG as if it were character.
2938         (dfaanalyze): Build backward set.
2940 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2942         canonicalize: fix pointer indexing bugs
2943         Problem reported by Florian Weimer in:
2944         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2945         * lib/canonicalize-lgpl.c (__realpath):
2946         * lib/canonicalize.c (canonicalize_filename_mode):
2947         Do not generate a pointer past the end of the array.
2948         * lib/canonicalize.c (canonicalize_filename_mode):
2949         Do not use a pointer after passing it to realloc.
2951 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2953         tempname: help merge with glibc
2954         Inspired by draft patches by Adhemerval Zanella in:
2955         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2956         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2957         * lib/tempname.c: Include stdalign.h, time.h.
2958         If _LIBC, do not include random-bits.h.
2959         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2960         (RANDOM_BITS): Remove, replacing with ...
2961         (random_bits): ... this new static function.  All uses changed.
2962         Add entropy each time if getrandom is not supported.
2963         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2964         Assume 64-bit support a la C99.
2965         (try_tempname_len): Take advantage of ASLR when initializing
2966         random value.
2967         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2969         getcwd: merge recent glibc changes
2970         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2971         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2973 2020-09-06  Bruno Haible  <bruno@clisp.org>
2975         attribute: Clarify which file to include.
2976         * modules/attribute (Include): Add "attribute.h".
2978 2020-09-06  Bruno Haible  <bruno@clisp.org>
2980         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2981         * lib/pipe-filter-ii.c: Include <process.h>.
2982         * lib/pipe-filter-gi.c: Likewise.
2984 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2986         verify: avoid __builtin_assume
2987         Our latest attempt to use Clang’s __builtin_assume caused a crash
2988         in GNU Emacs that we spent quite some time tracking down as being
2989         caused by the switch to __builtin_assume.  It’s not known whether
2990         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2991         For now, play it safe and avoid __builtin_assume.
2992         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2993         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2995 2020-09-05  Bruno Haible  <bruno@clisp.org>
2997         Fix several "warning: no previous prototype for function".
2998         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2999         in front of the declaration of the lookup function in
3000         unicase/locale-languages.h.
3001         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
3002         unictype/bidi_byname.h.
3003         * modules/unictype/category-byname (Makefile.am): Likewise in
3004         unictype/categ_byname.h.
3005         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
3006         unictype/combiningclass_byname.h.
3007         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
3008         unictype/joininggroup_byname.h.
3009         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
3010         unictype/joiningtype_byname.h.
3011         * modules/unictype/property-byname (Makefile.am): Likewise in
3012         unictype/pr_byname.h.
3013         * modules/unictype/scripts (Makefile.am): Likewise in
3014         unictype/scripts_byname.h.
3015         * modules/uninorm/composition (Makefile.am): Likewise in
3016         uninorm/composition-table.h.
3018 2020-09-05  Bruno Haible  <bruno@clisp.org>
3020         select: Fix "warning: no previous prototype for function".
3021         * lib/select.c: Include <sys/select.h>.
3023 2020-09-05  Bruno Haible  <bruno@clisp.org>
3025         Use module 'c99' when needed for variadic macros with '...' syntax.
3026         * modules/crypto/sm3 (Depends-on): Add c99.
3028 2020-09-05  Bruno Haible  <bruno@clisp.org>
3030         Use module 'c99' when needed for subobject initializer syntax.
3031         * modules/tempname (Depends-on): Add c99.
3032         * modules/nstrftime-tests (Depends-on): Likewise.
3034 2020-09-05  Bruno Haible  <bruno@clisp.org>
3036         Use module 'c99' when needed for declaration-after-statement syntax.
3037         * modules/backup-rename (Depends-on): Add c99.
3038         * modules/backupfile (Depends-on): Likewise.
3039         * modules/bitset-tests (Depends-on): Likewise.
3040         * modules/bitsetv (Depends-on): Likewise.
3041         * modules/c-strtod (Depends-on): Likewise.
3042         * modules/c-strtold (Depends-on): Likewise.
3043         * modules/clean-temp (Depends-on): Likewise.
3044         * modules/copy-file (Depends-on): Likewise.
3045         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
3046         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
3047         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
3048         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
3049         * modules/crypto/md5-buffer (Depends-on): Likewise.
3050         * modules/crypto/md5-tests (Depends-on): Likewise.
3051         * modules/crypto/sha1-buffer (Depends-on): Likewise.
3052         * modules/crypto/sha1-tests (Depends-on): Likewise.
3053         * modules/crypto/sha256-buffer (Depends-on): Likewise.
3054         * modules/crypto/sha256-tests (Depends-on): Likewise.
3055         * modules/crypto/sha512-buffer (Depends-on): Likewise.
3056         * modules/crypto/sha512-tests (Depends-on): Likewise.
3057         * modules/diffseq (Depends-on): Likewise.
3058         * modules/fatal-signal (Depends-on): Likewise.
3059         * modules/fchmodat (Depends-on): Likewise.
3060         * modules/fstrcmp (Depends-on): Likewise.
3061         * modules/fsusage (Depends-on): Likewise.
3062         * modules/fts (Depends-on): Likewise.
3063         * modules/fts-tests (Depends-on): Likewise.
3064         * modules/getumask (Depends-on): Likewise.
3065         * modules/git-merge-changelog (Depends-on): Likewise.
3066         * modules/hash-map (Depends-on): Likewise.
3067         * modules/hash-set (Depends-on): Likewise.
3068         * modules/lchmod (Depends-on): Likewise.
3069         * modules/libgmp-tests (Depends-on): Likewise.
3070         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
3071         * modules/linkedhash-map (Depends-on): Likewise.
3072         * modules/linkedhash-set (Depends-on): Likewise.
3073         * modules/long-options (Depends-on): Likewise.
3074         * modules/mbrtoc32 (Depends-on): Likewise.
3075         * modules/memchr2-tests (Depends-on): Likewise.
3076         * modules/memmem-tests (Depends-on): Likewise.
3077         * modules/memrchr-tests (Depends-on): Likewise.
3078         * modules/mktime-internal (Depends-on): Likewise.
3079         * modules/nstrftime (Depends-on): Likewise.
3080         * modules/opendirat (Depends-on): Likewise.
3081         * modules/parse-datetime (Depends-on): Likewise.
3082         * modules/quotearg-simple-tests (Depends-on): Likewise.
3083         * modules/same (Depends-on): Likewise.
3084         * modules/supersede (Depends-on): Likewise.
3085         * modules/supersede-tests (Depends-on): Likewise.
3086         * modules/time_rz (Depends-on): Likewise.
3087         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3088         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
3089         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
3090         * modules/xalloc (Depends-on): Likewise.
3091         * modules/xnanosleep (Depends-on): Likewise.
3093 2020-09-05  Bruno Haible  <bruno@clisp.org>
3095         Fix "warning: array initialized from parenthesized string constant".
3096         * tests/test-memmem.c (main): Remove parentheses around string constant.
3097         * tests/test-c-strcasestr.c (main): Likewise.
3098         * tests/test-strcasestr.c (main): Likewise.
3100 2020-09-05  Bruno Haible  <bruno@clisp.org>
3102         argmatch tests: Fix ISO C compliance warning.
3103         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
3104         invocation.
3106 2020-09-05  Bruno Haible  <bruno@clisp.org>
3108         uniname/uniname: Fix -Wshadow warning.
3109         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
3110         * modules/uniname/uniname (Depends-on): Add c99.
3112 2020-09-05  Bruno Haible  <bruno@clisp.org>
3114         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
3115         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
3116         argument to size_t.
3117         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
3118         n to size_t.
3120 2020-09-05  Bruno Haible  <bruno@clisp.org>
3122         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
3123         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
3124         u32_uctomb): Change type of last argument to ptrdiff_t.
3125         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3126         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3127         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
3128         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
3129         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
3131 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3133         manywarnings: remove -Wchkp and -Wabi from C++ too
3134         Suggested by Reuben Thomas in:
3135         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
3136         At some point somebody should merge the many other manywarnings-c.m4
3137         changes into manywarnings-c++.m4 too, e.g.,
3138         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
3139         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3140         Remove -Wchkp, -Wabi.
3142 2020-08-30  Bruno Haible  <bruno@clisp.org>
3144         strerrorname_np: Add tests.
3145         * tests/test-strerrorname_np.c: New file.
3146         * modules/strerrorname_np-tests: New file.
3148         strerrorname_np: New module.
3149         * lib/string.in.h (strerrorname_np): New declaration.
3150         * lib/strerrorname_np.c: New file.
3151         * m4/strerrorname_np.m4: New file.
3152         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
3153         is declared.
3154         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
3155         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3156         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
3157         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3158         * modules/strerrorname_np: New file.
3159         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
3160         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
3161         the glibc 2.32 bug.
3163 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3165         perror, strerror_r: remove unportable tests
3166         Problem reported by Florian Weimer in:
3167         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
3168         * tests/test-perror2.c (main):
3169         * tests/test-strerror_r.c (main): Omit unportable tests.
3171 2020-08-26  Bruno Haible  <bruno@clisp.org>
3173         stdint, wchar, wctype-h: Change configure message.
3174         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3175         enough..." instead of "checking whether wint_t is too small...".
3177 2020-08-26  Bruno Haible  <bruno@clisp.org>
3179         time_rz: Change configure message.
3180         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
3181         near extrema..." instead of "checking whether localtime loops forever
3182         near extrema...".
3184 2020-08-26  Bruno Haible  <bruno@clisp.org>
3186         stdint: Change configure message.
3187         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
3188         without ISO C predefines..." instead of "checking whether stdint.h
3189         predates C++11...".
3191 2020-08-26  Bruno Haible  <bruno@clisp.org>
3193         socketlib: Change configure message.
3194         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
3195         instead of "checking if we need to call WSAStartup in winsock2.h and
3196         -lws2_32...".
3198 2020-08-26  Bruno Haible  <bruno@clisp.org>
3200         include_next: Change configure message.
3201         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
3202         code line length is unlimited..." instead of "checking whether system
3203         header files limit the line length...".
3205 2020-08-26  Bruno Haible  <bruno@clisp.org>
3207         getcwd: Change configure message.
3208         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
3209         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
3210         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
3212 2020-08-26  Bruno Haible  <bruno@clisp.org>
3214         chdir-long: Change configure message.
3215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
3216         system supports file names of any length..." instead of "checking
3217         whether this system has an arbitrary file name length limit...".
3218         Set gl_cv_have_unlimited_file_name_length instead of
3219         gl_cv_have_arbitrary_file_name_length_limit.
3220         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
3222 2020-08-26  Bruno Haible  <bruno@clisp.org>
3224         ceill: Change configure message.
3225         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
3226         instead of "checking whether ceill() breaks with small values...".
3228 2020-08-26  Bruno Haible  <bruno@clisp.org>
3230         iconv: Change configure message.
3231         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
3232         with its POSIX signature..." instead of "checking for iconv
3233         declaration...". Remove K&R C support.
3235 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3237         getcwd: help the merge back into glibc
3238         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
3239         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
3240         The idea is to make it easier for Gnulib lib/getcwd.c to match
3241         glibc io/getcwd-generic.c.
3242         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
3243         Include not-cancel.h.
3244         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
3245         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
3246         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
3247         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
3248         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
3249         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
3250         (__getcwd_generic): Rename from __getcwd.
3251         Use the abovementioned macros for consistency with glibc.
3252         (weak_alias): Remove.
3254 2020-08-25  Bruno Haible  <bruno@clisp.org>
3256         verify: Avoid warnings when assume(0) is used.
3257         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
3258         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
3259         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
3260         the constant 0.
3261         * tests/test-verify.c (f): New function.
3262         (state): New type.
3263         (test_assume_expressions, test_assume_optimization,
3264         test_assume_noreturn): New functions.
3266 2020-08-25  Bruno Haible  <bruno@clisp.org>
3268         fstrcmp: Clarification regarding NOTE_ORDERED.
3269         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
3271 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3273         diffseq: new option NOTE_ORDERED
3274         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
3275         * NEWS: Mention this.
3276         * lib/diffseq.h (NOTE_ORDERED): New macro.
3277         (IF_LINT2): Remove; no longer needed.
3278         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
3279         subproblem and iterate to do the larger.
3281 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3283         sys_types: let Autoconf 2.70 do pid_t
3284         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
3285         only for Autoconf versions 2.69 and earlier, since 2.70
3286         will be fixed.
3288 2020-08-23  Bruno Haible  <bruno@clisp.org>
3290         tests: Don't assume that pid_t fits in an 'int'.
3291         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
3292         of 'int'.
3293         * tests/test-nonblocking-socket-main.c (main): Likewise.
3295         sys_types: Fix definition of pid_t on 64-bit MSVC.
3296         * m4/pid_t.m4: New file.
3297         * modules/sys_types (Files): Add it.
3298         * modules/dirent (Files): Likewise.
3299         * modules/fcntl-h (Files): Likewise.
3300         * modules/sched (Files): Likewise.
3301         * modules/signal-h (Files): Likewise.
3302         * modules/spawn (Files): Likewise.
3303         * modules/sys_stat (Files): Likewise.
3304         * modules/sys_wait (Files): Likewise.
3305         * modules/termios (Files): Likewise.
3306         * modules/unistd (Files): Likewise.
3308 2020-08-23  Bruno Haible  <bruno@clisp.org>
3310         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
3311         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
3312         program.
3314 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3316         intprops: be consistent about +X vs X+0
3317         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
3319         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
3320         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
3321         is a bit-field, on older GCC or non-GCC compilers where we do
3322         things ourselves instead of using __builtin_mul_overflow.
3323         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
3324         to applying sizeof to a bit-field.
3325         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
3326         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
3328 2020-08-23  Bruno Haible  <bruno@clisp.org>
3330         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
3331         Reported by Jörg Sonnenberger <joerg@netbsd.org>
3332         via Thomas Klausner <tk@giga.or.at> in
3333         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
3334         * lib/supersede.c (open_supersede): When opening an existing non-regular
3335         file on Solaris, use O_CREAT although it should not be necessary.
3337 2020-08-23  Bruno Haible  <bruno@clisp.org>
3339         verify: Make assume work on bit field expressions (regr. 2020-08-22).
3340         Reported by Benno Schulenberg <bensberg@telfort.nl> in
3341         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3342         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3343         variable.
3345 2020-08-23  Bruno Haible  <bruno@clisp.org>
3347         libc-config: Improve comments.
3348         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3349         cannot use clang's __diagnose_if__ here.
3351 2020-08-22  Bruno Haible  <bruno@clisp.org>
3353         verify: Do use __builtin_assume on clang.
3354         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3355         variable in a statement expression.
3357 2020-08-22  Bruno Haible  <bruno@clisp.org>
3359         sig2str: Add more signals.
3360         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3362 2020-08-22  Bruno Haible  <bruno@clisp.org>
3364         doc: Update for OpenBSD 6.0, 6.7.
3365         * doc/*/*.texi: Update.
3366         * m4/printf.m4: Update comments and cross-compilation guesses.
3367         * m4/ceill.m4: Update comments.
3368         * m4/getcwd-abort-bug.m4: Likewise.
3369         * m4/ilogb.m4: Likewise.
3370         * m4/ilogbf.m4: Likewise.
3371         * m4/langinfo_h.m4: Likewise.
3372         * m4/modf.m4: Likewise.
3373         * m4/modff.m4: Likewise.
3375 2020-08-22  Bruno Haible  <bruno@clisp.org>
3377         doc: Mention sig2str module.
3378         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3380 2020-08-21  Bruno Haible  <bruno@clisp.org>
3382         sigdescr_np: Add tests.
3383         * tests/test-sigdescr_np.c: New file.
3384         * modules/sigdescr_np-tests: New file.
3386         sigdescr_np: New module.
3387         * lib/string.in.h (sigdescr_np): New declaration.
3388         * lib/sigdescr_np.c: New file.
3389         * m4/sigdescr_np.m4: New file.
3390         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3391         declared.
3392         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3393         HAVE_SIGDESCR_NP.
3394         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3395         HAVE_SIGDESCR_NP.
3396         * modules/sigdescr_np: New file.
3397         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3398         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3400 2020-08-20  Bruno Haible  <bruno@clisp.org>
3402         sigabbrev_np: Add tests.
3403         * tests/test-sigabbrev_np.c: New file.
3404         * modules/sigabbrev_np-tests: New file.
3406         sigabbrev_np: New module.
3407         * lib/string.in.h (sigabbrev_np): New declaration.
3408         * lib/sigabbrev_np.c: New file.
3409         * m4/sigabbrev_np.m4: New file.
3410         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3411         declared.
3412         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3413         HAVE_SIGABBREV_NP.
3414         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3415         HAVE_SIGABBREV_NP.
3416         * modules/sigabbrev_np: New file.
3417         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3418         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3420 2020-08-20  Bruno Haible  <bruno@clisp.org>
3422         stdalign tests: Skip test with AIX xlclang.
3423         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3425 2020-08-20  Bruno Haible  <bruno@clisp.org>
3427         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3428         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3429         workaround as for GCC versions < 4.9.
3431 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3433         Sync up ProjectQuirks comments and documentation
3434         Transform the ProjectQuirks comments into a docstring so that it can
3435         be accessed from python as ProjectQuirks.__doc__ and harmonize
3436         descriptions with the documentation.
3437         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3438         Transform comments into a docstring.
3439         * doc/vcs-to-changelog.texi: Sync up description with comments.
3441         Split ProjectQuirks out into its own file
3442         ProjectQuirks is used by external quirks files and importing it from
3443         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3444         is cleaner to put it in its own file anyway.
3445         * build-aux/vcstocl/projectquirks.py: A new file...
3446         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3447         we move ProjectQuirks and import the file.
3449 2020-08-19  Bruno Haible  <bruno@clisp.org>
3451         uchar: Fix compilation errors in C++ mode on macOS.
3452         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
3453         system header file before attempting to use 'char16_t' and 'char32_t'.
3455 2020-08-19  Bruno Haible  <bruno@clisp.org>
3457         ansi-c++-opt: Work around an autoconf macro reordering problem.
3458         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
3459         section.
3461 2020-08-19  Bruno Haible  <bruno@clisp.org>
3463         math C++ tests: Fix compilation error in with GCC 10.
3464         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3465         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
3466         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3468 2020-08-19  Bruno Haible  <bruno@clisp.org>
3470         uchar: Fix compilation errors in C++ mode on OpenBSD.
3471         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
3472         CXX_HAS_UCHAR_TYPES is 1.
3473         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
3474         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
3475         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
3477 2020-08-19  Bruno Haible  <bruno@clisp.org>
3479         Fix compilation errors in C++ mode on OpenBSD.
3480         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
3481         OpenBSD with clang, use the approach without C preprocessor macro.
3483 2020-08-18  Bruno Haible  <bruno@clisp.org>
3485         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
3486         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
3487         AC_LANG_POP.
3489 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3491         verify: avoid __built_assume on Clang
3492         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
3493         Clang 9 incorrectly diagnoses arguments as having side effects
3494         even when they do not.  I guess Clang 9 considers any function
3495         call as if it had a side effect here.
3497         libc-config: avoid Clang’s __diagnose_if__
3498         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
3499         For now, do not use __diagnose_if__ here, as this fails
3500         on Fedora 31 with Clang 9.0.1, with diagnostic
3501         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
3502         size than length of destination buffer
3503         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
3504         for functions that are not called?
3506         careadlinkat: speedup for GCC 10 with GCC_LINT
3507         Inspired by a suggestion by Bruno Haible in:
3508         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
3509         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
3510         (readlink_stk): New function, with most of the old careadlinkat
3511         contents and with a new STACK_BUF arg.  Inline it in GCC 10
3512         if GCC_LINT.
3513         (careadlinkat): Use the new function for everything but the
3514         stack buffer.
3516         * build-aux/gcc-warning.spec: Update comments.
3518 2020-08-17  Bruno Haible  <bruno@clisp.org>
3520         Assume autoconf >= 2.64.
3521         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
3523 2020-08-17  Bruno Haible  <bruno@clisp.org>
3525         Revert autoupdate's revert.
3526         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
3528 2020-08-17  Bruno Haible  <bruno@clisp.org>
3530         uchar C++ tests: Fix build error on FreeBSD 12.
3531         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
3532         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
3533         <cuchar> does not exist.
3535 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3537         time_rz: remove unused functions
3538         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
3540         time_rz: fix issues with mktime_z failures
3541         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
3542         Use a cheaper tm_yday test for failed mktime.
3544 2020-08-16  Bruno Haible  <bruno@clisp.org>
3546         intprops test: Strengthen on clang.
3547         * tests/test-intprops.c (VERIFY): Use verify_stmt.
3549 2020-08-16  Bruno Haible  <bruno@clisp.org>
3551         nstrftime: Guide inlining also on clang.
3552         * lib/nstrftime.c (iso_week_days): Inline also on clang.
3554 2020-08-16  Bruno Haible  <bruno@clisp.org>
3556         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
3557         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
3559 2020-08-16  Bruno Haible  <bruno@clisp.org>
3561         log2l: Disable MSVC workaround on clang.
3562         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
3564 2020-08-16  Bruno Haible  <bruno@clisp.org>
3566         argp: Emit a warning also with clang.
3567         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
3568         clang.
3570 2020-08-16  Bruno Haible  <bruno@clisp.org>
3572         libc-config: Enable __REDIRECT macro also on clang.
3573         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
3574         __ASMNAME2): Define on clang like on GCC.
3576 2020-08-16  Bruno Haible  <bruno@clisp.org>
3578         regex: Use initializer shorthand syntax also with clang.
3579         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
3580         with clang.
3582 2020-08-16  Bruno Haible  <bruno@clisp.org>
3584         regex: Use space optimization also with clang.
3585         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
3586         with clang.
3588 2020-08-16  Bruno Haible  <bruno@clisp.org>
3590         Use _Static_assert and static_assert primitives when present on clang.
3591         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3592         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3593         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3595 2020-08-16  Bruno Haible  <bruno@clisp.org>
3597         Use 'throw ()' for optimization in C++ mode also on clang.
3598         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
3599         * lib/getopt-cdefs.in.h (__THROW): Likewise.
3600         * lib/md5.h (__THROW): Likewise.
3602 2020-08-16  Bruno Haible  <bruno@clisp.org>
3604         absolute-header: Add support for clang.
3605         * modules/absolute-header (Makefile.am): Include '__clang__' in the
3606         HAVE_INCLUDE_NEXT expression.
3608 2020-08-16  Bruno Haible  <bruno@clisp.org>
3610         Fix "warning: implicitly declaring library function 'strcasecmp'".
3611         * lib/argp-help.c: Include <strings.h>.
3613 2020-08-16  Bruno Haible  <bruno@clisp.org>
3615         stdio: Don't break attribute 'scanf' on clang.
3616         * lib/stdio.in.h (scanf): Treat clang like GCC.
3618 2020-08-16  Bruno Haible  <bruno@clisp.org>
3620         Use __restrict also on clang.
3621         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
3622         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
3623         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
3625 2020-08-16  Bruno Haible  <bruno@clisp.org>
3627         pthread-spin: Use GCC built-ins also on clang.
3628         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3629         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
3630         also on clang.
3632 2020-08-16  Bruno Haible  <bruno@clisp.org>
3634         asyncsafe-spin tests: Update.
3635         * tests/test-asyncsafe-spin2.c: Update to match the change in
3636         lib/asyncsafe-spin.c from 2020-08-11.
3638 2020-08-16  Bruno Haible  <bruno@clisp.org>
3640         setenv: Use tree code also with clang.
3641         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
3643 2020-08-16  Bruno Haible  <bruno@clisp.org>
3645         math: Optimize signbit also on clang.
3646         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
3647         on clang.
3649 2020-08-16  Bruno Haible  <bruno@clisp.org>
3651         avltreehash-list, rbtreehash-list: Optimize also on clang.
3652         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
3653         __builtin_expect also on clang.
3655 2020-08-16  Bruno Haible  <bruno@clisp.org>
3657         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
3658         * lib/socket.c: Use WSASocketW, not WSASocketA.
3660         Fix "warning: format specifies type 'unsigned long'".
3661         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3662         argument to match the format directive.
3664         Fix "warning: no case matching constant switch condition '0'".
3665         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3667         Fix "warning: integer overflow in expression".
3668         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3669         remove a 'long' overflow.
3671         Fix "warning: "getpagesize" redefined".
3672         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3673         macro.
3675         Fix "warning: implicitly declaring library function 'strncasecmp'".
3676         * lib/strptime.c: Include <strings.h>.
3678         Fix "warning: 'snprintf' macro redefined".
3679         * lib/strerror_r.c (snprintf): Undefine before redefining.
3681         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3682         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3684         Fix "warning: '__stat64' macro redefined".
3685         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3687         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3688         * lib/stdio.in.h (printf): Treat clang like GCC.
3690         Fix "warning: attribute declaration must precede definition" with clang.
3691         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3692         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3693         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3694         on non-glibc systems.
3695         * lib/netdb.in.h (gai_strerror): Likewise.
3696         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3697         * lib/sys_stat.in.h (fstat): Likewise.
3698         * lib/utime.in.h (utime): Likewise.
3700         Fix undesired warnings.
3701         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3702         clang.
3704 2020-08-16  Bruno Haible  <bruno@clisp.org>
3706         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3707         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3708         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3709         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3710         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3712 2020-08-16  Bruno Haible  <bruno@clisp.org>
3714         Don't use Autoconf quadrigraphs.
3715         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3716         Autoconf quadrigraph.
3717         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3718         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3719         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3720         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3721         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3722         * m4/math_h.m4 (gl_MATH_H): Likewise.
3723         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3725 2020-08-16  Bruno Haible  <bruno@clisp.org>
3727         Fix quoting of AC_LANG_PROGRAM arguments.
3728         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3729         arguments through [[...]].
3730         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3731         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3732         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3733         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3734         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3735         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3736         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3737         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3738         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3739         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3740         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3741         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3742         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3744 2020-08-16  Bruno Haible  <bruno@clisp.org>
3746         Assume autoconf >= 2.64.
3747         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3748         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3749         * NEWS: Mention the changed requirement.
3750         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3751         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3753         variables.
3754         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3755         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3756         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3757         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3758         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3759         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3760         Likewise.
3761         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3762         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3763         * m4/configmake.m4: Update comment.
3765 2020-08-16  Bruno Haible  <bruno@clisp.org>
3767         sys_ioctl: Simplify.
3768         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3769         AC_INCLUDES_DEFAULT.
3771 2020-08-16  Bruno Haible  <bruno@clisp.org>
3773         Fix quoting of AC_LANG_SOURCE arguments.
3774         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3775         GL_NOCRASH expansion.
3776         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3777         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3778         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3779         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3780         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3782 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3784         nstrftime: be more predictable about errno
3785         This aligns nstrftime better with draft POSIX 202x strftime.
3786         * lib/nstrftime.c: Include errno.h.
3787         (width_add, __strftime_internal): Set errno on failure,
3788         and preserve it on success.  Check for mktime_z failure.
3789         * modules/nstrftime (Depends-on): Add errno.
3790         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3791         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3792         (errno_test): New test function.
3793         (main): Call it.
3795 2020-08-15  Bruno Haible  <bruno@clisp.org>
3797         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3798         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3799         from dependency analysis first.
3801 2020-08-15  Bruno Haible  <bruno@clisp.org>
3803         Determine asm output option and filename suffix for MSVC/clang.
3804         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3805         clang-cl.
3807 2020-08-15  Bruno Haible  <bruno@clisp.org>
3809         doc: Update for MSVC/clang.
3810         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3811         that MSVC 14 does not have.
3813 2020-08-15  Bruno Haible  <bruno@clisp.org>
3815         Revert autoupdate's revert.
3816         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3818 2020-08-15  Bruno Haible  <bruno@clisp.org>
3820         frexpl: Fix configuration test result on MSVC.
3821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3822         zero.
3824 2020-08-15  Bruno Haible  <bruno@clisp.org>
3826         Support compiling without -loldnames on native Windows.
3827         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3828         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3829         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3830         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3831         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3832         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3833         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3834         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3835         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3836         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3837         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3838         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3839         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3840         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3841         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3842         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3843         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3845         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3846         Likewise.
3847         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3848         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3849         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3850         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3852         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3853         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3854         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3855         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3856         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3857         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3858         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3859         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3860         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3861         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3862         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3863         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3864         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3865         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3866         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3867         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3868         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3869         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3870         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3871         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3872         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3873         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3874         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3875         test for getcwd.
3876         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3877         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3878         with GL_MDA_DEFINES.
3879         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3880         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3881         prefixed symbol.
3882         * lib/search.in.h (lfind, lsearch): Likewise.
3883         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3884         Likewise.
3885         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3886         * lib/string.in.h (memccpy, strdup): Likewise.
3887         * lib/sys_stat.in.h (chmod, umask): Likewise.
3888         * lib/time.in.h (tzset): Likewise.
3889         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3890         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3891         read, rmdir, swab, unlink, write): Likewise.
3892         * lib/utime.in.h (utime): Likewise.
3893         * lib/wchar.in.h (wcsdup): Likewise.
3894         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3895         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3896         rpl_-prefixed macro.
3897         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3898         * lib/close.c (close_nothrow): On native Windows, use _close.
3899         * lib/creat.c (orig_creat): On native Windows, use _creat.
3900         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3901         * lib/dup2.c (dup2_nothrow): Use _dup2.
3902         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3903         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3904         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3905         * lib/open.c (orig_open): On native Windows, use _open.
3906         * lib/read.c (read_nothrow): Use _read.
3907         * lib/rmdir.c: On native Windows, use _rmdir.
3908         * lib/unlink.c: On native Windows, use _unlink.
3909         * lib/write.c (write_nothrow): Use _write.
3910         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3911         undefined symbol.
3912         * lib/sys_socket.in.h (close): Likewise.
3913         * lib/sys_time.in.h (close): Likewise.
3914         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3916 2020-08-15  Bruno Haible  <bruno@clisp.org>
3918         Fix "unknown pragma ignored" warnings with clang on native Windows.
3919         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3920         * lib/cbrtf.c: Likewise.
3921         * lib/ceil.c: Likewise.
3922         * lib/floor.c: Likewise.
3923         * lib/fma.c: Likewise.
3924         * lib/fmod.c: Likewise.
3925         * lib/rint.c: Likewise.
3926         * lib/round.c: Likewise.
3927         * lib/trunc.c: Likewise.
3928         * tests/test-ceil2.c: Likewise.
3929         * tests/test-ceilf2.c: Likewise.
3930         * tests/test-floor2.c: Likewise.
3931         * tests/test-floorf2.c: Likewise.
3932         * tests/test-trunc2.c: Likewise.
3933         * tests/test-truncf2.c: Likewise.
3934         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3935         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3937 2020-08-15  Bruno Haible  <bruno@clisp.org>
3939         Fix compilation errors in C++ mode with clang on native Windows.
3940         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3941         non-glibc systems.
3942         * lib/sched.in.h (sched_yield): Likewise.
3944 2020-08-14  Bruno Haible  <bruno@clisp.org>
3946         stdnoreturn: Work around problem with MSVC/clang.
3947         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3948         system header after <stdnoreturn.h>.
3949         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3951 2020-08-14  Bruno Haible  <bruno@clisp.org>
3953         utime-h: Generate an utime.h file always.
3954         * modules/utime-h (Makefile.am): Generate utime.h always.
3955         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3956         GL_GENERATE_UTIME_H.
3958 2020-08-14  Bruno Haible  <bruno@clisp.org>
3960         mktime, mktime-internal: Remove obsolete code.
3961         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3963 2020-08-14  Bruno Haible  <bruno@clisp.org>
3965         getcwd: Remove obsolete code.
3966         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3967         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3969 2020-08-14  Bruno Haible  <bruno@clisp.org>
3971         tzset: Assume the function exists.
3972         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3973         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3974         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3975         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3976         HAVE_TZSET.
3977         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3978         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3980         nstrftime: Assume tzset exists.
3981         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3982         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3983         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3985         mktime, mktime-internal: Assume tzset exists.
3986         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3987         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3989 2020-08-14  Bruno Haible  <bruno@clisp.org>
3991         strdup: Assume the function exists.
3992         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3993         whether strdup exists.
3994         * modules/strdup (Files): Remove lib/strdup.c.
3995         (configure.ac): Don't compile strdup.c.
3996         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3997         ac_cv_func_strdup.
3998         * doc/posix-functions/strdup.texi: Update.
3999         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
4000         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
4001         (Depends-on): Remove unistr/u8-strlen.
4003 2020-08-13  Bruno Haible  <bruno@clisp.org>
4005         sys_random: Work around an uClibc bug.
4006         Reported by akater <nuclearspace@gmail.com>
4007         via Stefan Kangas <stefan@marxist.se>
4008         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
4009         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
4010         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
4011         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4012         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
4014 2020-08-12  Bruno Haible  <bruno@clisp.org>
4016         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
4017         Reported by Florian Weimer in
4018         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
4019         * lib/gen-uni-tables.c (output_predicate): Change the element type of
4020         the level3 array to 'unsigned int'.
4021         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
4022         * lib/unictype/categ_*.h: Regenerated.
4023         * lib/unictype/ctype_*.h: Regenerated.
4024         * lib/unictype/pr_*.h: Regenerated.
4025         * lib/unictype/sy_*.h: Regenerated.
4026         * lib/unicase/cased.h: Regenerated.
4027         * lib/unicase/ignorable.h: Regenerated.
4029 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4031         stdint: port intptr_t to more-recent MinGW
4032         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
4033         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
4034         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
4035         Apparently those two macros were removed in mingwrt-3.22
4036         dated 2016-07-14.
4038 2020-08-12  Bruno Haible  <bruno@clisp.org>
4040         thread-optim: Export function-like macros only.
4041         Suggested by Paul Eggert.
4042         * lib/thread-optim.h (gl_multithreaded): New macro.
4043         (IF_MT_DECL, IF_MT): Remove macros.
4044         * doc/multithread.texi (Multithreading Optimizations): Add a small
4045         example.
4046         * lib/fatal-signal.c: Update all uses.
4047         * lib/clean-temp.c: Likewise.
4048         * lib/localename.c: Likewise.
4049         * modules/localename (Depends-on): Add stdbool.
4051 2020-08-12  Bruno Haible  <bruno@clisp.org>
4053         Revert autoupdate's revert.
4054         * config/srclist.txt: Mark regex.h as needing sync with glibc.
4056 2020-08-11  Bruno Haible  <bruno@clisp.org>
4058         thread-optim: Fix a compiler warning.
4059         * lib/thread-optim.h (IF_MT_DECL): Define differently.
4061 2020-08-11  Bruno Haible  <bruno@clisp.org>
4063         Use __restrict also on clang.
4064         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
4065         (__restrict_arr): On clang, define like on GCC.
4066         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
4067         (_Restrict_arr_): Use _Restrict_ also on clang.
4068         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
4069         (_Restrict_arr_): Use _Restrict_ also on clang.
4071 2020-08-11  Bruno Haible  <bruno@clisp.org>
4073         Use flexible array syntax also on clang.
4074         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
4075         define like for GCC 3.
4077 2020-08-11  Bruno Haible  <bruno@clisp.org>
4079         fcntl: On native Windows, use _setmode, not setmode.
4080         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
4081         * lib/binary-io.h: Update comment.
4082         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
4083         * tests/test-dup2.c: Likewise.
4084         * tests/test-dup-safer.c: Likewise.
4085         * tests/test-fcntl.c: Likewise.
4087 2020-08-11  Bruno Haible  <bruno@clisp.org>
4089         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
4090         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
4091         * lib/spawn-pipe.c (create_pipe): Likewise.
4092         * tests/test-nonblocking-pipe-main.c (main): Likewise.
4093         * tests/test-nonblocking-socket-main.c (main): Likewise.
4094         * lib/wait-process.c: Update comment.
4095         * doc/posix-functions/fork.texi: Update.
4097 2020-08-11  Bruno Haible  <bruno@clisp.org>
4099         asyncsafe-spin: Use GCC built-ins also on clang.
4100         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
4101         the newer GCC built-ins also on clang.
4103 2020-08-11  Bruno Haible  <bruno@clisp.org>
4105         Use expression statements also on clang.
4106         * lib/cdefs.h (__extension__): Don't define to empty on clang.
4107         * lib/obstack.h (__extension__): Likewise.
4108         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
4109         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
4110         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
4111         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
4112         obstack_finish, obstack_free): Enable as optimized macros also on clang.
4113         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
4115 2020-08-10  Bruno Haible  <bruno@clisp.org>
4117         Use many __attribute__s with clang.
4118         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
4119         on clang.
4120         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
4121         New macros.
4122         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
4123         on clang.
4124         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
4125         also on older clang versions.
4126         (__attribute__): Don't define to empty on clang.
4127         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
4128         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
4129         (__attribute_const__): Use __attribute__ __const__ also on clang.
4130         (__attribute_used__): Use __attribute__ __used__ also on clang.
4131         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
4132         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
4133         clang.
4134         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
4135         clang.
4136         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
4137         also on clang.
4138         (__nonnull): Use __attribute__ __nonnull__ also on clang.
4139         (__attribute_warn_unused_result__): Use __attribute__
4140         __warn_unused_result__ also on clang.
4141         (__always_inline): Use __attribute__ __always_inline__ also on clang.
4142         (__attribute_artificial__): Use __attribute__ __artificial__ also on
4143         clang >= 7.
4144         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
4145         clang versions.
4146         (_Noreturn): Don't redefine on clang >= 3.5.
4147         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
4148         also on clang.
4149         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
4150         on clang.
4151         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4152         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4153         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4154         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
4155         also on clang.
4156         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4157         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
4158         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
4159         also on clang.
4160         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
4161         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
4162         __attribute__ __noreturn__ also on clang.
4163         * lib/obstack.h (__attribute_noreturn__): Likewise.
4164         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
4165         clang.
4166         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
4167         always_inline also on clang.
4168         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
4169         clang.
4171 2020-08-10  Bruno Haible  <bruno@clisp.org>
4173         c-ldtoastr tests: Fix test failure.
4174         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4175         is longer than 'double'.
4177 2020-08-10  Bruno Haible  <bruno@clisp.org>
4179         Revert autoupdate's revert.
4180         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
4182 2020-08-09  Bruno Haible  <bruno@clisp.org>
4184         string: Fix build error in C++ mode with clang (regression from today).
4185         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
4186         parameters, one for GCC, one for clang.
4187         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
4188         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
4189         as return type.
4191 2020-08-09  Bruno Haible  <bruno@clisp.org>
4193         ftruncate: Use _chsize, not chsize.
4194         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
4195         * lib/ftruncate.c: Test HAVE__CHSIZE.
4196         (chsize_nothrow): Use _chsize, not chsize.
4198 2020-08-09  Bruno Haible  <bruno@clisp.org>
4200         Silence warnings from clang 10 with -Wimplicit-fallthrough.
4201         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
4202         clang >= 10.
4203         * lib/fnmatch.c (FALLTHROUGH): Likewise.
4204         * lib/fts.c (FALLTHROUGH): Likewise.
4205         * tests/macros.h (FALLTHROUGH): Likewise.
4206         * lib/regex_internal.h (FALLTHROUGH): Likewise.
4207         * config/srclist.txt: Mark it as needing sync with glibc.
4209 2020-08-09  Bruno Haible  <bruno@clisp.org>
4211         stdbool tests: Enable the stricter tests also on clang.
4212         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
4213         (e): Enable the address-to-bool conversion test also on clang.
4215 2020-08-09  Bruno Haible  <bruno@clisp.org>
4217         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
4218         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
4220 2020-08-09  Bruno Haible  <bruno@clisp.org>
4222         Use attribute __aligned__ with clang.
4223         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
4224         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
4226 2020-08-09  Bruno Haible  <bruno@clisp.org>
4228         Use __alignof__ with clang.
4229         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
4230         on clang.
4231         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
4232         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
4233         clang.
4234         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
4235         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
4236         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
4237         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
4239 2020-08-09  Bruno Haible  <bruno@clisp.org>
4241         ignore-value: Simplify on clang.
4242         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
4243         workaround.
4245 2020-08-09  Bruno Haible  <bruno@clisp.org>
4247         Use __typeof__ with clang.
4248         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
4249         "clang -std=gnu99".
4250         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
4251         * tests/test-stdint.c (verify_same_types): Enable the check also on
4252         clang.
4254 2020-08-09  Bruno Haible  <bruno@clisp.org>
4256         Add ability to emit user-defined warnings and errors with clang.
4257         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
4258         _GL_ATTRIBUTE_WARNING using an attribute for clang.
4259         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
4260         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
4261         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
4262         attribute for clang.
4264 2020-08-09  Bruno Haible  <bruno@clisp.org>
4266         intprops: Fix typo in comment.
4267         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
4269 2020-08-09  Bruno Haible  <bruno@clisp.org>
4271         Use __builtin_signbit* with clang.
4272         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
4273         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
4274         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4276         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4277         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
4278         not REPLACE_SIGNBIT_USING_GCC.
4280 2020-08-09  Bruno Haible  <bruno@clisp.org>
4282         Use __builtin_isnan with clang.
4283         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4284         not __builtin_isnanf. Also on clang.
4285         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
4286         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
4287         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
4288         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
4289         built-in.
4290         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4291         not __builtin_isnanl. Also on clang.
4292         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
4293         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
4294         * lib/math.in.h (__has_builtin): Remove macro.
4295         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
4296         __builtin_isnanf. Also on clang.
4297         (isnand, gl_isnan_d): With clang, use the GCC built-in.
4298         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
4299         __builtin_isnanl. Also on clang.
4300         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
4301         on clang.
4303 2020-08-09  Bruno Haible  <bruno@clisp.org>
4305         thread-optim: Fix logic error.
4306         Reported by Paul Eggert.
4307         * lib/thread-optim.h (IF_MT): Fix logic error.
4309 2020-08-08  Bruno Haible  <bruno@clisp.org>
4311         localename: Use module 'thread-optim'.
4312         * lib/localename.c: Include thread-optim.h.
4313         (struniq): Use IF_MT macro.
4314         * modules/localename (Depends-on): Add thread-optim.
4316         clean-temp: Use module 'thread-optim'.
4317         * lib/clean-temp.c: Include thread-optim.h.
4318         (register_temporary_file, unregister_temporary_file, create_temp_dir,
4319         register_temp_file, unregister_temp_file, register_temp_subdir,
4320         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
4321         close_temp, fclose_variant_temp): Use IF_MT macro.
4322         * modules/clean-temp (Depends-on): Add thread-optim.
4324         fatal-signal: Use module 'thread-optim'.
4325         * lib/fatal-signal.c: Include thread-optim.h.
4326         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
4327         macro.
4328         * modules/fatal-signal (Depends-on): Add thread-optim.
4330 2020-08-08  Bruno Haible  <bruno@clisp.org>
4332         New module 'thread-optim'.
4333         * lib/thread-optim.h: New file.
4334         * modules/thread-optim: New file.
4335         * doc/multithread.texi (Multithreading Optimizations): New section.
4337 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
4339         doc: more updates for glibc 2.32
4340         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
4341         * doc/posix-functions/fchmodat.texi: Update.
4343 2020-08-07  Bruno Haible  <bruno@clisp.org>
4345         doc: Update for glibc 2.32.
4346         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4347         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4348         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4349         * doc/glibc-functions/sigabbrev_np.texi: New file.
4350         * doc/glibc-functions/sigdescr_np.texi: New file.
4351         * doc/glibc-functions/strerrordesc_np.texi: New file.
4352         * doc/glibc-functions/strerrorname_np.texi: New file.
4353         * doc/gnulib.texi: Include them.
4354         (Glibc sys/single_threaded.h): New section.
4355         * doc/pastposix-functions/h_errno.texi: Update.
4356         * doc/posix-functions/*.texi: Likewise.
4357         * doc/glibc-functions/*.texi: Likewise.
4359 2020-08-07  Bruno Haible  <bruno@clisp.org>
4361         alloca: No need to compile alloca.c with clang.
4362         * lib/alloca.c: Skip all code with clang.
4364         Use __builtin_alloca with clang.
4365         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4367 2020-08-06  Bruno Haible  <bruno@clisp.org>
4369         Use __builtin_assume with clang.
4370         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4371         (assume): Use __builtin_assume when available.
4373 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4375         libgmp: add <gmp/gmp.h> support
4376         * m4/libgmp.m4 (gl_LIBGMP):
4377         * modules/libgmp (configure.ac, Makefile.am):
4378         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4379         ‘#include <gmp.h>’.
4381 2020-08-06  Bruno Haible  <bruno@clisp.org>
4383         Consider that clang defines __OPTIMIZE__ like GCC does.
4384         * lib/streq.h: Define the inline functions also on clang.
4385         * lib/c-strcaseeq.h: Likewise.
4386         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4387         the GCC workaround to clang.
4389 2020-08-06  Bruno Haible  <bruno@clisp.org>
4391         safe-alloc: Remove unused code.
4392         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4394 2020-08-06  Bruno Haible  <bruno@clisp.org>
4396         Use __builtin_expect with clang everywhere.
4397         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4398         also on clang.
4400 2020-08-05  Bruno Haible  <bruno@clisp.org>
4402         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4403         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4404         built-in also on clang.
4405         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4406         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4408 2020-08-05  Bruno Haible  <bruno@clisp.org>
4410         Use __builtin_clz{,l,ll} with clang, also on Windows.
4411         * lib/integer_length.c: With clang, use the GCC built-in, not
4412         <intrin.h>.
4413         * lib/integer_length_l.c: Likewise.
4414         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4415         also on clang.
4416         * lib/vasnprintf.c (divide): Likewise.
4418 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4420         Update srclist.txt as per recent glibc changes
4421         * config/srclist.txt: Uncomment lines to reflect recent merges
4422         from Gnulib to glibc.
4424 2020-08-03  Bruno Haible  <bruno@clisp.org>
4426         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4427         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4429 2020-08-03  Bruno Haible  <bruno@clisp.org>
4431         integer_length_ll: Optimize for MSVC in 64-bit mode.
4432         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4433         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4435 2020-08-03  Bruno Haible  <bruno@clisp.org>
4437         integer_length_ll: Optimize for MSVC in 32-bit mode.
4438         * lib/integer_length_l.c: Include <intrin.h>.
4439         (integer_length): Define as inline function, like in
4440         lib/integer_length.c.
4442 2020-08-03  Bruno Haible  <bruno@clisp.org>
4444         integer_length: Optimize for MSVC.
4445         * lib/integer_length.c: Include <intrin.h>.
4446         (integer_length): With MSVC, use the _BitScanReverse built-in.
4448 2020-08-03  Bruno Haible  <bruno@clisp.org>
4450         ffsll: Optimize for MSVC in 64-bit mode.
4451         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4452         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4453         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
4455 2020-08-03  Bruno Haible  <bruno@clisp.org>
4457         ffsll: Optimize for MSVC in 32-bit mode.
4458         * lib/ffsl.h: Include <intrin.h>.
4459         (ffs): Define as inline function, like in lib/ffs.c.
4461 2020-08-03  Bruno Haible  <bruno@clisp.org>
4463         ffs: Optimize for MSVC.
4464         * lib/ffs.c: Include <intrin.h>.
4465         (ffs): With MSVC, use the _BitScanForward built-in.
4467 2020-08-03  Bruno Haible  <bruno@clisp.org>
4469         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
4470         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
4471         variable.
4473 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
4475         fopen: Avoid undesired interactions with glibc headers.
4476         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
4477         __need_FILE, as the latter does not work with glibc.
4479 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4481         fcntl: document some F_SETLK errno variations
4482         * doc/posix-functions/fcntl.texi (fcntl): Document
4483         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
4485 2020-08-02  Bruno Haible  <bruno@clisp.org>
4487         oset: Add an 'iterator_atleast' operation.
4488         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
4489         extracted from gl_array_search_atleast.
4490         (gl_array_search_atleast): Use it.
4491         (gl_array_iterator_atleast): New function.
4492         (gl_array_oset_implementation): Use it.
4493         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
4494         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
4495         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
4496         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
4497         member.
4498         (gl_oset_iterator_atleast): New function.
4499         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
4500         (gl_OSet::iterator): Add another auxiliary constructor.
4501         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
4502         New functions.
4503         (main): Test also gl_oset_iterator_atleast.
4504         * tests/test-avltree_oset.c (is_at_least): New function.
4505         (main): Test also gl_oset_iterator_atleast.
4506         * tests/test-rbtree_oset.c (is_at_least): New function.
4507         (main): Test also gl_oset_iterator_atleast.
4508         * tests/test-oset-c++.cc (is_at_most): New function.
4509         (main): Test also gl_OSet::begin_atleast.
4511 2020-08-02  Bruno Haible  <bruno@clisp.org>
4513         oset-c++, omap-c++: Remove restriction for search_atleast method.
4514         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
4515         a different type than the element.
4516         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
4517         a different type than the key.
4519 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4521         gnumakefile: say ‘$(MAKE)’ not ‘make’
4522         * top/GNUmakefile (abort-due-to-no-makefile):
4523         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
4524         This change is backported from Autoconf.
4526 2020-08-01  Bruno Haible  <bruno@clisp.org>
4528         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4529         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
4530         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4531         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4532         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4533         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
4535 2020-08-01  Bruno Haible  <bruno@clisp.org>
4537         libtextstyle-optional: Update tests.
4538         * modules/libtextstyle-optional-tests (configure.ac): Invoke
4539         gl_LIBTEXTSTYLE_OPTIONAL.
4541 2020-08-01  Bruno Haible  <bruno@clisp.org>
4543         parse-datetime: Fix wrong #line statements.
4544         * modules/parse-datetime (Makefile.am): Correct #line statements also in
4545         parse-datetime-gen.h.
4547 2020-08-01  Bruno Haible  <bruno@clisp.org>
4549         libtextstyle[-optional]: Allow requesting a minimum version.
4550         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
4551         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
4552         gl_LIBTEXTSTYLE_SEARCH): New macros.
4553         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
4554         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
4555         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
4556         * modules/libtextstyle-optional (configure.ac): Don't invoke
4557         gl_LIBTEXTSTYLE_OPTIONAL.
4558         * NEWS: Mention the changes.
4560 2020-07-31  Bruno Haible  <bruno@clisp.org>
4562         _GL_CMP: Improve documentation.
4563         Reported by Paul Eggert in
4564         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
4565         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
4566         passed.
4568 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4570         largefile: sync with Autoconf master
4571         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
4572         Avoid undefined behavior on platforms where off_t is 32 bits.
4573         See: https://bugs.debian.org/742780
4575         alloca: sync with Autoconf master
4576         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4577         Do not define if Autoconf 2.70 or later, since Autoconf master
4578         now matches us.
4580 2020-07-30  Bruno Haible  <bruno@clisp.org>
4582         unicodeio: Add comment.
4583         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
4584         different iconv behaviours.
4586 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4588         Work around some Oracle Studio attribute bugs
4589         These were discovered when building bleeding-edge Emacs with
4590         Oracle Studio.
4591         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4592         Port to Oracle Studio 12.6, which mishandles __attribute__
4593         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4594         __has_attribute says they work.
4596 2020-07-29  Bruno Haible  <bruno@clisp.org>
4598         unicodeio: Fix wrong result on musl libc.
4599         Reported by A. Wilcox <awilfox@adelielinux.org> in
4600         <https://www.openwall.com/lists/musl/2020/07/29/2>.
4601         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
4602         on musl libc.
4603         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
4604         * modules/unicodeio (Files): Add m4/musl.m4.
4606 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4608         fsusage, regex, stat-size: remove Cray support
4609         As near as I can make out this is actually support for UNICOS/mp,
4610         last released 2005, and Cray hasn’t supported that for years.
4611         * config/srclist.txt: Comment out regex.h for now.
4612         * lib/fsusage.c (get_fs_usage):
4613         * lib/regex.h (re_comp, re_exec):
4614         * lib/stat-size.h (ST_NBLOCKSIZE):
4615         Don’t worry about _CRAY.
4617 2020-07-29  Bruno Haible  <bruno@clisp.org>
4619         parse-datetime: Fix compilation error with bison 3.7.
4620         * modules/parse-datetime (Makefile.am): Create a generated header file
4621         parse-datetime-gen.h in the source directory. Correct #include and
4622         #line statements during preprocessing.
4624 2020-07-28  Bruno Haible  <bruno@clisp.org>
4626         fopen-gnu: Create files correctly (regression from 2020-05-24).
4627         * lib/fopen.c (rpl_open): Pass a third argument to open().
4629 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4631         xalloc-die: don’t depend on xalloc
4632         This removes a circular dependency, as xalloc depends on xalloc-die.
4633         * modules/xalloc-die (Files): Add lib/xalloc.h.
4634         (Depends-on): Remove xalloc.
4635         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
4637         dfa-tests: port to MSVC
4638         Problem reported by Gisle Vanem in:
4639         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
4640         Also, remove an unnecessary dependency on getprogname.
4641         * modules/dfa-tests (Depends-on): Remove getprogname.
4642         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
4643         (exit_status): New static var.
4644         (dfawarn): Set it instead of exiting.
4645         Do not declare as _Noreturn, to pacify MSVC.
4646         (main): Return exit_status.
4648 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4650         argz: pacify MSVC
4651         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
4652         Problem reported by Gisle Vanem.
4654         libgmp: remove dependency on havelib
4655         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
4656         use the more-traditional AC_SEARCH_LIBS approach.
4657         This should work better with GNU Emacs configuration,
4658         which uses pkg-config instead of a havelib-style approach.
4659         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
4660         * modules/libgmp (Depends-on): Remove havelib.
4662         libgmp: remove HAVE_GMP, LIB_GMP
4663         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4664         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4666 2020-07-26  Bruno Haible  <bruno@clisp.org>
4668         inttypes: Remove support for AIX 4.
4669         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4670         * m4/inttypes-pri.m4: Remove file.
4671         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4672         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4673         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4674         PRI_MACROS_BROKEN.
4675         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4677 2020-07-26  Bruno Haible  <bruno@clisp.org>
4679         gettimeofday: Remove workaround for Mac OS X 10.0.
4680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4681         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4682         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4683         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4684         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4685         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4686         * modules/localtime-buffer: Remove file.
4687         * lib/localtime-buffer.h: Remove file.
4688         * lib/localtime-buffer.c: Remove file.
4689         * m4/localtime-buffer.m4: Remove file.
4690         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4692 2020-07-26  Bruno Haible  <bruno@clisp.org>
4694         tzset: Remove workaround for Solaris 2.6.
4695         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4696         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4697         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4698         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4699         * lib/localtime-buffer.c: Likewise.
4700         * lib/localtime.c: Likewise.
4701         * lib/tzset.c: Don't include localtime-buffer.h.
4702         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4703         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4704         is 1.
4705         * modules/tzset (Depends-on): Remove localtime-buffer.
4707 2020-07-26  Bruno Haible  <bruno@clisp.org>
4709         expl: Simplify autoconf test.
4710         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4711         with small values..." test into the "checking whether expl works..."
4712         test.
4714 2020-07-26  Bruno Haible  <bruno@clisp.org>
4716         alloca: Remove Cray-2 and Cray Y-MP support.
4717         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4718         Enable also on Autoconf >= 2.69.
4719         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4720         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4721         i00afunc): Remove.
4723 2020-07-25  Bruno Haible  <bruno@clisp.org>
4725         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4726         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4728 2020-07-25  Bruno Haible  <bruno@clisp.org>
4730         sigprocmask: Small autoconf macro improvement.
4731         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4732         user to override the value of gl_cv_func_sigprocmask.
4733         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4735 2020-07-25  Bruno Haible  <bruno@clisp.org>
4737         Small autoconf macro improvements.
4738         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4739         override the value of gl_cv_func_working_mktime.
4740         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4741         compiler produces multi-arch binaries..." in the configure output.
4742         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4743         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4745 2020-07-25  Bruno Haible  <bruno@clisp.org>
4747         doc: Update for NetBSD 7.1, 8.0, 9.0.
4748         * doc/*/*.texi: Update.
4749         * m4/exp2l.m4: Update comments.
4750         * m4/expl.m4: Likewise.
4751         * m4/ilogb.m4: Likewise.
4752         * m4/ilogbf.m4: Likewise.
4753         * m4/log10l.m4: Likewise.
4754         * m4/logl.m4: Likewise.
4755         * m4/printf.m4: Likewise.
4756         * m4/rintl.m4: Likewise.
4757         * m4/wcwidth.m4: Likewise.
4759 2020-07-24  Bruno Haible  <bruno@clisp.org>
4761         doc: Update for Mac OS X 10.13.
4762         * doc/*/*.texi: Update.
4763         * m4/expm1l.m4: Update comments.
4764         * m4/getgroups.m4: Likewise.
4765         * m4/getlogin_r.m4: Likewise.
4766         * m4/linkat.m4: Likewise.
4767         * m4/printf.m4: Likewise.
4769 2020-07-24  Bruno Haible  <bruno@clisp.org>
4771         doc: Update for Cygwin 2.9.0.
4772         * doc/*/*.texi: Update.
4774 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4776         parse-datetime: modernize doc
4777         * doc/parse-datetime.texi: Use more-current examples.
4778         Don’t lead with 32-bit time_t, as it’s on its way out.
4779         Capitalize “Epoch” to be consistent with POSIX.
4781         timespec: remove dependence on ‘verify’
4782         * lib/timespec.h: Do not include verify.h; no longer needed.
4783         * modules/timespec (Depends-on): Remove ‘verify’.
4785         Optimize a few more three-valued comparisons
4786         * lib/timespec.h (timespec_cmp, timespec_sign):
4787         * lib/utimecmp.c (utimecmpat):
4788         Avoid conditional branches by using _GL_CMP.
4790         Fix _GL_CMP parenthesization typo
4791         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4793 2020-07-24  Bruno Haible  <bruno@clisp.org>
4795         dfa: Revert breaking gawk.
4796         Reported by Arnold Robbins <arnold@skeeve.com>.
4797         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4799 2020-07-23  Bruno Haible  <bruno@clisp.org>
4801         Optimize three-valued comparison between integers.
4802         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4803         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4804         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4805         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4806         * lib/dfa.c (compare): Likewise.
4807         * lib/fts.c (fts_compare_ino): Likewise.
4808         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4809         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4810         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4811         * lib/memcasecmp.c (memcasecmp): Likewise.
4812         * lib/memcmp2.c (memcmp2): Likewise.
4813         * lib/savedir.c (direntry_cmp_inode): Likewise.
4814         * lib/strcasecmp.c (strcasecmp): Likewise.
4815         * lib/strncasecmp.c (strncasecmp): Likewise.
4816         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4818 2020-07-23  Bruno Haible  <bruno@clisp.org>
4820         lchmod: Use /proc on Cygwin.
4821         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4823 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4825         fchmodat: Use /proc on Cygwin
4826         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4828 2020-07-21  Bruno Haible  <bruno@clisp.org>
4830         aligned-malloc: Optionally use aligned_alloc.
4831         * lib/aligned-malloc.h: Verify the alignment.
4832         (aligned_malloc): Use aligned_alloc as an alternative.
4833         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4834         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4835         'aligned-malloc' and 'pagealign_alloc'.
4837 2020-07-21  Bruno Haible  <bruno@clisp.org>
4839         aligned-malloc: Add tests.
4840         * tests/test-aligned-malloc.c: New file.
4841         * modules/aligned-malloc-tests: New file.
4843         aligned-malloc: New module.
4844         * lib/aligned-malloc.h: New file.
4845         * m4/malloc-align.m4: New file.
4846         * modules/aligned-malloc: New file.
4847         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4848         * doc/glibc-functions/memalign.texi: Likewise.
4850 2020-07-21  Bruno Haible  <bruno@clisp.org>
4852         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4853         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4854         sure PRIPTR_PREFIX is defined to "ll", not "l".
4856 2020-07-21  Bruno Haible  <bruno@clisp.org>
4858         printf-posix: Make an autoconf test more future-proof.
4859         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4860         using uintptr_t.
4862 2020-07-20  Bruno Haible  <bruno@clisp.org>
4864         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4865         * modules/list (License): Change to LGPLv2+.
4866         * modules/array-list (License): Likewise.
4867         * modules/carray-list (License): Likewise.
4868         * modules/linked-list (License): Likewise.
4869         * modules/avltree-list (License): Likewise.
4870         * modules/rbtree-list (License): Likewise.
4871         * modules/oset (License): Likewise.
4872         * modules/array-oset (License): Likewise.
4873         * modules/avltree-oset (License): Likewise.
4874         * modules/rbtree-oset (License): Likewise.
4875         * modules/omap (License): Likewise.
4876         * modules/array-omap (License): Likewise.
4877         * modules/avltree-omap (License): Likewise.
4878         * modules/rbtree-omap (License): Likewise.
4880 2020-07-20  Bruno Haible  <bruno@clisp.org>
4882         oset: Add an 'update' operation.
4883         * lib/gl_array_oset.c (gl_array_update): New function.
4884         (gl_array_oset_implementation): Use it.
4885         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4886         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4887         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4888         extracted from gl_tree_nx_add_before.
4889         (gl_tree_nx_add_before): Invoke it.
4890         (gl_tree_add_node_after): New function, extracted from
4891         gl_tree_nx_add_after.
4892         (gl_tree_nx_add_after): Invoke it.
4893         (gl_tree_remove_node_no_free): New function, extracted from
4894         gl_tree_remove_node.
4895         (gl_tree_remove_node): Invoke it.
4896         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4897         extracted from gl_tree_nx_add_before.
4898         (gl_tree_nx_add_before): Invoke it.
4899         (gl_tree_add_node_after): New function, extracted from
4900         gl_tree_nx_add_after.
4901         (gl_tree_nx_add_after): Invoke it.
4902         (gl_tree_remove_node_no_free): New function, extracted from
4903         gl_tree_remove_node.
4904         (gl_tree_remove_node): Invoke it.
4905         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4906         from gl_tree_iterator_next.
4907         (gl_tree_iterator_next): Invoke it.
4908         (gl_tree_prev_node, gl_tree_update): New functions.
4909         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4910         (gl_avltree_oset_implementation): Use gl_tree_update.
4911         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4912         (gl_rbtree_oset_implementation): Use gl_tree_update.
4913         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4914         (gl_oset_update): New function.
4915         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4916         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4917         * modules/rbtree-oset (configure.ac): Likewise.
4918         * tests/test-oset-update.h: New file.
4919         * tests/test-array_oset.c: Include test-oset-update.h.
4920         (main): Invoke test_update.
4921         * tests/test-avltree_oset.c: Likewise.
4922         * tests/test-rbtree_oset.c: Likewise.
4923         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4924         * modules/avltree-oset-tests (Files): Likewise.
4925         * modules/rbtree-oset-tests (Files): Likewise.
4926         * tests/test-oset-c++.cc (action): New function.
4927         (main): Test the 'update' member function.
4929 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4931         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4932         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4933         shell if, so that the argument to AC_CHECK_HEADERS is
4934         a simple string that does not require shell evaluation.
4935         This fixes a warning generated by Autoconf 2.69b.
4937 2020-07-12  Bruno Haible  <bruno@clisp.org>
4939         libgmp: Avoid warning when --without-libgmp is used.
4940         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4941         GCC >= 8, not for GCC >= 4.6.
4943 2020-07-12  Bruno Haible  <bruno@clisp.org>
4945         libgmp: Link to the correct shared library.
4946         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4947         * modules/libgmp (Depends-on): Add havelib.
4948         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4949         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4951 2020-07-12  Bruno Haible  <bruno@clisp.org>
4953         libgmp tests: Add some safety checks.
4954         * modules/libgmp-tests (Depends-on): Add verify.
4955         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4956         (main): Verify that gmp.h and libgmp versions match.
4958 2020-07-10  Bruno Haible  <bruno@clisp.org>
4960         unicodeio: Fix wrong result on NetBSD.
4961         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4962         characters also on NetBSD.
4964 2020-07-09  Bruno Haible  <bruno@clisp.org>
4966         unicodeio: Fix wrong result on Solaris 11.
4967         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4968         via Akim Demaille <akim.demaille@gmail.com> in
4969         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4970         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4971         characters on Solaris.
4972         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4973         UTF-8 output or the specified fallback.
4975 2020-07-08  Bruno Haible  <bruno@clisp.org>
4977         unicodeio: Add tests.
4978         * tests/test-unicodeio.c: New file.
4979         * tests/test-unicodeio1.sh: New file.
4980         * tests/test-unicodeio2.sh: New file.
4981         * tests/test-unicodeio3.sh: New file.
4982         * modules/unicodeio-tests: New file.
4984 2020-07-08  Bruno Haible  <bruno@clisp.org>
4986         unicodeio: Document link requirements.
4987         * modules/unicodeio (Link): New section.
4989 2020-07-07  Bruno Haible  <bruno@clisp.org>
4991         doc: Remove support for some very old platforms.
4992         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4993         * doc/posix-functions/memcpy.texi: Likewise.
4994         * doc/posix-functions/memmove.texi: Likewise.
4995         * doc/posix-functions/memset.texi: Likewise.
4996         * doc/posix-functions/getcwd.texi: Likewise.
4998         memchr: Remove support for some very old platforms.
4999         * m4/memchr-obsolete.m4: Remove file.
5000         * modules/memchr-obsolete: Remove file.
5001         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
5002         absent. Don't define HAVE_MEMCHR.
5003         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
5004         * modules/memchr (Depends-on): Remove memchr-obsolete.
5005         (configure.ac): Assume HAVE_MEMCHR is 1.
5006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5007         HAVE_MEMCHR.
5008         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
5009         * doc/posix-functions/memchr.texi: Don't mention module
5010         'memchr-obsolete'.
5011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5012         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5013         * modules/strnlen (Depends-on): Remove memchr-obsolete.
5015         dup2: Remove support for some very old platforms.
5016         * m4/dup2-obsolete.m4: Remove file.
5017         * modules/dup2-obsolete: Remove file.
5018         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
5019         Don't define HAVE_DUP2.
5020         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
5021         * lib/dup2.c: Likewise.
5022         * modules/dup2 (Depends-on, configure.ac): Likewise.
5023         (Depends-on): Remove dup2-obsolete.
5024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
5025         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
5026         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
5028 2020-07-07  Bruno Haible  <bruno@clisp.org>
5030         canonicalize: Trim module dependencies.
5031         * lib/hash-triple.h: Group declarations.
5032         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
5033         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
5034         (STREQ): Remove macro.
5035         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
5036         * modules/hash-triple-simple: New file, based on modules/hash-triple.
5037         * modules/hash-triple (Files): Remove lib/hash-triple.h.
5038         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
5039         * modules/canonicalize (Depends-on): Remove hash-triple. Add
5040         hash-triple-simple.
5041         * modules/file-set (Depends-on): Likewise.
5043 2020-07-07  Bruno Haible  <bruno@clisp.org>
5045         Clarify dependencies to double-slash-root.
5046         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
5047         (Depends-on): Add double-slash-root.
5048         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
5049         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
5051 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5053         libgmp: new module
5054         The idea is to let programs simply include <gmp.h>, and
5055         so long as they live within the mini-gmp subset they need
5056         not worry about whether the GMP libraries are installed.
5057         * MODULES.html.sh: Mention it.
5058         * config/srclist.txt: Mention files copied from GMP source.
5059         * config/srclistvars.sh (GMP): New var.
5060         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
5061         * modules/libgmp-tests, tests/test-libgmp.c: New files.
5062         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
5064 2020-07-05  Bruno Haible  <bruno@clisp.org>
5066         mkancesdirs: Trim module dependencies.
5067         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
5068         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
5070 2020-07-05  Bruno Haible  <bruno@clisp.org>
5072         getprogname: Trim module dependencies.
5073         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
5074         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
5075         basename-lgpl.
5077 2020-07-05  Bruno Haible  <bruno@clisp.org>
5079         filenamecat-lgpl: Trim module dependencies.
5080         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
5081         dirname.h.
5082         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
5083         basename-lgpl, filename.
5085 2020-07-05  Bruno Haible  <bruno@clisp.org>
5087         backupfile, backup-rename: Trim module dependencies.
5088         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
5089         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
5090         basename-lgpl.
5091         * modules/backup-rename (Depends-on): Likewise.
5093 2020-07-05  Bruno Haible  <bruno@clisp.org>
5095         argp: Trim module dependencies.
5096         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
5097         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
5099 2020-07-05  Bruno Haible  <bruno@clisp.org>
5101         basename-lgpl: New module.
5102         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
5103         lib/basename-lgpl.c.
5104         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
5105         <stdbool.h>, filename.h.
5106         (last_component): Rename a local variable.
5107         * lib/dirname.h: Include basename-lgpl.h.
5108         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
5109         (last_component, base_len): Remove declarations.
5110         * modules/basename-lgpl: New file.
5111         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
5112         (Depends-on): Add basename-lgpl. Remove double-slash-root.
5113         (Makefile.am): Don't compile basename-lgpl.c.
5114         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
5115         not 'dirname'.
5117 2020-07-05  Bruno Haible  <bruno@clisp.org>
5119         dirname, dirname-lgpl: Simplify.
5120         * m4/dirname.m4: Remove file.
5121         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
5122         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
5123         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
5125 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
5127         tests: avoid shadowing warning
5128         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
5130 2020-07-05  Bruno Haible  <bruno@clisp.org>
5132         supersede: Add tests.
5133         * tests/test-supersede.c: New file.
5134         * tests/test-supersede-open.h: New file.
5135         * tests/test-supersede-fopen.h: New file.
5136         * modules/supersede-tests: New file.
5138         supersede: New module.
5139         * lib/supersede.h: New file.
5140         * lib/supersede.c: New file.
5141         * m4/supersede.m4: New file.
5142         * modules/supersede: New file.
5144 2020-07-05  Bruno Haible  <bruno@clisp.org>
5146         Add some copyright headers.
5147         * lib/dev-ino.h: Add copyright header.
5148         * lib/di-set.h: Likewise.
5149         * lib/fchown-stub.c: Likewise.
5150         * lib/file-set.h: Likewise.
5151         * lib/hash-triple.h: Likewise.
5152         * lib/idcache.h: Likewise.
5153         * lib/ino-map.h: Likewise.
5154         * lib/mkancesdirs.h: Likewise.
5155         * lib/scratch_buffer.h: Likewise.
5156         * lib/se-context.in.h: Likewise.
5157         * lib/stdopen.h: Likewise.
5158         * lib/userspec.h: Likewise.
5160 2020-07-04  Bruno Haible  <bruno@clisp.org>
5162         getrandom: Relicense under LGPLv2+.
5163         Paul Eggert's approval is in
5164         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
5165         * modules/getrandom (License): Change to LGPLv2+.
5167 2020-07-04  Bruno Haible  <bruno@clisp.org>
5169         getumask: Add tests.
5170         * tests/test-getumask.c: New file.
5171         * modules/getumask-tests: New file.
5173         getumask: New module.
5174         * lib/sys_stat.in.h (getumask): New declaration.
5175         * lib/getumask.c: New file.
5176         * m4/getumask.m4: New file.
5177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
5178         declared.
5179         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
5180         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
5181         HAVE_GETUMASK.
5182         * modules/getumask: New file.
5183         * tests/test-sys_stat-c++.cc (getumask): Check signature.
5184         * doc/glibc-functions/getumask.texi: New file.
5185         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
5187 2020-07-04  Bruno Haible  <bruno@clisp.org>
5189         clean-temp: Add support for temporary files with given mode.
5190         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
5191         * lib/clean-temp.c (struct try_create_file_params): New type.
5192         (try_create_file): New function.
5193         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
5194         gen_tempname.
5196 2020-07-04  Bruno Haible  <bruno@clisp.org>
5198         clean-temp: Document limitations.
5199         * lib/clean-temp.h: Document limitations.
5201 2020-07-04  Bruno Haible  <bruno@clisp.org>
5203         clean-temp: Add support for temporary files with unpredictable names.
5204         * lib/clean-temp.h (gen_register_open_temp): New declaration.
5205         * lib/clean-temp.c: Include tempname.h.
5206         (gen_register_open_temp): New function.
5207         * modules/tempname (configure.ac): Define a module indicator.
5209 2020-07-04  Bruno Haible  <bruno@clisp.org>
5211         clean-temp: Add support for temporary files anywhere in the file system.
5212         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
5213         cleanup_temporary_file): New declarations.
5214         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
5215         variables.
5216         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
5217         (dir_cleanup_list): Renamed from cleanup_list.
5218         (cleanup_action): Process the file_cleanup_list as well.
5219         (do_init_clean_temp): New function.
5220         (clean_temp_once): New variable.
5221         (init_clean_temp): New function.
5222         (create_temp_dir): Invoke it.
5223         (register_temporary_file, unregister_temporary_file,
5224         cleanup_temporary_file): New functions.
5225         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
5226         argument.
5228 2020-07-04  Bruno Haible  <bruno@clisp.org>
5230         clean-temp: Improve comments.
5231         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5232         fwriteerror_temp, close_stream_temp): Clarify intended use.
5233         * lib/clean-temp.c: Likewise.
5235 2020-07-04  Bruno Haible  <bruno@clisp.org>
5237         clean-temp: Make multithread-safe, part 2.
5238         * lib/fatal-signal.h: Include <signal.h>.
5239         (get_fatal_signal_set): New declaration.
5240         * lib/fatal-signal.c (get_fatal_signal_set): New function.
5241         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
5242         (struct closeable_fd): New type.
5243         (fatal_signal_set): New variable.
5244         (init_fatal_signal_set): New function.
5245         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
5246         (cleanup_action): Invoke asyncsafe_close instead of close.
5247         (create_temp_dir): Invoke init_fatal_signal_set.
5248         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
5249         element.
5250         (unregister_fd): Remove function.
5251         (close_temp): Cleanup descriptors list on the fly. Invoke
5252         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
5253         (fclose_variant_temp): New function.
5254         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
5255         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
5257 2020-07-04  Bruno Haible  <bruno@clisp.org>
5259         clean-temp: Make multithread-safe, part 1.
5260         * lib/clean-temp.c: Include glthread/lock.h.
5261         (cleanup_list_lock): New variable.
5262         (register_temp_file, unregister_temp_file, register_temp_subdir,
5263         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
5264         (create_temp_dir): Likewise. Don't free the old array.
5265         (descriptors_lock): New variable.
5266         (register_fd, unregister_fd): Use it.
5267         * modules/clean-temp (Depends-on): Add lock.
5269 2020-07-04  Bruno Haible  <bruno@clisp.org>
5271         fatal-signal: Make multithread-safe.
5272         * lib/fatal-signal.c (init_fatal_signals): Add comment.
5273         (do_init_fatal_signal_set): New function, extracted from
5274         init_fatal_signal_set.
5275         (fatal_signal_set_once): New variable.
5276         (init_fatal_signal_set): Use gl_once.
5278 2020-07-03  Bruno Haible  <bruno@clisp.org>
5280         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
5281         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
5282         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
5283         <bcrypt.h>.
5285 2020-07-03  Bruno Haible  <bruno@clisp.org>
5287         dfa tests: Follow common file naming conventions.
5288         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
5289         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
5290         * tests/test-dfa-invalid-char-class.sh: Renamed from
5291         tests/dfa-invalid-char-class.sh. Update.
5292         * modules/dfa-tests (Files, Makefile.am): Update.
5294 2020-07-03  Bruno Haible  <bruno@clisp.org>
5296         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
5297         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
5298         the GCC extended asm syntax also for the Sun Studio 12 compilers.
5300 2020-07-03  Bruno Haible  <bruno@clisp.org>
5302         asyncsafe-spin: Reduce code duplication.
5303         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
5304         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
5305         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
5307 2020-07-03  Bruno Haible  <bruno@clisp.org>
5309         lchmod: Simplify after 2020-02-22 change.
5310         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
5312 2020-07-03  Bruno Haible  <bruno@clisp.org>
5314         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
5315         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
5317 2020-07-03  Bruno Haible  <bruno@clisp.org>
5319         dfa: Make sure the compiler does not barf on 'inline'.
5320         * modules/dfa (configure.ac): Require AC_C_INLINE.
5322 2020-07-03  Bruno Haible  <bruno@clisp.org>
5324         bitset: Make sure the compiler does not barf on 'inline'.
5325         * modules/bitset (configure.ac): New section.
5327 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5329         manywarnings: improve port to GCC 10.1
5330         * build-aux/gcc-warning.spec: Also list warnings that are default
5331         or are enabled by already-given flags.  This lets us speed up
5332         checking for attributes, and makes the generated compilation
5333         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
5334         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
5335         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
5336         to shell variables that may have long values.
5337         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
5338         consequences of other flags, to speed up checking and
5339         shorten commands.
5341         tests: pacify gcc -fanalyzer on zerosize_ptr
5342         * tests/test-memcasecmp.c (main):
5343         * tests/test-memchr.c (main):
5344         * tests/test-memchr2.c (main):
5345         * tests/test-memcmp.c (main):
5346         * tests/test-memmem.c (main):
5347         * tests/test-memrchr.c (main):
5348         * tests/unistr/test-chr.h (main):
5349         * tests/unistr/test-cmp.h (test_cmp):
5350         Check whether zerosize_ptr returns NULL before using it.
5351         This pacifies GCC 10.1’s new fanalyzer option, and matches
5352         other uses of zerosize_ptr.
5354 2020-07-01  Bruno Haible  <bruno@clisp.org>
5356         asyncsafe-spin: Add tests.
5357         * tests/test-asyncsafe-spin1.c: New file.
5358         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5359         tests/test-pthread-spin.c.
5360         * modules/asyncsafe-spin-tests: New file.
5362 2020-07-01  Bruno Haible  <bruno@clisp.org>
5364         asyncsafe-spin: New module.
5365         * lib/asyncsafe-spin.h: New file.
5366         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5367         * modules/asyncsafe-spin: New file.
5369 2020-07-01  Bruno Haible  <bruno@clisp.org>
5371         windows-spin: Fix race condition on multiprocessor systems.
5372         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5374 2020-07-01  Bruno Haible  <bruno@clisp.org>
5376         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5377         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5378         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5379         an implementation based on other GCC built-ins.
5381 2020-07-01  Bruno Haible  <bruno@clisp.org>
5383         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5384         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5385         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5386         lock byte.
5388 2020-07-01  Bruno Haible  <bruno@clisp.org>
5390         pthread-spin: Add error checking.
5391         * lib/pthread-spin.c: Include <stdbool.h>.
5392         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5393         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5394         the unlocks.
5395         * modules/pthread-spin (Depends-on): Add stdbool.
5397 2020-07-01  Bruno Haible  <bruno@clisp.org>
5399         pthread-spin: Add tests.
5400         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5401         * modules/pthread-spin-tests: New file.
5403 2020-07-01  Bruno Haible  <bruno@clisp.org>
5405         tests: Reduce code duplication.
5406         * tests/atomic-int-posix.h: New file, extracted from
5407         tests/test-pthread-mutex.c.
5408         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5409         * tests/test-pthread-rwlock.c: Likewise.
5410         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5411         * modules/pthread-rwlock-tests (Files): Likewise.
5413 2020-07-01  Bruno Haible  <bruno@clisp.org>
5415         tests: Refactor.
5416         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5417         * tests/test-mtx.c: Include it. Remove the corresponding code.
5418         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5420 2020-07-01  Bruno Haible  <bruno@clisp.org>
5422         tests: Refactor.
5423         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5424         * tests/test-lock.c: Include it. Remove the corresponding code.
5425         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5427 2020-06-29  Bruno Haible  <bruno@clisp.org>
5429         sys_socket: Don't define socklen_t if it is already defined on mingw.
5430         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5431         <https://savannah.gnu.org/bugs/?57725>,
5432         by Rahul Das <bokul_4u@yahoo.com> in
5433         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5434         and by Eli Zaretskii <eliz@gnu.org> in
5435         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5436         * lib/sys_socket.in.h (socklen_t): Remove definition.
5438 2020-06-29  Bruno Haible  <bruno@clisp.org>
5440         alloca-opt: Fix warning on mingw.
5441         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5442         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5443         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5444         whether alloca is defined.
5446 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5448         getrandom: do not depend on ‘open’ on mingw
5449         Similarly for at-internal, getloadavg.  These modules do not call
5450         the ‘open’ function when they are compiled on mingw.  On mingw,
5451         this avoids having to compile open.c when building Emacs, which
5452         does its own thing with ‘open’.
5453         * modules/at-internal, modules/getloadavg, modules/getrandom:
5454         (Depends-on): Don’t depend on ‘open’ on mingw.
5455         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
5456         * modules/getloadavg (Depends-on):
5457         Depend on intprops, open, stdbool, stdlib only if compiling
5458         getloadavg.c.
5460 2020-06-28  Bruno Haible  <bruno@clisp.org>
5462         doc: Add a note about sigprocmask vs. pthread_sigmask.
5463         * doc/posix-functions/sigprocmask.texi: Add note.
5465 2020-06-28  Bruno Haible  <bruno@clisp.org>
5467         getrandom: Fix compilation errors on older versions of mingw.
5468         Reported by Eli Zaretskii <eliz@gnu.org> in
5469         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
5470         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
5471         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
5472         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
5473         BCryptGenRandom ourselves.
5475 2020-06-28  Bruno Haible  <bruno@clisp.org>
5477         clean-temp: Fix wrong errno in error message.
5478         * lib/clean-temp.c (create_temp_dir): Save errno around
5479         unblock_fatal_signals call.
5481 2020-06-27  Bruno Haible  <bruno@clisp.org>
5483         fatal-signal: Make multithread-safe.
5484         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
5486 2020-06-27  Bruno Haible  <bruno@clisp.org>
5488         clean-temp: Don't force deletion of temporary files on native Windows.
5489         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
5490         argument.
5491         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
5492         * NEWS: Mention the change.
5493         * lib/javacomp.c (write_temp_file): Update.
5495 2020-06-27  Bruno Haible  <bruno@clisp.org>
5497         fatal-signal: Make multithread-safe.
5498         * lib/fatal-signal.c: Include glthread/lock.h.
5499         (at_fatal_signal_lock): New variable.
5500         (at_fatal_signal): Use it.
5501         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
5502         (block_fatal_signals, unblock_fatal_signals): Use them.
5503         * modules/fatal-signal (Depends-on): Add lock.
5505 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
5507         getloadavg: don’t depend on fopen-gnu
5508         This is for Emacs, which does not need fopen-gnu for anything else,
5509         and which would need it only on a NetBSD platform where getloadavg
5510         does not work (does that even happen?).
5511         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
5512         * modules/getloadavg (Depends-on): Remove fopen-gnu.
5514         * tests/test-getloadavg.c (main): Fix typo.
5516 2020-06-27  Bruno Haible  <bruno@clisp.org>
5518         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
5519         * modules/tempname (Link): New section.
5520         * modules/mkdtemp (Link): Likewise.
5521         * modules/clean-temp (Link): Likewise.
5522         * modules/mkstemp (Link): Likewise.
5523         * modules/stdlib-safer (Link): Likewise.
5524         * modules/mkstemps (Link): Likewise.
5525         * modules/mkostemp (Link): Likewise.
5526         * modules/mkostemps (Link): Likewise.
5527         * modules/tmpfile (Link): Likewise.
5528         * modules/tmpfile-safer (Link): Likewise.
5529         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
5530         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
5531         $(LIB_GETRANDOM).
5532         * NEWS: Mention the changes.
5534 2020-06-27  Bruno Haible  <bruno@clisp.org>
5536         fopen-gnu: Simplify code.
5537         * lib/fopen.c: Include <stdbool.h>.
5538         (rpl_fopen): Use a single variable open_flags instead of
5539         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
5540         * modules/fopen (Depends-on): Add stdbool.
5542 2020-06-26  Bruno Haible  <bruno@clisp.org>
5544         canonicalize: Improve documentation.
5545         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
5546         return convention.
5548 2020-06-26  Bruno Haible  <bruno@clisp.org>
5550         xgetcwd: Improve documentation.
5551         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
5553 2020-06-26  Bruno Haible  <bruno@clisp.org>
5555         getcwd: Improve documentation.
5556         * lib/getcwd.c (__getcwd): Document the failure return convention.
5558 2020-06-26  Bruno Haible  <bruno@clisp.org>
5560         fchdir: Improve documentation.
5561         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
5562         convention.
5564 2020-06-26  Bruno Haible  <bruno@clisp.org>
5566         filenamecat-lgpl: Set errno upon failure.
5567         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
5568         return convention.
5569         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
5571 2020-06-26  Bruno Haible  <bruno@clisp.org>
5573         areadlink-with-size: Set errno upon failure.
5574         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
5575         fails.
5576         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
5578 2020-06-26  Bruno Haible  <bruno@clisp.org>
5580         copy-file: Shrink dependencies.
5581         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
5582         qcopy-acl.
5584 2020-06-26  Bruno Haible  <bruno@clisp.org>
5586         doc: Mention declaration fixes implemented by some modules.
5587         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5588         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5589         declaration appear in <unistd.h>.
5590         * doc/posix-functions/dup.texi: Likewise.
5591         * doc/posix-functions/dup2.texi: Likewise.
5592         * doc/posix-functions/gethostname.texi: Likewise.
5593         * doc/posix-functions/isatty.texi: Likewise.
5594         * doc/posix-functions/lseek.texi: Likewise.
5595         * doc/posix-functions/unlink.texi: Likewise.
5596         * doc/posix-functions/read.texi: Mention the module 'read'.
5597         * doc/posix-functions/write.texi: Mention the effects of the module
5598         'write'.
5600 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
5602         c-dtoastr, c-ldtoastr: new modules
5603         These modules provide the same functionality as the modules
5604         dtoastr and ldtoastr except for the formatting taking place in the
5605         C locale.
5606         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
5607         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
5608         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
5609         defined.  Use c_snprintf and c_strtod/c_strtold instead of
5610         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
5611         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
5612         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
5613         modules/c-ldtoastr-tests: New files.
5614         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
5615         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
5617 2020-06-21  Bruno Haible  <bruno@clisp.org>
5619         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
5620         * lib/tzset.c: Include <stdlib.h>, <string.h>.
5622 2020-06-16  Bruno Haible  <bruno@clisp.org>
5624         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
5625         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
5627 2020-06-16  Bruno Haible  <bruno@clisp.org>
5629         thread, thrd: Avoid a compiler warning.
5630         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
5632 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
5634         windows-thread: Avoid a compiler warning.
5635         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
5636         void.
5637         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
5639 2020-06-15  Bruno Haible  <bruno@clisp.org>
5641         unictype/joininggroup-name: Fix warning on 64-bit mingw.
5642         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
5643         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
5644         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
5645         first.
5647 2020-06-06  Bruno Haible  <bruno@clisp.org>
5649         calloc-gnu tests: Avoid a test failure with clang.
5650         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
5651         'volatile', to defeat compiler optimizations.
5653 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5655         getloadavg: fix double-increment bug
5656         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
5657         Linux without glibc, Android, Cygwin.  This fixes a bug I
5658         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
5659         Problem and fix reported by Semen Verchenko in:
5660         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5662         tempname: use getrandom, not getentropy
5663         This removes a dependency, as getentropy depends on getrandom.
5664         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5665         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5666         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5668 2020-06-01  Bruno Haible  <bruno@clisp.org>
5670         doc: New chapter 'Multithreading'.
5671         * doc/multithread.texi: New file.
5672         * doc/gnulib.texi: Include it.
5674 2020-06-01  Bruno Haible  <bruno@clisp.org>
5676         doc: Move 'Running self-tests under valgrind' section.
5677         * doc/gnulib.texi (Build Infrastructure Modules): Include
5678         valgrind-tests.texi here...
5679         (Miscellaneous Notes): ... not here.
5681 2020-06-01  Bruno Haible  <bruno@clisp.org>
5683         doc: Move 'Visual Studio Compatibility' section.
5684         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5685         here...
5686         (Build Infrastructure Modules): ... not here.
5688 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5690         doc: improve randomness discussion
5691         Inspired by comments from Jeffrey Walton in:
5692         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5693         * doc/glibc-functions/getentropy.texi (getentropy):
5694         * doc/glibc-functions/getrandom.texi (getrandom):
5695         Improve discussion of problems with "random" data,
5696         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5698 2020-06-01  Bruno Haible  <bruno@clisp.org>
5700         doc: Fix Texinfo syntax error.
5701         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5703 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5705         doc: Change '.' to '@.' where appropriate.
5706         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5707         * doc/glibc-functions/fstatfs.texi: Likewise.
5708         * doc/glibc-functions/fts_children.texi: Likewise.
5709         * doc/glibc-functions/fts_read.texi: Likewise.
5710         * doc/glibc-functions/getdirentries.texi: Likewise.
5711         * doc/glibc-functions/mkostemp.texi: Likewise.
5712         * doc/glibc-functions/mkostemps.texi: Likewise.
5713         * doc/glibc-functions/mkstemps.texi: Likewise.
5714         * doc/glibc-functions/preadv.texi: Likewise.
5715         * doc/glibc-functions/pwritev.texi: Likewise.
5716         * doc/glibc-functions/sendfile.texi: Likewise.
5717         * doc/glibc-functions/statfs.texi: Likewise.
5718         * doc/gnulib-intro.texi: Likewise.
5719         * doc/gnulib-tool.texi: Likewise.
5720         * doc/intprops.texi: Likewise.
5721         * doc/lib-symbol-visibility.texi: Likewise.
5722         * doc/licenses-texi.texi: Likewise.
5723         * doc/pastposix-functions/bcmp.texi: Likewise.
5724         * doc/pastposix-functions/bcopy.texi: Likewise.
5725         * doc/pastposix-functions/bzero.texi: Likewise.
5726         * doc/pastposix-functions/ecvt.texi: Likewise.
5727         * doc/pastposix-functions/fcvt.texi: Likewise.
5728         * doc/pastposix-functions/ftime.texi: Likewise.
5729         * doc/pastposix-functions/gcvt.texi: Likewise.
5730         * doc/pastposix-functions/getwd.texi: Likewise.
5731         * doc/pastposix-functions/index.texi: Likewise.
5732         * doc/pastposix-functions/mktemp.texi: Likewise.
5733         * doc/pastposix-functions/rindex.texi: Likewise.
5734         * doc/pastposix-functions/wcswcs.texi: Likewise.
5735         * doc/posix-functions/aio_cancel.texi: Likewise.
5736         * doc/posix-functions/aio_error.texi: Likewise.
5737         * doc/posix-functions/aio_fsync.texi: Likewise.
5738         * doc/posix-functions/aio_read.texi: Likewise.
5739         * doc/posix-functions/aio_return.texi: Likewise.
5740         * doc/posix-functions/aio_suspend.texi: Likewise.
5741         * doc/posix-functions/aio_write.texi: Likewise.
5742         * doc/posix-functions/creat.texi: Likewise.
5743         * doc/posix-functions/ctime.texi: Likewise.
5744         * doc/posix-functions/daylight.texi: Likewise.
5745         * doc/posix-functions/fgetpos.texi: Likewise.
5746         * doc/posix-functions/fopen.texi: Likewise.
5747         * doc/posix-functions/freopen.texi: Likewise.
5748         * doc/posix-functions/fseeko.texi: Likewise.
5749         * doc/posix-functions/fsetpos.texi: Likewise.
5750         * doc/posix-functions/fstatat.texi: Likewise.
5751         * doc/posix-functions/fstatvfs.texi: Likewise.
5752         * doc/posix-functions/ftello.texi: Likewise.
5753         * doc/posix-functions/ftruncate.texi: Likewise.
5754         * doc/posix-functions/getrlimit.texi: Likewise.
5755         * doc/posix-functions/lio_listio.texi: Likewise.
5756         * doc/posix-functions/localtime.texi: Likewise.
5757         * doc/posix-functions/lseek.texi: Likewise.
5758         * doc/posix-functions/mkstemp.texi: Likewise.
5759         * doc/posix-functions/mktime.texi: Likewise.
5760         * doc/posix-functions/open.texi: Likewise.
5761         * doc/posix-functions/openat.texi: Likewise.
5762         * doc/posix-functions/opendir.texi: Likewise.
5763         * doc/posix-functions/pread.texi: Likewise.
5764         * doc/posix-functions/pwrite.texi: Likewise.
5765         * doc/posix-functions/readdir.texi: Likewise.
5766         * doc/posix-functions/readdir_r.texi: Likewise.
5767         * doc/posix-functions/scandir.texi: Likewise.
5768         * doc/posix-functions/seekdir.texi: Likewise.
5769         * doc/posix-functions/setrlimit.texi: Likewise.
5770         * doc/posix-functions/statvfs.texi: Likewise.
5771         * doc/posix-functions/strftime.texi: Likewise.
5772         * doc/posix-functions/telldir.texi: Likewise.
5773         * doc/posix-functions/timezone.texi: Likewise.
5774         * doc/posix-functions/tmpfile.texi: Likewise.
5775         * doc/posix-functions/truncate.texi: Likewise.
5776         * doc/posix-functions/tzname.texi: Likewise.
5777         * doc/posix-functions/wcsftime.texi: Likewise.
5778         * doc/windows-sockets.texi: Likewise.
5780 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5782         getrandom-tests: do not assume GRND_RANDOM yields short read
5783         * tests/test-getrandom.c (main): Omit assertion that
5784         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5785         when b’s size is 100000.  This assertion fails with Linux kernel
5786         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5787         The separate blocking pool is going away in the Linux kernel, and
5788         they’ve added a flag GRND_INSECURE instead; see:
5789         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5790         The assertion was iffy anyway; what’s to prevent a kernel from
5791         lazily filling a large buffer with random bytes?
5793         read-file-test: pacify --enable-gcc-warnings
5794         * tests/test-read-file.c (test_read_file): Now static.
5796         tempname: merge from glibc and coreutils
5797         Also, merge in Gnulib’s more-recent methods of making it easier
5798         to share between Gnulib and glibc, and fix a few randomness
5799         glitches.
5800         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5801         (__set_errno): Remove; libc-config.h does that for us.
5802         Do not include <sys/time.h>.
5803         (__secure_getenv) [_LIBC]: New macro.
5804         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5805         (RANDOM_BITS): Rewrite.
5806         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5807         (random_value): New typedef.
5808         (try_file, try_dir, try_nocreate): Move up.
5809         (gen_tempname_len, try_tempname_len): New functions.
5810         (gen_tempname_len): Use a constant array rather than a switch.
5811         (try_tempname_len): Don’t assume string length fits in int.
5812         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5813         has enough entropy (it’s a bit short).
5814         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5815         (__try_tempname): Rewrite in terms of try_tempname_len.
5816         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5817         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5818         Add getentropy, libc-config.
5820 2020-05-31  Bruno Haible  <bruno@clisp.org>
5822         getrandom, getentropy: Mention the crypto/gc-random module.
5823         Suggested by Simon Josefsson in
5824         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5825         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5826         crypto/gc-random module.
5827         * doc/glibc-functions/getentropy.texi: Likewise.
5829 2020-05-31  Bruno Haible  <bruno@clisp.org>
5831         getentropy: Enhance tests.
5832         * tests/test-getentropy.c (main): Add one more test.
5833         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5835 2020-05-31  Bruno Haible  <bruno@clisp.org>
5837         getentropy: Work around a macOS and Solaris problem.
5838         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5839         'getentropy' module.
5840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5841         UNISTD_H_HAVE_SYS_RANDOM_H.
5842         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5843         UNISTD_H_HAVE_SYS_RANDOM_H.
5844         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5845         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5846         problem. List more platforms.
5848 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5850         fnmatch: merge from glibc
5851         Also, merge in Gnulib’s more-recent methods of making it easier
5852         to share between Gnulib and glibc.
5853         * lib/fnmatch.c: Reorder includes to match glibc better.
5854         Include libc-config.h instead of config.h.
5855         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5856         Do not include "../locale/elem-hash.h" if _LIBC.
5857         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5858         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5859         Include intprops.h, since glibc has it now.
5860         (SIZE_MAX): Remove; use (size_t) -1 instead.
5861         Omit the "Comment out all this code" ifdef, since Gnulib
5862         has never really needed it.
5863         (STREQ): Remove; no longer used.
5864         (__libc_use_alloca, alloca, alloca_account): Define as
5865         needed if !_LIBC.
5866         (ISWCTYPE): Remove; all uses replaced by iswctype.
5867         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5868         (internal_function): Remove.  All uses removed.
5869         (STRUCT): New macro.
5870         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5871         (WMEMCMP): New macro.
5872         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5873         and <locale/weightwc.h>.
5874         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5875         __builtin_expect.  Check for integer overflow more
5876         systematically.  Account for alloca storage better when
5877         recursive.  Use strnlen instead of strlen for efficiency.
5878         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5879         (struct STRUCT): New type.
5880         (FCT, EXT): New ENDS and ALLOCA_USED args.
5881         All callers changed.
5882         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5883         Simplify by assuming WIDE_CHAR_SUPPORT.
5884         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5885         Cast cold to UCHAR to avoid signedness warning.
5886         (END): Check for invalid pattern.
5887         (EXT): Improve alloca/malloc checking (taken from glibc),
5888         and improve it some more by using intprops.h and checking
5889         for integer overflow and using bool for booleans.
5890         * lib/libc-config.h (compat_symbol): New macro.
5891         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5892         acceptable to non-GCC when a trailing semicolon is added.
5893         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5894         libc-config, strnlen.  Remove alloca.
5896 2020-05-31  Bruno Haible  <bruno@clisp.org>
5898         getrandom: Doc and test tweaks.
5899         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5900         it sets errno when failing.
5901         * tests/test-getrandom.c (main): Disable the high-quality check on those
5902         platforms on which it fails.
5903         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5904         Cygwin to the list of platforms that don't have the function. Add a note
5905         about the quality of the result.
5906         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5907         declaration; this is fixed by module 'getrandom'.
5909 2020-05-31  Bruno Haible  <bruno@clisp.org>
5911         getrandom: Add support for native Windows.
5912         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5913         <wincrypt.h>.
5914         (CRYPT_VERIFY_CONTEXT): New macro.
5915         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5916         'A'.
5917         (GetProcAddress): New macro.
5918         (BCryptGenRandomFuncType): New type.
5919         (BCryptGenRandomFunc, initialized): New variables.
5920         (initialize): New function.
5921         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5922         <wincrypt.h> API as fallback.
5923         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5924         * modules/getrandom (Link): New section.
5925         * modules/getentropy (Link): Likewise.
5926         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5927         $(LIB_GETRANDOM).
5928         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5929         $(LIB_GETRANDOM).
5930         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5931         against $(LIB_GETRANDOM).
5932         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5933         support.
5935 2020-05-31  Bruno Haible  <bruno@clisp.org>
5937         getrandom: Simplify the determination of the random number devices.
5938         Suggested by Paul Eggert in
5939         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5940         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5941         macros.
5942         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5944 2020-05-31  Bruno Haible  <bruno@clisp.org>
5946         crypto/gc-random: Fix list of crypto devices for Solaris.
5947         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5949 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5951         list: fix GCC warnings
5952         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5953         (gl_tree_next_node, gl_tree_node_nx_set_value)
5954         (gl_tree_previous_node, gl_tree_next_node):
5955         Mark unused arguments.
5956         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5957         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5958         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5960         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5961         the same variable name in nested scopes.
5963 2020-05-31  Bruno Haible  <bruno@clisp.org>
5965         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5966         Reported by Akim Demaille in
5967         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5968         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5969         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5970         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5971         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5972         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5974 2020-05-30  Bruno Haible  <bruno@clisp.org>
5976         wmemchr: Relicense under LGPLv2+.
5977         * modules/wmemchr (License): Set to LGPLv2+.
5979 2020-05-30  Bruno Haible  <bruno@clisp.org>
5981         wmempcpy: New module.
5982         Reported by Paul Eggert in
5983         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5984         * lib/wchar.in.h (wmempcpy): New declaration.
5985         * lib/wmempcpy.c: New file.
5986         * m4/wmempcpy.m4: New file.
5987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5989         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5990         HAVE_WMEMPCPY.
5991         * modules/wmempcpy: New file.
5992         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5993         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5994         * modules/mempcpy (Description): Fix typo.
5996 2020-05-30  Bruno Haible  <bruno@clisp.org>
5998         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5999         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
6001 2020-05-30  Bruno Haible  <bruno@clisp.org>
6003         sys_random: Work around macOS bug.
6004         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
6005         <stdlib.h> before <sys/random.h>.
6006         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
6007         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
6008         first.
6009         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
6011 2020-05-30  Bruno Haible  <bruno@clisp.org>
6013         getrandom: Override incompatible system function on Solaris 11.
6014         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
6015         * lib/getrandom.c (getrandom): When the system has getrandom, just
6016         invoke it.
6017         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
6018         system's getrandom function's prototype is not the expected one.
6019         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
6020         REPLACE_GETRANDOM.
6021         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
6022         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
6023         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
6024         EAGAIN.
6025         * doc/glibc-functions/getrandom.texi: Mention the new module and the
6026         Solaris problem.
6028 2020-05-30  Bruno Haible  <bruno@clisp.org>
6030         sys_random: Add C++ tests.
6031         * tests/test-sys_random-c++.cc: New file.
6032         * modules/sys_random-c++-tests: New file.
6033         * modules/sys_random-tests (Depends-on): Depend on it.
6035         sys_random: Add tests.
6036         * tests/test-sys_random.c: New file.
6037         * modules/sys_random-tests: New file.
6039         sys_random: New module.
6040         * lib/sys_random.in.h: Use the common idioms for overridable header
6041         files.
6042         * m4/sys_random_h.m4: New file.
6043         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
6044         * modules/sys_random: New file.
6045         * modules/getrandom (Files): Remove lib/sys_random.in.h.
6046         (Depends-on): Add sys_random.
6047         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
6048         gl_UNISTD_MODULE_INDICATOR.
6049         (Makefile.am): Don't generate sys/random.h here.
6050         * doc/glibc-headers/sys_random.texi: New file.
6051         * doc/gnulib.texi: Include it.
6053 2020-05-30  Bruno Haible  <bruno@clisp.org>
6055         unistd: Remove conflicting declaration of getrandom().
6056         * lib/unistd.in.h (getrandom): Remove declaration.
6057         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
6058         declared.
6059         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
6060         HAVE_GETRANDOM.
6061         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
6062         HAVE_GETRANDOM.
6064 2020-05-30  Bruno Haible  <bruno@clisp.org>
6066         getrandom: Add tests.
6067         * tests/test-getrandom.c: New file.
6068         * modules/getrandom-tests: New file.
6070 2020-05-30  Bruno Haible  <bruno@clisp.org>
6072         crypto/gc-random: Fix link error on MSVC.
6073         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
6074         * modules/crypto/gc-random (Link): New section.
6075         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
6076         $(LIB_GC_RANDOM).
6078 2020-05-30  Bruno Haible  <bruno@clisp.org>
6080         Don't assume that UNICODE is not defined.
6081         Many Windows API functions are defined differently (redirecting to a
6082         function with suffix 'W') if the application defines the macro UNICODE
6083         than by default (redirecting to a function with suffix 'A').
6084         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
6085         variant with suffix 'A'.
6086         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
6087         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
6088         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
6089         * lib/getlogin.c (GetUserName): Likewise.
6090         * lib/getlogin_r.c (GetUserName): Likewise.
6091         * lib/gettimeofday.c (LoadLibrary): Likewise.
6092         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
6093         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
6094         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
6095         * lib/mountlist.c (GetDriveType): Likewise.
6096         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
6097         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
6098         Likewise.
6099         * lib/physmem.c (GetModuleHandle): Likewise.
6100         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6101         PeekMessage, DispatchMessage): Likewise.
6102         * lib/progreloc.c (GetModuleFileName): Likewise.
6103         * lib/putenv.c (SetEnvironmentVariable): Likewise.
6104         * lib/read.c (GetNamedPipeHandleState): Likewise.
6105         * lib/readdir.c (FindNextFile): Likewise.
6106         * lib/relocatable.c (GetModuleFileName): Likewise.
6107         * lib/rename.c (MoveFileEx): Likewise.
6108         * lib/rewinddir.c (FindFirstFile): Likewise.
6109         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6110         PeekMessage, DispatchMessage): Likewise.
6111         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
6112         * lib/socket.c (WSASocket): Likewise.
6113         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
6114         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
6115         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
6116         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
6117         * lib/tmpdir.c (GetTempPath): Likewise.
6118         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
6119         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
6120         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
6121         * lib/windows-cond.c (CreateEvent): Likewise.
6122         * lib/windows-rwlock.c (CreateEvent): Likewise.
6123         * lib/windows-timedmutex.c (CreateEvent): Likewise.
6124         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
6125         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
6126         * lib/write.c (GetNamedPipeHandleState): Likewise.
6128 2020-05-30  Bruno Haible  <bruno@clisp.org>
6130         physmem: Fix compilation errors on MSVC.
6131         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
6132         * modules/physmem (Depends-on): Add unistd.
6134 2020-05-29  Bruno Haible  <bruno@clisp.org>
6136         gnulib-tool: Fix link errors with a particular set of modules on mingw.
6137         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
6138         LDADD a second time, after the second occurrence of libtests.a.
6139         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
6141 2020-05-29  Bruno Haible  <bruno@clisp.org>
6143         fnmatch: Rely on more gnulib modules.
6144         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
6145         wmempcpy, mempcpy.
6146         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
6147         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
6148         HAVE_MEMPCPY are all 1.
6149         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
6150         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
6152 2020-05-29  Bruno Haible  <bruno@clisp.org>
6154         Avoid dynamic lookup of Windows API functions when possible.
6155         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
6156         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
6157         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
6158         (use_win32_p): Define differently.
6159         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
6160         CreateHardLinkFunc, initialized, initialize): Don't define in a build
6161         for Windows XP or higher.
6163 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6165         read-file: disable buffering if RF_SENSITIVE is set
6166         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
6167         Suggested by Glenn Strauss.
6168         (fread_file): Suggest calling setvbuf before calling this
6169         function.  Suggested by Bruno Haible.
6171 2020-05-29  Bruno Haible  <bruno@clisp.org>
6173         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6174         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6175         program.
6176         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
6177         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
6178         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
6179         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
6181 2020-05-29  Bruno Haible  <bruno@clisp.org>
6183         Fix compilation error on native Windows (regression from 2020-05-28).
6184         Reported by Daiki Ueno.
6185         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
6186         macro when not using dynamic loading.
6187         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
6188         QueryFullProcessImageNameFunc): Likewise.
6189         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
6190         GetFinalPathNameByHandleFunc): Likewise.
6192 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6194         fopen-gnu-tests: fix "\x" escape usage
6195         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
6197 2020-05-28  Bruno Haible  <bruno@clisp.org>
6199         Avoid dynamic loading of Windows API functions when possible.
6200         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6201         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
6202         * lib/gettimeofday.c (GetProcAddress,
6203         GetSystemTimePreciseAsFileTimeFuncType,
6204         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
6205         define in a build for Windows 8 or higher.
6206         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
6207         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
6208         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
6209         in a build for Windows Vista or higher.
6210         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
6211         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
6212         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
6214 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
6216         explicit_bzero-tests: improve -Wmissing-declarations pacification
6217         * tests/test-explicit_bzero.c: Now noinline.
6218         Suggested by Bruno Haible in:
6219         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
6221 2020-05-28  Bruno Haible  <bruno@clisp.org>
6223         Fix build errors due to read-file changes (regression from 2020-05-27).
6224         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
6225         invocation.
6226         * tests/test-sameacls.c (main): Likewise.
6227         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
6228         read_binary_file.
6229         * tests/test-pipe-filter-ii1.c (main): Likewise.
6231 2020-05-28  Bruno Haible  <bruno@clisp.org>
6233         fts: Make more robust in multithreaded applications.
6234         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
6235         * modules/fts (Depends-on): Add 'open'.
6237 2020-05-28  Bruno Haible  <bruno@clisp.org>
6239         relocatable-prog: Make more robust in multithreaded applications.
6240         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
6241         relocatable-prog-wrapper.
6242         (find_executable): Pass an O_CLOEXEC flag to open().
6243         * modules/relocatable-prog (Depends-on): Add 'open'.
6245 2020-05-28  Bruno Haible  <bruno@clisp.org>
6247         getloadavg: Make more robust in multithreaded applications.
6248         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
6249         Simplify use of O_CLOEXEC.
6250         * modules/getloadavg (Depends-on): Add 'open'.
6252 2020-05-28  Bruno Haible  <bruno@clisp.org>
6254         vma-iter: Make more robust in multithreaded applications.
6255         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
6256         open().
6257         * modules/vma-iter (Depends-on): Add 'open'.
6259 2020-05-28  Bruno Haible  <bruno@clisp.org>
6261         truncate: Make more robust in multithreaded applications.
6262         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
6264 2020-05-28  Bruno Haible  <bruno@clisp.org>
6266         pagealign_alloc: Make more robust in multithreaded applications.
6267         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
6268         open().
6269         * modules/pagealign_alloc (Depends-on): Add 'open'.
6271 2020-05-28  Bruno Haible  <bruno@clisp.org>
6273         openat: Make more robust in multithreaded applications.
6274         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
6276 2020-05-28  Bruno Haible  <bruno@clisp.org>
6278         at-internal: Make more robust in multithreaded applications.
6279         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
6280         open().
6282 2020-05-28  Bruno Haible  <bruno@clisp.org>
6284         mountlist: Make more robust in multithreaded applications.
6285         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
6286         open().
6287         * modules/mountlist (Depends-on): Add 'open'.
6289 2020-05-28  Bruno Haible  <bruno@clisp.org>
6291         login_tty: Make more robust in multithreaded applications.
6292         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
6293         * modules/login_tty (Depends-on): Add 'open'.
6295 2020-05-28  Bruno Haible  <bruno@clisp.org>
6297         javacomp: Make more robust in multithreaded applications.
6298         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
6299         open().
6300         * modules/javacomp (Depends-on): Add 'open'.
6302 2020-05-28  Bruno Haible  <bruno@clisp.org>
6304         getprogname: Make more robust in multithreaded applications.
6305         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
6306         * modules/getprogname (Depends-on): Add 'open'.
6308 2020-05-28  Bruno Haible  <bruno@clisp.org>
6310         get_progname_of: Make more robust in multithreaded applications.
6311         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
6312         open().
6313         * modules/get_progname_of (Depends-on): Add 'open'.
6315 2020-05-28  Bruno Haible  <bruno@clisp.org>
6317         get_ppid_of: Make more robust in multithreaded applications.
6318         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
6319         * modules/get_ppid_of (Depends-on): Add 'open'.
6321 2020-05-28  Bruno Haible  <bruno@clisp.org>
6323         get-rusage-as: Make more robust in multithreaded applications.
6324         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
6325         flag to open().
6326         * modules/get-rusage-as (Depends-on): Add 'open'.
6328 2020-05-28  Bruno Haible  <bruno@clisp.org>
6330         crypto/gc: Make more robust in multithreaded applications.
6331         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
6332         * modules/crypto/gc (Depends-on): Add 'open'.
6334 2020-05-28  Bruno Haible  <bruno@clisp.org>
6336         copy-file: Make more robust in multithreaded applications.
6337         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
6338         open().
6340 2020-05-28  Bruno Haible  <bruno@clisp.org>
6342         chown: Make more robust in multithreaded applications.
6343         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6345 2020-05-28  Bruno Haible  <bruno@clisp.org>
6347         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6348         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6350 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6352         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6353         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6354         specified on Windows.
6355         * tests/test-fopen-gnu.c (DATA): New define.
6356         (main): Add test for reading binary files with an 'e' flag.
6358 2020-05-27  Bruno Haible  <bruno@clisp.org>
6360         Don't assume that UNICODE is not defined.
6361         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6362         differently if the application defines the macro UNICODE.
6363         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6364         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6365         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6366         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6367         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6369 2020-05-27  Bruno Haible  <bruno@clisp.org>
6371         Improve pattern for defining _WIN32_WINNT.
6372         Newer versions of the Windows API may not only add, but also remove API
6373         functions. Therefore, when the user is e.g. building for Windows 10, we
6374         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6375         use of APIs that were present in Windows 8 but removed in Windows 10.
6376         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6377         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6378         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6379         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6380         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6382 2020-05-27  Bruno Haible  <bruno@clisp.org>
6384         javacomp: Make more robust in multithreaded applications.
6385         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6386         * modules/javacomp (Depends-on): Add fopen-gnu.
6388 2020-05-27  Bruno Haible  <bruno@clisp.org>
6390         mountlist: Make more robust in multithreaded applications.
6391         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6392         to fopen.
6393         * modules/mountlist (Depends-on): Add fopen-gnu.
6395 2020-05-27  Bruno Haible  <bruno@clisp.org>
6397         sethostname: Make more robust in multithreaded applications.
6398         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6399         * modules/sethostname (Depends-on): Add fopen-gnu.
6401 2020-05-27  Bruno Haible  <bruno@clisp.org>
6403         readutmp: Make more robust in multithreaded applications.
6404         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6405         * modules/readutmp (Depends-on): Add fopen-gnu.
6407 2020-05-27  Bruno Haible  <bruno@clisp.org>
6409         getpass: Make more robust in multithreaded applications.
6410         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6411         * modules/getpass (Depends-on): Add fopen-gnu.
6413 2020-05-27  Bruno Haible  <bruno@clisp.org>
6415         getloadavg: Make more robust in multithreaded applications.
6416         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6417         * modules/getloadavg (Depends-on): Add fopen-gnu.
6419 2020-05-27  Bruno Haible  <bruno@clisp.org>
6421         exclude: Make more robust in multithreaded applications.
6422         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6423         * modules/exclude (Depends-on): Add fopen-gnu.
6425 2020-05-27  Bruno Haible  <bruno@clisp.org>
6427         bitset: Make more robust in multithreaded applications.
6428         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6429         'e' flag to fopen.
6430         * modules/bitset (Depends-on): Add fopen-gnu.
6432 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6434         read-file: add RF_SENSITIVE flag
6435         * lib/read-file.h (RF_SENSITIVE): New define.
6436         * lib/read-file.c (fread_file, read_file): Take into account of
6437         RF_SENSITIVE flag.
6438         * modules/read-file (Depends-on): Add explicit_bzero.
6439         This adds an alternative behavior of those functions to explicitly
6440         clear the internal memory block when it becomes unused.  This is
6441         useful for reading sensitive information from a file.
6443 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6445         read-file: add flags to modify reading behavior
6446         * lib/read-file.h (RF_BINARY): New define.
6447         (fread_file, read_file): Take FLAGS argument.
6448         (read_binary_file): Remove.
6449         * lib/read-file.c (internal_read_file): Merge into ...
6450         (read_file): ... here.
6451         * modules/read-file-tests (Files): Add "tests/macros.h".
6452         * tests/test-read-file.c (main): Refactor using ASSERT macro.
6453         * NEWS: Mention this change.
6455 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
6457         doc/gnulib-intro.texi: add missing "to" in sentence
6458         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6459         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
6460         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
6462 2020-05-26  Bruno Haible  <bruno@clisp.org>
6464         count-one-bits: Fix MSVC specific code.
6465         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6466         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
6467         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
6468         using GCC.
6469         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
6470         (__popcnt64): In 32-bit mode, define as an inline function.
6471         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
6473 2020-05-26  Bruno Haible  <bruno@clisp.org>
6475         argz: Avoid name clashes through argz.h.
6476         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6477         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
6478         * lib/argz.h: Don't use __ prefixed identifiers.
6479         (const): Remove definition.
6480         (argz_next): Remove inline definitions.
6482 2020-05-26  Daiki Ueno  <ueno@gnu.org>
6484         read-file: make use of fopen-gnu
6485         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
6486         (read_binary_file): Likewise.
6487         * modules/read-file (Depends-on): Add fopen-gnu.
6489 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6491         getentropy, getrandom: new modules
6492         * MODULES.html.sh (func_all_modules):
6493         * lib/unistd.in.h (getentropy, getrandom):
6494         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
6495         * modules/unistd (unistd.h):
6496         Add support for getentropy, getrandom.
6497         * doc/glibc-functions/getentropy.texi (getentropy):
6498         * doc/glibc-functions/getrandom.texi (getrandom):
6499         These are now fixed on some platforms.
6500         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
6501         * m4/getentropy.m4, m4/getrandom.m4:
6502         * modules/getentropy, modules/getentropy-tests:
6503         * modules/getrandom, modules/getrandom-tests:
6504         * tests/test-getentropy.c, tests/test-getrandom.c:
6505         New files.
6507 2020-05-25  Bruno Haible  <bruno@clisp.org>
6509         Add missing C99 dependencies.
6510         Reported by Paul Smith <psmith@gnu.org> in
6511         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
6512         * modules/assert (Depends-on): Add c99.
6513         * modules/filenamecat-lgpl (Depends-on): Likewise.
6514         * modules/libc-config (Depends-on): Likewise.
6515         * modules/mktime (Depends-on): Likewise.
6516         * modules/random_r (Depends-on): Likewise.
6517         * modules/regex (Depends-on): Likewise.
6518         * modules/scratch_buffer (Depends-on): Likewise.
6519         * modules/timespec-add (Depends-on): Likewise.
6520         * modules/timespec-sub (Depends-on): Likewise.
6521         * modules/verify (Depends-on): Likewise.
6523 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6525         explicit_bzero-tests: pacify -Wmissing-declarations
6526         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
6527         Now static.
6529 2020-05-24  Bruno Haible  <bruno@clisp.org>
6531         fopen-gnu: Add tests.
6532         * tests/test-fopen-gnu.c: New file.
6533         * modules/fopen-gnu-tests: New file.
6535         fopen-gnu: New module.
6536         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
6537         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
6538         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
6539         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
6540         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
6541         * modules/fopen-gnu: New file.
6542         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
6544 2020-05-24  Bruno Haible  <bruno@clisp.org>
6546         open, openat: Really support O_CLOEXEC.
6547         * lib/open.c (open): When have_cloexec is still undecided, do pass a
6548         O_CLOEXEC flag to orig_open.
6549         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
6550         pass a O_CLOEXEC flag to orig_openat.
6551         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
6552         * modules/open-tests (Depends-on): Add fcntl.
6553         * modules/openat-tests (Depends-on): Likewise.
6554         * modules/fcntl-safer-tests (Depends-on): Likewise.
6556 2020-05-24  Bruno Haible  <bruno@clisp.org>
6558         fopen: Fix the trailing slash workaround.
6559         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
6560         write access. Pass the right flags to open().
6561         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
6563 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6565         assure: new macro ‘affirm’
6566         * lib/assure.h: Include verify.h.
6567         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
6568         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
6569         and commentary by Bruno Haible in:
6570         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
6571         * modules/assure (Depends-on:): Add verify.
6573 2020-05-23  Bruno Haible  <bruno@clisp.org>
6575         calloc-gnu: Make test work in non-flat address spaces.
6576         Uses code by Paul Eggert.
6577         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
6578         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
6580 2020-05-23  Bruno Haible  <bruno@clisp.org>
6582         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
6583         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
6584         AC_RUN_IFELSE invocations.
6586 2020-05-23  Bruno Haible  <bruno@clisp.org>
6588         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6589         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6590         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6591         don't have it.
6592         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6593         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6594         don't have it.
6595         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6596         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6597         it.
6598         * lib/isnanl-nolibm.h (__has_builtin): New macro.
6599         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6600         it.
6601         * lib/math.in.h (__has_builtin): New macro.
6602         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6603         it.
6604         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6605         it.
6606         (isnan): Don't use the builtins on clang versions that don't have
6607         __builtin_isnanf and __builtin_isnanl.
6609 2020-05-23  Bruno Haible  <bruno@clisp.org>
6611         calloc-gnu: Avoid wrong configure results with clang.
6612         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
6613         'volatile', to defeat compiler optimizations.
6615 2020-05-23  Bruno Haible  <bruno@clisp.org>
6617         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
6618         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
6619         'long double' values by reference, with values taken from a statically
6620         allocated array.
6622 2020-05-23  Bruno Haible  <bruno@clisp.org>
6624         findprog-in: Ignore directories.
6625         Reported by Frederick Eaton via Dmitry Goncharov in
6626         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6627         * lib/findprog-in.c (find_in_given_path): When the file found is a
6628         directory, set errno to EACCES and, during a PATH search, continue
6629         searching.
6630         * modules/findprog-in (Depends-on): Add sys_stat, stat.
6632 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6634         verify: document ‘assume’ better
6635         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
6637 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
6639         gendocs: Clarify licenses for templates.
6640         * doc/gendocs_template: Add a GNU All-Permissive license notice
6641         and bump Parent-Version.
6642         * doc/gendocs_template_min: Add a GNU All-Permissive license
6643         notice and copy the explanatory comment about the license notice
6644         at the bottom from gendocs_template.
6646 2020-05-21  Bruno Haible  <bruno@clisp.org>
6648         group-member: Relicense under LGPLv2+.
6649         Jim Meyering's approval is in
6650         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
6651         Paul Eggert's approval is in
6652         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
6653         Eric Blake's approval is in
6654         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
6655         * modules/group-member (License): Change to LGPLv2+.
6657 2020-05-21  Bruno Haible  <bruno@clisp.org>
6659         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
6660         Reported by Tim Rühsen in
6661         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6662         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6664 2020-05-21  Bruno Haible  <bruno@clisp.org>
6666         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6667         Reported by Tim Rühsen in
6668         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6669         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6670         before returning with status 0.
6672 2020-05-21  Bruno Haible  <bruno@clisp.org>
6674         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6675         Reported by Tim Rühsen in
6676         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6677         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6679 2020-05-21  Bruno Haible  <bruno@clisp.org>
6681         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6682         Reported by Tim Rühsen in
6683         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6684         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6685         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6686         respectively.
6688 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6690         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6693 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6695         ftoastr: fix ifndef typo
6696         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6698 2020-05-19  Bruno Haible  <bruno@clisp.org>
6700         havelib: Tweak documentation.
6701         * doc/havelib.texi (Searching for Libraries): Fix typo.
6703 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6705         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6706         This was needed earlier because modules had to import the main script,
6707         but that is no longer true.  Rename the script so that it is
6708         consistent with all other scripts in gnulib and uses hyphens.
6709         * build-aux/vcs_to_changelog.py: Rename to...
6710         * build-aux/vcs-to-changelog.py: ... this.
6711         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6712         * modules/vcs-to-changelog: Likewise.
6714 2020-05-17  Bruno Haible  <bruno@clisp.org>
6716         Clarify intended usage of the license file modules.
6717         Reported by Asher Gordon <AsDaGo@posteo.net> in
6718         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6719         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6720         GNU AGPL. Explain the intended usage of the modules.
6721         * modules/fdl (Notice): Discourage use as a module.
6722         * modules/fdl-1.3 (Notice): Likewise.
6724 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6726         hash: add hash_xinsert
6727         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6729 2020-05-16  Bruno Haible  <bruno@clisp.org>
6731         findprog-lgpl: Fix link error (existing since 2008-09-02).
6732         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6733         findprog-lgpl.c, not findprog.c.
6734         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6735         XNMALLOC.
6737 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6739         c-stack: pacify -Wunused-result when DEBUG
6740         Problem reported by Marc Nieper-Wißkirchen in:
6741         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6742         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6743         Explicitly ignore write failures.
6745 2020-05-13  Jim Meyering  <meyering@fb.com>
6747         announce-gen: improve a comment
6748         * build-aux/announce-gen: Improve comment.
6750 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6752         xalloc: pacify -Wanalyzer-possible-null-argument
6753         Problem reported for GCC 10.1.0 by Bruno Haible in:
6754         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6755         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6756         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6757         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6759 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6761         careadlinkat: fix GCC 10 workaround
6762         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6763         Massage the code so that it’s closer to what it was before
6764         the GCC 10.1.0 workaround was introduced.  This fixes
6765         a loop when !buffer and the bug workaround is in effect.
6766         Remove unnecessary casts.  Defend in a different way
6767         against (buffer && !buffer_size), by adding at least 1
6768         to buf_size each time through the loop.
6770 2020-05-10  Bruno Haible  <bruno@clisp.org>
6772         doc: Mark HP-UX as unsupported.
6773         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6775 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6777         careadlinkat: limit GCC workaround
6778         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6779         10.1.0 and later, since the workaround is pretty bad and the GCC
6780         bug should get fixed.
6782 2020-05-10  Bruno Haible  <bruno@clisp.org>
6784         havelib: Enhance documentation.
6785         * doc/havelib.texi (Searching for Libraries): Mention the bad
6786         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6788 2020-05-10  Bruno Haible  <bruno@clisp.org>
6790         attribute: Clarify list of attributes.
6791         * lib/attribute.h: Reorder the list of attributes, and group them by
6792         purpose.
6794 2020-05-10  Bruno Haible  <bruno@clisp.org>
6796         string: Fix compilation error in C++ mode.
6797         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6798         _GL_WARN_ON_USE.
6799         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6800         instead of _GL_WARN_ON_USE.
6802 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6804         announce-gen: add support for dist-lzip
6805         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6807 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6809         manywarnings: port to GCC 10.1
6810         * build-aux/gcc-warning.spec:
6811         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6812         Add GCC 10.1.0 warnings.
6814         careadlinkat: pacify -Wreturn-local-addr
6815         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6816         Pacify gcc 10’s -Wreturn-local-addr option.
6817         Simplify some of the later code.
6819 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6821         attribute: remove ATTRIBUTE_DEPRECATED
6822         * lib/attribute.h: Improve recently-added comments, mostly
6823         by shortening them (use active voice, etc.).
6824         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6825         Problem reported by Bruno Haible in:
6826         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6828 2020-05-09  Bruno Haible  <bruno@clisp.org>
6830         attribute: Add comments.
6831         * lib/attribute.h: Document each macro.
6833 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6835         bitset: use the attribute module
6836         * modules/bitset: Depend on 'attribute'.
6837         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6838         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6839         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6840         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6842 2020-05-09  Bruno Haible  <bruno@clisp.org>
6844         c-stack: Fix warning when DEBUG is enabled.
6845         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6846         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6847         * lib/c-stack.c: Include <stdio.h>.
6849 2020-05-09  Bruno Haible  <bruno@clisp.org>
6851         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6852         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6853         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6854         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6855         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6856         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6857         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6858         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6859         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6860         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6861         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6862         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6863         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6865 2020-05-09  Bruno Haible  <bruno@clisp.org>
6867         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6868         Reported by Akim Demaille in
6869         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6870         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6871         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6872         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6874 2020-05-09  Bruno Haible  <bruno@clisp.org>
6876         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6877         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6878         that usually comes from m4/gnulib-common.m4.
6879         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6881 2020-05-09  Bruno Haible  <bruno@clisp.org>
6883         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6884         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6885         that usually comes from m4/gnulib-common.m4.
6886         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6887         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6888         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6890 2020-05-09  Bruno Haible  <bruno@clisp.org>
6892         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6893         * lib/uchar.in.h (char16_t): Define as macro if
6894         GNULIB_OVERRIDES_CHAR16_T.
6895         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6896         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6897         (gl_UCHAR_H): Invoke them.
6898         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6899         GNULIB_OVERRIDES_CHAR32_T.
6900         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6901         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6902         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6903         GNULIB_OVERRIDES_CHAR32_T.
6905 2020-05-09  Bruno Haible  <bruno@clisp.org>
6907         Macro tweaks.
6908         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6909         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6911 2020-05-08  Bruno Haible  <bruno@clisp.org>
6913         c32rtomb: Avoid compilation failure on Haiku.
6914         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6915         inline definitions.
6916         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6918 2020-05-08  Bruno Haible  <bruno@clisp.org>
6920         mbrtoc32: Avoid compilation failure on Haiku.
6921         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6922         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6923         AC_CHECK_FUNCS_ONCE.
6924         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6926 2020-05-08  Bruno Haible  <bruno@clisp.org>
6928         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6929         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6931 2020-05-08  Bruno Haible  <bruno@clisp.org>
6933         list: Update documentation.
6934         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6935         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6936         * doc/containers.texi (Container data types): Document the new list
6937         operations and their complexity.
6939 2020-05-08  Bruno Haible  <bruno@clisp.org>
6941         ignore-value tests: Use module 'attribute'.
6942         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6943         * tests/test-ignore-value.c: Include attribute.h.
6944         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6945         * modules/ignore-value-tests (Depends-on): Add attribute.
6947 2020-05-08  Bruno Haible  <bruno@clisp.org>
6949         uniname/uniname: Use module 'attribute'.
6950         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6951         * lib/uniname/uninames.h: Regenerated.
6952         * lib/uniname/uniname.c: Include attribute.h.
6953         * modules/uniname/uniname (Depends-on): Add attribute.
6955 2020-05-08  Bruno Haible  <bruno@clisp.org>
6957         c32rtomb: Use module 'attribute'.
6958         * lib/c32rtomb.c: Include attribute.h.
6959         (FALLTHROUGH): Remove macro.
6960         * modules/c32rtomb (Depends-on): Add attribute.
6962 2020-05-08  Bruno Haible  <bruno@clisp.org>
6964         xsize: Use module 'attribute'.
6965         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6966         * modules/xsize (Depends-on): Add attribute.
6968 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6970         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6972         * lib/attribute.h: Minor style fixes.
6974         Fix version-etc glitch on OpenIndiana
6975         Problem reported by Mats Erik Andersson in:
6976         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6977         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6978         that now clashes with gnulib-common.h.  All uses changed.
6980 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6982         attribute: new module
6983         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6984         * MODULES.html.sh: Add attribute.
6985         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6986         * doc/gnulib.texi (Particular Modules): Add Attributes.
6987         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6988         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6989         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6990         * lib/vasnprintf.c:
6991         Include attribute.h, and let it define FALLTHROUGH.
6992         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6993         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6994         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6995         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6996         This is a copy since Gawk doesn’t use Gnulib.
6997         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6998         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6999         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
7000         Keep the existing FALLTHROUGH definition since Glibc might use it,
7001         and it does no harm to Gnulib’s FALLTHROUGH.
7002         * lib/fts_.h, lib/inttostr.h:
7003         (__GNUC_PREREQ): Remove; no longer needed.
7004         (__attribute_warn_unused_result__): Remove.  All uses
7005         replaced by _GL_ATTRIBUTE_NODISCARD.
7006         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
7007         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
7008         __attribute__ ((__warn_unused_result__)), for forward
7009         compatibility to C2X.
7010         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
7011         _GL_ATTRIBUTE_NODISCARD.
7012         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
7013         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
7014         replaced by gl_COMMON_BODY’s implementation, which has a
7015         slightly different signature.
7016         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
7017         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
7018         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
7019         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
7020         No doubt all uses should be replaced, at some point.
7021         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
7022         (_Noreturn): Use it.
7023         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
7024         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
7025         (_GL_ATTRIBUTE_COLD)
7026         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
7027         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
7028         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
7029         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
7030         (_GL_ATTRIBUTE_MAYBE_UNUSED)
7031         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
7032         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
7033         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
7034         (_GL_ATTRIBUTE_RETURNS_NONNULL)
7035         (_GL_ATTRIBUTE_SENTINEL): New macros.
7036         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
7037         * modules/fnmatch, modules/freopen-safer, modules/fts:
7038         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
7039         * modules/quotearg, modules/savewd:
7040         * modules/unistdio/u16-u16-vasnprintf:
7041         * modules/unistdio/u16-vasnprintf:
7042         * modules/unistdio/u32-u32-vasnprintf:
7043         * modules/unistdio/u32-vasnprintf:
7044         * modules/unistdio/u8-u8-vasnprintf:
7045         * modules/unistdio/u8-vasnprintf:
7046         * modules/unistdio/ulc-vasnprintf:
7047         * modules/unistr/u8-uctomb, modules/vasnprintf:
7048         (Depends-on:): Add attribute module.
7050 2020-05-03  Bruno Haible  <bruno@clisp.org>
7052         bison: Fix today's commit.
7053         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
7055 2020-05-03  Bruno Haible  <bruno@clisp.org>
7057         list-c++: Add get_first, get_last, set_first, set_last operations.
7058         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
7059         set_first, set_last.
7060         * lib/gl_list.h: Tweak comments.
7062 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
7064         bison: rely on bison's %require to check a version requirement
7065         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
7066         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
7067         enough of not.
7068         So far it is the only know Yacc tool that supports '%require'.
7069         Other yaccs will actually even choke on seeing the -o option after the
7070         input file name.
7071         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
7073 2020-05-02  Bruno Haible  <bruno@clisp.org>
7075         list: Add get_first, get_last, set_first, set_last operations.
7076         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
7077         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
7078         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
7080 2020-05-02  Bruno Haible  <bruno@clisp.org>
7082         list: Remove redundant code for remove_first and remove_last operations.
7083         * lib/gl_list.h (struct gl_list_implementation): Remove fields
7084         remove_first, remove_last.
7085         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
7086         * lib/gl_array_list.c: Revert last change.
7087         * lib/gl_carray_list.c: Likewise.
7088         * lib/gl_anylinked_list2.h: Likewise.
7089         * lib/gl_linked_list.c: Likewise.
7090         * lib/gl_linkedhash_list.c: Likewise.
7091         * lib/gl_anytree_list2.h: Likewise.
7092         * lib/gl_avltree_list.c: Likewise.
7093         * lib/gl_avltreehash_list.c: Likewise.
7094         * lib/gl_rbtree_list.c: Likewise.
7095         * lib/gl_rbtreehash_list.c: Likewise.
7096         * lib/gl_sublist.c: Likewise.
7098 2020-05-02  Bruno Haible  <bruno@clisp.org>
7100         bison-i18n: Add support for cross-compilation.
7101         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
7102         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
7103         via Akim Demaille <akim@lrde.epita.fr>.
7104         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
7105         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
7106         Don't use bison's --print-localedir option when cross-compiling.
7107         Also, fix an error message and a comment.
7109 2020-05-01  Bruno Haible  <bruno@clisp.org>
7111         list: Add remove_first and remove_last operations.
7112         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7113         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
7114         * lib/gl_list.h (struct gl_list_implementation): Add fields
7115         remove_first, remove_last.
7116         (gl_list_remove_first, gl_list_remove_last): New functions.
7117         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
7118         functions, based on gl_array_remove_at.
7119         (gl_array_list_implementation): Implement the new operations.
7120         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
7121         New functions, based on gl_carray_remove_at.
7122         (gl_carray_list_implementation): Implement the new operations.
7123         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
7124         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
7125         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
7126         new operations.
7127         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
7128         Likewise.
7129         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
7130         New functions, based on gl_tree_remove_at.
7131         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
7132         new operations.
7133         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7134         Likewise.
7135         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
7136         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
7137         Likewise.
7138         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
7139         New functions, based on gl_sublist_remove_at.
7140         (gl_sublist_list_implementation): Implement the new operations.
7141         * lib/gl_list.hh (class gl_List): Add methods remove_first,
7142         remove_last.
7143         * tests/test-array_list.c (main): Test also gl_list_remove_first and
7144         gl_list_remove_last.
7145         * tests/test-avltree_list.c (main): Likewise.
7146         * tests/test-avltreehash_list.c (main): Likewise.
7147         * tests/test-carray_list.c (main): Likewise.
7148         * tests/test-linked_list.c (main): Likewise.
7149         * tests/test-linkedhash_list.c (main): Likewise.
7150         * tests/test-rbtree_list.c (main): Likewise.
7151         * tests/test-rbtreehash_list.c (main): Likewise.
7153 2020-05-01  Bruno Haible  <bruno@clisp.org>
7155         parse-datetime: Fix a build failure with an older bison version.
7156         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
7157         parse-datetime.tab.c if a suitable version of bison was not found.
7159 2020-05-01  Bruno Haible  <bruno@clisp.org>
7161         bison: New module.
7162         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
7163         m4/parse-datetime.m4.
7164         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
7165         * modules/bison: New file.
7166         * modules/parse-datetime (Files): Remove m4/bison.m4.
7167         (Depends-on): Add bison.
7169 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
7171         Update users.txt.
7172         * users.txt: Add poke.
7174 2020-04-28  Bruno Haible  <bruno@clisp.org>
7176         posix_spawn_file_actions_addfchdir tests: Enhance test.
7177         * tests/test-posix_spawn5.c: Include findprog.h.
7178         (test): New function, extracted from main.
7179         (main): Invoke it. Also, invoke it with a program name such as
7180         "bin/pwd".
7181         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
7182         findprog.
7184 2020-04-28  Bruno Haible  <bruno@clisp.org>
7186         posix_spawn_file_actions_addchdir tests: Enhance test.
7187         * tests/test-posix_spawn4.c: Include findprog.h.
7188         (test): New function, extracted from main.
7189         (main): Invoke it. Also, invoke it with a program name such as
7190         "bin/pwd".
7191         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
7192         findprog.
7194 2020-04-28  Bruno Haible  <bruno@clisp.org>
7196         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
7197         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
7198         access elements of the wrong union member.
7200 2020-04-27  Bruno Haible  <bruno@clisp.org>
7202         getdate: Remove deprecated module.
7203         * modules/getdate: Remove file.
7204         * doc/getdate.texi: Remove file.
7205         * lib/getdate.h: Remove file.
7206         * NEWS: Mention the removal.
7208 2020-04-27  Bruno Haible  <bruno@clisp.org>
7210         realloc: Remove deprecated module.
7211         * modules/realloc: Remove file.
7212         * NEWS: Mention the removal.
7214 2020-04-27  Bruno Haible  <bruno@clisp.org>
7216         calloc: Remove deprecated module.
7217         * modules/calloc: Remove file.
7218         * NEWS: Mention the removal.
7220 2020-04-27  Bruno Haible  <bruno@clisp.org>
7222         malloc: Remove deprecated module.
7223         * modules/malloc: Remove file.
7224         * NEWS: Mention the removal.
7226 2020-04-27  Bruno Haible  <bruno@clisp.org>
7228         fnmatch-posix: Remove deprecated module.
7229         * modules/fnmatch-posix: Remove file.
7230         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
7231         * NEWS: Mention the removal.
7233 2020-04-27  Bruno Haible  <bruno@clisp.org>
7235         pipe: Remove deprecated module.
7236         * modules/pipe: Remove file.
7237         * lib/pipe.h: Remove file.
7238         * NEWS: Mention the removal.
7240 2020-04-27  Bruno Haible  <bruno@clisp.org>
7242         getopt: Remove deprecated module.
7243         * modules/getopt: Remove file.
7244         * NEWS: Mention the removal.
7246 2020-04-27  Bruno Haible  <bruno@clisp.org>
7248         remove-dest-slash: Remove deprecated module.
7249         * modules/rename-dest-slash: Remove file.
7250         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
7251         Update.
7252         * NEWS: Mention the removal.
7254 2020-04-27  Bruno Haible  <bruno@clisp.org>
7256         unictype/bidicategory-*: Remove deprecated modules.
7257         * modules/unictype/bidicategory-all: Remove file.
7258         * modules/unictype/bidicategory-byname: Remove file.
7259         * modules/unictype/bidicategory-name: Remove file.
7260         * modules/unictype/bidicategory-of: Remove file.
7261         * modules/unictype/bidicategory-test: Remove file.
7262         * MODULES.html.sh (Unicode string functions): Update.
7263         * NEWS: Mention the removals.
7265 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7267         Tune fts for FTS_LOGICAL+FTS_NOSTAT
7268         From a suggestion by Askar Safin in:
7269         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
7270         * lib/fts.c (fts_build): If file types are known, optimize
7271         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
7272         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
7273         non-directories.
7275 2020-04-19  Bruno Haible  <bruno@clisp.org>
7277         vasnprintf: Add support for printing wide characters using escapes.
7278         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
7279         (wctomb_fallback): New function.
7280         (local_wctomb): New function.
7281         (local_wcrtomb): New function or macro.
7282         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
7283         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
7284         %lc.
7286 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7288         fts: remove NOSTAT_LEAF_OPTIMIZATION
7289         It caused ‘find’ and ‘du’ to dump core, and it was useful
7290         only for obsolescent Linux filesystems anyway.  Problem reported in:
7291         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
7292         Quite possibly there is still a serious underlying fts bug with
7293         tight-loop-check and mutating file systems, but if so this patch
7294         should cause the bug to be triggered less often.
7295         * lib/fts.c (enum leaf_optimization): Remove
7296         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
7297         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
7298         (leaf_optimization): Remove special cases for ReiserFS and XFS.
7299         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
7300         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
7301         Remove.  All uses removed.
7303 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7305         explicit_bzero: Improve code style.
7306         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
7308 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7310         explicit_bzero: On native Windows, use SecureZeroMemory().
7311         * lib/explicit_bzero.c: Include <windows.h>.
7312         (explicit_bzero): On native Windows, use SecureZeroMemory.
7314 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7316         explicit_bzero: Use memset_s() when available.
7317         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
7318         (explicit_bzero): Use memset_s when available.
7319         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
7321 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7323         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
7324         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
7325         free() that overwrite the memory with canaries.
7327 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
7329         bootstrap: recommend git submodule update --init
7330         Reported by Bruno Haible.
7331         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
7332         * build-aux/bootstrap: recommand "git submodule update --init"
7333         rather than "git submodule init".
7335 2020-04-12  Bruno Haible  <bruno@clisp.org>
7337         explicit_bzero: Add tests.
7338         * tests/test-explicit_bzero.c: New file.
7339         * modules/explicit_bzero-tests: New file.
7341 2020-04-11  Bruno Haible  <bruno@clisp.org>
7343         explicit_bzero: Relicense under LGPLv2+.
7344         Approved by Paul Eggert.
7345         * modules/explicit_bzero (License): Change to LGPLv2+.
7347 2020-04-10  Bruno Haible  <bruno@clisp.org>
7349         findprog, relocatable-prog: Ignore directories during PATH search.
7350         Reported by Frederick Eaton via Dmitry Goncharov in
7351         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7353         * lib/findprog.c (find_in_path): When the file found in a PATH element
7354         is a directory, continue searching.
7355         * modules/findprog (Depends-on): Add sys_stat, stat.
7356         * modules/findprog-lgpl (Depends-on): Likewise.
7358         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7359         element is a directory, continue searching.
7360         * lib/relocwrapper.c: Update comments.
7361         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7362         (configure.ac-early): New section.
7364 2020-04-10  Bruno Haible  <bruno@clisp.org>
7366         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7367         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7368         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7369         * MODULES.html.sh: In a git-less tarball, use the date of the first
7370         ChangeLog entry.
7372 2020-04-04  Bruno Haible  <bruno@clisp.org>
7374         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7375         * m4/gettext.m4: Fix comments regarding the gettext library.
7376         * m4/intl-thread-locale.m4: Likewise.
7377         * m4/intlmacosx.m4: Likewise.
7378         * m4/lcmessage.m4: Likewise.
7379         * m4/nls.m4: Likewise.
7380         * m4/po.m4: Likewise.
7381         * m4/progtest.m4: Likewise.
7383 2020-04-04  Jim Meyering  <meyering@fb.com>
7385         maint: remove a stray inter-word space in a 6x-repeated comment
7386         Induce the changes by running this:
7387           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7388         * build-aux/announce-gen: Change "by  perl" to "by perl".
7389         * build-aux/gitlog-to-changelog: Likewise.
7390         * build-aux/prefix-gnulib-mk: Likewise.
7391         * build-aux/update-copyright: Likewise.
7392         * build-aux/useless-if-before-free: Likewise.
7393         * tests/test-update-copyright.sh: Likewise.
7395 2020-03-28  Bruno Haible  <bruno@clisp.org>
7397         Use module 'filename' instead of module 'dosname'.
7399         * lib/at-func.c: Include filename.h instead of dosname.h.
7400         * lib/unlinkat.c: Likewise.
7401         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7402         * modules/areadlinkat-with-size (Depends-on): Likewise.
7403         * modules/faccessat (Depends-on): Likewise.
7404         * modules/fchmodat (Depends-on): Likewise.
7405         * modules/fchownat (Depends-on): Likewise.
7406         * modules/fstatat (Depends-on): Likewise.
7407         * modules/mkdirat (Depends-on): Likewise.
7408         * modules/mkfifoat (Depends-on): Likewise.
7409         * modules/readlinkat (Depends-on): Likewise.
7410         * modules/selinux-at (Depends-on): Likewise.
7411         * modules/symlinkat (Depends-on): Likewise.
7412         * modules/unlinkat (Depends-on): Likewise.
7413         * modules/utimensat (Depends-on): Likewise.
7415         * lib/at-func2.c: Include filename.h instead of dosname.h.
7416         * modules/linkat (Depends-on): Add filename. Remove dosname.
7417         * modules/renameatu (Depends-on): Likewise.
7419         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7420         * lib/canonicalize-lgpl.c: Likewise.
7421         * modules/canonicalize (Depends-on): Add filename.
7422         * modules/canonicalize-lgpl (Depends-on): Likewise.
7424         * lib/dirname.h: Include filename.h instead of dosname.h.
7425         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7427         * lib/fchdir.c: Include filename.h instead of dosname.h.
7428         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7430         * lib/openat.c: Include filename.h instead of dosname.h.
7431         * modules/openat (Depends-on): Add filename. Remove dosname.
7433         * lib/rmdir.c: Include filename.h instead of dosname.h.
7434         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7436         * lib/savewd.c: Include filename.h instead of dosname.h.
7437         * modules/savewd (Depends-on): Add filename. Remove dosname.
7439         * lib/unlink.c: Include filename.h instead of dosname.h.
7440         * modules/unlink (Depends-on): Add filename. Remove dosname.
7442         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7443         * lib/relocwrapper.c: Update comments.
7445         * modules/lstat (Depends-on): Remove dosname.
7447 2020-03-28  Bruno Haible  <bruno@clisp.org>
7449         dosname: Redirect to 'filename'.
7450         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7451         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7452         * lib/dosname.h: Remove all definitions. Just include filename.h.
7453         * modules/dosname (Status, Notice): Mark as deprecated.
7454         (Depends-on): Add 'filename'.
7456 2020-03-28  Bruno Haible  <bruno@clisp.org>
7458         dosname: Change IS_RELATIVE_FILE_NAME.
7459         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
7460         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
7461         * NEWS: Mention the change.
7463 2020-03-28  Bruno Haible  <bruno@clisp.org>
7465         filename: Copy some definitions from module 'dosname'.
7466         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
7467         (HAS_DEVICE): Document macro.
7468         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
7469         (IS_ABSOLUTE_FILE_NAME): Consider
7470         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
7471         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
7472         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
7473         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
7474         IS_PATH_WITH_DIR.
7475         (DllMain): Update.
7476         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
7477         IS_PATH_WITH_DIR.
7478         (find_executable): Update.
7479         * NEWS: Document the deprecations.
7481 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7483         getopt-posix: port __GETOPT_PREFIX to macOS
7484         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
7485         Define to work around a problem with asm on macOS (Bug#40205).
7487 2020-03-22  Bruno Haible  <bruno@clisp.org>
7489         MODULES.html.sh: Add support for reproducible builds.
7490         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7491         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
7492         * MODULES.html.sh: Print the date of the last gnulib commit, not the
7493         current date.
7495 2020-03-22  Bruno Haible  <bruno@clisp.org>
7497         Several modules: Depend on stat.
7498         * modules/acl-permissions (Depends-on): Add stat.
7499         * modules/canonicalize (Depends-on): Likewise.
7500         * modules/file-has-acl (Depends-on): Likewise.
7501         * modules/fstat (Depends-on): Likewise.
7502         * modules/fstatat (Depends-on): Likewise.
7503         * modules/glob (Depends-on): Likewise.
7504         * modules/javacomp (Depends-on): Likewise.
7505         * modules/linkat (Depends-on): Likewise.
7506         * modules/mkdir (Depends-on): Likewise.
7507         * modules/pt_chown (Depends-on): Likewise.
7508         * modules/ptsname_r (Depends-on): Likewise.
7509         * modules/readlinkat (Depends-on): Likewise.
7510         * modules/rename (Depends-on): Likewise.
7511         * modules/renameatu (Depends-on): Likewise.
7512         * modules/tmpdir (Depends-on): Likewise.
7513         * modules/utimens (Depends-on): Likewise.
7514         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
7515         * modules/same (Depends-on): Remove stat.
7517 2020-03-22  Bruno Haible  <bruno@clisp.org>
7519         acl-permissions: Improve autoconf macro.
7520         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
7521         more reliably.
7523 2020-03-22  Bruno Haible  <bruno@clisp.org>
7525         file-has-acl: Fix module description.
7526         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
7527         (Depends-on): Depend on acl-permissions unconditionally.
7529 2020-03-21  Bruno Haible  <bruno@clisp.org>
7531         unlink: Ensure errno also on native Windows.
7532         * modules/unlink (Depends-on): Add malloc-posix.
7534 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7536         unlink: fix malloc errno typo
7537         Problem reported by Tim Rühsen in:
7538         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
7539         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
7541 2020-03-16  Bruno Haible  <bruno@clisp.org>
7543         *printf-posix: Fix m4 error (regression from 2020-03-08).
7544         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
7545         brackets in AC_COMPILE_IFELSE invocation.
7547 2020-03-08  Bruno Haible  <bruno@clisp.org>
7549         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
7550         * modules/crypto/af_alg (Depends-on): Add fstat.
7551         * modules/renameatu (Depends-on): Likewise.
7552         * modules/same (Depends-on): Likewise.
7553         * modules/term-style-control (Depends-on): Likewise.
7555 2020-03-08  Bruno Haible  <bruno@clisp.org>
7557         *printf-posix: Document why it's overridden on some glibc systems.
7558         Reported by Adrian Bunk <bunk@stusta.de> in
7559         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
7560         * doc/posix-functions/*printf.texi: Document the problem with the %n
7561         directive on some glibc systems.
7562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
7563         the cross-compilation guesses accordingly.
7565 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7567         open, openat: port to (O_RDWR | O_RDONLY) != 0
7568         Potential portability problem reported by Dan Gohman in:
7569         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
7570         * lib/open.c (open):
7571         * lib/openat.c (rpl_openat):
7572         Don’t assume O_RDONLY is disjoint from O_RDWR.
7574 2020-03-07  Bruno Haible  <bruno@clisp.org>
7576         openat: Fix theoretically possible issue on GNU/Hurd.
7577         Reported by Dan Gohman <sunfish@mozilla.com> in
7578         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
7579         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
7580         ignore the bits that are also set in O_RDONLY.
7582 2020-02-24  Bruno Haible  <bruno@clisp.org>
7584         getloadavg: Don't use /usr/local when cross-compiling on AIX.
7585         Reported by Jens Rehsack <sno@netbsd.org> in
7586         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
7587         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
7588         cross-compiling.
7590 2020-02-24  Bruno Haible  <bruno@clisp.org>
7592         fcntl: Add witness of gnulib override.
7593         Reported by Jens Rehsack <sno@netbsd.org> in
7594         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7595         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7596         macros.
7598 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
7600         Update users.txt.
7601         * users.txt: Add datamash, time.
7603 2020-02-23  Bruno Haible  <bruno@clisp.org>
7605         uni*/base: Use 'restrict'.
7606         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
7607         from lib/regex.h.
7608         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
7609         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
7610         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
7611         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
7612         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
7613         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
7614         '_UC_RESTRICT'.
7615         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
7616         u32_conv_to_encoding): Use '_UC_RESTRICT'.
7617         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
7618         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
7619         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7620         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7621         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
7622         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
7623         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
7624         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
7625         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
7626         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
7627         '_UC_RESTRICT'.
7628         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
7629         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
7630         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
7631         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
7632         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
7633         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
7634         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
7635         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
7637 2020-02-23  Bruno Haible  <bruno@clisp.org>
7639         glob, spawn: Use improved '_Restrict_' definition.
7640         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
7641         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
7643 2020-02-23  Bruno Haible  <bruno@clisp.org>
7645         crypto/gc: Use 'restrict'.
7646         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
7647         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
7649         crypto/hmac-*: Use 'restrict'.
7650         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
7651         'restrict'.
7652         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
7653         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
7654         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
7655         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
7657         crypto/sm3: Use 'restrict'.
7658         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
7659         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7661         crypto/*-buffer: Use 'restrict'.
7662         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7663         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7665         crypto/sha512-buffer: Use 'restrict'.
7666         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7667         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7668         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7670         crypto/sha256-buffer: Use 'restrict'.
7671         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7672         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7673         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7675         crypto/sha1-buffer: Use 'restrict'.
7676         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7677         'restrict'.
7678         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7680         crypto/md5-buffer: Use 'restrict'.
7681         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7682         'restrict'.
7683         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7685         crypto/md4: Use 'restrict'.
7686         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7687         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7689         crypto/md2: Use 'restrict'.
7690         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7691         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7693         crypto/rijndael: Use 'restrict'.
7694         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7695         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7696         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7698         crypto/arctwo: Use 'restrict'.
7699         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7700         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7702         crypto/arcfour: Use 'restrict'.
7703         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7704         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7706         careadlinkat: Use 'restrict'.
7707         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7708         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7709         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7711         regex-quote: Use 'restrict'.
7712         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7713         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7715         system-quote: Use 'restrict'.
7716         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7717         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7719         sh-quote: Use 'restrict'.
7720         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7721         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7723         quotearg: Use 'restrict'.
7724         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7725         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7727         parse-datetime: Use 'restrict'.
7728         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7729         'restrict'.
7730         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7732         nstrftime: Use 'restrict'.
7733         * lib/strftime.h (nstrftime): Use 'restrict'.
7734         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7736         mbstok_r: Use 'restrict'.
7737         * lib/string.in.h (mbstok_r): Use 'restrict'.
7739         xmemcoll: Use 'restrict'.
7740         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7741         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7743         memcoll: Use 'restrict'.
7744         * lib/memcoll.h (memcoll): Use 'restrict'.
7745         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7747         vasnprintf: Use 'restrict'.
7748         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7749         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7751         c-vasnprintf: Use 'restrict'.
7752         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7753         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7755         c-vsnprintf: Use 'restrict'.
7756         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7757         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7759         c-snprintf: Use 'restrict'.
7760         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7761         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7763         astrxfrm: Use 'restrict'.
7764         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7765         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7767         amemxfrm: Use 'restrict'.
7768         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7769         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7771 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7773         fchmodat, lchmod: simplify
7774         It appears that we may have overengineered lchmod and fchmodat,
7775         in that the code was prepared for some hypothetical platforms but
7776         was so complicated that it was hard to understand.  I attempted to
7777         improve the situation by simplifying the code when this
7778         simplification should not hurt on real platforms; we can re-add
7779         complexity later to port to platforms I didn’t know about.
7780         * lib/fchmodat.c (fchmodat):
7781         * lib/lchmod.c (lchmod):
7782         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7783         around the /proc code that needs it.
7784         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7785         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7786         Do not include <config.h> twice.
7787         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7788         lchmod on any known hosts.
7789         (lchmod): Do not defer to fchmodat, so that the lchmod module
7790         need not depend on the fchmodat module (which is a circular
7791         dependency).  Do not use openat, since ‘open’ suffices.
7792         Coalesce calls to lchmod/chmod.
7793         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7794         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7795         * modules/lchmod (Depends-on, configure.ac):
7796         * modules/sys_stat (Depends-on):
7797         Do not worry about replacing lchmod, since that shouldn’t happen.
7798         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7799         Do not worry about whether lchmod works on non-symlinks,
7800         since every known lchmod works on non-symlinks.
7801         * modules/lchmod (Depends-on):
7802         Remove circular dependency on fchmodat.
7804 2020-02-22  Bruno Haible  <bruno@clisp.org>
7806         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7807         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7808         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7810 2020-02-22  Bruno Haible  <bruno@clisp.org>
7812         Use 'restrict' in all POSIX function declarations.
7813         * lib/iconv.in.h (iconv): Use 'restrict'.
7814         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7815         * lib/monetary.in.h (strfmon_l): Likewise.
7816         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7817         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7818         pthread_mutex_timedlock, pthread_rwlock_init,
7819         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7820         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7821         * lib/search.in.h (tdelete): Likewise.
7822         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7823         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7824         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7825         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7826         Likewise.
7827         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7828         strtoull): Likewise.
7829         * lib/string.in.h (strncat): Likewise.
7830         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7831         recvfrom): Likewise.
7832         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7833         * lib/time.in.h (strftime): Likewise.
7834         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7835         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7836         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7837         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7838         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7839         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7840         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7841         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7842         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7843         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7844         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7845         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7846         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7847         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7848         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7849         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7850         other *_h.m4 files.
7851         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7853 2020-02-22  Bruno Haible  <bruno@clisp.org>
7855         Update NEWS.
7856         * NEWS: Mention the last change.
7858 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7860         chmodat, chownat: new modules
7861         These are split from fchmodat, fchownat.  GNU Emacs needs the
7862         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7863         lchmodat.  Split the latter two into a new module chmodat.
7864         Similarly for fchownat.  This the same basic idea for why statat
7865         was split from fstatat on 2013-01-23.
7866         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7867         Rename from FCHMODAT_INLINE.  All uses changed.
7868         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7869         Rename from FCHOWNAT_INLINE.  All uses changed.
7870         * lib/openat.h:
7871         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7872         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7873         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7874         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7875         (configure.ac): Remove fchmodat module indicator.
7876         (Makefile.am): Omit chmodat.c.
7877         (Maintainer): Add self.
7878         * modules/fchownat: Similarly, but for chown.
7879         * tests/test-fchownat.c (BASE): Don't define if already defined.
7880         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7882 2020-02-22  Bruno Haible  <bruno@clisp.org>
7884         users.txt: Add groff.
7885         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7886         * users.txt: Add groff.
7888 2020-02-22  Bruno Haible  <bruno@clisp.org>
7890         gnulib-tool: Ensure copied files are writable.
7891         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7893         * gnulib-tool (func_ensure_writable): New function.
7894         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7895         func_create_testdir, copy-file): Invoke it after copying a file.
7897 2020-02-22  Bruno Haible  <bruno@clisp.org>
7899         users.txt: Update.
7900         * users.txt: Update URLs to projects that have moved or switched to git.
7901         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7902         over the summary view. Add gawk.
7904 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7906         largefile: remove _DARWIN_USE_64_BIT_INODE
7907         It’s not needed in currently-supported macOS versions, and was
7908         problematic anyway in MacOS X 10.5 which was the only version that
7909         could use it.  Problem reported by Peter Eisentraut in:
7910         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7911         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7912         Don’t define _DARWIN_USE_64_BIT_INODE.
7913         This syncs with Autoconf master.
7915         Add ‘extern "C"’ to count-one-bits.h etc.
7916         This ports these .h files to C++.
7917         Problem reported by Simon Marchi in:
7918         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7919         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7920         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7922 2020-02-19  Bruno Haible  <bruno@clisp.org>
7924         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7925         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7926         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7927         * lib/array-mergesort.h: Accept an optional macro definition
7928         STATIC_FROMTO.
7929         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7931 2020-02-16  Bruno Haible  <bruno@clisp.org>
7933         fchmodat: Make more future-proof.
7934         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7935         NEED_FCHMODAT_NONSYMLINK_FIX.
7936         (gl_PREREQ_FCHMODAT): New macro.
7937         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7938         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7939         without lchmod function.
7940         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7942 2020-02-16  Bruno Haible  <bruno@clisp.org>
7944         lchmod: Make more future-proof.
7945         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7946         (gl_PREREQ_LCHMOD): New macro.
7947         * lib/lchmod.c (orig_lchmod): New function.
7948         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7949         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7950         function.
7951         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7953         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7954         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7956 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7958         xnanosleep: prefer pause, and get remaining time
7959         Problem reported by Vladimir Panteleev in:
7960         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7961         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7962         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7963         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7964         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7965         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7967 2020-02-16  Bruno Haible  <bruno@clisp.org>
7969         lchmod: Improve cross-compilation guess.
7970         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7971         cross-compiling, guess depending on the platform.
7973 2020-02-16  Bruno Haible  <bruno@clisp.org>
7975         fstrcmp: Add API to clean up resources.
7976         Reported by Akim Demaille <akim@lrde.epita.fr> in
7977         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7978         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7979         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7981 2020-02-14  Bruno Haible  <bruno@clisp.org>
7983         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7984         Reported by Christian Biesinger in
7985         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7986         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7987         corresponding module is not enabled.
7988         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7989         prototype if the corresponding module is not enabled.
7991 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7993         fchmodat, lchmod: port to buggy Linux filesystems
7994         Problem reported by Florian Weimer in:
7995         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7996         * lib/fchmodat.c (fchmodat):
7997         * lib/lchmod.c (lchmod):
7998         Don’t assume that chmod on the O_PATH-opened fd will do
7999         the right thing on a symbolic link.
8000         * lib/fchmodat.c (fchmodat):
8001         Don’t attempt to special-case
8002         any flag value other than AT_SYMLINK_NOFOLLOW.
8004 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8006         lchmod: pacify Coverity CID 1491216
8007         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
8008         not complain about unreachable code at the ‘struct stat st;’
8009         declaration.
8011 2020-02-10  Bruno Haible  <bruno@clisp.org>
8013         copysignf: Fix link error on HP-UX with cc.
8014         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
8015         HP-UX, set COPYSIGNF_LIBM to -lm.
8017 2020-02-10  Bruno Haible  <bruno@clisp.org>
8019         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
8020         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
8021         with $(LIB_SEMAPHORE).
8022         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
8023         with $(LIB_SEMAPHORE).
8025 2020-02-10  Bruno Haible  <bruno@clisp.org>
8027         ptsname_r-tests: Avoid unused function warning.
8028         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
8030 2020-02-08  Bruno Haible  <bruno@clisp.org>
8032         lchmod: Add tests.
8033         * tests/test-lchmod.c: New file.
8034         * modules/lchmod-tests: New file.
8036 2020-02-08  Bruno Haible  <bruno@clisp.org>
8038         lchmod: Ensure declaration on HP-UX.
8039         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
8040         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
8042 2020-02-08  Bruno Haible  <bruno@clisp.org>
8044         fchmodat: Strengthen tests.
8045         * tests/test-fchmodat.c (BASE): New macro.
8046         (main): Use it, to avoid conflicts with other unit tests. Verify that
8047         fchmodat changed the file permission bits.
8049 2020-02-08  Bruno Haible  <bruno@clisp.org>
8051         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
8052         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
8053         '#undef __need_system_sys_stat_h'.
8055 2020-02-08  Bruno Haible  <bruno@clisp.org>
8057         fchmodat: Improve cross-compilation guesses.
8058         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
8059         cross-compiling, guess depending on the platform.
8060         * doc/posix-functions/fchmodat.texi: Clarify.
8062 2020-02-08  Bruno Haible  <bruno@clisp.org>
8064         Fix compilation errors in a testdir created with --with-c++-tests.
8065         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
8066         since it does not work any more with g++ >= 4.4.
8068 2020-02-08  Bruno Haible  <bruno@clisp.org>
8070         doc: Update for glibc 2.31.
8071         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
8072         * doc/gnulib.texi: Include it.
8073         * doc/pastposix-functions/h_errno.texi: Update.
8074         * doc/posix-functions/*.texi: Likewise.
8076 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
8078         mountlist: consider smb3 file systems as remote
8079         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
8080         "smb3" as remote.
8082 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8084         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
8085         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
8086         they act like chmod on non-symlinks.
8087         * NEWS:
8088         * doc/glibc-functions/lchmod.texi (lchmod):
8089         * doc/posix-functions/fchmodat.texi (fchmodat):
8090         Mention this.
8091         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
8092         config.h, and undef it after including sys/stat.h the first time.
8093         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
8094         sys/stat.h a second time after defining orig_fchmodat.
8095         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
8096         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
8097         * lib/lchmod.c: New file.
8098         * lib/sys_stat.in.h (fchmodat, lchmod):
8099         Support replacing these functions.
8100         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
8101         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
8102         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
8103         Test that lchmod works on non-symlinks.
8104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
8105         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
8106         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
8107         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
8108         * modules/lchmod (Files): Add lib/lchmod.c.
8109         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
8110         (configure.ac): Compile lchmod.c if needed.
8111         (lib_SOURCES): Add lchmod.c.
8112         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
8113         and REPLACE_LCHMOD.
8114         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
8115         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
8117 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
8119         mountlist: Consider AFS filesystems as remote
8120         df --local relies on the ME_REMOTE macro to determine if a given
8121         mount entry should be considered "local".  There is special logic
8122         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
8123         kernel's kafs module or AuriStorFS is treated as a local mount.
8124         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
8125         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
8127 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8129         Port _Noreturn to older Clang
8130         Problem reported by Jeffery Walton in:
8131         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
8132         * lib/_Noreturn.h (_Noreturn):
8133         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8134         Assume _Noreturn works in Clang 3.5 and later.
8135         It is documented to work in Clang 3.5:
8136         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
8137         and is not documented in Clang 3.4:
8138         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
8139         Apple sets __clang_version__ to a different value, so use
8140         __apple_build_version__ there.  See:
8141         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
8143 2020-02-04  Pádraig Brady  <P@draigBrady.com>
8145         test-canonicalize: avoid unused function warning
8146         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
8147         with the same guard as that used to protect usage of the null_ptr
8148         function, so that one doesn't get a -Wunused warning.
8149         * tests/test-canonicalize-lgpl.c: Likewise.
8151 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8153         libc-config: port to Apple’s Clang variant
8154         * lib/libc-config.h (__glibc_clang_prereq):
8155         Port to Apple’s Clang variant, which uses a different
8156         numbering scheme for __clang_major__.
8158 2020-02-02  Bruno Haible  <bruno@clisp.org>
8160         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
8161         * doc/containers.texi: Document these new modules.
8163 2020-02-02  Bruno Haible  <bruno@clisp.org>
8165         omap-c++: Add tests.
8166         * tests/test-omap-c++.cc: New file.
8167         * modules/omap-c++-tests: New file.
8169         omap-c++: New module.
8170         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
8171         * modules/omap-c++: New file.
8173 2020-02-02  Bruno Haible  <bruno@clisp.org>
8175         map-c++: Add tests.
8176         * tests/test-map-c++.cc: New file.
8177         * modules/map-c++-tests: New file.
8179         map-c++: New module.
8180         * lib/gl_map.hh: New file, based on lib/gl_map.h.
8181         * modules/map-c++: New file.
8183 2020-02-02  Bruno Haible  <bruno@clisp.org>
8185         oset-c++: Add tests.
8186         * tests/test-oset-c++.cc: New file.
8187         * modules/oset-c++-tests: New file.
8189         oset-c++: New module.
8190         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
8191         * modules/oset-c++: New file.
8193 2020-02-02  Bruno Haible  <bruno@clisp.org>
8195         set-c++: Add tests.
8196         * tests/test-set-c++.cc: New file.
8197         * modules/set-c++-tests: New file.
8199         set-c++: New module.
8200         * lib/gl_set.hh: New file, based on lib/gl_set.h.
8201         * modules/set-c++: New file.
8203 2020-02-02  Bruno Haible  <bruno@clisp.org>
8205         list-c++: Add tests.
8206         * tests/test-list-c++.cc: New file.
8207         * modules/list-c++-tests: New file.
8209         list-c++: New module.
8210         * lib/gl_list.hh: New file, based on lib/gl_list.h.
8211         * modules/list-c++: New file.
8213 2020-02-02  Bruno Haible  <bruno@clisp.org>
8215         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
8216         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
8217         '_Noreturn'.
8218         * lib/sigpipe-die.h (sigpipe_die): Likewise.
8220 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8222         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
8223         On x86_64 with glibc-2.30, gcc 9.2 is giving:
8224           error: argument 2 value '18446744073709551615'
8225           exceeds maximum object size 9223372036854775807
8226           [-Werror=alloc-size-larger-than=]
8227         The details of this restriction are discussed at:
8228         https://stackoverflow.com/q/42574890/4421
8229         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
8231 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8233         sysctl.h: avoid including on glibc
8234         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
8235         * lib/physmem.c: Likewise.
8237 2020-02-02  Bruno Haible  <bruno@clisp.org>
8239         list, set, oset, map, omap: Avoid imperative voice in documentation.
8240         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
8241         in the specification of functions.
8242         * lib/gl_set.h: Likewise.
8243         * lib/gl_oset.h: Likewise.
8244         * lib/gl_map.h: Likewise.
8245         * lib/gl_omap.h: Likewise.
8246         * lib/gl_*.h: Likewise.
8248 2020-02-01  Bruno Haible  <bruno@clisp.org>
8250         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
8251         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
8252         does.
8254 2020-01-29  Bruno Haible  <bruno@clisp.org>
8256         array-map, hash-map, linkedhash-map: Fix module description.
8257         * modules/array-map (Description): Fix description.
8258         * modules/hash-map (Description): Likewise.
8259         * modules/linkedhash-map (Description): Likewise.
8261 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8263         dfa: do not depend on isblank
8264         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
8265         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
8266         * modules/dfa (Depends-on): Remove isblank.
8267         * modules/isblank: Add a module indicator, for lib/dfa.c.
8269         dfa: do not assume 64-bit int
8270         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
8271         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
8272         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
8273         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
8274         Fall back to 32-bit words.
8275         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
8276         of 4 64-bit args.  All uses changed.
8278 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8280         regex: remove limits-h dependency
8281         * modules/regex (Depends-on): Remove limits-h, since the
8282         code no longer depends on ULONG_WIDTH already being defined.
8284         regex: port to non-GCC pre-IEC-60559
8285         Problem reported by Arnold Robbins in:
8286         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
8287         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
8289 2020-01-25  Bruno Haible  <bruno@clisp.org>
8291         c32isxdigit: Add tests.
8292         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
8293         * tests/test-c32isxdigit.sh: New file.
8294         * modules/c32isxdigit-tests: New file.
8296         c32isxdigit: New module.
8297         * lib/c32isxdigit.c: New file.
8298         * modules/c32isxdigit: New file.
8299         * doc/posix-functions/iswxdigit.texi: Mention the new module.
8301 2020-01-25  Bruno Haible  <bruno@clisp.org>
8303         c32isupper: Add tests.
8304         * tests/test-c32isupper.c: New file.
8305         * tests/test-c32isupper.sh: New file.
8306         * modules/c32isupper-tests: New file.
8308         c32isupper: New module.
8309         * lib/c32isupper.c: New file.
8310         * modules/c32isupper: New file.
8311         * doc/posix-functions/iswupper.texi: Mention the new module.
8313 2020-01-25  Bruno Haible  <bruno@clisp.org>
8315         c32isspace: Add tests.
8316         * tests/test-c32isspace.c: New file.
8317         * tests/test-c32isspace.sh: New file.
8318         * modules/c32isspace-tests: New file.
8320         c32isspace: New module.
8321         * lib/c32isspace.c: New file.
8322         * modules/c32isspace: New file.
8323         * doc/posix-functions/iswspace.texi: Mention the new module.
8325 2020-01-25  Bruno Haible  <bruno@clisp.org>
8327         c32ispunct: Add tests.
8328         * tests/test-c32ispunct.c: New file.
8329         * tests/test-c32ispunct.sh: New file.
8330         * modules/c32ispunct-tests: New file.
8332         c32ispunct: New module.
8333         * lib/c32ispunct.c: New file.
8334         * modules/c32ispunct: New file.
8335         * doc/posix-functions/iswpunct.texi: Mention the new module.
8337 2020-01-25  Bruno Haible  <bruno@clisp.org>
8339         c32isprint: Add tests.
8340         * tests/test-c32isprint.c: New file.
8341         * tests/test-c32isprint.sh: New file.
8342         * modules/c32isprint-tests: New file.
8344         c32isprint: New module.
8345         * lib/c32isprint.c: New file.
8346         * modules/c32isprint: New file.
8347         * doc/posix-functions/iswprint.texi: Mention the new module.
8349 2020-01-25  Bruno Haible  <bruno@clisp.org>
8351         c32islower: Add tests.
8352         * tests/test-c32islower.c: New file.
8353         * tests/test-c32islower.sh: New file.
8354         * modules/c32islower-tests: New file.
8356         c32islower: New module.
8357         * lib/c32islower.c: New file.
8358         * modules/c32islower: New file.
8359         * doc/posix-functions/iswlower.texi: Mention the new module.
8361 2020-01-25  Bruno Haible  <bruno@clisp.org>
8363         c32isgraph: Add tests.
8364         * tests/test-c32isgraph.c: New file.
8365         * tests/test-c32isgraph.sh: New file.
8366         * modules/c32isgraph-tests: New file.
8368         c32isgraph: New module.
8369         * lib/c32isgraph.c: New file.
8370         * modules/c32isgraph: New file.
8371         * doc/posix-functions/iswgraph.texi: Mention the new module.
8373 2020-01-25  Bruno Haible  <bruno@clisp.org>
8375         c32isdigit: Add tests.
8376         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8377         * tests/test-c32isdigit.sh: New file.
8378         * modules/c32isdigit-tests: New file.
8380         c32isdigit: New module.
8381         * lib/c32isdigit.c: New file.
8382         * modules/c32isdigit: New file.
8383         * doc/posix-functions/iswdigit.texi: Mention the new module.
8385 2020-01-25  Bruno Haible  <bruno@clisp.org>
8387         c32iscntrl: Add tests.
8388         * tests/test-c32iscntrl.c: New file.
8389         * tests/test-c32iscntrl.sh: New file.
8390         * modules/c32iscntrl-tests: New file.
8392         c32iscntrl: New module.
8393         * lib/c32iscntrl.c: New file.
8394         * modules/c32iscntrl: New file.
8395         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8397 2020-01-25  Bruno Haible  <bruno@clisp.org>
8399         c32isblank: Add tests.
8400         * tests/test-c32isblank.c: New file.
8401         * tests/test-c32isblank.sh: New file.
8402         * modules/c32isblank-tests: New file.
8404         c32isblank: New module.
8405         * lib/c32isblank.c: New file.
8406         * modules/c32isblank: New file.
8407         * doc/posix-functions/iswblank.texi: Mention the new module.
8409 2020-01-25  Bruno Haible  <bruno@clisp.org>
8411         c32isalpha: Add tests.
8412         * tests/test-c32isalpha.c: New file.
8413         * tests/test-c32isalpha.sh: New file.
8414         * modules/c32isalpha-tests: New file.
8416         c32isalpha: New module.
8417         * lib/c32isalpha.c: New file.
8418         * modules/c32isalpha: New file.
8419         * doc/posix-functions/iswalpha.texi: Mention the new module.
8421 2020-01-25  Bruno Haible  <bruno@clisp.org>
8423         c32isalnum: Add tests.
8424         * tests/test-c32isalnum.c: New file.
8425         * tests/test-c32isalnum.sh: New file.
8426         * modules/c32isalnum-tests: New file.
8428         c32isalnum: New module.
8429         * lib/c32isalnum.c: New file.
8430         * lib/c32is-impl.h: New file.
8431         * modules/c32isalnum: New file.
8432         * doc/posix-functions/iswalnum.texi: Mention the new module.
8434 2020-01-25  Bruno Haible  <bruno@clisp.org>
8436         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8437         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8438         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8439         c32isupper, c32isxdigit): New declarations.
8440         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8441         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8442         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8443         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8444         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8445         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8446         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8447         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8448         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8449         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8450         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8451         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8452         c32ispunct, c32isspace, c32isupper, c32isxdigit.
8454 2020-01-25  Bruno Haible  <bruno@clisp.org>
8456         mbchar, wctype: Use the corrected iswxdigit function.
8457         * modules/mbchar (Depends-on): Add iswxdigit.
8458         * modules/wctype (Depends-on): Likewise.
8460         iswxdigit: Add tests.
8461         * tests/test-iswxdigit.c: New file.
8462         * tests/test-iswxdigit.sh: New file.
8463         * modules/iswxdigit-tests: New file.
8465         iswxdigit: New module.
8466         * m4/iswxdigit.m4: New file.
8467         * lib/wctype.in.h (iswxdigit): Potentially override.
8468         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
8469         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
8470         * lib/iswxdigit.c: New file.
8471         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
8472         REPLACE_ISWXDIGIT.
8473         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
8474         REPLACE_ISWXDIGIT.
8475         * modules/iswxdigit: New file.
8476         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
8478 2020-01-25  Bruno Haible  <bruno@clisp.org>
8480         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
8481         Reported by John Donoghue <john.david.donoghue@gmail.com> in
8482         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
8483         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
8484         off_t on mingw, invoke _lseeki64 instead of lseek.
8486 2020-01-25  Bruno Haible  <bruno@clisp.org>
8488         iswdigit tests: Avoid test failure on Cygwin.
8489         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
8490         byte sequence, return 0.
8492         iswdigit: Fix test failure on native Windows.
8493         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
8495         mbchar, wctype: Use the corrected iswdigit function.
8496         * modules/mbchar (Depends-on): Add iswdigit.
8497         * modules/wctype (Depends-on): Likewise.
8499         iswdigit: Add tests.
8500         * tests/test-iswdigit.c: New file.
8501         * tests/test-iswdigit.sh: New file.
8502         * modules/iswdigit-tests: New file.
8504         iswdigit: New module.
8505         * m4/iswdigit.m4: New file.
8506         * lib/wctype.in.h (iswdigit): Potentially override.
8507         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
8508         * lib/iswdigit.c: New file.
8509         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
8510         REPLACE_ISWDIGIT.
8511         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
8512         REPLACE_ISWDIGIT.
8513         * modules/iswdigit: New file.
8514         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
8516 2020-01-25  Bruno Haible  <bruno@clisp.org>
8518         hard-locale tests: Make it easy to reuse the musl test.
8519         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
8520         * modules/hard-locale-tests (Files): Add it.
8521         (configure.ac): Invoke gl_MUSL_LIBC.
8523 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8525         regex: port to Gawk on nonstandard platforms
8526         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
8527         This is useful for Gawk, which does not use the Gnulib stdlib-h
8528         module.  Problem reported by Arnold Robbins in:
8529         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
8531 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8533         regex: fix bug with >=16 subexpressions
8534         * lib/regex_internal.h (struct re_backref_cache_entry):
8535         Use bitset_word_t as the type of eps_reachable_subexps_map,
8536         instead of unsigned short int.  This fixes a bug I introduced
8537         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
8538         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
8539         Remove unused member 'unused'.
8541         regex: simplify definition of BITSET_WORD_BITS
8542         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
8543         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
8544         * lib/regex_internal.h (BITSET_WORD_BITS):
8545         * modules/regex (Depends-on): Add limits-h.
8546         Simplify now that we can use ULONG_WIDTH.
8548 2020-01-20  Bruno Haible  <bruno@clisp.org>
8550         mbrtoc32: Add note about FreeBSD 12.
8551         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
8552         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
8553         affected.
8555 2020-01-20  Bruno Haible  <bruno@clisp.org>
8557         unistr/u8-uctomb: Fix warning.
8558         Reported by Andreas Schwab <schwab@suse.de> in
8559         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
8560         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
8561         (u8_uctomb): Add FALLTHROUGH markers.
8563 2020-01-20  Bruno Haible  <bruno@clisp.org>
8565         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
8566         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
8567         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
8568         (glthread_once): Use it.
8570 2020-01-19  Bruno Haible  <bruno@clisp.org>
8572         threadlib: Disable use of weak symbols on FreeBSD 11.
8573         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8574         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
8575         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
8576         against a bug in FreeBSD 11.
8578 2020-01-19  Bruno Haible  <bruno@clisp.org>
8580         iconv_open: Improve z/OS support.
8581         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
8582         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
8583         Remove mapping for EUC-TW.
8585 2020-01-18  Bruno Haible  <bruno@clisp.org>
8587         Rename ~~gnulib.m4 to zzgnulib.m4.
8588         Suggested by Paul Eggert.
8589         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8590         * gnulib-tool (func_get_filelist): Update.
8591         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8593 2020-01-18  Bruno Haible  <bruno@clisp.org>
8595         doc: Update license notices.
8596         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
8597         reference to a section or to a "file as part of this distribution".
8599 2020-01-18  Bruno Haible  <bruno@clisp.org>
8601         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
8602         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8603         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
8604         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
8605         AC_EGREP_CPP.
8607 2020-01-18  Bruno Haible  <bruno@clisp.org>
8609         Ensure Automake does not drop ~~gnulib.m4.
8610         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
8611         * m4/gnulib-common.m4 (gl_COMMON): Require it.
8613 2020-01-18  Bruno Haible  <bruno@clisp.org>
8615         Fix major regression from 2020-01-10.
8616         Reported by Paul Eggert in
8617         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
8618         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8619         Don't AC_REQUIRE anything.
8620         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
8621         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
8622         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
8623         use ac_compile instead.
8624         (AC_CHECK_DECL): Remove override.
8625         * m4/~~gnulib.m4: New file.
8626         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
8627         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8629 2020-01-17  Bruno Haible  <bruno@clisp.org>
8630             Paul Eggert  <eggert@cs.ucla.edu>
8632         glob: Fix use-after-free bug.
8633         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8634         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
8635         * lib/glob.c (__glob): Delay freeing dirname until after the use of
8636         end_name.
8638 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8640         vcs-to-changelog: Fix parsing of fndecl without args.
8641         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
8642         for empty arguments.
8644 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8646         vcs-to-changelog: Add documentation.
8647         * doc/vcs-to-changelog.texi: New file.
8648         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
8649         section.
8651 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8653         vcs-to-changelog: Allow loading of custom quirks file.
8654         * build-aux/vcs_to_changelog.py: New commandline option -q.
8656 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8658         vcs-to-changelog: Fix formatting of ChangeLog output.
8659         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
8660         output.
8662 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8664         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8665         Reported in
8666         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8667         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8669 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8671         crypto/gc-pbkdf2: New module.
8672         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8673         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8674         * lib/gc-pbkdf2.c: New file.
8675         * lib/gc-pbkdf2-sha1.c: Use new interface.
8676         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8677         * modules/crypto/gc-pbkdf2: New file.
8678         * modules/crypto/gc-pbkdf2-tests: New file.
8679         * tests/test-gc-pbkdf2.c: New file.
8681 2020-01-12  Bruno Haible  <bruno@clisp.org>
8683         c32stombs: Add tests.
8684         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8685         * tests/test-c32stombs-1.sh: New file, based on
8686         tests/test-c32srtombs-1.sh.
8687         * tests/test-c32stombs-2.sh: New file, based on
8688         tests/test-c32srtombs-2.sh.
8689         * tests/test-c32stombs-3.sh: New file, based on
8690         tests/test-c32srtombs-3.sh.
8691         * tests/test-c32stombs-4.sh: New file, based on
8692         tests/test-c32srtombs-4.sh.
8693         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8695         c32stombs: New module.
8696         * lib/uchar.in.h (c32stombs): New declaration.
8697         * lib/c32stombs.c: New file.
8698         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8699         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8700         * modules/c32stombs: New file.
8701         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8702         * doc/posix-functions/wcstombs.texi: Mention the new module.
8704 2020-01-11  Jim Meyering  <meyering@fb.com>
8706         perl: require the "warnings" module
8707         * m4/perl.m4: Also "use warnings", so we reject the perl found
8708         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8709         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8711 2020-01-10  Bruno Haible  <bruno@clisp.org>
8713         Fix major regression from 2020-01-04.
8714         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8715         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8716         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8717         AC_DEFUN_ONCE.
8718         (AC_CHECK_DECL): Invoke, not require, it.
8720 2020-01-10  Bruno Haible  <bruno@clisp.org>
8722         c32snrtombs: Add tests.
8723         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8724         * tests/test-c32snrtombs-1.sh: New file, based on
8725         tests/test-wcsnrtombs1.sh.
8726         * tests/test-c32snrtombs-2.sh: New file, based on
8727         tests/test-wcsnrtombs2.sh.
8728         * tests/test-c32snrtombs-3.sh: New file, based on
8729         tests/test-wcsnrtombs3.sh.
8730         * tests/test-c32snrtombs-4.sh: New file, based on
8731         tests/test-wcsnrtombs4.sh.
8732         * modules/c32snrtombs-tests: New file, based on
8733         modules/wcsnrtombs-tests.
8735         c32snrtombs: New module.
8736         * lib/uchar.in.h (c32snrtombs): New declaration.
8737         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8738         INTERNAL_STATE, WCRTOMB.
8739         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8740         * lib/c32snrtombs.c: New file.
8741         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8742         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8743         * modules/c32snrtombs: New file.
8744         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8745         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8747 2020-01-09  Bruno Haible  <bruno@clisp.org>
8749         c32srtombs: Add tests.
8750         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8751         * tests/test-c32srtombs-1.sh: New file, based on
8752         tests/test-wcsrtombs1.sh.
8753         * tests/test-c32srtombs-2.sh: New file, based on
8754         tests/test-wcsrtombs2.sh.
8755         * tests/test-c32srtombs-3.sh: New file, based on
8756         tests/test-wcsrtombs3.sh.
8757         * tests/test-c32srtombs-4.sh: New file, based on
8758         tests/test-wcsrtombs4.sh.
8759         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8761         c32srtombs: New module.
8762         * lib/uchar.in.h (c32srtombs): New declaration.
8763         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8764         INTERNAL_STATE, WCRTOMB.
8765         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8766         * lib/c32srtombs.c: New file.
8767         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8768         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8769         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8770         * modules/c32srtombs: New file.
8771         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8772         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8774 2020-01-08  Bruno Haible  <bruno@clisp.org>
8776         c32tob: Make consistent with mbrtoc32.
8777         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8778         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8779         use c32rtomb, not wctob.
8780         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8781         (Depends-on): Add c32rtomb.
8782         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8784 2020-01-08  Bruno Haible  <bruno@clisp.org>
8786         c32rtomb: Add tests.
8787         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8788         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8789         * tests/test-c32rtomb-w32.c: New file, based on
8790         tests/test-wcrtomb-w32.c.
8791         * tests/test-c32rtomb-w32-1.sh: New file, based on
8792         tests/test-wcrtomb-w32-1.sh.
8793         * tests/test-c32rtomb-w32-2.sh: New file, based on
8794         tests/test-wcrtomb-w32-2.sh.
8795         * tests/test-c32rtomb-w32-3.sh: New file, based on
8796         tests/test-wcrtomb-w32-3.sh.
8797         * tests/test-c32rtomb-w32-4.sh: New file, based on
8798         tests/test-wcrtomb-w32-4.sh.
8799         * tests/test-c32rtomb-w32-5.sh: New file, based on
8800         tests/test-wcrtomb-w32-5.sh.
8801         * tests/test-c32rtomb-w32-6.sh: New file, based on
8802         tests/test-wcrtomb-w32-6.sh.
8803         * tests/test-c32rtomb-w32-7.sh: New file, based on
8804         tests/test-wcrtomb-w32-7.sh.
8805         * modules/c32rtomb-tests: New file.
8807         c32rtomb: New module.
8808         * lib/uchar.in.h (c32rtomb): New declaration.
8809         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8810         * m4/c32rtomb.m4: New file.
8811         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8812         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8813         REPLACE_C32RTOMB.
8814         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8815         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8816         * modules/c32rtomb: New file.
8817         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8818         * doc/posix-functions/c32rtomb.texi: Document the new module.
8819         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8821 2020-01-08  Bruno Haible  <bruno@clisp.org>
8823         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8824         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8825         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8826         but is not working.
8827         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8828         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8829         differ, use the system's mbrtoc32, adding workarounds.
8830         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8831         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8832         Windows problem.
8833         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8834         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8835         use mbrtoc32, not btowc.
8836         * modules/btoc32 (Depends-on): Add mbrtoc32.
8837         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8838         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8839         * modules/mbsrtoc32s (Depends-on): Update conditions.
8840         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8841         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8842         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8843         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8844         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8846 2020-01-07  Bruno Haible  <bruno@clisp.org>
8848         wcrtomb: Make multithread-safe, except possibly on IRIX.
8849         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8850         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8851         WCRTOMB_RETVAL_BUG.
8852         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8853         wctomb only on IRIX.
8855 2020-01-05  Jim Meyering  <meyering@fb.com>
8857         tests: skip thread-using tests when threading is disabled
8858         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8859         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8860         of those, so they are skipped in this case.
8861         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8862         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8863         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8865 2020-01-05  Bruno Haible  <bruno@clisp.org>
8867         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8868         Reported by Jim Meyering in
8869         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8870         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8871         (GNULIB_defined_ptsname_r): New macro.
8872         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8873         (main): Disable the NULL argument test if canonicalize_file_name does
8874         not come from gnulib.
8875         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8876         (main): Disable the NULL argument test if canonicalize_file_name does
8877         not come from gnulib.
8878         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8879         (test_errors): Disable the NULL argument test if ptsname_r does not come
8880         from gnulib.
8882 2020-01-04  Jim Meyering  <meyering@fb.com>
8884         update-copyright: reenable its always-skipped test
8885         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8886         on 2019-06-15. Without those, an internal preliminary test would
8887         fail, causing this test always to be skipped.
8888         Verify that the test is now run and passes via this:
8889           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8891 2020-01-05  Bruno Haible  <bruno@clisp.org>
8893         mbstoc32s: Add tests.
8894         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8895         * tests/test-mbstoc32s-1.sh: New file, based on
8896         tests/test-mbsrtoc32s-1.sh.
8897         * tests/test-mbstoc32s-2.sh: New file, based on
8898         tests/test-mbsrtoc32s-2.sh.
8899         * tests/test-mbstoc32s-3.sh: New file, based on
8900         tests/test-mbsrtoc32s-3.sh.
8901         * tests/test-mbstoc32s-4.sh: New file, based on
8902         tests/test-mbsrtoc32s-4.sh.
8903         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8905         mbstoc32s: New module.
8906         * lib/uchar.in.h (mbstoc32s): New declaration.
8907         * lib/mbstoc32s.c: New file.
8908         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8909         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8910         * modules/mbstoc32s: New file.
8911         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8912         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8914 2020-01-05  Bruno Haible  <bruno@clisp.org>
8916         Tweak recently added tests.
8917         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8918         * tests/test-mbsrtoc32s.c: Likewise.
8919         * tests/test-mbsnrtoc32s.c: Likewise.
8921 2020-01-04  Bruno Haible  <bruno@clisp.org>
8923         mbsnrtoc32s: Add tests.
8924         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8925         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8926         tests/test-mbsnrtowcs1.sh.
8927         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8928         tests/test-mbsnrtowcs2.sh.
8929         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8930         tests/test-mbsnrtowcs3.sh.
8931         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8932         tests/test-mbsnrtowcs4.sh.
8933         * modules/mbsnrtoc32s-tests: New file, based on
8934         modules/mbsnrtowcs-tests.
8936         mbsnrtoc32s: New module.
8937         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8938         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8939         INTERNAL_STATE, MBRTOWC.
8940         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8941         * lib/mbsnrtoc32s.c: New file.
8942         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8943         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8944         * modules/mbsnrtoc32s: New file.
8945         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8946         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8948 2020-01-04  Bruno Haible  <bruno@clisp.org>
8950         mbsrtoc32s tests: Enhance test.
8951         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8952         test strings for UTF-8 and GB18030.
8954 2020-01-04  Bruno Haible  <bruno@clisp.org>
8956         mbsrtoc32s: Fix bug.
8957         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8958         that SMALL_WCHAR_T is defined.
8960 2020-01-04  Bruno Haible  <bruno@clisp.org>
8962         mbsrtoc32s: Add tests.
8963         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8964         * tests/test-mbsrtoc32s-1.sh: New file, based on
8965         tests/test-mbsrtowcs1.sh.
8966         * tests/test-mbsrtoc32s-2.sh: New file, based on
8967         tests/test-mbsrtowcs2.sh.
8968         * tests/test-mbsrtoc32s-3.sh: New file, based on
8969         tests/test-mbsrtowcs3.sh.
8970         * tests/test-mbsrtoc32s-4.sh: New file, based on
8971         tests/test-mbsrtowcs4.sh.
8972         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8974         mbsrtoc32s: New module.
8975         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8976         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8977         INTERNAL_STATE, MBRTOWC.
8978         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8979         * lib/mbsrtoc32s.c: New file.
8980         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8981         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8982         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8983         * modules/mbsrtoc32s: New file.
8984         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8985         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8987 2020-01-04  Bruno Haible  <bruno@clisp.org>
8989         mbrtowc, mbrtoc32: Tighten dependendies.
8990         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8991         REPLACE_MBSTATE_T is 1.
8992         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8993         REPLACE_MBSTATE_T is 0.
8994         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8995         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8996         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8997         REPLACE_MBSTATE_T is 0.
8999 2020-01-04  Bruno Haible  <bruno@clisp.org>
9001         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
9002         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
9003         * modules/uchar (Files): Add stdint.m4.
9004         (Makefile.am): Substitute SMALL_WCHAR_T.
9005         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
9007 2020-01-04  Bruno Haible  <bruno@clisp.org>
9009         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
9010         Reported by Martin Storsjö <martin@martin.st> in
9011         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
9012         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9013         New macros.
9014         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
9016 2020-01-04  Bruno Haible  <bruno@clisp.org>
9018         btoc32: Add tests.
9019         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
9020         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
9021         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
9022         * modules/btoc32-tests: New file, based on modules/btowc-tests.
9024         btoc32: New module.
9025         * lib/uchar.in.h (btoc32): New declaration.
9026         * lib/btoc32.c: New file.
9027         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
9028         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
9029         * modules/btoc32: New file.
9030         * tests/test-uchar-c++.cc: Test the signature of btoc32.
9031         * doc/posix-functions/btowc.texi: Mention the new module.
9033 2020-01-03  Bruno Haible  <bruno@clisp.org>
9035         uchar tests: Avoid compilation error with HP cc.
9036         * tests/test-uchar.c: Disable a test when HP cc is in use.
9038 2020-01-03  Bruno Haible  <bruno@clisp.org>
9040         mbrtoc32: Add tests.
9041         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
9042         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
9043         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
9044         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
9045         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
9046         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
9047         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
9048         * tests/test-mbrtoc32-w32-1.sh: New file, based on
9049         tests/test-mbrtowc-w32-1.sh.
9050         * tests/test-mbrtoc32-w32-2.sh: New file, based on
9051         tests/test-mbrtowc-w32-2.sh.
9052         * tests/test-mbrtoc32-w32-3.sh: New file, based on
9053         tests/test-mbrtowc-w32-3.sh.
9054         * tests/test-mbrtoc32-w32-4.sh: New file, based on
9055         tests/test-mbrtowc-w32-4.sh.
9056         * tests/test-mbrtoc32-w32-5.sh: New file, based on
9057         tests/test-mbrtowc-w32-5.sh.
9058         * tests/test-mbrtoc32-w32-6.sh: New file, based on
9059         tests/test-mbrtowc-w32-6.sh.
9060         * tests/test-mbrtoc32-w32-7.sh: New file, based on
9061         tests/test-mbrtowc-w32-7.sh.
9062         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
9064         mbrtoc32: New module.
9065         * lib/uchar.in.h (mbrtoc32): New declaration.
9066         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
9067         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
9068         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
9069         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
9070         REPLACE_MBRTOC32.
9071         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
9072         HAVE_MBRTOC32, REPLACE_MBRTOC32.
9073         * modules/mbrtoc32: New file, based on modules/mbrtowc.
9074         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
9075         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
9076         $(LIB_MBRTOWC).
9077         * doc/posix-functions/mbrtoc32.texi: Document the new module.
9078         * doc/posix-functions/mbrtowc.texi: Mention the new module.
9080 2020-01-03  Bruno Haible  <bruno@clisp.org>
9082         mbrtowc: Refactor to share code with mbrtoc32.
9083         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
9084         * lib/mbrtowc-impl-utf8.h: Likewise.
9085         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
9086         mbrtowc-impl.h.
9087         * modules/mbrtowc (Files): Add the new files.
9089 2020-01-03  Jim Meyering  <meyering@fb.com>
9091         doc: fix time.texi wording
9092         * doc/posix-headers/time.texi (time.h): Typo.
9094 2020-01-03  Bruno Haible  <bruno@clisp.org>
9096         mbrtowc: Refactor locale charset dispatching.
9097         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
9098         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
9099         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
9100         localcharset.h, streq.h.
9101         (enc_t): Remove type.
9102         (locale_enc): Remove function.
9103         (cached_locale_enc): Remove variable.
9104         (locale_enc_cached): Remove function.
9105         (mbrtowc): Invoke locale_encoding_classification.
9106         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
9107         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
9108         lc-charset-dispatch.c.
9109         (configure.ac): Arrange to compile lc-charset-dispatch.c.
9111 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9113         doc: mention 32-bit time_t issue
9114         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9115         * doc/posix-headers/time.texi (time.h): Mention 2038.
9117 2020-01-03  Bruno Haible  <bruno@clisp.org>
9119         mbrtowc: Ensure the mbtowc_lock is unique.
9120         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
9121         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
9122         lib/setlocale_null.c.
9123         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
9124         glthread/lock.h. Include mbtowc-lock.h.
9125         (mbtowc_lock): Remove declaration.
9126         (mbrtowc): Use mbtowc_with_lock.
9127         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
9128         threads.h. Set LIB_MBRTOWC.
9129         (gl_PREREQ_MBTOWC_LOCK): New macro.
9130         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
9131         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
9132         (Depends-on): Remove lock.
9133         (configure.ac): Arrange to compile mbtowc-lock.c.
9134         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
9135         * modules/acl (Link): Likewise.
9136         * modules/argmatch (Link): Likewise.
9137         * modules/backup-rename (Link): Likewise.
9138         * modules/backupfile (Link): Likewise.
9139         * modules/closein (Link): Likewise.
9140         * modules/closeout (Link): Likewise.
9141         * modules/copy-file (Link): Likewise.
9142         * modules/csharpcomp (Link): Likewise.
9143         * modules/csharpexec (Link): Likewise.
9144         * modules/dfa (Link): Likewise.
9145         * modules/exclude (Link): Likewise.
9146         * modules/fnmatch (Link): Likewise.
9147         * modules/fnmatch-gnu (Link): Likewise.
9148         * modules/fnmatch-posix (Link): Likewise.
9149         * modules/glob (Link): Likewise.
9150         * modules/human (Link): Likewise.
9151         * modules/javacomp (Link): Likewise.
9152         * modules/javaexec (Link): Likewise.
9153         * modules/javaversion (Link): Likewise.
9154         * modules/mbfile (Link): Likewise.
9155         * modules/mbiter (Link): Likewise.
9156         * modules/mbmemcasecmp (Link): Likewise.
9157         * modules/mbmemcasecoll (Link): Likewise.
9158         * modules/mbrlen (Link): Likewise.
9159         * modules/mbscasecmp (Link): Likewise.
9160         * modules/mbscasestr (Link): Likewise.
9161         * modules/mbschr (Link): Likewise.
9162         * modules/mbscspn (Link): Likewise.
9163         * modules/mbsinit (Link): Likewise.
9164         * modules/mbslen (Link): Likewise.
9165         * modules/mbsncasecmp (Link): Likewise.
9166         * modules/mbsnlen (Link): Likewise.
9167         * modules/mbsnrtowcs (Link): Likewise.
9168         * modules/mbspbrk (Link): Likewise.
9169         * modules/mbspcasecmp (Link): Likewise.
9170         * modules/mbsrchr (Link): Likewise.
9171         * modules/mbsrtowcs (Link): Likewise.
9172         * modules/mbssep (Link): Likewise.
9173         * modules/mbsspn (Link): Likewise.
9174         * modules/mbsstr (Link): Likewise.
9175         * modules/mbstok_r (Link): Likewise.
9176         * modules/mbswidth (Link): Likewise.
9177         * modules/mbuiter (Link): Likewise.
9178         * modules/mkdir-p (Link): Likewise.
9179         * modules/propername (Link): Likewise.
9180         * modules/quote (Link): Likewise.
9181         * modules/quotearg (Link): Likewise.
9182         * modules/quotearg-simple (Link): Likewise.
9183         * modules/regex-quote (Link): Likewise.
9184         * modules/rpmatch (Link): Likewise.
9185         * modules/sh-quote (Link): Likewise.
9186         * modules/system-quote (Link): Likewise.
9187         * modules/trim (Link): Likewise.
9188         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9189         * modules/unistdio/ulc-fprintf (Link): Likewise.
9190         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9191         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9192         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9193         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9194         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9195         * modules/xfreopen (Link): Likewise.
9196         * modules/xmemcoll (Link): Likewise.
9197         * modules/yesno (Link): Likewise.
9198         * modules/regex (Link): Add $(LIB_MBRTOWC).
9199         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
9200         instead of $(LIBTHREAD).
9201         * modules/argmatch-tests (Makefile.am): Likewise.
9202         * modules/closein-tests (Makefile.am): Likewise.
9203         * modules/copy-file-tests (Makefile.am): Likewise.
9204         * modules/dfa-tests (Makefile.am): Likewise.
9205         * modules/fnmatch-tests (Makefile.am): Likewise.
9206         * modules/glob-tests (Makefile.am): Likewise.
9207         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9208         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9209         * modules/mbrtowc-tests (Makefile.am): Likewise.
9210         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9211         * modules/mbscasestr-tests (Makefile.am): Likewise.
9212         * modules/mbschr-tests (Makefile.am): Likewise.
9213         * modules/mbscspn-tests (Makefile.am): Likewise.
9214         * modules/mbsinit-tests (Makefile.am): Likewise.
9215         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9216         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9217         * modules/mbspbrk-tests (Makefile.am): Likewise.
9218         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9219         * modules/mbsrchr-tests (Makefile.am): Likewise.
9220         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9221         * modules/mbsspn-tests (Makefile.am): Likewise.
9222         * modules/mbsstr-tests (Makefile.am): Likewise.
9223         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9224         * modules/quotearg-tests (Makefile.am): Likewise.
9225         * modules/readtokens-tests (Makefile.am): Likewise.
9226         * modules/sh-quote-tests (Makefile.am): Likewise.
9227         * modules/system-quote-tests (Makefile.am): Likewise.
9228         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9229         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9230         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9231         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9232         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9233         * modules/yesno-tests (Makefile.am): Likewise.
9234         * modules/exclude-tests (Makefile.am): Link the programs with
9235         $(LIB_MBRTOWC).
9236         * modules/regex-tests (Makefile.am): Likewise.
9237         * modules/regex-quote-tests (Makefile.am): Likewise.
9239 2020-01-03  Bruno Haible  <bruno@clisp.org>
9241         getopt-posix: Fix compilation failure in testdirs.
9242         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
9243         when the gnulib module 'getopt-posix' is enabled.
9244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
9245         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
9246         module indicator.
9247         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
9249 2020-01-03  Bruno Haible  <bruno@clisp.org>
9251         doc: Mention the 64-bit inode number problem.
9252         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
9253         64-bit inode number problem.
9254         * doc/posix-functions/stat.texi: Mention that this module fixes the
9255         64-bit inode number problem.
9256         * doc/posix-functions/lstat.texi: Likewise.
9257         * doc/posix-functions/fstat.texi: Likewise.
9258         * doc/posix-functions/readdir.texi: Add more details.
9259         * doc/posix-functions/readdir_r.texi: Likewise.
9261 2020-01-02  Bruno Haible  <bruno@clisp.org>
9263         wcrtomb: Add more tests.
9264         * tests/test-wcrtomb-w32.c: Include localcharset.h.
9265         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9266         locale_charset() returns the expected value; otherwise, skip the test.
9267         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
9268         * tests/test-wcrtomb-w32-7.sh: Likewise.
9269         * modules/wcrtomb-tests (Files): Add these files.
9270         (Depends-on): Add localcharset.
9271         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
9273 2020-01-02  Bruno Haible  <bruno@clisp.org>
9275         mbrtowc: Add more tests.
9276         * tests/test-mbrtowc-w32.c: Include localcharset.h.
9277         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9278         locale_charset() returns the expected value; otherwise, skip the test.
9279         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
9280         * tests/test-mbrtowc-w32-7.sh: Likewise.
9281         * modules/mbrtowc-tests (Files): Add these files.
9282         (Depends-on): Add localcharset.
9283         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
9285 2020-01-02  Bruno Haible  <bruno@clisp.org>
9287         mbrtowc: Fix test failures on MSVC (regression by previous commit).
9288         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
9289         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
9290         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
9291         MBRTOWC_STORES_INCOMPLETE_BUG.
9292         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
9294 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9296         doc: mention glibc bug 24269
9297         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
9298         Reformat slightly so that it looks nicer in the Grep manual.
9300 2020-01-02  Bruno Haible  <bruno@clisp.org>
9302         mbrtowc: Don't replace mbstate_t on MSVC.
9303         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
9304         a missing mbsinit function on native Windows.
9305         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
9306         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
9307         MSVC bug.
9308         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
9310 2020-01-02  Bruno Haible  <bruno@clisp.org>
9312         setlocale-null: Avoid crashing the MSVC linker.
9313         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
9314         MSVC.
9316 2020-01-02  Bruno Haible  <bruno@clisp.org>
9318         wchar: Make the HP-UX workaround work on HP-UX 11.31.
9319         * modules/wchar (Depends-on): Add inttypes-incomplete.
9320         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
9321         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
9322         of strtoimax.
9324 2020-01-02  Bruno Haible  <bruno@clisp.org>
9326         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
9327         * lib/mbrtowc.c: Include <stdint.h>.
9328         * modules/mbrtowc (Depends-on): Add stdint.
9330 2020-01-01  Pádraig Brady  <P@draigBrady.com>
9332         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
9333         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
9334         which will auto enable use of openssl, only for >= version 3,
9335         which is newly licensed under the Apache Software License.
9337 2020-01-01  Bruno Haible  <bruno@clisp.org>
9339         mbrtowc: Include function name in macro names.
9340         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
9341         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9342         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9343         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9344         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9345         C_LOCALE_MAYBE_EILSEQ.
9347 2020-01-01  Bruno Haible  <bruno@clisp.org>
9349         c32tob: New module.
9350         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9351         (c32tob): New declaration.
9352         * lib/c32tob.c: New file.
9353         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9354         macros.
9355         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9356         * modules/uchar (Depends-on): Add snippet/c++defs.
9357         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9358         uchar.h.
9359         * modules/c32tob: New file.
9360         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9361         defined.
9362         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9363         c32tob.
9364         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9365         * doc/posix-functions/wctob.texi: Mention the new module.
9367 2020-01-01  Bruno Haible  <bruno@clisp.org>
9369         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9370         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9371         $(LIB_SETLOCALE).
9373 2020-01-01  Bruno Haible  <bruno@clisp.org>
9375         hard-locale tests: Fix a conflict with the C++ tests.
9376         * modules/hard-locale-tests (Makefile.am): Build a program named
9377         'current-locale', not 'locale'.
9379 2020-01-01  Bruno Haible  <bruno@clisp.org>
9381         doc: Update documentation about wchar_t.
9382         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9383         wchar_t type.
9385 2020-01-01  Bruno Haible  <bruno@clisp.org>
9387         mbrtowc tests: Fix typos.
9388         * tests/test-mbrtowc.c (main): Fix typo.
9389         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9391 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9393         maint: update copyright notices
9394         Before doing the following changes done by hand, I also ran ‘make
9395         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9396         to do most of the copyright years automatically.  A few upstream
9397         sources are still in 2019 but these should eventually be changed
9398         automatically too.
9399         * build-aux/declared.sh (func_version):
9400         * build-aux/libtool-next-version (func_version):
9401         * build-aux/run-test (func_version):
9402         Update these notices by hand.  Put just the last year
9403         in output of programs, as per GNU coding standards.
9405 2019-12-31  Bruno Haible  <bruno@clisp.org>
9407         uchar: Add C++ tests.
9408         * tests/test-uchar-c++.cc: New file.
9409         * tests/test-uchar-c++2.cc: New file.
9410         * modules/uchar-c++-tests: New file.
9412         uchar: Add tests.
9413         * tests/test-uchar.c: New file.
9414         * modules/uchar-tests: New file.
9416         uchar: New module.
9417         * lib/uchar.in.h: New file.
9418         * m4/uchar.m4: New file.
9419         * modules/uchar: New file.
9420         * doc/posix-headers/uchar.texi: Mention the new module.
9422 2019-12-30  Jim Meyering  <meyering@fb.com>
9424         localeinfo: ->simple would be wrong for LC_ALL=C
9425         That would lead to using unnecessary and expensive code paths in dfa.c.
9426         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9427         error that would have made grep many times slower in the C locale.
9428         With this change, and a file created like this:
9429           yes 00 | head -10000000 > in
9430         Running grep as follows becomes more than 40 times faster:
9431           LC_ALL=C grep -Fw 0 in
9433 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9435         doc: document trouble with back-references
9436         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9438 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9440         doc: use “back-reference” for \1 etc.
9441         * doc/regex.texi: Consistently spell “back-reference” with
9442         a hyphen, since that’s how POSIX does it.
9444 2019-12-26  Jim Meyering  <meyering@fb.com>
9446         test-framework-sh: tighten an internal grep regexp
9447         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9448         that helps test for a working printf.
9450 2019-12-26  Bruno Haible  <bruno@clisp.org>
9452         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
9453         Reported by Paul Eggert in
9454         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
9455         Simplification by Jim Meyering.
9456         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
9457         octal escape sequence in a UTF-8 locale.
9459 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
9461         mbrtowc: port better to narrow-wchar_t platforms
9462         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
9463         wchar_t is too narrow to represent all the Unicode characters,
9464         consider a byte sequence for an out-of-wchar_t-range character to
9465         be an encoding error.  This fixes grep’s surrogate-pair test
9466         failure on AIX 7.2.
9468 2019-12-24  Bruno Haible  <bruno@clisp.org>
9470         localcharset: Avoid referencing rpl_setlocale on native Windows.
9471         * lib/localcharset.c (setlocale): Undefine.
9473 2019-12-24  Bruno Haible  <bruno@clisp.org>
9475         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
9476         * m4/semaphore.m4: New file.
9477         * modules/lock-tests (Files): Add it.
9478         (configure.ac): Require gl_SEMAPHORE.
9479         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
9481 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
9483         strptime: fix typo in previous patch
9484         Problem and fix reported by Bruno Haible in:
9485         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
9486         * lib/strptime.c (day_of_the_week): Fix paren bug.
9488 2019-12-24  Bruno Haible  <bruno@clisp.org>
9490         setlocale-null: Make it easy to rely on the lock in another library.
9491         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
9492         defined.
9494 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9496         gethrxtime, mktime, nstrftime, strptime: tweak division performance
9497         Performanced analyzed by Bruno Haible in:
9498         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
9499         * config/srclist.txt: Do not sync mktime.c for now.
9500         * lib/mktime.c (shr, ydhms_diff):
9501         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
9502         * lib/strptime.c (day_of_the_week):
9503         * lib/xtime.h (xtime_sec):
9504         Redo with neither ‘%’ nor conditional branches.
9506 2019-12-23  Bruno Haible  <bruno@clisp.org>
9508         setlocale-null: Export the lock function also on non-Windows platforms.
9509         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
9510         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
9511         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
9512         * modules/setlocale-null (configure.ac): Invoke it.
9513         (Files): Add m4/visibility.m4.
9515 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9517         gethrxtime: fix rounding bug with negative args
9518         Problem reported by Bruno Haible in:
9519         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
9520         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
9521         with negative rounding.  Common platforms can compute / and % with
9522         a single instruction, so the simplified code should be shorter and
9523         faster on these platforms anyway.
9525 2019-12-22  Bruno Haible  <bruno@clisp.org>
9527         gethrxtime: remove incorrect overflow detection
9528         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
9529         integer overflow, as it didn’t suffice.  This reverts the xtime.h
9530         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
9531         cannot now see the need for anyway (even in cases where it works),
9532         as the patch is helpful only when the signs of S and NS disagree,
9533         and all callers pass nonnegative values for S and NS.
9535 2019-12-22  Bruno Haible  <bruno@clisp.org>
9537         setlocale-null: Add standalone include file.
9538         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
9539         * lib/locale.in.h: Include setlocale_null.h.
9540         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
9541         setlocale_null): Remove declarations.
9542         * lib/setlocale_null.c: Include setlocale_null.h.
9543         * lib/localename.c: Likewise.
9544         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
9545         (Depends-on): Add snippet/arg-nonnull.
9546         (Include): Allow either "setlocale_null.h" or <locale.h>.
9548 2019-12-22  Bruno Haible  <bruno@clisp.org>
9550         strfmon_l: Fix test failures on FreeBSD and Cygwin.
9551         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
9552         AC_RUN_IFELSE test.
9553         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
9554         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
9555         problem.
9557 2019-12-22  Bruno Haible  <bruno@clisp.org>
9559         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
9560         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
9561         unconditional AC_LIBOBJ.
9562         * modules/selinux-at: Likewise.
9563         * modules/xmemdup0: Likewise.
9564         * modules/xstrtoll: Likewise.
9566 2019-12-22  Bruno Haible  <bruno@clisp.org>
9568         longlong: Mark module obsolete.
9569         * modules/longlong (Status, Notice): New sections.
9571         stdint: Assume that the compiler supports 'long long'.
9572         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
9573         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9574         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9575         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
9576         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9577         * modules/stdint (Files): Remove longlong.m4.
9578         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
9579         HAVE_UNSIGNED_LONG_LONG_INT.
9581         inttypes-incomplete: Assume that the compiler supports 'long long'.
9582         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9583         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
9584         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9585         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
9586         HAVE_LONG_LONG_INT to be 1.
9587         * modules/inttypes-incomplete (Makefile.am): Don't substitute
9588         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9590         malloca: Assume that the compiler supports 'long long'.
9591         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9592         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9593         * modules/malloca (Files): Remove longlong.m4.
9594         * modules/relocatable-prog-wrapper (Files): Likewise.
9596         atoll: Assume that the compiler supports 'long long'.
9597         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
9598         * modules/atoll (Files): Remove longlong.m4.
9600         strtoll: Assume that the compiler supports 'long long'.
9601         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
9602         * modules/strtoll (Files): Remove longlong.m4.
9604         strtoull: Assume that the compiler supports 'long long'.
9605         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
9606         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9607         * modules/strtoull (Files): Remove longlong.m4.
9609         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
9610         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
9611         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9612         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
9613         AC_TYPE_LONG_LONG_INT.
9614         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
9615         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9616         * modules/strtoimax (Files): Remove longlong.m4.
9617         * modules/strtoumax (Files): Likewise.
9619         xstrtoll: Assume that the compiler supports 'long long'.
9620         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
9621         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
9623         vasnprintf: Assume that the compiler supports 'long long'.
9624         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
9625         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
9626         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9627         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
9628         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
9629         require AC_TYPE_LONG_LONG_INT.
9630         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9631         gl_PREREQ_VASNPRINTF): Likewise.
9632         * modules/vasnprintf (Files): Remove longlong.m4.
9633         * modules/c-vasnprintf (Files): Likewise.
9634         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9635         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9636         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9637         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9638         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9639         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9640         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9642         gethrxtime: Assume that the compiler supports 'long long'.
9643         * lib/xtime.h (xtime_t): Define to 'long long int' always.
9644         (XTIME_PRECISION): Define to 1000000000 always.
9645         (xtime_make, xtime_sec): Optimize accordingly.
9646         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
9647         * modules/gethrxtime (Files): Remove longlong.m4.
9649         integer_length*: Assume that the compiler supports 'long long'.
9650         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
9651         * modules/integer_length (Files): Remove longlong.m4.
9652         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9653         * modules/integer_length_l (Files): Remove longlong.m4.
9654         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9655         * modules/integer_length_ll (Files): Remove longlong.m4.
9656         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9658         count-one-bits: Assume that the compiler supports 'long long'.
9659         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
9660         * m4/count-one-bits.m4: Remove file.
9661         * modules/count-one-bits (Files): Remove it.
9662         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9663         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9664         unconditionally.
9666         count-trailing-zeros: Assume that the compiler supports 'long long'.
9667         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9668         unconditionally.
9669         * m4/count-trailing-zeros.m4: Remove file.
9670         * modules/count-trailing-zeros (Files): Remove it.
9671         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9672         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9673         unconditionally.
9675         count-leading-zeros: Assume that the compiler supports 'long long'.
9676         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9677         unconditionally.
9678         * m4/count-leading-zeros.m4: Remove file.
9679         * modules/count-leading-zeros (Files): Remove it.
9680         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9681         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9682         unconditionally.
9684 2019-12-22  Bruno Haible  <bruno@clisp.org>
9686         localcharset: Update support for OpenBSD.
9687         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9689 2019-12-21  Bruno Haible  <bruno@clisp.org>
9691         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9692         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9693         NetBSD.
9694         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9696 2019-12-21  Bruno Haible  <bruno@clisp.org>
9698         threadlib: Improve code structure.
9699         * m4/threadlib.m4: Reorder macros. Add comments.
9701 2019-12-21  Bruno Haible  <bruno@clisp.org>
9703         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9704         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9705         here from m4/threads.m4).
9706         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9707         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9708         (gl_STDTHREADLIB): New macro.
9709         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9710         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9712 2019-12-21  Bruno Haible  <bruno@clisp.org>
9714         sched_yield: Don't depend on threadlib and yield.
9715         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9716         LIB_SCHED_YIELD.
9717         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9718         m4/yield.m4).
9719         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9720         gl_THREADLIB and gl_YIELD.
9721         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9722         based on $(LIB_SCHED_YIELD).
9723         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9724         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9725         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9726         (Depends-on): Remove threadlib.
9727         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9728         * modules/threads-h (Files): Remove m4/yield.m4.
9729         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9730         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9731         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9732         * modules/pthread-once-tests (Makefile.am): Likewise.
9733         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9734         * modules/pthread-tss-tests (Makefile.am): Likewise.
9736 2019-12-21  Bruno Haible  <bruno@clisp.org>
9738         threads-h: Don't depend on threadlib.
9739         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9740         not gl_THREADLIB_EARLY.
9742 2019-12-21  Bruno Haible  <bruno@clisp.org>
9744         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9745         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9746         with $(LIB_SETLOCALE).
9748 2019-12-21  Bruno Haible  <bruno@clisp.org>
9750         threadlib: Remove unused dependency (left over from 2019-07-06).
9751         * modules/threadlib (Depends-on): Remove havelib.
9753 2019-12-21  Bruno Haible  <bruno@clisp.org>
9755         New convention for multithread-safety tests.
9756         * tests/test-setlocale_null-mt-one.c: Renamed from
9757         tests/test-setlocale_null-one.c.
9758         * tests/test-setlocale_null-mt-all.c: Renamed from
9759         tests/test-setlocale_null-all.c.
9760         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9762 2019-12-21  Bruno Haible  <bruno@clisp.org>
9764         quotearg tests: Fix conflict with hard-locale tests.
9765         * tests/testlocale: Renamed from tests/locale.
9766         * modules/quotearg-tests (Files): Update.
9767         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9769 2019-12-21  Bruno Haible  <bruno@clisp.org>
9771         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9772         Reported by Daniel Richard G. in
9773         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9774         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9775         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9776         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9777         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9778         alternative to PTHREAD_RWLOCK_INITIALIZER.
9779         * lib/glthread/lock.c: Likewise.
9781 2019-12-21  Bruno Haible  <bruno@clisp.org>
9783         memcmp tests: Work around the clang bug.
9784         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9785         the clang optimization.
9787 2019-12-20  Bruno Haible  <bruno@clisp.org>
9789         localcharset: Add support for z/OS encoding names.
9790         * lib/localcharset.h: Mention which encodings are used as locale
9791         encodings on z/OS.
9793 2019-12-20  Bruno Haible  <bruno@clisp.org>
9795         iconv_open: Add support for z/OS encoding names.
9796         Reported by Daniel Richard G. in
9797         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9798         * lib/iconv_open-zos.gperf: New file.
9799         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9800         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9801         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9802         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9803         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9805 2019-12-20  Bruno Haible  <bruno@clisp.org>
9807         doc: Document the problem of the per-thread locale functions on z/OS.
9808         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9809         * doc/posix-functions/newlocale.texi: Likewise.
9810         * doc/posix-functions/duplocale.texi: Likewise.
9811         * doc/posix-functions/freelocale.texi: Likewise.
9813 2019-12-20  Bruno Haible  <bruno@clisp.org>
9815         localename, gettext: Fix host_os value for z/OS.
9816         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9817         cross-configuration code.
9819 2019-12-19  Jim Meyering  <meyering@fb.com>
9821         nstrftime: avoid a shadowing warning
9822         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9823         to avoid shadowing an "i" declared hundreds of lines above.
9825 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9827         dfa: struct dfamust now uses flexible array
9828         * lib/dfa.c: Include flexmember.h.
9829         (dfamust, dfamustfree): Adjust to struct dfamust change.
9830         This saves a call to malloc+free.
9831         * lib/dfa.h (struct dfamust): Make the final member a
9832         flexible array member.
9833         * modules/dfa (Depends-on): Add flexmember.
9835         dfa: fast->small for array elements
9836         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9837         since this type is used in arrays.  This change is more for
9838         documentation than for any practical effect, since the two types
9839         are the same on all known platforms.
9841 2019-12-19  Bruno Haible  <bruno@clisp.org>
9843         iconv tests: Test canonicalized, not system-dependent, encoding names.
9844         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9845         * modules/iconv-tests (Depends-on): Add iconv_open.
9847 2019-12-18  Bruno Haible  <bruno@clisp.org>
9849         localename: Fix test failure on AIX 7.2.
9850         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9851         locales on AIX.
9852         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9853         locales on AIX.
9855 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9857         Improve port of AC_C_RESTRICT to Oracle C++
9858         Problem reported by Christian Biesinger in:
9859         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9860         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9861         Oracle Developer Studio C++ 12.5 or later.
9863 2019-12-18  Bruno Haible  <bruno@clisp.org>
9865         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9866         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9868 2019-12-18  Bruno Haible  <bruno@clisp.org>
9870         localename: Ensure multithread-safety in future changes.
9871         * lib/localename.c (setlocale): Reference the system's setlocale().
9872         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9873         (gl_locale_name_posix): Likewise.
9874         * modules/localename (Depends-on): Add setlocale-null.
9876 2019-12-18  Bruno Haible  <bruno@clisp.org>
9878         setlocale-null: Make API more useful.
9879         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9880         callers changed.
9881         (setlocale_null): New declaration.
9882         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9883         extracted from setlocale_null_unlocked.
9884         (setlocale_null_unlocked): Invoke it.
9885         (setlocale_null_r): Renamed from setlocale_null.
9886         (setlocale_null): New function, extracted from setlocale_mtsafe in
9887         setlocale.c.
9888         * lib/setlocale.c: Don't include <errno.h>.
9889         (setlocale_mtsafe): Invoke setlocale_null.
9890         * lib/setlocale-lock.c: Update comments.
9891         * doc/posix-functions/setlocale.texi: Mention both functions.
9893 2019-12-18  Bruno Haible  <bruno@clisp.org>
9895         localename: Optimize code for native Windows.
9896         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9897         category (not allowed here).
9899 2019-12-18  Bruno Haible  <bruno@clisp.org>
9901         setlocale: Make calls with NULL argument multithread-safe.
9902         * lib/setlocale.c: Include <errno.h>.
9903         (setlocale_mtsafe): New function.
9904         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9905         (setlocale_improved): Renamed from rpl_setlocale.
9906         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9907         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9908         LIB_SETLOCALE.
9909         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9910         (Link): New section.
9911         * tests/locale.c: Undefine setlocale.
9912         * tests/test-setlocale_null-one.c: Likewise.
9913         * tests/test-setlocale_null-all.c: Likewise.
9914         * modules/setlocale-tests (Makefile.am): Link the test programs with
9915         $(LIB_SETLOCALE).
9916         * modules/astrxfrm-tests (Makefile.am): Likewise.
9917         * modules/btowc-tests (Makefile.am): Likewise.
9918         * modules/c-ctype-tests (Makefile.am): Likewise.
9919         * modules/c-snprintf-tests (Makefile.am): Likewise.
9920         * modules/c-strcase-tests (Makefile.am): Likewise.
9921         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9922         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9923         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9924         * modules/dfa-tests (Makefile.am): Likewise.
9925         * modules/duplocale-tests (Makefile.am): Likewise.
9926         * modules/hard-locale-tests (Makefile.am): Likewise.
9927         * modules/localcharset-tests (Makefile.am): Likewise.
9928         * modules/localename-tests (Makefile.am): Likewise.
9929         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9930         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9931         * modules/mbrtowc-tests (Makefile.am): Likewise.
9932         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9933         * modules/mbscasestr-tests (Makefile.am): Likewise.
9934         * modules/mbschr-tests (Makefile.am): Likewise.
9935         * modules/mbscspn-tests (Makefile.am): Likewise.
9936         * modules/mbsinit-tests (Makefile.am): Likewise.
9937         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9938         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9939         * modules/mbspbrk-tests (Makefile.am): Likewise.
9940         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9941         * modules/mbsrchr-tests (Makefile.am): Likewise.
9942         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9943         * modules/mbsspn-tests (Makefile.am): Likewise.
9944         * modules/mbsstr-tests (Makefile.am): Likewise.
9945         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9946         * modules/quotearg-tests (Makefile.am): Likewise.
9947         * modules/regex-tests (Makefile.am): Likewise.
9948         * modules/strfmon_l-tests (Makefile.am): Likewise.
9949         * modules/strtod-tests (Makefile.am): Likewise.
9950         * modules/strtold-tests (Makefile.am): Likewise.
9951         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9952         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9953         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9954         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9955         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9956         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9957         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9958         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9959         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9960         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9961         * modules/wcrtomb-tests (Makefile.am): Likewise.
9962         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9963         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9964         * modules/wcwidth-tests (Makefile.am): Likewise.
9965         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9966         safety fix is also available in module 'setlocale'.
9968 2019-12-18  Bruno Haible  <bruno@clisp.org>
9970         hard-locale: Make multithread-safe.
9971         * lib/hard-locale.h (hard_locale): Move documentation to here.
9972         * lib/hard-locale.c: Don't include <stdlib.h>.
9973         (GLIBC_VERSION): Remove macro.
9974         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9975         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9976         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9977         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9978         (Link): New section.
9979         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9980         $(LIB_HARD_LOCALE).
9982 2019-12-18  Bruno Haible  <bruno@clisp.org>
9984         hard-locale: Avoid test failure on Haiku.
9985         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9987 2019-12-18  Bruno Haible  <bruno@clisp.org>
9989         setlocale-null: Handle NULL result from setlocale.
9990         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9991         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9992         from setlocale or _wsetlocale.
9994 2019-12-18  Bruno Haible  <bruno@clisp.org>
9996         hard-locale: Add test.
9997         * tests/test-hard-locale.c: New file.
9998         * tests/locale.c: New file.
9999         * modules/hard-locale-tests: New file.
10001 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10003         dfa: do not match invalid UTF-8
10004         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
10005         from 5 to 9 tokens; this is needed due to the changes to
10006         add_utf8_anychar.
10007         (charclass_index): 2nd arg is now pointer-to-const.
10008         (add_utf8_anychar): Match only valid UTF-8 byte sequences
10009         instead of allowing overlong encodings or surrogate halves.
10011         dfa: simplify charclass by assuming C99
10012         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
10013         (charclass_word): Now always uint_fast64_t.
10014         (CHARCLASS_PAIR): Remove.
10015         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
10017         fts: tune via calloc
10018         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
10020         dfa: tune via xzalloc
10021         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
10023 2019-12-17  Bruno Haible  <bruno@clisp.org>
10025         localcharset: Fix multithread-safety bug on Windows and OS/2.
10026         * lib/localcharset.h (locale_charset): Clarify when the result becomes
10027         invalid.
10028         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
10029         assemble the result.
10031 2019-12-17  Bruno Haible  <bruno@clisp.org>
10033         localcharset: Optimize code for native Windows.
10034         * lib/localcharset.c (locale_charset): Don't bother calling
10035         setlocale (LC_ALL, NULL) since we're not interested in its result.
10037 2019-12-17  Bruno Haible  <bruno@clisp.org>
10039         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
10040         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
10041         setlocale.
10042         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
10043         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
10044         * modules/nl_langinfo (Depends-on): Add setlocale-null.
10046 2019-12-17  Bruno Haible  <bruno@clisp.org>
10048         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
10049         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
10050         stack-allocated buffer to assemble each result and different static
10051         buffers to return it.
10052         * tests/test-nl_langinfo-mt.c: New file.
10053         * modules/nl_langinfo-tests (Files): Add it.
10054         (Depends-on): Add thread, nanosleep.
10055         (Makefile.am): Build test-nl_langinfo-mt test.
10057 2019-12-17  Bruno Haible  <bruno@clisp.org>
10059         langinfo: Document more details.
10060         * doc/posix-headers/langinfo.texi: List platform details.
10061         * doc/posix-functions/nl_langinfo.texi: Likewise.
10063 2019-12-17  Bruno Haible  <bruno@clisp.org>
10065         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
10066         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
10067         and Martin Storsjö <martin@martin.st>
10068         in <https://savannah.gnu.org/bugs/?57406>.
10069         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
10070         mingw.
10072 2019-12-17  Bruno Haible  <bruno@clisp.org>
10074         glob: Avoid warning on mingw.
10075         Reported by Christian Biesinger <cbiesinger@google.com> in
10076         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
10077         * lib/glob.c (__stat64): Undefine first.
10079 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10081         xalloc: tune xzalloc for fresh allocations
10082         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
10083         because when the memory is freshly allocated from the OS via sbrk
10084         or mmap, calloc can avoid doing the memset.
10086         dfa: new function dfacopysyntax
10087         * lib/dfa.c (struct dfa): Move syntax member later so
10088         that dfacopysyntax can easily clear earlier members.
10089         (dfacopysyntax): New function, used by Gawk.
10091 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10093         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
10094         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
10095         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
10096         if not already defined.
10098         dfa: remove one dependency on MB_CUR_MAX
10099         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
10101         dfa: remove struct lexer_state.cur_mb_len
10102         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
10103         as it’s not needed and the code is simpler without it.
10104         All uses removed.
10106 2019-12-16  Bruno Haible  <bruno@clisp.org>
10108         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
10109         Reported by Arnold Robbins <arnold@skeeve.com>.
10110         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
10111         copied from lib/glthread/lock.h.
10112         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
10113         (setlocale_null_with_lock): If pthread_in_use() is false, use
10114         setlocale_null_unlocked directly.
10115         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
10116         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
10117         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
10118         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
10119         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
10120         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
10122 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10124         dfa: make dfasyntax thread-safe
10125         Problem reported by Bruno Haible in:
10126         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
10127         * lib/dfa.c: Do not include locale.h.
10128         (struct dfa): Remove simple_locale member.
10129         All uses replaced by localeinfo.simple.
10130         (using_simple_locale): Remove; now present (with some
10131         changes) in localeinfo.c.
10132         (dfasyntax): No need to initialize removed member.
10134         localeinfo: record whether locale is simple
10135         * lib/localeinfo.c (using_simple_locale): New function,
10136         copied here from lib/dfa.c but with a change: it uses
10137         strcoll for its heuristic, instead of using setlocale.
10138         This lets it be thread-safe.
10139         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
10141 2019-12-15  Bruno Haible  <bruno@clisp.org>
10143         duplocale: Fix multithread-safety bug on AIX.
10144         * lib/duplocale.c: Don't include <stdlib.h>.
10145         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
10146         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10147         Set LIB_DUPLOCALE.
10148         * modules/duplocale (Depends-on): Add setlocale-null.
10149         (Link): New section.
10150         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
10151         $(LIB_DUPLOCALE).
10153 2019-12-15  Bruno Haible  <bruno@clisp.org>
10155         setlocale-null: Add tests.
10156         * tests/test-setlocale_null.c: New file.
10157         * tests/test-setlocale_null-one.c: New file.
10158         * tests/test-setlocale_null-all.c: New file.
10159         * modules/setlocale-null-tests: New file.
10161         setlocale-null: New module.
10162         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
10163         setlocale_null): New declarations.
10164         * lib/setlocale_null.c: New file.
10165         * lib/setlocale-lock.c: New file.
10166         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
10167         * m4/setlocale_null.m4: New file.
10168         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
10169         GNULIB_SETLOCALE_NULL.
10170         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
10171         * modules/setlocale-null: New file.
10172         * doc/posix-functions/setlocale.texi: Mention the new module.
10174 2019-12-15  Bruno Haible  <bruno@clisp.org>
10176         lock tests: Skip test when no multithreading is enabled.
10177         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
10179 2019-12-14  Bruno Haible  <bruno@clisp.org>
10181         locale, duplocale, localename: Fix last patch.
10182         Reported by Daniel Richard G. in
10183         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
10184         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
10185         Don't define if locale_t does not exist.
10187 2019-12-13  Bruno Haible  <bruno@clisp.org>
10189         locale, duplocale, localename: Fix errors if locale_t does not exist.
10190         Reported by Daniel Richard G. in
10191         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
10192         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
10193         macros.
10194         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
10195         HAVE_NEWLOCALE.
10196         * tests/test-localename.c: Likewise.
10197         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
10198         HAVE_DUPLOCALE.
10199         * tests/test-locale-c++.cc: Likewise.
10201 2019-12-13  Bruno Haible  <bruno@clisp.org>
10203         wcstok: Fix test failure on HP-UX.
10204         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
10205         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
10207 2019-12-12  Bruno Haible  <bruno@clisp.org>
10209         strtod, strtold tests: Avoid test failure on AIX 7.2.
10210         * tests/test-strtod1.c (main): Allow implementations in which ',' and
10211         '.' both are radix characters.
10212         * tests/test-strtold1.c (main): Likewise.
10214 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10216         dfa: prefer ptrdiff_t for API, too
10217         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
10218         but do this only for internal use for now.
10219         * NEWS: Mention the API change.
10220         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
10221         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
10222         values known to be nonnegative.
10223         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
10224         Prefer idx_t or ptrdiff_t to size_t for API.
10225         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
10226         Prefer ptrdiff_t to size_t for API.
10228         stdalign: port to xlclang 16.01
10229         Problem reportd by Bruno Haible in:
10230         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
10231         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
10232         ((__aligned__ (...))) with xlclang, as a top-level
10233         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
10234         xlclang version 16.01.0000.0001; the alignment directive is ignored.
10236 2019-12-12  Bruno Haible  <bruno@clisp.org>
10238         duplocale: Fix test failure on AIX 7.2 with xlclang.
10239         * lib/duplocale.c: Include <stdlib.h>.
10240         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
10241         value.
10243 2019-12-12  Bruno Haible  <bruno@clisp.org>
10245         stddef: Document the AIX xlc issue.
10246         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
10248 2019-12-12  Bruno Haible  <bruno@clisp.org>
10250         duplocale: Don't attempt to override if locale_t does not exist.
10251         Reported by Daniel Richard G. in
10252         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
10253         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
10254         HAVE_DUPLOCALE to 0.
10256 2019-12-12  Bruno Haible  <bruno@clisp.org>
10258         wcwidth: Avoid test failure on AIX 7.2.
10259         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
10260         negative.
10261         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
10263 2019-12-12  Bruno Haible  <bruno@clisp.org>
10265         ilogbl: Work around Cygwin bug.
10266         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
10267         correct.
10268         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
10270 2019-12-12  Bruno Haible  <bruno@clisp.org>
10272         strtold: Work around Cygwin bug.
10273         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
10274         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
10275         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
10276         STRTOLD_HAS_UNDERFLOW_BUG is defined.
10277         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
10279 2019-12-12  Bruno Haible  <bruno@clisp.org>
10281         strtold: Fix autoconf test.
10282         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
10284 2019-12-11  Bruno Haible  <bruno@clisp.org>
10286         fsync tests: Skip test that is known to fail.
10287         * doc/posix-functions/fsync.texi: Update list of platforms.
10288         * tests/test-fsync.c (main): Skip test with read-only file descriptors
10289         that is known to fail on AIX and Cygwin.
10291 2019-12-11  Bruno Haible  <bruno@clisp.org>
10293         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
10294         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
10295         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
10296         HAVE_GETADDRINFO as a C macro.
10297         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
10298         declare as replacement functions.
10299         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
10300         define as no-op overrides.
10301         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
10302         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
10303         * modules/getaddrinfo (Depends-on, configure.ac): Test
10304         REPLACE_GETADDRINFO.
10305         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
10306         problem.
10307         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
10308         convention problems.
10310 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10312         dfa: prefer signed integers for internals
10313         Signed integers can be checked more easily for integer overflow.
10314         * lib/dfa.c (position, struct lexer_state, struct parser_state)
10315         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
10316         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
10317         (nsubtoks, copytoks, closure, alloc_position_set, delete)
10318         (replace, state_index, epsclosure, charclass_context)
10319         (state_separate_contexts, merge_nfa_state, dfaoptimize)
10320         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
10321         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
10322         (comsubs, inboth, allocmust):
10323         Prefer a signed to an unsigned integer when calculating indexes,
10324         unless the integer is part of the external API (a bigger deal,
10325         and to be done later).
10327         dfa: fix index overflow
10328         * lib/dfa.c (compare): Avoid integer overflow when analyzing
10329         very large regular expressions.
10331         dfa: update commentary for previous change
10332         * NEWS: Mention the change.
10333         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
10335 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10337         dfa: separate parse and compile phase
10338         ‘dfamust’ must be called after parsing and before tokens are
10339         reordered, but both are executed in the compilation phase.
10340         Token reordering was introduced in Gnulib commit
10341         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10342         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10343         * lib/dfa.c (dfaparse): Change it to global function.
10344         (dfacomp): If first argument is NULL, skip parse.
10345         * lib/dfa.h: (dfaparse): Add a prototype.
10347 2019-12-11  Bruno Haible  <bruno@clisp.org>
10349         unistd tests: Fix link error on MSVC.
10350         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10351         $(LIB_GETLOGIN).
10353 2019-12-11  Bruno Haible  <bruno@clisp.org>
10355         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10356         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10357         and POSIX substitutes are supported in C++ mode.
10358         * NEWS: Likewise.
10360 2019-12-11  Bruno Haible  <bruno@clisp.org>
10362         stddef: Fix compilation error in C++ mode on MSVC.
10363         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10364         instead, include <cstddef>.
10366 2019-12-11  Bruno Haible  <bruno@clisp.org>
10368         unistd: Fix compilation error in C++ mode on MSVC.
10369         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10370         does not have <unistd.h>.
10372 2019-12-11  Bruno Haible  <bruno@clisp.org>
10374         locale: Fix compilation error in C++ mode on MSVC.
10375         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10376         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10377         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10378         int_n_sep_by_space): Define as macros on MSVC.
10380 2019-12-11  Bruno Haible  <bruno@clisp.org>
10382         wchar: Fix compilation error in C++ mode on MSVC.
10383         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10385 2019-12-11  Bruno Haible  <bruno@clisp.org>
10387         pthread-thread: Fix compilation error in C++ mode on MSVC.
10388         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10389         _GL_CXXALIAS_RPL invocation.
10391 2019-12-08  Bruno Haible  <bruno@clisp.org>
10393         Fix compilation errors in C++ mode on Haiku.
10394         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10395         non-glibc systems.
10396         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10397         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10398         posix_spawnattr_setschedparam): Likewise.
10399         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10400         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10401         * lib/unistd.in.h (usleep): Likewise.
10403 2019-12-08  Bruno Haible  <bruno@clisp.org>
10405         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10406         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10407         * modules/fseeko (configure.ac-early): Require it instead of
10408         AC_FUNC_FSEEKO.
10409         * modules/ftello (configure.ac-early): Likewise.
10410         * modules/fflush (configure.ac-early): Likewise.
10412 2019-12-08  Bruno Haible  <bruno@clisp.org>
10414         Fix compilation error in C++ mode on HP-UX 11.
10415         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10416         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10418 2019-12-08  Bruno Haible  <bruno@clisp.org>
10420         Fix compilation errors on HP-UX 11/ia64.
10421         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10422         _GL_FUNCDECL_SYS.
10424 2019-12-08  Bruno Haible  <bruno@clisp.org>
10426         Fix compilation error in C++ mode on OpenBSD.
10427         * lib/signal.in.h (signal): Declare on OpenBSD.
10429 2019-12-08  Bruno Haible  <bruno@clisp.org>
10431         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10432         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10433         instead of #error.
10435 2019-12-08  Bruno Haible  <bruno@clisp.org>
10437         Fix compilation errors in C++ mode on FreeBSD.
10438         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10439         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10440         * lib/threads.in.h (thrd_exit): Likewise.
10441         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10443 2019-12-08  Bruno Haible  <bruno@clisp.org>
10445         Fix compilation errors in C++ mode on macOS and FreeBSD.
10446         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10447         or FreeBSD with clang, use the approach without C preprocessor macro.
10449 2019-12-07  Bruno Haible  <bruno@clisp.org>
10451         Fix compilation errors in C++ mode on AIX with xlclang++.
10452         Reported by Christian Biesinger <cbiesinger@google.com> in
10453         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10454         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
10456 2019-12-07  Bruno Haible  <bruno@clisp.org>
10458         Document compilation error in C++ mode on NetBSD 8.0.
10459         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
10461 2019-12-07  Bruno Haible  <bruno@clisp.org>
10463         Fix compilation errors in C++ mode on Solaris 10.
10464         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
10465         to non-empty on Solaris with a non-GCC compiler.
10466         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
10468 2019-12-07  Bruno Haible  <bruno@clisp.org>
10470         Reword NEWS entry.
10471         * NEWS: Reword the latest NEWS entry.
10473 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
10475         Move xstrtol_fatal to a new xstrtol-error module.
10476         * lib/xstrtol.h: Stop including <getopt.h>.
10477         (xstrtol_fatal): Move ...
10478         * lib/xstrtol-error.h: ... here.  New file.
10479         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
10480         * tests/test-xstrtol.c: Likewise.
10481         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
10482         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
10483         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
10484         * modules/xstrtol-error: New file.
10485         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
10486         * MODULES.html.sh: Add xstrtol-error.
10487         * NEWS: Document the change.
10489 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10491         nstrftime: better width support for %N, %z
10492         * lib/nstrftime.c (width_add, width_add1, width_cpy):
10493         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
10494         a new WIDTH parameter.
10495         (add, add1, cpy): Use these macros.
10496         (width_add): Do not treat digits == 0 as a special case,
10497         do not pad if padding is ‘-’, and do not use a negative width.
10498         (__strftime_internal): Redo formatting of nanoseconds and numeric
10499         timezones to avoid buffer misuse in unusual cases, and so that
10500         widths make more sense.  Add support for widths greater than 9 to
10501         the %N format; they are zero filled on the right.
10502         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
10504 2019-12-05  Bruno Haible  <bruno@clisp.org>
10506         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
10507         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
10508         set REPLACE_ISFINITE to 1.
10509         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
10510         REPLACE_ISINF to 1.
10511         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
10512         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
10513         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10514         * lib/threads.in.h (call_once): Likewise.
10515         * lib/iconv.in.h (iconv): Likewise.
10517 2019-12-05  Bruno Haible  <bruno@clisp.org>
10519         wchar: Add more C++ tests.
10520         Reported by Christian Biesinger <cbiesinger@google.com> in
10521         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10522         * tests/test-wchar-c++3.cc: New file.
10523         * modules/wchar-c++-tests (Files): Add it.
10524         (Makefile.am): Compile it.
10526 2019-12-05  Bruno Haible  <bruno@clisp.org>
10528         Add more C++ tests.
10530         assert-h: Add C++ tests.
10531         * tests/test-assert-h-c++.cc: New file.
10532         * tests/test-assert-h-c++2.cc: New file.
10533         * modules/assert-h-c++-tests: New file.
10534         * modules/assert-h-tests: New file.
10536         ctype: Add C++ tests.
10537         * tests/test-ctype-c++.cc: New file.
10538         * tests/test-ctype-c++2.cc: New file.
10539         * modules/ctype-c++-tests: New file.
10540         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
10542         errno: Add C++ tests.
10543         * tests/test-errno-c++.cc: New file.
10544         * tests/test-errno-c++2.cc: New file.
10545         * modules/errno-c++-tests: New file.
10546         * modules/errno-tests (Depends-on): Add errno-c++-tests.
10548         float: Add C++ tests.
10549         * tests/test-float-c++.cc: New file.
10550         * tests/test-float-c++2.cc: New file.
10551         * modules/float-c++-tests: New file.
10552         * modules/float-tests (Depends-on): Add float-c++-tests.
10554         inttypes: Add more C++ tests.
10555         * tests/test-inttypes-c++2.cc: New file.
10556         * modules/inttypes-c++-tests (Files): Add it.
10557         (Makefile.am): Compile it.
10559         limits-h: Add C++ tests.
10560         * tests/test-limits-h-c++.cc: New file.
10561         * tests/test-limits-h-c++2.cc: New file.
10562         * modules/limits-h-c++-tests: New file.
10563         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
10565         stdarg: Add C++ tests.
10566         * tests/test-stdarg-c++.cc: New file.
10567         * tests/test-stdarg-c++2.cc: New file.
10568         * modules/stdarg-c++-tests: New file.
10569         * modules/stdarg-tests: New file.
10571         stdbool: Add C++ tests.
10572         * tests/test-stdbool-c++.cc: New file.
10573         * tests/test-stdbool-c++2.cc: New file.
10574         * modules/stdbool-c++-tests: New file.
10575         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
10577         stddef: Add C++ tests.
10578         * tests/test-stddef-c++.cc: New file.
10579         * tests/test-stddef-c++2.cc: New file.
10580         * modules/stddef-c++-tests: New file.
10581         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
10583         stdint: Add C++ tests.
10584         * tests/test-stdint-c++.cc: New file.
10585         * tests/test-stdint-c++2.cc: New file.
10586         * modules/stdint-c++-tests: New file.
10587         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10589         wchar: Add more C++ tests.
10590         * tests/test-wchar-c++2.cc: New file.
10591         * modules/wchar-c++-tests (Files): Add it.
10592         (Makefile.am): Compile it.
10594         wctype-h: Add more C++ tests.
10595         * tests/test-wctype-h-c++2.cc: New file.
10596         * modules/wctype-h-c++-tests (Files): Add it.
10597         (Makefile.am): Compile it.
10599 2019-12-04  Bruno Haible  <bruno@clisp.org>
10601         Fix compilation errors in C++ mode with xlclang++ on AIX.
10602         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
10603         C++ mode on AIX.
10604         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
10605         without C preprocessor macro.
10606         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
10607         _GL_CXXALIAS_SYS.
10608         * lib/threads.in.h (thrd_exit): Likewise.
10610 2019-12-04  Bruno Haible  <bruno@clisp.org>
10612         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
10613         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
10614         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
10616 2019-12-04  Bruno Haible  <bruno@clisp.org>
10618         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10619         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
10620         _GL_CXXALIASWARN invocation on non-glibc systems.
10621         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
10622         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
10623         iswctype, towlower, towupper): Likewise.
10625 2019-12-03  Bruno Haible  <bruno@clisp.org>
10627         Avoid hassles caused by [[noreturn]] in C++.
10628         Reported by Christian Biesinger <cbiesinger@google.com> in
10629         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
10630         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
10631         * lib/_Noreturn.h: Likewise.
10633 2019-12-02  Bruno Haible  <bruno@clisp.org>
10635         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
10636         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
10637         LIBMULTITHREAD.
10638         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
10639         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
10640         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
10641         gl_THREADLIB.
10642         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
10644 2019-12-02  Bruno Haible  <bruno@clisp.org>
10646         Fix some more link errors with --enable-threads=isoc.
10647         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
10648         * modules/pthread-rwlock (Depends-on): Likewise.
10650 2019-12-02  Bruno Haible  <bruno@clisp.org>
10652         Fix link errors with --enable-threads=posix on AIX.
10653         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
10654         program with $(LIBTHREAD).
10655         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
10656         program with $(LIBTHREAD).
10658 2019-12-02  Bruno Haible  <bruno@clisp.org>
10660         Fix link errors with --enable-threads=posix on AIX.
10661         * modules/mbrtowc (Link): New section.
10662         * modules/acl (Link): Likewise.
10663         * modules/argmatch (Link): Likewise.
10664         * modules/backup-rename (Link): Likewise.
10665         * modules/backupfile (Link): Likewise.
10666         * modules/closein (Link): Likewise.
10667         * modules/closeout (Link): Likewise.
10668         * modules/copy-file (Link): Likewise.
10669         * modules/csharpcomp (Link): Likewise.
10670         * modules/csharpexec (Link): Likewise.
10671         * modules/dfa (Link): Likewise.
10672         * modules/exclude (Link): Likewise.
10673         * modules/fnmatch (Link): Likewise.
10674         * modules/fnmatch-gnu (Link): Likewise.
10675         * modules/fnmatch-posix (Link): Likewise.
10676         * modules/glob (Link): Likewise.
10677         * modules/human (Link): Likewise.
10678         * modules/javacomp (Link): Likewise.
10679         * modules/javaexec (Link): Likewise.
10680         * modules/javaversion (Link): Likewise.
10681         * modules/mbfile (Link): Likewise.
10682         * modules/mbiter (Link): Likewise.
10683         * modules/mbmemcasecmp (Link): Likewise.
10684         * modules/mbmemcasecoll (Link): Likewise.
10685         * modules/mbrlen (Link): Likewise.
10686         * modules/mbscasecmp (Link): Likewise.
10687         * modules/mbscasestr (Link): Likewise.
10688         * modules/mbschr (Link): Likewise.
10689         * modules/mbscspn (Link): Likewise.
10690         * modules/mbsinit (Link): Likewise.
10691         * modules/mbslen (Link): Likewise.
10692         * modules/mbsncasecmp (Link): Likewise.
10693         * modules/mbsnlen (Link): Likewise.
10694         * modules/mbsnrtowcs (Link): Likewise.
10695         * modules/mbspbrk (Link): Likewise.
10696         * modules/mbspcasecmp (Link): Likewise.
10697         * modules/mbsrchr (Link): Likewise.
10698         * modules/mbsrtowcs (Link): Likewise.
10699         * modules/mbssep (Link): Likewise.
10700         * modules/mbsspn (Link): Likewise.
10701         * modules/mbsstr (Link): Likewise.
10702         * modules/mbstok_r (Link): Likewise.
10703         * modules/mbswidth (Link): Likewise.
10704         * modules/mbuiter (Link): Likewise.
10705         * modules/mkdir-p (Link): Likewise.
10706         * modules/propername (Link): Likewise.
10707         * modules/quote (Link): Likewise.
10708         * modules/quotearg (Link): Likewise.
10709         * modules/quotearg-simple (Link): Likewise.
10710         * modules/regex-quote (Link): Likewise.
10711         * modules/rpmatch (Link): Likewise.
10712         * modules/sh-quote (Link): Likewise.
10713         * modules/system-quote (Link): Likewise.
10714         * modules/trim (Link): Likewise.
10715         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10716         * modules/unistdio/ulc-fprintf (Link): Likewise.
10717         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10718         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10719         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10720         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10721         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10722         * modules/xfreopen (Link): Likewise.
10723         * modules/xmemcoll (Link): Likewise.
10724         * modules/yesno (Link): Likewise.
10725         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10726         * modules/argmatch-tests (Makefile.am): Likewise.
10727         * modules/closein-tests (Makefile.am): Likewise.
10728         * modules/copy-file-tests (Makefile.am): Likewise.
10729         * modules/dfa-tests (Makefile.am): Likewise.
10730         * modules/fnmatch-tests (Makefile.am): Likewise.
10731         * modules/glob-tests (Makefile.am): Likewise.
10732         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10733         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10734         * modules/mbrtowc-tests (Makefile.am): Likewise.
10735         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10736         * modules/mbscasestr-tests (Makefile.am): Likewise.
10737         * modules/mbschr-tests (Makefile.am): Likewise.
10738         * modules/mbscspn-tests (Makefile.am): Likewise.
10739         * modules/mbsinit-tests (Makefile.am): Likewise.
10740         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10741         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10742         * modules/mbspbrk-tests (Makefile.am): Likewise.
10743         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10744         * modules/mbsrchr-tests (Makefile.am): Likewise.
10745         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10746         * modules/mbsspn-tests (Makefile.am): Likewise.
10747         * modules/mbsstr-tests (Makefile.am): Likewise.
10748         * modules/quotearg-tests (Makefile.am): Likewise.
10749         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10750         * modules/readtokens-tests (Makefile.am): Likewise.
10751         * modules/regex-quote-tests (Makefile.am): Likewise.
10752         * modules/sh-quote-tests (Makefile.am): Likewise.
10753         * modules/system-quote-tests (Makefile.am): Likewise.
10754         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10755         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10756         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10757         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10758         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10759         * modules/yesno-tests (Makefile.am): Likewise.
10761 2019-12-02  Bruno Haible  <bruno@clisp.org>
10763         Simplify link sections.
10764         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10765         * modules/lock (Link): Likewise.
10766         * modules/cond (Link): Likewise.
10767         * modules/tls (Link): Likewise.
10768         * modules/yield (Link): Likewise.
10769         * modules/regex (Link): Likewise.
10770         * modules/localename (Link): Likewise.
10771         * modules/unicase/locale-language (Link): Likewise.
10772         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10774 2019-12-02  Bruno Haible  <bruno@clisp.org>
10776         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10777         * tests/test-thread_self.c (main): Disable test on AIX.
10779 2019-12-01  Bruno Haible  <bruno@clisp.org>
10781         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10782         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10783         gl_THREADLIB_EARLY_BODY.
10784         (gl_THREADLIB_EARLY_BODY): Invoke it.
10785         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10786         (gl_THREADLIB_BODY): Invoke it.
10787         (gl_PTHREADLIB): New macro.
10788         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10789         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10790         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10791         * modules/pthread-h (Files): Add threadlib.m4.
10792         (Depends-on): Remove threadlib.
10793         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10794         and _THREAD_SAFE here.
10795         (Link): Use LIBPTHREAD, not LIBTHREAD.
10796         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10797         LIBMULTITHREAD.
10798         * modules/pthread-once (Link): Likewise.
10799         * modules/pthread-mutex (Link): Likewise.
10800         * modules/pthread-rwlock (Link): Likewise.
10801         * modules/pthread-cond (Link): Likewise.
10802         * modules/pthread-tss (Link): Likewise.
10803         * modules/pthread-spin (Link): Likewise.
10804         * modules/pthread (Link): Likewise.
10805         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10806         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10807         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10808         test_pthread_once2_LDADD): Likewise.
10809         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10810         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10811         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10812         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10814 2019-12-01  Bruno Haible  <bruno@clisp.org>
10816         cond: State linking requirements.
10817         * modules/cond (Link): New section.
10819 2019-12-01  Bruno Haible  <bruno@clisp.org>
10821         threadlib: Remove unnecessary file (left over from 2019-07-06).
10822         * modules/threadlib (Files): Remove config.rpath.
10824 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10826         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10827         Reported by Dagobert Michelsen <dam@opencsw.org> in
10828         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10829         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10830         list of strings instead of one string.
10831         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10832         * pygnulib/GLImport.py (execute): Likewise.
10834 2019-11-27  Bruno Haible  <bruno@clisp.org>
10836         openpty, forkpty: Fix build error on Solaris 11.4.
10837         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10838         also in <termios.h>.
10839         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10840         of the function also in <termios.h>.
10841         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10842         * doc/glibc-functions/forkpty.texi: Likewise.
10844 2019-11-27  Bruno Haible  <bruno@clisp.org>
10846         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10847         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10848         --enable-threads=isoc and --enable-threads=isoc+posix.
10849         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10850         When both the ISO C and the POSIX threads API are available, choose
10851         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10852         --enable-threads=isoc+posix was specified. When only the ISO C threads
10853         API is available and --enable-threads=iso was specified, choose
10854         USE_ISOC_THREADS.
10855         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10856         USE_ISOC_AND_POSIX_THREADS.
10857         * lib/glthread/lock.c: Likewise.
10858         * lib/glthread/cond.h: Likewise.
10859         * lib/glthread/cond.c: Likewise.
10860         * lib/glthread/tls.h: Likewise.
10861         * lib/glthread/tls.c: Likewise.
10862         * lib/glthread/yield.h: Likewise.
10863         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10864         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10865         * lib/glthread/thread.c: Likewise.
10866         * lib/glthread/threadlib.c: Likewise.
10867         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10868         USE_ISOC_AND_POSIX_THREADS.
10869         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10870         USE_ISOC_AND_POSIX_THREADS.
10871         * tests/test-tls.c: Likewise.
10872         * tests/test-thread_create.c (main): Likewise.
10873         * tests/test-pthread-cond.c: Likewise.
10874         * tests/test-pthread-mutex.c: Likewise.
10875         * tests/test-pthread-once2.c: Likewise.
10876         * tests/test-pthread-rwlock.c: Likewise.
10877         * tests/test-pthread-tss.c: Likewise.
10878         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10879         USE_POSIX_THREADS.
10881 2019-11-24  Bruno Haible  <bruno@clisp.org>
10883         mbrtowc: Modernize autoconf test.
10884         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10885         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10886         try a UTF-8 locale.
10887         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10889 2019-11-24  Bruno Haible  <bruno@clisp.org>
10891         Fix errors in C++ mode on mingw.
10892         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10893         instead of _GL_CXXALIAS_SYS.
10894         * lib/signal.in.h (pthread_sigmask): Likewise.
10895         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10896         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10897         Likewise.
10898         * lib/wchar.in.h (btowc): Likewise.
10900 2019-11-24  Bruno Haible  <bruno@clisp.org>
10902         sys_time: Fix errors in C++ mode on mingw.
10903         * lib/sys_time.in.h (timeval): Restore the redirection
10904         '#define timeval rpl_timeval', for when the symbol timeval is being used
10905         outside the 'gnulib' namespace.
10906         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10907         'struct timeval'.
10909 2019-11-24  Bruno Haible  <bruno@clisp.org>
10911         iswctype: Fix errors in C++ mode on mingw.
10912         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10913         is 1.
10914         * lib/iswctype.c (iswctype): Add another implementation, for the
10915         GNULIB_defined_wint_t case.
10916         * modules/iswctype (configure.ac): Compile iswctype.c also if
10917         GNULIB_OVERRIDES_WINT_T is 1.
10919 2019-11-24  Bruno Haible  <bruno@clisp.org>
10921         windows-timedmutex: Fix errors in C++ mode on mingw.
10922         * lib/windows-timedmutex.h: Add closing brace.
10924 2019-11-24  Bruno Haible  <bruno@clisp.org>
10926         Fix errors in C++ mode on Cygwin.
10927         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10928         _GL_CXXALIAS_SYS.
10930 2019-11-24  Bruno Haible  <bruno@clisp.org>
10932         time_r: Fix for mingw (regression from 2019-11-16).
10933         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10934         AC_LINK_IFELSE test only if the function does not appear to exist.
10936 2019-11-24  Bruno Haible  <bruno@clisp.org>
10938         wcstok: Add tests.
10939         * tests/test-wcstok.c: New file.
10940         * modules/wcstok-tests: New file.
10942 2019-11-24  Bruno Haible  <bruno@clisp.org>
10944         wcstok: Work around wrong signature on native Windows.
10945         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10946         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10947         REPLACE_WCSTOK.
10948         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10949         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10950         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10951         * doc/posix-functions/wcstok.texi: Mention the problem.
10953 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10955         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10956         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10957         remove workaround for GCC bug 91450 as the bug should be fixed
10958         there too.
10960 2019-11-21  Bruno Haible  <bruno@clisp.org>
10962         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10963         Reported by Christian Biesinger <cbiesinger@google.com> in
10964         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10965         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10966         non-glibc systems.
10967         * lib/locale.in.h (localeconv, setlocale): Likewise.
10968         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10969         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10970         rint, round, trunc): Likewise.
10971         * lib/monetary.in.h (strfmon_l): Likewise.
10972         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10973         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10974         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10975         pthread_spin_destroy): Likewise.
10976         * lib/signal.in.h (raise, signal): Likewise.
10977         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10978         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10979         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10980         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10981         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10982         Likewise.
10983         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10984         Likewise.
10985         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10986         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10987         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10988         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10989         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10990         wcsftime): Likewise.
10991         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10993 2019-11-21  Bruno Haible  <bruno@clisp.org>
10995         Fix various errors in _GL_CXXALIAS_SYS invocations.
10996         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10997         _GL_CXXALIAS_SYS.
10998         * lib/pthread.in.h (pthread_mutexattr_gettype,
10999         pthread_mutexattr_getrobust): Likewise.
11000         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
11001         * lib/sys_socket.in.h (recv, send): Likewise.
11002         * lib/unistd.in.h (getdtablesize): Likewise.
11003         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
11004         'struct timeval'.
11006 2019-11-21  Bruno Haible  <bruno@clisp.org>
11008         math tests: Update after 2019-08-28 change.
11009         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
11010         return type of 'bool', not 'int'.
11012 2019-11-21  Bruno Haible  <bruno@clisp.org>
11014         pthread-spin: Fix errors in C++ mode.
11015         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
11016         functions as nonexistent when <pthread.h> exists but does not define
11017         the pthread_spinlock_t type.
11019 2019-11-21  Bruno Haible  <bruno@clisp.org>
11021         pthread-mutex: Fix errors in C++ mode.
11022         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
11023         pthread_mutexattr_getrobust exists. If not, define
11024         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11025         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
11026         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
11027         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11028         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
11029         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
11030         definition.
11032 2019-11-19  Bruno Haible  <bruno@clisp.org>
11034         threads-h tests: Fix typo.
11035         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
11037 2019-11-19  Bruno Haible  <bruno@clisp.org>
11039         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
11040         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
11041         to 'const pthread_attr_t *'.
11042         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
11043         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
11045 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11047         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
11048         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
11049         work around GCC bug 91450 as the bug should be fixed there.
11051 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11053         glob: get closer to glibc glob.c
11054         Omit differences from glibc when the differences don’t matter.
11055         * lib/glob.c [_LIBC]: Include shlib-compat.h.
11056         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
11057         (glob_lstat): New function.
11058         (glob_in_dir): Use it.
11059         (GLOB_ATTRIBUTE): Define to empty if not already defined.
11060         Use changed.
11062 2019-11-18  Bruno Haible  <bruno@clisp.org>
11064         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
11065         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
11066         UINTPTR_MAX): Consider _WIN64.
11067         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
11068         a pointer.
11070 2019-11-18  Bruno Haible  <bruno@clisp.org>
11072         stdint: Fix value of WINT_MAX when we override wint_t.
11073         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
11074         when GNULIB_OVERRIDES_WINT_T is 1.
11076 2019-11-18  Bruno Haible  <bruno@clisp.org>
11078         vcs-to-changelog: New module.
11079         * modules/vcs-to-changelog: New file.
11080         * MODULES.html.sh (func_all_modules): Add it.
11082 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
11084         vcs-to-changelog: New script to generate ChangeLog-like output.
11085         Discussion:
11086         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
11087         * build-aux/vcs_to_changelog.py: New file.
11088         * build-aux/vcstocl/frontend_c.py: New file.
11089         * build-aux/vcstocl/misc_util.py: New file.
11090         * build-aux/vcstocl/vcs_git.py: New file.
11092 2019-11-18  Bruno Haible  <bruno@clisp.org>
11094         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
11095         Reported by Keith Marshall <keith@users.osdn.me> in
11096         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
11097         and <https://osdn.net/projects/mingw/ticket/39677>.
11098         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
11099         already been defined by mingw's <crtdefs.h>.
11101 2019-11-18  Bruno Haible  <bruno@clisp.org>
11103         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
11104         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
11105         conditionally enabled.
11107 2019-11-18  Bruno Haible  <bruno@clisp.org>
11109         gc: Mirror libgcrypt.m4 from libgcrypt.
11110         * config/srclistvars.sh (LIBGCRYPT): New variable.
11111         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
11113 2019-11-17  Bruno Haible  <bruno@clisp.org>
11115         locale, localename: Improve z/OS support.
11116         Reported by Daniel Richard G. in
11117         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
11118         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
11119         gl_LOCALE_H.
11120         (gl_LOCALE_H): Require it.
11121         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
11122         defined, don't even check for newlocale, duplocale, freelocale.
11123         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
11124         locale_t is not defined.
11126 2019-11-17  Bruno Haible  <bruno@clisp.org>
11128         havelib: Make libdirstems processing more flexible.
11129         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
11130         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
11131         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
11132         patch from 2017-02-19).
11133         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
11134         libdirs, even when the first one exists as a directory.
11136 2019-11-17  Bruno Haible  <bruno@clisp.org>
11138         havelib: Match the bitness when searching for libraries.
11139         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
11140         acl_is_expected_elfclass.
11141         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
11142         file exists, in ELF, also test whether it has the ELF class that
11143         corresponds to the host's bitness.
11145 2019-11-17  Bruno Haible  <bruno@clisp.org>
11147         host-cpu-c-abi: Add support for unknown CPUs.
11148         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
11149         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
11150         32-bit or 64-bit.
11152 2019-11-17  Bruno Haible  <bruno@clisp.org>
11154         havelib: Remove redundant code.
11155         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
11156         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
11158 2019-11-17  Bruno Haible  <bruno@clisp.org>
11160         havelib: Fix a bug in dependency processing.
11161         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
11162         of .la files, don't overwrite the value of additional_libdir for the
11163         next rounds.
11165 2019-11-16  Bruno Haible  <bruno@clisp.org>
11167         wctype-h: When overriding wint_t, override also the related functions.
11168         Reported by Christian Biesinger <cbiesinger@google.com> in
11169         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
11170         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
11171         REPLACE_ISWCNTRL to 1.
11172         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11173         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11174         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11175         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11176         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
11177         on mingw.
11178         * doc/posix-headers/wctype.texi: Likewise.
11180 2019-11-16  Bruno Haible  <bruno@clisp.org>
11182         time_r: Fix for mingw.
11183         Reported by Christian Biesinger <cbiesinger@google.com> in
11184         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
11185         * lib/time.in.h: On mingw, include <unistd.h>.
11186         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
11187         <time.h>. Test for localtime_r in a way that works when it is defined
11188         as an inline function.
11190 2019-11-13  Bruno Haible  <bruno@clisp.org>
11192         havelib: Revert last change.
11193         * build-aux/config.rpath: Revert last change. We can add msys2 support
11194         when it has been added to libtool.m4 upstream.
11196 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11198         config: add msys support
11199         Requested by Arnold Robbins in:
11200         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
11201         He also requested a change to config.guess, which I’ll forward
11202         upstream.
11203         * build-aux/ar-lib (func_file_conv):
11204         * build-aux/compile (func_file_conv):
11205         * build-aux/config.rpath (wl, with_gnu_ld)
11206         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
11207         Treat msys like cygwin.
11209 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11211         regex: now back in sync with glibc
11212         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
11213         regexec.c got merged into glibc and are now copies again.
11215 2019-10-27  Bruno Haible  <bruno@clisp.org>
11217         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
11218         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
11219         statement.
11220         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
11221         32-bit CPUs.
11223 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11225         timespec-add, timespec-sub: simplify
11226         * lib/timespec-add.c (timespec_add):
11227         * lib/timespec-sub.c (timespec_sub):
11228         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11229         work on unsigned integers.
11231 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11233         nstrftime: speed up integer overflow checking
11234         * lib/nstrftime.c: Include intprops.h.
11235         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
11236         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
11237         instead of doing it by hand.
11238         * modules/nstrftime (Depends-on): Add intprops.
11240         Port better to GCC under macOS
11241         Work around macOS header that has ‘#define __has_builtin(x) 0’
11242         when compiled by GCC.  Apple really, really doesn’t want you to
11243         use GCC, apparently.  Rroblem reported by Akim Demaille in:
11244         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
11245         The fix is to not trust __has_builtin when being compiled by
11246         recent-enough GCC.
11247         * lib/intprops.h (__has_builtin)
11248         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11249         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
11250         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
11251         Remove.  All uses removed.
11252         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
11253         directly, if defined and if not newer GCC.
11254         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
11255         New macro, that use __has_builtin directly, if defined and if
11256         not newer GCC.
11257         (assume): Use them.
11259 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
11261         maintainer-makefile: update rule for argmatch.
11262         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
11264 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
11266         bitset: let freeing functions accept NULL.
11267         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
11268         given NULL.
11269         * lib/bitset.h: Document that.
11270         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
11272 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11274         inttypes: use more-robust test for int range
11275         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
11276         Problem reported by Dagobert Michelsen in:
11277         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
11278         * lib/inttypes.in.h: Rely only on limits.h when checking
11279         int range.
11281 2019-10-15  Bruno Haible  <bruno@clisp.org>
11283         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
11284         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
11285         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
11286         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
11287         term_ostream_set_hyperlink): New functions.
11288         (term_styled_ostream_get_hyperlink_ref,
11289         term_styled_ostream_get_hyperlink_id,
11290         term_styled_ostream_set_hyperlink): New function aliases.
11292 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11294         update-copyright: use en dashes in .texi ranges
11295         * build-aux/update-copyright: Match year ranges like "1998--2019",
11296         which are used in the Autoconf manual.  Also, update ranges in
11297         .tex, .texi, and .texinfo files to use en dashes instead of
11298         hyphens.
11300 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11302         * config/srclist.txt: Remove posix/regex_internal.c for now.
11304 2019-10-13  Bruno Haible  <bruno@clisp.org>
11306         git-version-gen: Allow 'snapshot' as .tarball-version contents.
11307         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
11308         contents to the empty string.
11310 2019-10-12  Bruno Haible  <bruno@clisp.org>
11312         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
11313         * tests/test-intprops.c (main): Disable two more tests when using
11314         HP-UX cc.
11316 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11318         Simplify and regularize regex use of ‘assert’
11319         Also, tell GCC about the asserts even when compiling without
11320         debugging, to give it further optimization opportunities.
11321         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
11322         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
11323         (parse_expression, parse_bracket_exp):
11324         * lib/regex_internal.c (build_wcs_buffer)
11325         (build_wcs_upper_buffer, re_string_reconstruct)
11326         (re_string_context_at):
11327         * lib/regexec.c (re_search_stub, re_copy_regs)
11328         (re_search_internal, prune_impossible_nodes, check_matching)
11329         (check_halt_state_context, set_regs, sift_states_backward)
11330         (build_sifted_states, transit_state_mb, transit_state_bkref)
11331         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
11332         (match_ctx_add_subtop):
11333         Use it instead of plain ‘assert’.
11335 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11337         regex: omit debug assignment when not debugging
11338         * lib/regexec.c (re_search_internal) [!DEBUG]:
11339         Remove unnecessary assignment.
11341         regex: tell compiler there’s at most 256 arcs out
11342         Partly this is to help the reader (and maybe help GCC);
11343         partly this is to pacify Coverity.
11344         * lib/regex_internal.h: Include verify.h.
11345         * lib/regexec.c (group_nodes_into_DFAstates):
11346         Tell the compiler that ndests cannot exceed SBC_MAX.
11347         * modules/regex (Depends-on): Add ‘verify’.
11349         regex: simplify by assuming C99
11350         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11351         temporarily.
11352         * lib/regex_internal.h (lock_define, re_match_context_t):
11353         Simplify by assuming C99 macros and const.
11354         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11355         initializers.  Remove unnecessary assignment, as mctx is now
11356         safely initialized earlier.
11358         regex: avoid copying of uninitialized storage
11359         * config/srclist.txt: Comment out regcomp.c temporarily.
11360         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11361         Initialize even when not checking for lint, as the behavior is
11362         arguably undefined otherwise and Coverity warns about it.
11364 2019-10-06  Bruno Haible  <bruno@clisp.org>
11366         access tests: Fix test failure when run as root.
11367         * tests/test-access.c: Include root-uid.h.
11368         (geteuid): Define fallback.
11369         (main): Don't expect that writing to a read-only file would fail when
11370         running as root. Also, remove the created files at the end.
11371         * modules/access-tests (Depends-on): Add root-uid.
11372         (configure.ac): Test whether geteuid exists.
11374 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11376         users.txt: add GNU nano
11377         Nano has been making use of gnulib since March 2017, version 2.8.0.
11379 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11381         bootstrap: simplify debugging of wget failures
11382         Problem reported by Tim Rühsen in:
11383         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11384         * build-aux/bootstrap (po_download_command_format):
11385         Invoke wget with -nv instead of -q, to make debugging easier.
11387 2019-09-29  Bruno Haible  <bruno@clisp.org>
11389         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11390         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11391         'const' attribute.
11393 2019-09-29  Bruno Haible  <bruno@clisp.org>
11395         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11396         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11398 2019-09-28  Bruno Haible  <bruno@clisp.org>
11400         Update comments that refer to POSIX.
11401         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11402         sentence about trailing slashes.
11403         * lib/fflush.c: Clarify the reasoning.
11404         * tests/test-fflush2.c: Cite the relevant sentence.
11406 2019-09-28  Bruno Haible  <bruno@clisp.org>
11408         access: Document limitations on Windows.
11409         Suggested by Zaretskii <eliz@gnu.org>.
11410         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11412 2019-09-28  Bruno Haible  <bruno@clisp.org>
11414         findprog-in: Fix comment.
11415         Reported by Eli Zaretskii <eliz@gnu.org>.
11416         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11417         condition.
11418         * lib/stat.c (rpl_stat): Fix typo in comment.
11419         * lib/utime.c (_gl_utimens_windows): Likewise.
11421 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11423         Update URLs and associated text
11424         (Thanks to Bruno Haible for proofreading this patch.)
11425         Prefer https: to http: in URLs where either will do, for the usual
11426         security reasons.  I also updated broken and/or moved URLs
11427         discovered during the process. In a few places I had to resort to
11428         archive.org, since I didn't find the originals elsewhere.
11430 2019-09-15  Paul Smith  <psmith@gnu.org>
11431             Bruno Haible  <bruno@clisp.org>
11433         findprog-in: Set errno when the search fails.
11434         * lib/findprog-in.c: Include <errno.h>.
11435         (find_in_given_path): Set errno before returning NULL.
11436         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11437         Define the term "slash".
11439 2019-09-15  Bruno Haible  <bruno@clisp.org>
11441         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11442         * modules/findprog (Depends-on): Add access.
11443         * modules/findprog-lgpl (Depends-on): Likewise.
11444         * modules/findprog-in (Depends-on): Likewise.
11446 2019-09-15  Bruno Haible  <bruno@clisp.org>
11448         access: Add tests.
11449         * tests/test-access.c: New file.
11450         * modules/access-tests: New file.
11452         access: New module.
11453         * lib/unistd.in.h (access): New declaration.
11454         * lib/access.c: New file.
11455         * m4/access.m4: New file.
11456         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
11457         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
11458         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
11459         REPLACE_ACCESS.
11460         * modules/access: New file.
11461         * tests/test-unistd-c++.cc (access): Check signature.
11462         * doc/posix-functions/access.texi: Mention the new module.
11464 2019-09-15  Bruno Haible  <bruno@clisp.org>
11466         fcntl-h: Fix compilation error of creat.c on MSVC.
11467         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
11468         defined.
11470 2019-09-15  Bruno Haible  <bruno@clisp.org>
11472         creat: Add tests.
11473         * tests/test-creat.c: New file, based on tests/test-open.h.
11474         * modules/creat-tests: New file.
11476         creat: New module.
11477         * lib/fcntl.in.h (creat): New declaration.
11478         * lib/creat.c: New file, based on lib/open.c.
11479         * m4/creat.m4: New file.
11480         * m4/open-slash.m4: New file, extracted from m4/open.m4.
11481         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
11482         Invoke gl_OPEN_TRAILING_SLASH_BUG.
11483         * modules/open (Files): Add m4/open-slash.m4.
11484         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
11485         REPLACE_CREAT.
11486         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
11487         * modules/creat: New file.
11488         * tests/test-fcntl-h-c++.cc (creat): Check signature.
11489         * doc/posix-functions/creat.texi: Mention the new module.
11491 2019-09-15  Bruno Haible  <bruno@clisp.org>
11493         open tests: Enhance test.
11494         * tests/test-open.h (test_open): Test the creation of an executable
11495         regular file. Also improve initial cleanup.
11497 2019-09-15  Bruno Haible  <bruno@clisp.org>
11499         intprops tests: Avoid build failure with HP-UX cc.
11500         * tests/test-intprops.c: Disable a check that makes HP cc choke with
11501         "error 4018: Macro param too large after substitution - use -H option.".
11503 2019-09-14  Bruno Haible  <bruno@clisp.org>
11505         Make autoconf tests work with -Werror=implicit-function-declaration.
11506         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
11507         towupper() declaration.
11508         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
11509         declaration.
11511 2019-09-14  Bruno Haible  <bruno@clisp.org>
11513         findprog-in: Better mimic the system on native Windows.
11514         Reported by Paul Smith <psmith@gnu.org>.
11515         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
11516         non-empty suffixes when the file name already contains a '.'.
11518 2019-09-10  Bruno Haible  <bruno@clisp.org>
11520         wctob: Fix autoconf test.
11521         Based on patch by Florian Weimer <fweimer@redhat.com>.
11522         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
11524 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
11526         xhash: provide hash_xinitialize.
11527         Suggested by Egor Pugin <egor.pugin@gmail.com>
11528         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
11529         * modules/xhash, lib/xhash.c: New.
11530         * lib/hash.h (hash_xinitialize): New.
11532 2019-09-09  Bruno Haible  <bruno@clisp.org>
11534         findprog-in: Make exec optimization optional.
11535         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
11536         (find_in_given_path): Add optimize_for_exec parameter.
11537         * lib/findprog-in.c (find_in_given_path): Likewise.
11539 2019-09-08  Bruno Haible  <bruno@clisp.org>
11541         Add option to assume the best, not the worst, when cross-compiling.
11542         Suggested by Jonas Termansen <sortie@maxsi.org>.
11543         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
11544         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
11545         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
11546         lt_cv_sys_argz_works.
11547         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
11548         ac_cv_func_calloc_0_nonnull.
11549         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
11550         --enable-cross-guesses for gl_cv_func_realpath_works.
11551         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
11552         gl_cv_func_cbrtl_ieee.
11553         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
11554         gl_cv_func_ceil_ieee.
11555         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
11556         gl_cv_func_ceilf_ieee.
11557         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
11558         gl_cv_func_ceill_ieee.
11559         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
11560         ac_cv_func_chown_works.
11561         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
11562         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
11563         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
11564         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
11565         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
11566         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
11567         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
11568         gl_cv_func_expl_works.
11569         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
11570         gl_cv_func_expm1_ieee.
11571         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
11572         gl_cv_func_expm1l_works.
11573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
11574         gl_cv_func_open_directory_works.
11575         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
11576         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
11577         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
11578         gl_cv_func_fchownat_empty_filename_works.
11579         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
11580         gl_cv_func_fdopendir_works.
11581         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
11582         gl_cv_func_floor_ieee.
11583         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
11584         gl_cv_func_floorf_ieee.
11585         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
11586         gl_cv_func_fma_works.
11587         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
11588         gl_cv_func_fmaf_works.
11589         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11590         gl_cv_func_fmal_works.
11591         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11592         gl_cv_func_fmod_ieee.
11593         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11594         gl_cv_func_fmodf_ieee.
11595         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11596         gl_cv_func_fmodl_ieee.
11597         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
11598         gl_cv_func_fpurge_works.
11599         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
11600         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
11601         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
11602         gl_cv_func_getcwd_null.
11603         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
11604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
11605         gl_cv_func_working_getdelim.
11606         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11607         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
11608         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11609         gl_cv_func_getgroups_works.
11610         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
11611         am_cv_func_working_getline.
11612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
11613         for gl_cv_func_getopt_gnu.
11614         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
11615         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
11616         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
11617         gl_cv_func_hypot_ieee.
11618         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
11619         gl_cv_func_hypotf_ieee.
11620         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
11621         gl_cv_func_hypotl_ieee.
11622         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
11623         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
11624         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
11625         gl_cv_func_link_works.
11626         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
11627         gl_cv_func_linkat_slash.
11628         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
11629         gl_cv_func_log_ieee.
11630         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
11631         gl_cv_func_logf_ieee.
11632         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
11633         gl_cv_func_logl_works.
11634         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
11635         gl_cv_func_log10_ieee.
11636         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
11637         gl_cv_func_log10f_ieee.
11638         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
11639         gl_cv_func_log10l_works.
11640         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
11641         gl_cv_func_log1p_ieee.
11642         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
11643         gl_cv_func_log1pf_ieee.
11644         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
11645         gl_cv_func_log1pl_ieee.
11646         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
11647         gl_cv_func_log2_ieee.
11648         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
11649         gl_cv_func_log2f_ieee.
11650         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
11651         --enable-cross-guesses for
11652         gl_cv_func_lstat_dereferences_slashed_symlink.
11653         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
11654         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11655         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
11656         gl_cv_C_locale_sans_EILSEQ.
11657         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
11658         gl_cv_func_memchr_works.
11659         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
11660         gl_cv_func_memmem_works_always.
11661         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11662         gl_cv_func_memmem_works_fast.
11663         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11664         gl_cv_func_mkdir_trailing_slash_works,
11665         gl_cv_func_mkdir_trailing_dot_works.
11666         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11667         gl_cv_func_mkfifo_works.
11668         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11669         gl_cv_func_mknod_works.
11670         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11671         gl_cv_func_working_mkstemp.
11672         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11673         gl_cv_func_working_mktime.
11674         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11675         gl_cv_func_modf_ieee.
11676         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11677         gl_cv_func_modff_ieee.
11678         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11679         gl_cv_func_modfl_ieee.
11680         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11681         gl_cv_func_nanosleep.
11682         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11683         gl_cv_func_perror_works.
11684         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11685         gl_cv_func_printf_sizes_c99.
11686         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11687         gl_cv_func_printf_infinite.
11688         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11689         gl_cv_func_printf_infinite_long_double.
11690         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11691         gl_cv_func_printf_directive_a.
11692         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11693         gl_cv_func_printf_directive_f.
11694         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11695         gl_cv_func_printf_flag_zero.
11696         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11697         gl_cv_func_printf_enomem.
11698         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11699         gl_cv_func_snprintf_truncation_c99.
11700         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11701         gl_cv_func_snprintf_retval_c99.
11702         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11703         gl_cv_func_snprintf_directive_n.
11704         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11705         gl_cv_func_vsnprintf_zerosize_c99.
11706         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11707         gl_cv_func_pselect_detects_ebadf.
11708         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11709         Obey --enable-cross-guesses for
11710         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11711         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11712         gl_cv_func_ptsname_sets_errno.
11713         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11714         gl_cv_func_svid_putenv.
11715         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11716         gl_cv_func_readlink_works.
11717         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11718         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11719         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11720         gl_cv_func_re_compile_pattern_working.
11721         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11722         gl_cv_func_remainder_ieee.
11723         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11724         gl_cv_func_remainderf_ieee.
11725         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11726         gl_cv_func_remainderl_ieee.
11727         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11728         gl_cv_func_rintl_works.
11729         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11730         gl_cv_func_rmdir_works.
11731         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11732         gl_cv_func_round_ieee.
11733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11734         gl_cv_func_roundf_ieee.
11735         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11736         gl_cv_func_roundl_ieee.
11737         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11738         gl_cv_func_select_detects_ebadf.
11739         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11740         gl_cv_func_setenv_works.
11741         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11742         gl_cv_func_unsetenv_works.
11743         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11744         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11745         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11746         gl_cv_func_sleep_works.
11747         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11748         gl_cv_func_stat_file_slash.
11749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11750         gl_cv_func_stpncpy.
11751         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11752         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11753         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11754         gl_cv_func_strcasestr_linear.
11755         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11756         gl_cv_func_working_strerror.
11757         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11758         gl_cv_func_strerror_0_works.
11759         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11760         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11761         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11762         gl_cv_func_strstr_works_always.
11763         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11764         gl_cv_func_strstr_linear.
11765         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11766         gl_cv_func_strtod_works.
11767         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11768         gl_cv_func_strtold_works.
11769         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11770         gl_cv_func_symlink_works.
11771         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11772         gl_cv_func_symlinkat_works.
11773         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11774         gl_cv_func_trunc_ieee.
11775         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11776         gl_cv_func_truncf_ieee.
11777         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11778         gl_cv_func_truncl_ieee.
11779         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11780         gl_cv_func_tzset_clobber.
11781         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11782         gl_cv_func_ungetc_works.
11783         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11784         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11785         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11786         gl_cv_func_usleep_works.
11787         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11788         gl_cv_func_futimesat_works.
11789         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11790         gl_cv_func_working_utimes.
11791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11792         gl_cv_func_wcwidth_works.
11793         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11794         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11795         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11796         links for testing. Obey --enable-cross-guesses for
11797         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11798         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11800 2019-09-08  Bruno Haible  <bruno@clisp.org>
11802         Clarify that cross-compilation guesses are guesses.
11803         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11804         cross-compiling.
11806 2019-09-08  Bruno Haible  <bruno@clisp.org>
11808         chown: Fix configure output (regression from 2019-03-23).
11809         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11810         gl_cv_func_chown_follows_symlink variable.
11812 2019-09-08  Bruno Haible  <bruno@clisp.org>
11814         findprog-in: New module.
11815         Suggested by Paul Smith <psmith@gnu.org>.
11816         * lib/findprog.h (find_in_given_path): New declaration.
11817         * lib/findprog-in.c: New file, based on lib/findprog.c.
11818         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11819         * modules/findprog-in: New file.
11821 2019-09-08  Bruno Haible  <bruno@clisp.org>
11823         findprog: Remove unused dependency.
11824         * modules/findprog (Depends-on): Remove strdup.
11826 2019-09-08  Bruno Haible  <bruno@clisp.org>
11828         findprog: Remove test that is obsolete since 2006-04-24.
11829         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11831 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11833         bitset: style changes
11834         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11835         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11836         xzalloc to xcalloc.
11837         Suggested by Paul Eggert.
11839 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11841         bitset: check memory allocation
11842         Reported by 江 祖铭 (Zu-Ming Jiang).
11843         With help from Paul Eggert.
11844         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11845         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11846         instead of realloc.
11847         When shrinking, accept failures.
11848         * lib/bitset/vector.c (vbitset_resize): Likewise.
11850 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11852         scratch_buffer: sync from glibc
11853         * config/srclist.txt: Add the scratch_buffer source
11854         code from glibc, since these should be in sync.
11855         Autoupdate.
11857 2019-09-07  Bruno Haible  <bruno@clisp.org>
11859         doc: Update for glibc 2.30.
11860         * doc/glibc-functions/gettid.texi: New file.
11861         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11862         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11863         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11864         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11865         * doc/glibc-functions/sem_clockwait.texi: New file.
11866         * doc/glibc-functions/tgkill.texi: New file.
11867         * doc/glibc-functions/twalk_r.texi: New file.
11868         * doc/gnulib.texi: Include them.
11869         (Glibc semaphore.h): New section.
11870         * doc/pastposix-functions/h_errno.texi: Update.
11871         * doc/posix-functions/*.texi: Likewise.
11873 2019-09-06  Bruno Haible  <bruno@clisp.org>
11875         symlink tests: Avoid test failure on Linux with Lustre file system.
11876         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11877         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11878         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11880 2019-09-01  Bruno Haible  <bruno@clisp.org>
11882         gitsub.sh: Add support for shallow-cloning of subdirectories.
11883         * top/gitsub.sh (func_usage): Document allowed git options with
11884         'git pull'.
11885         (func_pull): Accept GIT_OPTIONS argument.
11886         (pull): Parse git options before complaining about too many arguments.
11887         Pass the git options to func_pull.
11889 2019-08-29  Bruno Haible  <bruno@clisp.org>
11891         lock: Fix cross-compilation guesses.
11892         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11893         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11894         platforms.
11896 2019-08-28  Bruno Haible  <bruno@clisp.org>
11898         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11899         Reported by Martin Storsjö <martin@martin.st> in
11900         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11901         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11902         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11903         files from GCC 6 or newer, use an override through '#define', because
11904         the inline definitions in the platform's <cmath> cannot be overridden
11905         in another way.
11907 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11909         Revert macOS INT_MULTIPLY_WRAPV patch
11910         Problem reported by Bruno Haible in:
11911         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11912         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11913         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11914         Go back to working around the Clang bug on macOS.
11916 2019-08-27  Bruno Haible  <bruno@clisp.org>
11918         libtool-next-version: Fix error output.
11919         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11920         name.
11922 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11924         Speed up INT_MULTIPLY_WRAPV on macOS
11925         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11926         Mattias Engdegård says it’s safe to assume the relevant library
11927         is always available there.
11928         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11929         New temporary internal macro.
11930         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11931         No need to work around the Clang bug on macOS.
11933 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11935         intprops.h, verify.h: port better to clang
11936         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11937         with Clang.  Problem reported privately by Mattias Engdegård.
11938         Also, insulate intprops.h and verify.h better against each other’s
11939         definitions of __has_builtin on non-Clang hosts.
11940         * lib/intprops.h (__has_builtin): Define a temporary substitute
11941         if __has_builtin is not already defined.
11942         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11943         New temporary internal macros.
11944         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11945         Now two separate macros, replacing the old
11946         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11947         __builtin_mul_overflow is like the rest.  All uses changed.
11948         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11949         Adjust to above changes.
11950         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11951         longer relevant.  All uses changed.
11952         * lib/verify.h (__has_builtin): Treat like intprops.h,
11953         so that the two .h files do not collide with each other.
11954         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11955         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11957 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11959         intprops: say why not Clang __builtin_add_overflow
11960         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11961         Mention Clang in comment, responding to a query from
11962         Mattias Engdegård.
11964 2019-08-24  Bruno Haible  <bruno@clisp.org>
11966         doc: Document most of the files outside of modules.
11967         * doc/gnulib.texi (Build Infrastructure Files,
11968         Release Management Files): New chapters.
11970 2019-08-24  Bruno Haible  <bruno@clisp.org>
11972         bootstrap: Keep in sync with the 'gettext' module.
11973         Reported by Assaf Gordon in
11974         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11975         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11976         * build-aux/po/remove-potcdate.sin: Likewise.
11978 2019-08-24  Bruno Haible  <bruno@clisp.org>
11980         crypto/gc-sha512: Add tests.
11981         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11982         * modules/crypto/gc-sha512-tests: New file.
11984         crypto/gc-sha256: Add tests.
11985         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11986         * modules/crypto/gc-sha256-tests: New file.
11988         crypto/gc-sha256, crypto/gc-sha512: New modules.
11989         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11990         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11991         (MAX_DIGEST_SIZE): Set to 64.
11992         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11993         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11994         (gc_sha256, gc_sha512): New functions.
11995         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11996         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11997         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11999 2019-08-24  Bruno Haible  <bruno@clisp.org>
12001         crypto/gc-sha1 tests: Improve output when the test fails.
12002         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
12003         output.
12005 2019-08-24  Bruno Haible  <bruno@clisp.org>
12007         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
12008         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
12009         LIBGCRYPT_HAS_MD_SM3.
12010         * lib/gc-libgcrypt.c: Include sm3.h.
12011         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
12012         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
12013         implementation if libgcrypt does not support SM3.
12015 2019-08-24  Bruno Haible  <bruno@clisp.org>
12017         crypto/gc-md2: Optimize and clarify code.
12018         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
12019         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
12020         is not needed.
12022 2019-08-24  Bruno Haible  <bruno@clisp.org>
12024         crypto/gc-md2: Add comment.
12025         * lib/gc-libgcrypt.c: Add comment.
12027 2019-08-24  Bruno Haible  <bruno@clisp.org>
12029         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
12030         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
12031         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
12032         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
12033         variable.
12035 2019-08-24  Bruno Haible  <bruno@clisp.org>
12037         crypto/gc: Fix link error with --with-libgcrypt.
12038         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
12039         AC_LIB_HAVE_LINKFLAGS invocation.
12041 2019-08-24  Bruno Haible  <bruno@clisp.org>
12043         crypto/gc: Access the module indicators correctly.
12044         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
12045         * lib/gc-libgcrypt.c: Likewise.
12047 2019-08-24  Bruno Haible  <bruno@clisp.org>
12049         crypto/gc: Fix configuration with --with-libgcrypt.
12050         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
12051         * modules/crypto/gc (Files): Add it.
12052         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
12054 2019-08-24  Bruno Haible  <bruno@clisp.org>
12056         Remove unused file.
12057         * m4/stat-macros.m4: Remove file.
12059 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12061         New strip-trailing-space option for srclist-update
12062         * config/srclist-update (fixfile): Support new option.
12063         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
12064         Use it.
12066 2019-08-20  Eric Blake  <eblake@redhat.com>
12068         accept4: Support SOCK_NONBLOCK, if defined
12069         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
12071         accept4: Fix compilation when native accept4() exists.
12072         Reported by Richard W.M. Jones <rjones@redhat.com> in
12073         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
12074         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
12076 2019-08-18  Bruno Haible  <bruno@clisp.org>
12078         Defeat -flto GCC optimization in math autoconf tests.
12079         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
12080         at <https://savannah.gnu.org/bugs/?56109>.
12081         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
12082         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
12083         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12084         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12085         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12086         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
12087         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12088         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12089         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12090         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12091         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12092         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12094 2019-08-17  Bruno Haible  <bruno@clisp.org>
12096         windows-spin: Implement declared functions.
12097         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
12098         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
12099         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
12100         name.
12102 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12104         intprops: port to Oracle Developer Studio 12.6
12105         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
12106         typos that were in a section not compiled by GCC.
12108 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12110         intprops: support uchar, ushort _WRAPV dests
12111         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
12112         when __builtin_add_overflow etc. and _Generic are not used.
12113         (_GL_INT_OP_WRAPV): Use it to support destinations that
12114         are unsigned char or unsigned short, even in compilers
12115         that lack __typeof__ and are not C11-compatible.
12117         intprops: pacify picky GCC
12118         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
12119         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
12120         possibly-incorrect result.
12121         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
12122         about (A) used as a boolean, when A is an expression like 3 * 4.
12124         intprops: support unsigned *_WRAPV results
12125         Add support for unsigned, unsigned long, and unsigned long long
12126         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
12127         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
12128         bug with unsigned inputs reported by Eli Zaretskii in:
12129         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
12130         * config/srclist.txt: Break the glibc connection for intprops.h
12131         temporarily, while more testing is done in Gnulib-using apps.
12132         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12133         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
12134         Support unsigned results no narrower than unsigned int.  Report
12135         overflow correctly if some arguments are unsigned.
12136         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
12137         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
12138         the right thing with narrow args.
12139         (_GL_INT_OP_CALC1): Remove.  All callers removed.
12140         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
12141         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
12142         * tests/test-intprops.c: Check for bugs and test new behavior.
12144 2019-08-14  Bruno Haible  <bruno@clisp.org>
12146         get_progname_of: New module.
12147         * lib/get_progname_of.h: New file.
12148         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
12149         * lib/getprogname.c (getprogname): Tweak coding style.
12150         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
12151         * modules/get_progname_of: New file.
12153 2019-08-14  Bruno Haible  <bruno@clisp.org>
12155         get_ppid_of: New module.
12156         * lib/get_ppid_of.h: New file.
12157         * lib/get_ppid_of.c: New file.
12158         * modules/get_ppid_of: New file.
12160 2019-08-13  Bruno Haible  <bruno@clisp.org>
12162         libtextstyle-optional tests: Support the NO_COLOR environment variable.
12163         * tests/test-libtextstyle.c (main): Do not emit styling when the
12164         environment variable NO_COLOR is set.
12166 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12168         verify: improve diagnostic quality in recent GCC
12169         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
12170         useful line number containing the top-level caller of the macro.
12171         So, bring back the older way of issuing a diagnostic containing
12172         the top-level call’s arg, so that it is easier to diagnose
12173         ‘verify’ failures with recent GCC.
12174         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12175         Bring back DIAGNOSTIC arg.  All callers changed.
12176         (verify): Just use _GL_VERIFY.
12178 2019-08-11  Bruno Haible  <bruno@clisp.org>
12180         localcharset: Add more aliases for OS/2.
12181         Based on patch by KO Myung-Hun <komh78@gmail.com> in
12182         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
12183         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
12185 2019-08-10  Eric Blake  <eblake@redhat.com>
12187         configmake: Update advice on usage.
12188         * modules/configmake (Include): No longer necessary to include
12189         last, since configmake.h itself worries about collision avoidance.
12191 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
12193         parse-datetime: fix 'T' military timezone handling
12194         * lib/parse-datetime.y (zone):
12195         follow-up to the previous commit: the 'T' case is handled outside the
12196         conversion table (used as either military timezone UTC-7 or ISO8601
12197         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
12198         timezone letters.
12200 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12202         parse-datetime: fix military timezone letters
12203         Problem and trivial fix reported by Neil Hoggarth in:
12204         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
12205         * lib/parse-datetime.y (military_table):
12206         Do it the right way, not the RFC 822 way.
12208 2019-08-08  Eric Blake  <eblake@redhat.com>
12210         configmake: Avoid namespace pollution issue on mingw.
12211         * modules/configmake (Makefile.am): If the project uses
12212         <winsock2.h>, include that header before defining DATADIR.
12214 2019-07-28  Bruno Haible  <bruno@clisp.org>
12216         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
12217         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12219 2019-07-24  Bruno Haible  <bruno@clisp.org>
12221         pthread-h: Fix definitions of types and macros on mingw.
12222         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
12223         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
12224         not in use.
12225         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
12226         'pthread-once' is not in use.
12227         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
12228         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
12229         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
12230         in use.
12231         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
12232         Define also when module 'pthread-rwlock' is not in use.
12233         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
12234         also when module 'pthread-cond' is not in use.
12235         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
12236         'pthread-tss' is not in use.
12237         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
12238         use.
12240 2019-07-24  Simon Josefsson  <simon@josefsson.org>
12242         crypto/gc: Cope with libgcrypt without SM3.
12243         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
12245 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12247         backupfile: fix resource leak on memory failure
12248         Problem found by Coverity (CID 1484214).
12249         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
12251 2019-07-22  Bruno Haible  <bruno@clisp.org>
12253         Avoid missing-declarations warning in various tests.
12254         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
12255         test6, test_optional, test7, test8, test9, test10, test11, test12,
12256         test13, test14, test15, test_fun): Declare static.
12257         * tests/test-cnd.c (test_cnd_wait): Likewise.
12258         * tests/test-cond.c (test_cond): Likewise.
12260 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12262         pthread tests: Avoid missing-declarations warning.
12263         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
12265 2019-07-19  Bruno Haible  <bruno@clisp.org>
12267         parse-datetime: Avoid warnings from bison versions >= 3.3.
12268         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
12269         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
12271 2019-07-19  Bruno Haible  <bruno@clisp.org>
12273         parse-datetime: Require Bison 2.4 or newer.
12274         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
12275         Code taken from gettext's intl.m4.
12276         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
12277         of YACC.
12279 2019-07-19  Bruno Haible  <bruno@clisp.org>
12281         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
12282         * lib/areadlink-with-size.c: Include <string.h>.
12283         * lib/areadlinkat-with-size.c: Likewise.
12284         * lib/xgethostname.c: Likewise.
12285         * lib/xgetdomainname.c: Likewise.
12287 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
12289         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
12290         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
12291         "%pure-parser".  The former is available since Bison 2.3b (2008),
12292         while the latter is marked as obsolete since version 3.4 (May 2019).
12294 2019-07-16  Bruno Haible  <bruno@clisp.org>
12296         update-copyright: Make it work again (regression from 2019-06-15).
12297         Reported by Brian C. Lane <bcl@redhat.com>.
12298         * build-aux/update-copyright: Add back the -0777, -p, -i options.
12300 2019-07-14  Bruno Haible  <bruno@clisp.org>
12302         doc: Update info about <pthread.h>.
12303         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
12304         of 'pthread'.
12306 2019-07-14  Bruno Haible  <bruno@clisp.org>
12308         pthread_sigmask tests: Use new multithread modules.
12309         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
12310         glthread/thread.h.
12311         (main_thread, killer_thread): Change type to pthread_t.
12312         (main): Update accordingly.
12313         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
12314         thread.
12316 2019-07-14  Bruno Haible  <bruno@clisp.org>
12318         pthread-tss: Add tests.
12319         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
12320         tests/test-tss.c.
12321         * modules/pthread-tss-tests: New file.
12323 2019-07-14  Bruno Haible  <bruno@clisp.org>
12325         pthread-cond: Add tests.
12326         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
12327         tests/test-cnd.c.
12328         * modules/pthread-cond-tests: New file.
12330 2019-07-14  Bruno Haible  <bruno@clisp.org>
12332         pthread-rwlock: Add tests.
12333         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
12334         * modules/pthread-rwlock-tests: New file.
12336 2019-07-14  Bruno Haible  <bruno@clisp.org>
12338         pthread-mutex: Add tests.
12339         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
12340         tests/test-mtx.c.
12341         * modules/pthread-mutex-tests: New file.
12343 2019-07-14  Bruno Haible  <bruno@clisp.org>
12345         pthread-once: Add tests.
12346         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12347         tests/test-call_once.c.
12348         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12349         tests/test-mtx.c.
12350         * modules/pthread-once-tests: New file.
12352 2019-07-14  Bruno Haible  <bruno@clisp.org>
12354         pthread-thread: Add tests.
12355         * tests/test-pthread-thread.c: New file, based on
12356         tests/test-thread_create.c and tests/test-thrd_create.c.
12357         * modules/pthread-thread-tests: New file.
12359 2019-07-14  Bruno Haible  <bruno@clisp.org>
12361         pthread: Turn into a convenience module.
12362         * lib/pthread.in.h: Remove declarations for extern inline functions.
12363         * lib/pthread.c: Remove file.
12364         * modules/pthread (Files): Remove it.
12365         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12366         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12367         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12368         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12369         GNULIB_PTHREAD.
12370         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12372 2019-07-14  Bruno Haible  <bruno@clisp.org>
12374         pthread-spin: New module.
12375         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12376         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12377         inline definitions.
12378         * lib/pthread-spin.c: New file.
12379         * m4/pthread-spin.m4: New file.
12380         * modules/pthread-spin: New file.
12381         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12382         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12383         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12384         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12385         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12387 2019-07-14  Bruno Haible  <bruno@clisp.org>
12389         pthread-tss: New module.
12390         * lib/pthread-tss.c: New file.
12391         * m4/pthread-tss.m4: New file.
12392         * modules/pthread-tss: New file.
12393         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12394         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12395         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12396         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12398 2019-07-14  Bruno Haible  <bruno@clisp.org>
12400         pthread-cond: New module.
12401         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12402         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12403         * lib/pthread-cond.c: New file.
12404         * m4/pthread-cond.m4: New file.
12405         * modules/pthread-cond: New file.
12406         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12407         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12408         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12409         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12410         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12411         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12412         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12413         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12415 2019-07-14  Bruno Haible  <bruno@clisp.org>
12417         pthread-rwlock: New module.
12418         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12419         * m4/pthread-rwlock.m4: New file.
12420         * modules/pthread-rwlock: New file.
12421         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12422         and the Android problem.
12423         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12424         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12425         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12426         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12427         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12428         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12429         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12430         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12431         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12432         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12434 2019-07-14  Bruno Haible  <bruno@clisp.org>
12436         pthread-mutex: New module.
12437         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12438         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12439         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12440         pthread_mutex_unlock): Remove inline definitions.
12441         * lib/pthread-mutex.c: New file.
12442         * m4/pthread-mutex.m4: New file.
12443         * modules/pthread-mutex: New file.
12444         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12445         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12446         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12447         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12448         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12449         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12450         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12451         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12452         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
12453         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
12454         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
12455         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
12457 2019-07-14  Bruno Haible  <bruno@clisp.org>
12459         pthread-once: New module.
12460         * lib/pthread-once.c: New file.
12461         * m4/pthread-once.m4: New file.
12462         * modules/pthread-once: New file.
12463         * doc/posix-functions/pthread_once.texi: Mention the new module.
12465 2019-07-14  Bruno Haible  <bruno@clisp.org>
12467         pthread-thread: New module.
12468         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
12469         inline definitions.
12470         * lib/pthread-thread.c: New file.
12471         * m4/pthread-thread.m4: New file.
12472         * modules/pthread-thread: New file.
12473         * doc/posix-functions/pthread_create.texi: Mention the new module.
12474         * doc/posix-functions/pthread_attr_init.texi: Likewise.
12475         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
12476         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
12477         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
12478         * doc/posix-functions/pthread_self.texi: Likewise.
12479         * doc/posix-functions/pthread_equal.texi: Likewise.
12480         * doc/posix-functions/pthread_detach.texi: Likewise.
12481         * doc/posix-functions/pthread_join.texi: Likewise.
12482         * doc/posix-functions/pthread_exit.texi: Likewise.
12484 2019-07-14  Bruno Haible  <bruno@clisp.org>
12486         pthread-h: Prepare for adding new modules.
12487         * lib/pthread.in.h: Define the types and macros for each of the
12488         facilities separately.
12489         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
12490         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12491         HAVE_PTHREAD_PROCESS_SHARED.
12492         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
12493         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12494         HAVE_PTHREAD_PROCESS_SHARED.
12495         * modules/pthread-h (Makefile.am): Substitute
12496         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
12497         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
12499 2019-07-14  Bruno Haible  <bruno@clisp.org>
12501         pthread-h: Add declarations of essential pthread functions.
12502         * lib/pthread.in.h: Include snippets.
12503         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
12504         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
12505         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
12506         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
12507         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
12508         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
12509         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
12510         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
12511         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
12512         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
12513         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
12514         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
12515         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
12516         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
12517         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
12518         pthread_key_create, pthread_setspecific, pthread_getspecific,
12519         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
12520         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
12521         declarations.
12522         (pthread_mutex_timedlock): Move declaration.
12523         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
12524         declared.
12525         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
12526         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
12527         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
12528         HAVE_* and REPLACE_* variables for the new functions.
12529         * modules/pthread-h (Depends-on): Add snippet/c++defs,
12530         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
12531         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
12532         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
12533         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
12534         variables for the new functions. Split the sed script, to avoid the
12535         limit of 99 commands of HP-UX sed.
12536         * tests/test-pthread-c++.cc: Check the signature of the new functions.
12538 2019-07-14  Bruno Haible  <bruno@clisp.org>
12540         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
12541         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
12542         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
12543         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
12544         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
12545         * modules/pthread-h (Depends-on): Add threadlib.
12546         (Link): Change to $(LIBTHREAD).
12547         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
12548         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
12550 2019-07-14  Bruno Haible  <bruno@clisp.org>
12552         pthread-h: Add C++ tests.
12553         * tests/test-pthread-c++.cc: New file.
12554         * modules/pthread-h-c++-tests: New file.
12556 2019-07-14  Bruno Haible  <bruno@clisp.org>
12558         pthread-h: Add tests.
12559         * tests/test-pthread.c: New file.
12560         * modules/pthread-h-tests: New file.
12562 2019-07-14  Bruno Haible  <bruno@clisp.org>
12564         pthread-h: New module.
12565         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
12566         is 1.
12567         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
12568         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
12569         <pthread.h> pollutes the namespace; instead, prepare for generating a
12570         pthread.h always. Substitute HAVE_PTHREAD_H here.
12571         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
12572         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
12573         * modules/pthread-h: New file, based on modules/pthread.
12574         * modules/pthread: Rely on 'pthread-h'.
12575         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
12576         Update.
12577         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
12578         pthread.
12580 2019-07-14  Bruno Haible  <bruno@clisp.org>
12582         sched_yield: New module.
12583         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
12584         (sched_yield): New declaration.
12585         * lib/sched_yield.c: New file.
12586         * m4/sched_yield.m4: New file.
12587         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
12588         provide a replacement sched.h always. Test whether sched_yield is
12589         declared.
12590         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12591         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12592         (Makefile.am): Provide a replacement sched.h always. Substitute
12593         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12594         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12595         * modules/sched_yield: New file.
12596         * doc/posix-functions/sched_yield.texi: Mention the new module.
12598 2019-07-14  Bruno Haible  <bruno@clisp.org>
12600         windows-spin: New module.
12601         * lib/windows-spin.h: New file.
12602         * lib/windows-spin.c: New file.
12603         * modules/windows-spin: New file.
12605 2019-07-14  Bruno Haible  <bruno@clisp.org>
12607         windows-timedrwlock: New module.
12608         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
12609         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
12610         windows-cond.c.
12611         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
12612         redefinition conflict with windows-timedrwlock.h.
12613         * modules/windows-timedrwlock: New file.
12615 2019-07-14  Bruno Haible  <bruno@clisp.org>
12617         windows-rwlock: New module.
12618         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
12619         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
12620         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
12621         windows-initguard.h.
12622         (gl_rwlock_t): Define using glwthread_rwlock_t.
12623         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
12624         (glthread_rwlock_init): Define using glwthread_rwlock_init.
12625         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
12626         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
12627         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
12628         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
12629         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
12630         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
12631         glthread_rwlock_destroy_func): Remove declarations.
12632         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
12633         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
12634         gl_waitqueue_notify_all, glthread_rwlock_init_func,
12635         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
12636         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
12637         functions.
12638         * modules/windows-rwlock: New file.
12639         * modules/lock (Depends-on): Add windows-rwlock.
12641 2019-07-14  Bruno Haible  <bruno@clisp.org>
12643         windows-thread: Add support for creating a thread in detached state.
12644         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
12645         (glwthread_thread_create): Add attr argument.
12646         * lib/windows-thread.c (glwthread_thread_create): Likewise.
12647         * lib/glthread/thread.h (glthread_create): Update.
12648         * lib/thrd.c (thrd_create): Update.
12650 2019-07-14  Bruno Haible  <bruno@clisp.org>
12652         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
12653         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
12654         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
12655         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
12656         * lib/windows-mutex.h: Update.
12657         * lib/windows-recmutex.h: Likewise.
12658         * lib/windows-timedmutex.h: Likewise.
12659         * lib/windows-timedrecmutex.h: Likewise.
12660         * lib/windows-cond.h: Likewise.
12661         * lib/glthread/lock.h: Likewise.
12662         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12663         lib/windows-spinlock.h.
12664         * modules/windows-recmutex (Files): Likewise.
12665         * modules/windows-timedmutex (Files): Likewise.
12666         * modules/windows-timedrecmutex (Files): Likewise.
12667         * modules/windows-cond (Files): Likewise.
12668         * modules/threads-h (Files): Likewise.
12670 2019-07-14  Bruno Haible  <bruno@clisp.org>
12672         doc: Fix info about pthread API in HP-UX.
12673         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12675 2019-07-14  Bruno Haible  <bruno@clisp.org>
12677         threads-h: Fix generation of threads.h.
12678         * modules/threads-h (Makefile.am): Insert the required header file
12679         snippets.
12681 2019-07-09  Bruno Haible  <bruno@clisp.org>
12683         striconveh test: Fix a compilation failure when iconv is not available.
12684         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12685         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12686         HAVE_ICONV.
12688 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12690         argmatch: adjust columns for help2man.
12691         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12692         requires column 20 or more, return 20.
12694 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12696         areadlink-with-size: avoid realloc when size==0
12697         * lib/areadlink-with-size.c (areadlink_with_size):
12698         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12699         Reallocate at the end to the actual size, to avoid memory waste,
12700         as suggested by Bruno Haible.  But when the guessed size is zero -
12701         useful when the size is unknown - do the initial small readlink
12702         into the stack, to avoid that realloc in the usual case.
12704 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12706         areadlink-with-size: guess a buffer size with 0 size
12707         The size is usually taken from st_size, which can be zero,
12708         resulting in inefficient operation.
12709         Instead let zero select an initial memory allocation
12710         of 128 bytes, which most symlinks fit within.
12711         * lib/areadlink-with-size.c (areadlink_with_size):
12712         Start with a 128 byte buffer, for SIZE == 0.
12713         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12715 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12717         Replace manually crafted hex regexes with [:xdigit:]
12718         * build-aux/gitlog-to-changelog (parse_amend_file)
12719         (git_dir_option):
12720         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12721         This patch is backported from Emacs (Bug#36167).
12723 2019-07-06  Bruno Haible  <bruno@clisp.org>
12725         error: Fix documentation.
12726         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12727         module provides.
12728         * doc/glibc-functions/error_message_count.texi: Likewise.
12729         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12730         * doc/glibc-functions/error_print_progname.texi: Likewise.
12732 2019-07-06  Bruno Haible  <bruno@clisp.org>
12734         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12735         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12736         and older is unsupported.
12737         * doc/**/*.texi: Update.
12739 2019-07-06  Bruno Haible  <bruno@clisp.org>
12741         doc: Remove documentation of Linux libc5 as a supported platform.
12742         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12743         to Linux libc5.
12744         * doc/posix-functions/iswalpha.texi: Likewise.
12745         * doc/posix-functions/iswblank.texi: Likewise.
12746         * doc/posix-functions/iswcntrl.texi: Likewise.
12747         * doc/posix-functions/iswdigit.texi: Likewise.
12748         * doc/posix-functions/iswgraph.texi: Likewise.
12749         * doc/posix-functions/iswlower.texi: Likewise.
12750         * doc/posix-functions/iswprint.texi: Likewise.
12751         * doc/posix-functions/iswpunct.texi: Likewise.
12752         * doc/posix-functions/iswspace.texi: Likewise.
12753         * doc/posix-functions/iswupper.texi: Likewise.
12754         * doc/posix-functions/iswxdigit.texi: Likewise.
12755         * doc/posix-functions/snprintf.texi: Likewise.
12756         * doc/posix-functions/vsnprintf.texi: Likewise.
12758 2019-07-06  Bruno Haible  <bruno@clisp.org>
12760         doc: Remove documentation of Tandem/NSK as a supported platform.
12761         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12762         Tandem/NSK.
12763         * doc/**/*.texi: Update.
12765 2019-07-06  Bruno Haible  <bruno@clisp.org>
12767         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12768         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12769         and older is unsupported.
12770         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12771         Mac OS X 10.4 and older.
12772         * doc/posix-functions/asinl.texi: Likewise.
12773         * doc/posix-functions/atanl.texi: Likewise.
12774         * doc/posix-functions/cosl.texi: Likewise.
12775         * doc/posix-functions/expl.texi: Likewise.
12776         * doc/posix-functions/frexpl.texi: Likewise.
12777         * doc/posix-functions/gettimeofday.texi: Likewise.
12778         * doc/posix-functions/logl.texi: Likewise.
12779         * doc/posix-functions/mkstemp.texi: Likewise.
12780         * doc/posix-functions/sinl.texi: Likewise.
12781         * doc/posix-functions/sqrtl.texi: Likewise.
12782         * doc/posix-functions/tanl.texi: Likewise.
12783         * doc/posix-functions/wcswidth.texi: Likewise.
12784         * doc/**/*.texi: Update.
12786 2019-07-06  Bruno Haible  <bruno@clisp.org>
12788         doc: Remove documentation of AIX 4 as a supported platform.
12789         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12790         unsupported.
12791         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12792         workarounds.
12793         * doc/posix-functions/strnlen.texi: Likewise.
12794         * doc/posix-headers/inttypes.texi: Likewise.
12795         * doc/**/*.texi: Update.
12797 2019-07-06  Bruno Haible  <bruno@clisp.org>
12799         doc: Remove documentation of HP-UX 10 as a supported platform.
12800         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12801         unsupported.
12802         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12803         workarounds.
12804         * doc/posix-functions/gmtime_r.texi: Likewise.
12805         * doc/posix-functions/localtime_r.texi: Likewise.
12806         * doc/posix-functions/mkstemp.texi: Likewise.
12807         * doc/**/*.texi: Update.
12809 2019-07-06  Bruno Haible  <bruno@clisp.org>
12811         doc: Remove documentation of Interix 3.5 as a supported platform.
12812         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12813         unsupported.
12814         * doc/posix-functions/select.texi: Don't mention Interix specific
12815         workarounds.
12816         * doc/posix-headers/signal.texi: Likewise.
12817         * doc/**/*.texi: Update.
12819 2019-07-06  Bruno Haible  <bruno@clisp.org>
12821         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12822         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12823         unsupported.
12824         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12825         workarounds.
12826         * doc/posix-functions/nl_langinfo.texi: Likewise.
12827         * doc/posix-functions/remainder.texi: Likewise.
12828         * doc/posix-functions/towlower.texi: Likewise.
12829         * doc/posix-functions/towupper.texi: Likewise.
12830         * doc/posix-functions/vsnprintf.texi: Likewise.
12831         * doc/posix-functions/wcscat.texi: Likewise.
12832         * doc/posix-functions/wcschr.texi: Likewise.
12833         * doc/posix-functions/wcscmp.texi: Likewise.
12834         * doc/posix-functions/wcscpy.texi: Likewise.
12835         * doc/posix-functions/wcscspn.texi: Likewise.
12836         * doc/posix-functions/wcslen.texi: Likewise.
12837         * doc/posix-functions/wcsncat.texi: Likewise.
12838         * doc/posix-functions/wcsncmp.texi: Likewise.
12839         * doc/posix-functions/wcsncpy.texi: Likewise.
12840         * doc/posix-functions/wcspbrk.texi: Likewise.
12841         * doc/posix-functions/wcsrchr.texi: Likewise.
12842         * doc/posix-functions/wcsspn.texi: Likewise.
12843         * doc/posix-headers/langinfo.texi: Likewise.
12844         * doc/posix-headers/signal.texi: Likewise.
12845         * doc/posix-headers/wchar.texi: Likewise.
12846         * doc/posix-headers/wctype.texi: Likewise.
12847         * doc/**/*.texi: Update.
12849 2019-07-05  Bruno Haible  <bruno@clisp.org>
12851         doc: Remove documentation of OSF/1 as supported platform.
12852         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12853         unsupported.
12854         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12855         workarounds.
12856         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12857         * doc/glibc-functions/ptsname_r.texi: Likewise.
12858         * doc/posix-functions/ceil.texi: Likewise.
12859         * doc/posix-functions/ceilf.texi: Likewise.
12860         * doc/posix-functions/ceill.texi: Likewise.
12861         * doc/posix-functions/fchdir.texi: Likewise.
12862         * doc/posix-functions/floor.texi: Likewise.
12863         * doc/posix-functions/floorf.texi: Likewise.
12864         * doc/posix-functions/fmod.texi: Likewise.
12865         * doc/posix-functions/fmodf.texi: Likewise.
12866         * doc/posix-functions/fmodl.texi: Likewise.
12867         * doc/posix-functions/log.texi: Likewise.
12868         * doc/posix-functions/logf.texi: Likewise.
12869         * doc/posix-functions/logl.texi: Likewise.
12870         * doc/posix-functions/log10.texi: Likewise.
12871         * doc/posix-functions/log10f.texi: Likewise.
12872         * doc/posix-functions/log10l.texi: Likewise.
12873         * doc/posix-functions/log2.texi: Likewise.
12874         * doc/posix-functions/log2f.texi: Likewise.
12875         * doc/posix-functions/log2l.texi: Likewise.
12876         * doc/posix-functions/mbrtowc.texi: Likewise.
12877         * doc/posix-functions/recv.texi: Likewise.
12878         * doc/posix-functions/recvfrom.texi: Likewise.
12879         * doc/posix-functions/remainder.texi: Likewise.
12880         * doc/posix-functions/remainderf.texi: Likewise.
12881         * doc/posix-functions/remainderl.texi: Likewise.
12882         * doc/posix-functions/round.texi: Likewise.
12883         * doc/posix-functions/roundf.texi: Likewise.
12884         * doc/posix-functions/roundl.texi: Likewise.
12885         * doc/posix-functions/send.texi: Likewise.
12886         * doc/posix-functions/sendto.texi: Likewise.
12887         * doc/posix-functions/setenv.texi: Likewise.
12888         * doc/posix-functions/snprintf.texi: Likewise.
12889         * doc/posix-functions/tcgetsid.texi: Likewise.
12890         * doc/posix-functions/trunc.texi: Likewise.
12891         * doc/posix-functions/truncf.texi: Likewise.
12892         * doc/posix-functions/truncl.texi: Likewise.
12893         * doc/posix-functions/ttyname_r.texi: Likewise.
12894         * doc/posix-functions/unsetenv.texi: Likewise.
12895         * doc/posix-functions/wcsrtombs.texi: Likewise.
12896         * doc/posix-headers/sys_select.texi: Likewise.
12897         * doc/posix-headers/wchar.texi: Likewise.
12898         * doc/posix-headers/wctype.texi: Likewise.
12899         * doc/**/*.texi: Update.
12901 2019-07-05  Bruno Haible  <bruno@clisp.org>
12903         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12904         * doc/**/*.texi: Update.
12906 2019-07-05  Bruno Haible  <bruno@clisp.org>
12908         doc: Remove documentation of Solaris 8 and older as supported platforms.
12909         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12910         unsupported.
12911         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12912         workarounds.
12913         * doc/posix-functions/memcmp.texi: Likewise.
12914         * doc/posix-functions/rename.texi: Likewise.
12915         * doc/posix-functions/tzset.texi: Likewise.
12916         * doc/posix-headers/wctype.texi: Likewise.
12917         * doc/**/*.texi: Update.
12919 2019-07-05  Bruno Haible  <bruno@clisp.org>
12921         doc: Remove documentation of Interix 3.5 as a supported platform.
12922         * doc/**/*.texi: Update.
12924 2019-07-05  Bruno Haible  <bruno@clisp.org>
12926         doc: Remove documentation of BeOS as a supported platform.
12927         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12928         unsupported.
12929         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12930         * doc/posix-functions/getdelim.texi: Likewise.
12931         * doc/**/*.texi: Update.
12933 2019-07-05  Bruno Haible  <bruno@clisp.org>
12935         thread, lock, cond, tls: Remove support for Pth threads.
12936         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12937         --enable-threads=pth any more.
12938         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12940         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12941         threads and ISO C11 threads.
12942         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12943         * lib/glthread/lock.h: Likewise.
12944         * lib/glthread/lock.c: Likewise.
12945         * lib/glthread/cond.h: Likewise.
12946         * lib/glthread/cond.c: Likewise.
12947         * lib/glthread/tls.h: Likewise.
12948         * lib/glthread/tls.c: Likewise.
12949         * lib/glthread/yield.h: Likewise.
12950         * lib/regex_internal.h: Likewise.
12951         * tests/test-thread_create.c: Likewise.
12952         * tests/test-lock.c: Likewise.
12953         * tests/test-cond.c: Likewise.
12954         * tests/test-tls.c: Likewise.
12955         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12956         (main): Sleep without calling gl_thread_yield.
12958 2019-07-05  Bruno Haible  <bruno@clisp.org>
12960         thread, lock, cond, tls: Remove support for old Solaris threads.
12961         Solaris >= 2.5.1 has POSIX threads.
12962         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12963         --enable-threads=solaris any more.
12964         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12965         * lib/glthread/thread.c: Update comment.
12966         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12967         * lib/glthread/lock.h: Likewise.
12968         * lib/glthread/lock.c: Likewise.
12969         * lib/glthread/cond.h: Likewise.
12970         * lib/glthread/cond.c: Likewise.
12971         * lib/glthread/tls.h: Likewise.
12972         * lib/glthread/tls.c: Likewise.
12973         * lib/glthread/yield.h: Likewise.
12974         * lib/regex_internal.h: Likewise.
12975         * tests/test-thread_create.c: Likewise.
12976         * tests/test-lock.c: Likewise.
12977         * tests/test-cond.c: Likewise.
12978         * tests/test-tls.c: Likewise.
12980 2019-07-05  Bruno Haible  <bruno@clisp.org>
12982         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12983         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12984         needed size is equal to the allocated size.
12985         * lib/getcwd.c (__getcwd): Likewise.
12987 2019-07-05  Bruno Haible  <bruno@clisp.org>
12989         xgetdomainname: Don't return an excessive memory allocation.
12990         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12991         before returning it.
12993 2019-07-05  Bruno Haible  <bruno@clisp.org>
12995         xgethostname: Don't return an excessive memory allocation.
12996         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12997         returning it.
12999 2019-07-05  Bruno Haible  <bruno@clisp.org>
13001         areadlinkat-with-size: Don't return an excessive memory allocation.
13002         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
13003         before returning it.
13005 2019-07-05  Bruno Haible  <bruno@clisp.org>
13007         areadlink-with-size: Don't return an excessive memory allocation.
13008         Reported by Andreas Dilger <adilger@whamcloud.com>.
13009         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
13010         before returning it.
13012 2019-07-03  Bruno Haible  <bruno@clisp.org>
13014         renameatu: Fix test failure on MSVC.
13015         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
13016         empty string.
13018 2019-07-03  Bruno Haible  <bruno@clisp.org>
13020         mbrtowc: Fix invalid use of mbtowc() on MSVC.
13021         * lib/mbrtowc.c: Include glthread/lock.h.
13022         (mbtowc_lock): New variable.
13023         (mbrtowc): Treat UTF-8 encoding without locking. For the other
13024         encodings, explicitly reset the internal state of mbtowc, and protect
13025         this through a lock.
13026         * modules/mbrtowc (Depends-on): Add lock.
13028 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
13030         argmatch: don't define _ in the header.
13031         Reported by Jim Meyering.
13032         * lib/argmatch.h (N_, _): Don't define.
13033         Use gettext instead.
13034         * lib/argmatch.h (_): Define.
13035         * tests/test-argmatch.c (N_): Define.
13037 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13039         verify: document ‘assume’ better
13040         * lib/verify.h: Reword doc (Bug#36370).
13042 2019-07-02  Bruno Haible  <bruno@clisp.org>
13044         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
13045         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
13046         "CPutf8".
13047         * lib/nl_langinfo.c (ctype_codeset): Likewise.
13049 2019-07-02  Bruno Haible  <bruno@clisp.org>
13051         getcwd: Fix crash when invoked with size = 0 on MSVC.
13052         * lib/getcwd.c: Include msvc-inval.h.
13053         (getcwd_nothrow): New function/macro.
13054         (getcwd_system): New macro.
13055         (__getcwd): Use it instead of getcwd.
13056         * modules/getcwd (Depends-on): Add msvc-inval.
13057         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
13059 2019-07-02  Bruno Haible  <bruno@clisp.org>
13061         nonblocking-pipe tests: Fix test failure on MSVC.
13062         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
13063         native Windows.
13065 2019-07-02  Bruno Haible  <bruno@clisp.org>
13067         usleep: Implement with millisecond resolution on native Windows.
13068         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
13069         * doc/pastposix-functions/usleep.texi: Update accordingly.
13071 2019-07-02  Bruno Haible  <bruno@clisp.org>
13073         lstat tests: Fix test failure on MSVC.
13074         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
13075         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13077 2019-07-02  Bruno Haible  <bruno@clisp.org>
13079         stat tests: Fix test failure on MSVC.
13080         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
13081         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13083 2019-07-02  Bruno Haible  <bruno@clisp.org>
13085         getaddrinfo tests: Fix test failure on MSVC.
13086         * tests/test-getaddrinfo.c: Include sockets.h.
13087         (main): Invoke gl_sockets_startup.
13088         * modules/getaddrinfo-tests (Depends-on): Add sockets.
13090 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
13092         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
13093         * lib/poll.c: Call Windows native select() with Windows native timeval.
13095 2019-06-30  Bruno Haible  <bruno@clisp.org>
13097         argmatch: Fix compilation errors.
13098         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
13099         * tests/test-argmatch.c (main): Update after last-minute function names
13100         change.
13102 2019-06-30  Bruno Haible  <bruno@clisp.org>
13104         Include <stdlib.h> when needed.
13105         * lib/cnd.c: Include <stdlib.h>, needed for abort().
13106         * lib/fcntl.c: Likewise.
13107         * lib/mbscasestr.c: Likewise.
13108         * lib/mbssep.c: Likewise.
13109         * lib/mbsstr.c: Likewise.
13110         * lib/openat.c: Include <stdlib.h>, needed for free().
13111         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
13112         abort().
13114 2019-06-30  Bruno Haible  <bruno@clisp.org>
13116         Include <stdlib.h> when needed.
13117         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
13118         * lib/faccessat.c: Likewise.
13119         * lib/fchmodat.c: Likewise.
13120         * lib/fchownat.c: Likewise.
13121         * lib/fstatat.c: Likewise.
13122         * lib/mkfifoat.c: Likewise.
13123         * lib/mknodat.c: Likewise.
13124         * lib/readlinkat.c: Likewise.
13125         * lib/symlinkat.c: Likewise.
13126         * lib/utimensat.c: Likewise.
13127         * lib/mkdirat.c: Likewise. Include also the specification header.
13129 2019-06-30  Bruno Haible  <bruno@clisp.org>
13131         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
13132         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
13133         from gl_PREREQ_SYS_H_SOCKET.
13134         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
13135         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
13136         gl_PREREQ_SYS_H_WS2TCPIP.
13137         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
13138         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
13139         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
13141 2019-06-30  Bruno Haible  <bruno@clisp.org>
13143         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
13144         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
13145         REPLACE_INET_NTOP to 1 always.
13146         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
13147         REPLACE_INET_PTON to 1 always.
13149 2019-06-30  Bruno Haible  <bruno@clisp.org>
13151         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
13152         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
13153         not REPLACE_INET_NTOP.
13155 2019-06-30  Bruno Haible  <bruno@clisp.org>
13157         poll: Add comment.
13158         * lib/poll.c: Add comment about WSAPoll.
13160 2019-06-30  Bruno Haible  <bruno@clisp.org>
13162         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
13163         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
13164         * lib/poll.in.h: Include <winsock2.h>.
13165         (POLL*, pollfd): Override on native Windows.
13166         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13167         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
13168         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13170 2019-06-28  Bruno Haible  <bruno@clisp.org>
13172         accept4: Fix compilation error on OpenIndiana.
13173         Reported by Michal Nowak <mnowak@startmail.com>
13174         via Mark H Weaver <mhw@netris.org>.
13175         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13176         whether it exists as a function.
13178 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13180         strverscmp: sync from glibc
13181         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
13182         comments, include libc-config.h, define __strverscmp to be
13183         strverscmp, and don’t assume types line uint8_t and int8_t that
13184         that C99 doesn’t guarantee.
13185         [!_LIBC]: Include libc-config.h; define __strverscmp.
13186         Include stdint.h.
13187         (__strverscmp): Assume C99.  Use uint_least8_t
13188         and int_least8_t instead of unsigned char and signed char.
13189         * modules/strverscmp (Depends-on): Add libc-config, stdint.
13191 2019-06-25  Bruno Haible  <bruno@clisp.org>
13193         tss tests: Add tests for destructors and races.
13194         * tests/test-tss.c (worker_thread): Fix typo in debug message.
13195         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
13196         functions.
13197         (main): Invoke them.
13198         * modules/tls-tests (Depends-on): Add mtx.
13200 2019-06-25  Bruno Haible  <bruno@clisp.org>
13202         tls tests: Add tests for destructors and races.
13203         * tests/test-tls.c: Include glthread/lock.h.
13204         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
13205         functions.
13206         (main): Invoke them.
13207         * modules/tls-tests (Depends-on): Add lock.
13209 2019-06-25  Bruno Haible  <bruno@clisp.org>
13211         windows-tls: Implement TLS key destructors for native Windows.
13212         * lib/windows-tls.h (glwthread_tls_process_destructors): New
13213         declaration.
13214         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
13215         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
13216         (dtor_table_init_once, dtor_table_lock: New variables.
13217         (struct dtor): New type.
13218         (dtor_table, dtors_count, dtors_used, dtors_allocated,
13219         dtor_processing_threads): New variables.
13220         (dtor_table_initialize, dtor_table_ensure_initialized,
13221         dtor_table_shrink_used, glwthread_tls_process_destructors): New
13222         functions.
13223         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
13224         handle non-NULL destructors.
13225         * modules/windows-tls (Depends-on): Add windows-once.
13226         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
13227         Use the functions declared in windows-tls.h.
13228         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
13229         GLWTHREAD_DESTRUCTOR_ITERATIONS.
13230         * lib/windows-thread.c: Include windows-tls.h.
13231         (wrapper_func, glwthread_thread_exit): Invoke
13232         glwthread_tls_process_destructors.
13233         * modules/windows-thread (Depends-on): Add windows-tls.
13235 2019-06-25  Bruno Haible  <bruno@clisp.org>
13237         threadlib: Avoid autoconf warning "was expanded before it was required".
13238         * modules/threadlib (configure.ac): Require gl_THREADLIB.
13240 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
13242         argmatch: remove duplicate const qualifier
13243         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
13245 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13247         unistd: stddef.h and sys/types.h namespace cleanup
13248         * lib/unistd.in.h [__GLIBC__]:
13249         Do not include stddef.h or sys/types.h.
13250         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
13251         supposed to declare off_t and ssize_t.  Problem found when looking
13252         at why @GNULIB_PWRITE@ was different from the newly-added
13253         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
13255 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13257         maintainer-makefile: restore portability to non-GNU awks
13258         Reported by Tim Rühsen.
13259         * top/maint.mk (AWK): New variable.  Use it.
13260         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
13262 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13264         Document setvbuf _IOLBF problem
13265         * doc/posix-functions/setvbuf.texi (setvbuf):
13266         Document MS-Windows portability problem with _IOLBF.
13268         Document lseek SEEK_DATA/SEEK_HOLE
13269         * doc/posix-functions/lseek.texi (lseek):
13270         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
13272 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13274         argmatch: put all the docs member last.
13275         Reported by Bruno Haible.
13276         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
13277         member before the docs done.
13278         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
13280 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
13282         argmatch: add support to generate the usage message.
13283         * lib/argmatch.c: Move some #includes and gettext support to...
13284         * lib/argmatch.h: here.
13285         (ARGMATCH_DEFINE_GROUP): New macro.
13286         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
13287         (argmatch_backup_group): New.
13288         (CHECK): New.
13289         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
13290         argmatch_backup_argument and argmatch_backup_usage.
13291         * modules/argmatch: We depend on c99.
13292         * doc/argmatch.texi (Recognizing Option Arguments): New.
13293         * doc/gnulib.texi: Use it.
13295 2019-06-21  Bruno Haible  <bruno@clisp.org>
13297         thrd: Add comment.
13298         * lib/thrd.c (pthread_main_func): Add comment.
13300 2019-06-21  Bruno Haible  <bruno@clisp.org>
13302         threads-h: Define 'thread_local' if and only if it actually works.
13303         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
13304         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
13305         Oracle Solaris Studio C. Compile a simple program, to see whether
13306         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
13307         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
13308         * lib/threads.in.h (thread_local): Undefine if it does not work.
13309         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
13310         (Link): Mention LIBTHREADLOCAL.
13311         * tests/test-threads.c: Don't check that thread_local is defined.
13312         * tests/test-thread_local.c: New file.
13313         * modules/threads-h-tests (Files): Add it and macros.h.
13314         (Depends-on): Add thrd and stdint.
13315         (configure.ac): Test whether 'alarm' is declared.
13316         (Makefile.am): Arrange to build and link test-thread_local.
13317         * doc/posix-headers/threads.texi: Mention the platforms that don't
13318         support 'thread_local'.
13320 2019-06-20  Bruno Haible  <bruno@clisp.org>
13322         threads-h: Simplify link dependencies.
13323         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
13324         Don't set LTLIBSTDTHREAD.
13325         * modules/thrd (Link): Simplify accordingly.
13326         * modules/mtx (Link): Likewise.
13327         * modules/cnd (Link): Likewise.
13328         * modules/tss (Link): Likewise.
13329         * modules/threads (Link): Likewise.
13331 2019-06-20  Bruno Haible  <bruno@clisp.org>
13333         threads-h: Fix link error on FreeBSD 11.
13334         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
13335         also with -lpthread.
13337 2019-06-20  Bruno Haible  <bruno@clisp.org>
13339         threadlib: Fix typo (regression from today).
13340         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13342 2019-06-20  Bruno Haible  <bruno@clisp.org>
13344         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13345         * lib/windows-thread.c: Include <errno.h>.
13346         * lib/windows-tls.c: Likewise.
13348 2019-06-20  Bruno Haible  <bruno@clisp.org>
13350         tss tests: Small improvement.
13351         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13353 2019-06-20  Bruno Haible  <bruno@clisp.org>
13355         threads: New module.
13356         * modules/threads: New file.
13358 2019-06-20  Bruno Haible  <bruno@clisp.org>
13360         tss: Add tests.
13361         * tests/test-tss.c: New file, based on tests/test-tls.c.
13362         * modules/tss-tests: New file.
13364 2019-06-20  Bruno Haible  <bruno@clisp.org>
13366         cnd: Add tests.
13367         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13368         * modules/cnd-tests: New file.
13370 2019-06-20  Bruno Haible  <bruno@clisp.org>
13372         mtx: Add tests.
13373         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13374         * tests/test-call_once.c: New file, based on tests/test-once.c.
13375         * modules/mtx-tests: New file.
13377 2019-06-20  Bruno Haible  <bruno@clisp.org>
13379         thrd: Add tests.
13380         * tests/test-thrd_create.c: New file, based on
13381         tests/test-thread_create.c.
13382         * tests/test-thrd_current.c: New file, based on
13383         tests/test-thread_self.c.
13384         * modules/thrd-tests: New file.
13386 2019-06-20  Bruno Haible  <bruno@clisp.org>
13388         tss: New module.
13389         * lib/tss.c: New file.
13390         * modules/tss: New file.
13391         * doc/posix-functions/tss_create.texi: Mention the new module.
13392         * doc/posix-functions/tss_set.texi: Likewise.
13393         * doc/posix-functions/tss_get.texi: Likewise.
13394         * doc/posix-functions/tss_delete.texi: Likewise.
13396 2019-06-20  Bruno Haible  <bruno@clisp.org>
13398         cnd: New module.
13399         * lib/cnd.c: New file.
13400         * modules/cnd: New file.
13401         * doc/posix-functions/cnd_init.texi: Mention the new module.
13402         * doc/posix-functions/cnd_wait.texi: Likewise.
13403         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13404         * doc/posix-functions/cnd_signal.texi: Likewise.
13405         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13406         * doc/posix-functions/cnd_destroy.texi: Likewise.
13408 2019-06-20  Bruno Haible  <bruno@clisp.org>
13410         mtx: New module.
13411         * lib/mtx.c: New file.
13412         * modules/mtx: New file.
13413         * doc/posix-functions/call_once.texi: Mention the new module.
13414         * doc/posix-functions/mtx_init.texi: Likewise.
13415         * doc/posix-functions/mtx_lock.texi: Likewise.
13416         * doc/posix-functions/mtx_trylock.texi: Likewise.
13417         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13418         * doc/posix-functions/mtx_unlock.texi: Likewise.
13419         * doc/posix-functions/mtx_destroy.texi: Likewise.
13421 2019-06-20  Bruno Haible  <bruno@clisp.org>
13423         thrd: New module.
13424         * lib/thrd.c: New file.
13425         * m4/thrd.m4: New file.
13426         * modules/thrd: New file.
13427         * doc/posix-functions/thrd_current.texi: Mention the new module.
13428         * doc/posix-functions/thrd_detach.texi: Likewise.
13429         * doc/posix-functions/thrd_equal.texi: Likewise.
13430         * doc/posix-functions/thrd_exit.texi: Likewise.
13431         * doc/posix-functions/thrd_sleep.texi: Likewise.
13432         * doc/posix-functions/thrd_yield.texi: Likewise.
13433         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13434         AIX bug.
13435         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13436         AIX and Solaris bugs.
13438 2019-06-20  Bruno Haible  <bruno@clisp.org>
13440         threads-h: Add tests.
13441         * tests/test-threads.c: New file.
13442         * modules/threads-h-tests: New file.
13443         * tests/test-threads-c++.cc: New file.
13444         * modules/threads-h-c++-tests: New file.
13446 2019-06-20  Bruno Haible  <bruno@clisp.org>
13448         threads-h: New module.
13449         * lib/threads.in.h: New file.
13450         * m4/threads.m4: New file.
13451         * m4/yield.m4 (gl_YIELD): Update comment.
13452         * modules/threads-h: New file.
13453         * modules/yields (configure.ac): Use AC_REQUIRE.
13454         * doc/posix-headers/threads.texi: Mention the new module and the AIX
13455         bugs.
13457 2019-06-20  Bruno Haible  <bruno@clisp.org>
13459         windows-thread: New module.
13460         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
13461         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
13462         * lib/glthread/thread.h: Include windows-thread.h.
13463         (gl_thread_t): Define using glwthread_thread_t.
13464         (glthread_create): Define using glwthread_thread_create.
13465         (glthread_join): Define using glwthread_thread_join.
13466         (gl_thread_self): Define using glwthread_thread_self.
13467         (gl_thread_exit): Define using glwthread_thread_exit.
13468         (glthread_create_func, glthread_join_func, gl_thread_self_func,
13469         gl_thread_exit_func): Remove declarations.
13470         * lib/glthread/thread.c (self_key): Remove variable.
13471         (do_init_self_key, init_self_key): Remove functions.
13472         (struct gl_thread_struct): Remove type.
13473         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
13474         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
13475         functions.
13476         * modules/windows-thread: New file.
13477         * modules/thread (Depends-on): Add windows-thread.
13479 2019-06-20  Bruno Haible  <bruno@clisp.org>
13481         windows-tls: New module.
13482         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
13483         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
13484         * lib/glthread/tls.h: Include windows-tls.h.
13485         (gl_tls_key_t): Define using glwthread_tls_key_t.
13486         * modules/windows-tls: New file.
13487         * modules/tls (Depends-on): Add windows-tls.
13489 2019-06-20  Bruno Haible  <bruno@clisp.org>
13491         windows-cond: New module.
13492         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
13493         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
13494         * lib/glthread/cond.h: Include windows-cond.h.
13495         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
13496         (gl_cond_t): Define using glwthread_cond_t.
13497         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
13498         (glthread_cond_init): Define using glwthread_cond_init.
13499         (glthread_cond_wait): Define using glwthread_cond_wait.
13500         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
13501         (glthread_cond_signal): Define using glwthread_cond_signal.
13502         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
13503         (glthread_cond_destroy): Define using glwthread_cond_destroy.
13504         (glthread_cond_init_func, glthread_cond_wait_func,
13505         glthread_cond_timedwait_func, glthread_cond_signal_func,
13506         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13507         declarations.
13508         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
13509         types.
13510         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13511         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
13512         glthread_cond_init_func, glthread_cond_wait_func,
13513         glthread_cond_timedwait_func, glthread_cond_signal_func,
13514         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13515         functions.
13516         * modules/windows-cond: New file.
13517         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
13519 2019-06-20  Bruno Haible  <bruno@clisp.org>
13521         windows-timedrecmutex: New module.
13522         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
13523         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
13524         * modules/windows-timedrecmutex: New file.
13526 2019-06-20  Bruno Haible  <bruno@clisp.org>
13528         windows-timedmutex: New module.
13529         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
13530         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
13531         * modules/windows-timedmutex: New file.
13533 2019-06-20  Bruno Haible  <bruno@clisp.org>
13535         windows-recmutex: New module.
13536         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
13537         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
13538         * lib/glthread/lock.h: Include windows-recmutex.h.
13539         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
13540         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
13541         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
13542         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
13543         (glthread_recursive_lock_unlock): Define using
13544         glwthread_recmutex_unlock.
13545         (glthread_recursive_lock_destroy): Define using
13546         glwthread_recmutex_destroy.
13547         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
13548         glthread_recursive_lock_unlock_func,
13549         glthread_recursive_lock_destroy_func): Remove declarations.
13550         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
13551         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
13552         glthread_recursive_lock_destroy_func): Remove functions.
13553         * modules/windows-recmutex: New file.
13554         * modules/lock (Depends-on): Add windows-recmutex.
13556 2019-06-20  Bruno Haible  <bruno@clisp.org>
13558         windows-mutex: New module.
13559         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
13560         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
13561         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
13562         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
13563         (gl_spinlock_t): Remove type.
13564         (gl_lock_t): Define using glwthread_mutex_t.
13565         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
13566         (glthread_lock_init): Define using glwthread_mutex_init.
13567         (glthread_lock_lock): Define using glwthread_mutex_lock.
13568         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
13569         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
13570         (glthread_lock_init_func, glthread_lock_lock_func,
13571         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13572         declarations.
13573         Use glwthread_spinlock_t instead of gl_spinlock_t.
13574         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
13575         GLWTHREAD_SPINLOCK_INIT.
13576         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
13577         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13578         functions.
13579         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
13580         gl_spinlock_t.
13581         * modules/windows-mutex: New file.
13582         * modules/lock (Depends-on): Add windows-mutex.
13584 2019-06-20  Bruno Haible  <bruno@clisp.org>
13586         windows-once: New module.
13587         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
13588         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13589         * lib/glthread/lock.h: Include windows-once.h.
13590         (gl_once_t): Define using glwthread_once_t.
13591         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13592         (glthread_once): Define using glwthread_once.
13593         (glthread_once_func): Remove declaration.
13594         * lib/glthread/lock.c (glthread_once_func): Remove function.
13595         * modules/windows-once: New file.
13596         * modules/lock (Depends-on): Add windows-once.
13598 2019-06-20  Bruno Haible  <bruno@clisp.org>
13600         lock, cond: Avoid possible counter wraparound on Windows.
13601         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
13602         field of the guard unchanged if it was already positive.
13603         (glthread_rwlock_rdlock_func): Likewise.
13604         (glthread_rwlock_wrlock_func): Likewise.
13605         (glthread_recursive_lock_lock_func): Likewise.
13606         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
13607         (glthread_cond_timedwait_func): Likewise.
13609 2019-06-20  Bruno Haible  <bruno@clisp.org>
13611         cond: Make glthread_cond_timedwait more reliable on Windows.
13612         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
13613         condition variable before looking at the current time.
13615 2019-06-20  Bruno Haible  <bruno@clisp.org>
13617         pthread_mutex_timedlock: New module.
13618         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
13619         new declaration.
13620         * lib/pthread_mutex_timedlock.c: New file.
13621         * m4/pthread_mutex_timedlock.m4: New file.
13622         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
13623         whether pthread_mutex_timedlock is declared.
13624         (gl_PTHREAD_MODULE_INDICATOR): New macro.
13625         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13626         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13627         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
13628         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13629         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13630         * modules/pthread_mutex_timedlock: New file.
13631         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
13632         module.
13634 2019-06-20  Bruno Haible  <bruno@clisp.org>
13636         thread, lock, cond, tls: Recognize C11 multithreaded applications.
13637         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
13638         * lib/glthread/thread.h (c11_threads_in_use): New macro.
13639         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13640         * lib/glthread/lock.h (c11_threads_in_use): New macro.
13641         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13642         * lib/glthread/cond.h (c11_threads_in_use): New macro.
13643         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13644         * lib/glthread/tls.h (c11_threads_in_use): New macro.
13645         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13647 2019-06-20  Bruno Haible  <bruno@clisp.org>
13649         tls tests: Small improvements.
13650         * tests/test-tls.c: Include <stdint.h>.
13651         (worker_thread): Avoid gcc warning on 64-bit mingw.
13652         (test_tls): Pass a different id to each thread.
13653         * modules/tls-tests (Depends-on): Add stdint.
13655 2019-06-20  Bruno Haible  <bruno@clisp.org>
13657         cond tests: Simplify.
13658         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
13660 2019-06-20  Bruno Haible  <bruno@clisp.org>
13662         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13663         * tests/test-lock.c (test_once): Don't reference fire_signal if
13664         !ENABLE_LOCKING.
13666 2019-06-19  Bruno Haible  <bruno@clisp.org>
13668         nanosleep: Relicense under LGPLv2+.
13669         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13670         * modules/nanosleep (License): Change to LGPLv2+.
13672 2019-06-19  Bruno Haible  <bruno@clisp.org>
13674         Reorder pieces of header in perl scripts.
13675         The desired order is
13676         - Prologue part 1 (2 lines with #!)
13677         - Program short description
13678         - Copyright and license notice
13679         - Written-by notice
13680         - Program short description (optional)
13681         - Program long description (optional)
13682         - Prologue part 2
13683         - Time stamp
13684         - Code
13685         Reported by Paul Eggert.
13686         * build-aux/announce-gen: Reorder header.
13687         * build-aux/gitlog-to-changelog: Likewise.
13688         * build-aux/useless-if-before-free: Likewise.
13689         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13690         description.
13691         * build-aux/update-copyright: Likewise. Add short description. Bump
13692         time-stamp-line-limit to 200.
13694 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13696         verify-tests: work around xlc bug
13697         Problem reported by Bruno Haible in:
13698         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13699         * tests/test-verify.c (item): Move the arithmetic inside the
13700         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13702 2019-06-16  Bruno Haible  <bruno@clisp.org>
13704         Restore Emacs time-stamp hook applicability.
13705         Reported by Darshit Shah <darnir@gnu.org>.
13706         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13707         * build-aux/announce-gen: Likewise.
13708         * build-aux/gitlog-to-changelog: Likewise.
13709         * build-aux/prefix-gnulib-mk: Likewise.
13710         * build-aux/update-copyright: Likewise.
13712 2019-06-15  Bruno Haible  <bruno@clisp.org>
13714         Fix scripts to have valid executable format on Alpine Linux.
13715         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13716         Idea by Paul Eggert.
13717         * build-aux/useless-if-before-free: Use a prologue that starts with
13718         '#!/bin/sh'.
13719         * build-aux/announce-gen: Likewise.
13720         * build-aux/gitlog-to-changelog: Likewise.
13721         * build-aux/prefix-gnulib-mk: Likewise.
13722         * build-aux/update-copyright: Likewise.
13723         * tests/test-update-copyright.sh: Update test program accordingly.
13725 2019-06-10  Bruno Haible  <bruno@clisp.org>
13727         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13728         Reported by Nikita Ermakov <arei@altlinux.org> in
13729         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13730         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13731         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13733 2019-06-10  Bruno Haible  <bruno@clisp.org>
13735         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13736         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13737         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13738         a copy of the path argument.
13739         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13740         it.
13742 2019-06-10  Bruno Haible  <bruno@clisp.org>
13744         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13745         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13746         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13747         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13748         a copy of the path argument.
13749         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13750         it.
13752 2019-06-10  Bruno Haible  <bruno@clisp.org>
13754         posix_spawn_file_actions_addfchdir: Add tests.
13755         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13756         * tests/test-posix_spawn5.c: New file.
13757         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13759 2019-06-10  Bruno Haible  <bruno@clisp.org>
13761         posix_spawn_file_actions_addfchdir: New module.
13762         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13763         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13764         union member 'fchdir_action'.
13765         * lib/spawn_faction_addfchdir.c: New file.
13766         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13767         * m4/posix_spawn_faction_addfchdir.m4: New file.
13768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13769         'posix_spawn_file_actions_addfchdir' is present and whether
13770         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13771         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13772         posix_spawn_file_actions_addfchdir is declared.
13773         (gl_SPAWN_H_DEFAULTS): Initialize
13774         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13775         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13776         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13777         * modules/spawn (Makefile.am): Substitute
13778         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13779         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13780         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13781         * modules/posix_spawn_file_actions_addfchdir: New file.
13782         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13783         signature.
13784         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13785         * doc/posix-functions/posix_spawnp.texi: Likewise.
13786         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13787         Likewise.
13789 2019-06-10  Bruno Haible  <bruno@clisp.org>
13791         doc: Document existence of posix_spawn_file_actions_addchdir module.
13792         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13793         the posix_spawn_file_actions_addchdir module.
13795 2019-06-10  Bruno Haible  <bruno@clisp.org>
13797         posix_spawn-internal: Fix module description.
13798         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13799         from here...
13800         * modules/posix_spawnp (configure.ac): ... and here...
13801         * modules/posix_spawn-internal (configure.ac): ... to here.
13803 2019-06-10  Bruno Haible  <bruno@clisp.org>
13805         doc: Update and improve documentation of glibc functions.
13806         This is a series of commits that
13807         - updates the documentation to the state of glibc 2.29,
13808         - adds references to Linux man pages and glibc documentation,
13809         - marks Linux specific functions as such.
13810         These are the commits:
13811         doc: Update after removal of crypt functions from glibc 2.28.
13812         doc: Remove mention of function vm86 (does not exist on x86_64).
13813         doc: Remove mention of functions that are gone from glibc.
13814         doc: Mention that glibc no longer provides h_errno.
13815         doc: Mention the availability of specific functions in glibc versions.
13816         doc: Mention eaccess.
13817         doc: Add references to Linux man pages.
13818         doc: Add references to glibc documentation.
13819         doc: Mention inotify_* functions.
13820         doc: Mention ppoll.
13821         doc: Mention sched_getcpu.
13822         doc: Mention sync_file_range.
13823         doc: Mention epoll_pwait.
13824         doc: Mention eventfd, eventfd_read, eventfd_write.
13825         doc: Mention signalfd.
13826         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13827         doc: Mention epoll_create1.
13828         doc: Mention getauxval.
13829         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13830         doc: Mention nextdown, nextup.
13831         doc: Mention more ISO TS 18661-1 <math.h> functions.
13832         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13833         doc: Mention getrandom, getentropy.
13834         doc: Mention strfromf, strfromd, strfroml.
13835         doc: Mention preadv2, pwritev2.
13836         doc: Mention copy_file_range.
13837         doc: Mention memfd_create.
13838         doc: Mention mlock2.
13839         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13840         doc: Mention more ISO TS 18661-1 <math.h> functions.
13841         doc: Mention renameat2.
13842         doc: Mention statx.
13843         doc: Mention the ISO C11 multithreading header and functions.
13844         doc: Mention getcpu.
13845         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13846         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13847         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13848         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13849         doc: Some glibc functions also exist on Solaris 11.
13850         doc: Some glibc functions also exist on Solaris 11.4.
13851         doc: Some glibc functions also exist on FreeBSD.
13852         doc: Some glibc functions also exist on BeOS.
13853         doc: Some glibc functions also exist on Haiku.
13854         doc: Mark functions which exist only on Linux.
13855         doc: Mark functions which exist only on Linux and illumos.
13857 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13859         copy-file: fix typo
13860         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13862         copy-file-range: simplify into a stub
13863         Based on a comment by Florian Weimer in:
13864         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13865         It turns out that Emacs (which will use this module) won’t need an
13866         emulation and I suspect other programs won’t either, because these
13867         programs will need to fall back on read+write anyway.  Perhaps I
13868         am wrong and other programs will be able to use an emulation; if
13869         so, this patch can be reverted.
13870         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13871         Just call it copy_file_range.
13872         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13873         Check via AC_LINK_IFELSE.
13874         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13876 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13878         copy-file: prefer copy_file_range
13879         * lib/copy-file.c: Do not include xalloc.h.
13880         (qcopy_file_preserving): Allocate a buffer only if
13881         copy_file_range does not suffice.  If the allocation fails
13882         don't give up; just use a small stack-based buffer.
13883         Prefer copy_file_range if it works.
13884         * modules/copy-file (Depends-on): Add copy-file-range.
13885         Remove xalloc.
13887         copy-file-range: new module
13888         * MODULES.html.sh: Add copy-file-range.
13889         * lib/copy-file-range.c, m4/copy-file-range.m4:
13890         * modules/copy-file-range: New files.
13891         * lib/unistd.in.h (copy_file_range): Declare.
13892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13893         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13894         * modules/unistd (unistd.h): Substitute them.
13896 2019-05-28  Bruno Haible  <bruno@clisp.org>
13898         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13899         Reported by KO Myung-Hun <komh78@gmail.com> in
13900         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13901         * lib/binary-io.h (__gl_setmode_check): Remove function.
13902         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13903         * lib/binary-io.c (__gl_setmode_check): Remove function.
13904         (set_binary_mode): Define here on DJGPP and EMX. Inline
13905         __gl_setmode_check. In case of a tty, don't return an error code.
13907 2019-05-28  James Youngman  <jay@gnu.org>
13909         dirent-safer: Make opendir_safer usable from C++.
13910         * lib/dirent-safer.h: use extern "C".
13912 2019-05-28  James Youngman  <jay@gnu.org>
13914         canonicalize: Make canonicalize_filename_mode usable from C++.
13915         * lib/canonicalize.h: use extern "C".
13917 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13919         prefix-gnulib-mk: Fix CPPFLAGS migration.
13920         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13921         _a part of the library name.
13923 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13925         flexmember: update comments again
13926         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13928         flexmember: update comment
13929         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13931 2019-05-20  Bruno Haible  <bruno@clisp.org>
13933         setlocale: Improve fallback on macOS.
13934         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13935         invocation.
13936         (locales_with_principal_territory): New array.
13937         (langcmp, get_main_locale_with_same_language): New functions.
13938         (locales_with_principal_language): New array.
13939         (terrcmp, get_main_locale_with_same_territory): New functions.
13940         (rpl_setlocale): When setlocale_single failed, try again with a locale
13941         that is more likely to exist. Don't warn if the environment variable
13942         SETLOCALE_VERBOSE is not set.
13944 2019-05-19  Bruno Haible  <bruno@clisp.org>
13946         localename: Fix default on macOS.
13947         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13948         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13949         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13950         HAVE_CFLOCALECOPYCURRENT.
13951         * lib/localename.h (gl_locale_name_default): Update.
13953 2019-05-19  Karl Berry  <karl@freefriends.org>
13955         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13956         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13957         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13959 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13961         maintainer-makefile: catch uses of $< in non-implicit rules
13962         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13964 2019-05-18  Bruno Haible  <bruno@clisp.org>
13966         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13967         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13968         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13969         gl_use_threads accordingly.
13971 2019-05-18  Bruno Haible  <bruno@clisp.org>
13973         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13974         Reported by Tim Rühsen in
13975         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13976         and Michele Locati in
13977         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13979         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13980         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13981         in use and regardless which threads API is chosen.
13983 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13985         close-stream, closein, closeout: simplify
13986         I noticed this opportunity for simplification while drafting a
13987         new, related module that I haven’t had time to finish yet.
13988         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13989         * modules/close-stream (Files): Remove m4/close-stream.m4.
13990         (configure.ac): Omit gl_CLOSE_STREAM.
13991         * modules/closein (Files): Remove m4/closein.m4
13992         (configure.ac): Omit gl_CLOSEIN.
13993         * modules/closeout (Files): Remove m4/closeout.m4.
13994         (configure.ac): Omit gl_CLOSEOUT.
13996 2019-05-12  Bruno Haible  <bruno@clisp.org>
13998         libtool-next-version: New program.
13999         * build-aux/libtool-next-version: New file.
14001 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
14002             Bruno Haible  <bruno@clisp.org>
14004         version-etc: Ease translation.
14005         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
14006         URLs and formatting newlines out of translatable string.
14008 2019-05-11  Bruno Haible  <bruno@clisp.org>
14010         gnupload: Explain how to create symlinks.
14011         * build-aux/gnupload (usage): Add an example that creates symlinks.
14013 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14015         fpucw: port to gcc -pedantic
14016         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
14017         Use __extension__ if using ({ ... }).
14019         crypto/af_alg: port to strict C compilers
14020         * lib/af_alg.c: Include af_alg.h regardless, so that the
14021         compilation unit is nonempty.
14023 2019-05-10  Bruno Haible  <bruno@clisp.org>
14025         base64: Avoid false positive warning from Coverity.
14026         Reported by Kamil Dudka <kdudka@redhat.com>.
14027         Idea by Paul Eggert.
14028         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
14029         '& 0x3f' to the array index expressions. This convinces Coverity that
14030         there is no out-of-bounds array reference, regardless of the input.
14032 2019-05-09  Bruno Haible  <bruno@clisp.org>
14034         gettext: Update to gettext 0.20.
14035         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
14036         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
14037         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
14038         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
14039         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
14040         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
14041         (configure.ac): Request infrastructure compatible with gettext 0.20.
14042         * m4/glibc2.m4: Remove file.
14043         * m4/intdiv0.m4: Remove file.
14044         * m4/intl.m4: Remove file.
14045         * m4/intldir.m4: Remove file.
14046         * m4/intmax.m4: Remove file.
14047         * m4/printf-posix.m4: Remove file.
14048         * m4/uintmax_t.m4: Remove file.
14049         * m4/gettext.m4: Update from gettext 0.20.
14050         * m4/po.m4: Likewise.
14052 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14054         verify: remove verify_true
14055         * NEWS: Mention this.
14056         * lib/verify.h (verify_true): Remove.
14057         * tests/test-verify.c (item): Test verify_expr, not verify_true.
14059         Support C2X and C++17 static_assert
14060         C2X and C++17 finally added support for a simple, single-argument
14061         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
14062         doing back in 2005.  Implement static_assert on older platforms.
14063         The only remaining advantage of ‘verify’ is a shorter name.
14064         * doc/posix-headers/assert.texi (assert.h):
14065         * doc/verify.texi (Compile-time Assertions):
14066         Modernize for C2X and C++17.
14067         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
14068         New macros.
14069         (_GL_HAVE__STATIC_ASSERT): Remove.
14070         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
14071         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
14072         string.  All callers changed.
14073         (_GL_VERIFY): Require 3 or more args, of which only the first 2
14074         are used.  All callers changed.
14075         (_Static_assert): Allow either 1 or 2 args, and define if
14076         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
14077         !_GL_HAVE__STATIC_ASSERT.
14078         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
14079         of defining if !_GL_HAVE_STATIC_ASSERT.
14080         (verify_expr, verify): Don’t bother trying to copy the expression
14081         into the diagnostic, since 1-argument static_assert doesn’t.
14082         (verify): Prefer 1-argument _Static_assert if it works.
14083         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
14085 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14087         Fix _GL_HAVE__STATIC_ASSERT typo
14088         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
14089         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
14091 2019-05-05  Bruno Haible  <bruno@clisp.org>
14093         wcwidth: Ensure width 1, not 2, for ambiguous characters.
14094         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
14095         via Akim Demaille <akim.demaille@gmail.com>.
14096         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
14097         en_US.UTF-8 locale, since that is more likely to be present than an
14098         fr_FR.UTF-8 locale.
14099         * tests/test-wcwidth.c (main): Check the width of U+2202.
14100         * doc/posix-functions/wcwidth.texi: Mention the issue.
14102 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14104         Port manywarnings to GCC 9
14105         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
14106         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
14107         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
14108         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
14109         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
14110         --help=warnings output.
14111         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
14112         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
14113         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
14115 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14117         Sync lib/mktime-internal.h from glibc
14118         * config/srclist.txt: Add entry for lib/mktime-internal.h.
14119         * lib/mktime-internal.h: Autoupdate.
14121 2019-04-28  Bruno Haible  <bruno@clisp.org>
14123         tls tests: Prevent that the test takes too long.
14124         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
14125         (main): Let the test fail if it takes more than 10 minutes.
14126         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
14128 2019-04-27  Bruno Haible  <bruno@clisp.org>
14130         lock tests: Prevent that the test takes too long.
14131         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
14132         (main): Let the test fail if it takes more than 10 minutes.
14133         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
14135 2019-04-27  Bruno Haible  <bruno@clisp.org>
14137         localename: Fix crash on mingw (regression from 2018-11-23).
14138         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
14139         locale name that is null.
14141 2019-04-27  Bruno Haible  <bruno@clisp.org>
14143         Fix gcc warnings on 64-bit mode mingw.
14144         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
14145         * lib/gl_array_list.c: Likewise.
14146         * lib/gl_array_map.c: Likewise.
14147         * lib/gl_array_set.c: Likewise.
14148         * lib/gl_carray_list.c: Likewise.
14149         * lib/gl_sublist.c: Likewise.
14150         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
14151         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
14152         * lib/gl_hash_map.c (uintptr_t): Likewise.
14153         * lib/gl_hash_set.c (uintptr_t): Likewise.
14154         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
14155         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
14156         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
14157         * lib/iconv.c (uintptr_t): Likewise.
14158         * lib/iconv_close.c (uintptr_t): Likewise.
14159         * tests/test-lock.c: Include <stdint.h>.
14160         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
14161         'long'.
14162         * modules/clean-temp (Depends-on): Add stdint.
14163         * modules/array-list (Depends-on): Likewise.
14164         * modules/array-map (Depends-on): Likewise.
14165         * modules/array-set (Depends-on): Likewise.
14166         * modules/carray-list (Depends-on): Likewise.
14167         * modules/sublist (Depends-on): Likewise.
14168         * modules/lock-tests (Depends-on): Likewise.
14170 2019-04-27  Bruno Haible  <bruno@clisp.org>
14172         error: Tweak indentation.
14173         * lib/error.c: Correct indentation.
14175 2019-04-27  Bruno Haible  <bruno@clisp.org>
14177         term-style-control: Fix gcc warning on mingw.
14178         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
14179         of i.
14181 2019-04-26  Bruno Haible  <bruno@clisp.org>
14183         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
14184         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
14186 2019-04-26  Bruno Haible  <bruno@clisp.org>
14188         relocatable-prog: Fix gcc warning on mingw.
14189         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
14190         on EMX.
14192 2019-04-02  Bruno Haible  <bruno@clisp.org>
14194         gitsub.sh: New file.
14195         * top/gitsub.sh: New file.
14197 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
14199         argmatch: use void* for raw memory pointers
14200         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
14201         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
14202         to "values", keep char* for strings.
14204 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
14206         prefix-gnulib-mk: fix the support for gnulib-po
14207         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
14208         Don't touch HAVE_* variables.
14209         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
14211 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
14213         di-set: allow free with 'ino_map' being NULL.
14214         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
14215         is NULL.  Bug introduced in commit 3703dbbe88dd.
14216         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
14217         as a test.
14219 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
14221         * lib/str-two-way.h: Fix comment typo.
14223 2019-04-13  Bruno Haible  <bruno@clisp.org>
14225         x-to-1: Restore ability to use original calling convention.
14226         * build-aux/x-to-1.in: Add comments. Accept the original form of
14227         HELP2MAN argument as well as the form expected since 2012-12-12.
14229 2019-04-13  Bruno Haible  <bruno@clisp.org>
14231         x-to-1: Avoid failure due to missing perl modules.
14232         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
14233         needs are installed.
14235 2019-04-13  Bruno Haible  <bruno@clisp.org>
14237         openmp-init: New module.
14238         * modules/openmp-init: New file.
14239         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
14240         the changes from 2019-04-09.
14242 2019-04-12  Bruno Haible  <bruno@clisp.org>
14244         signbit: Fix compilation error when gnulib's math.h exists twice.
14245         * lib/math.in.h (GNULIB_defined_signbit): New macro.
14247 2019-04-12  Bruno Haible  <bruno@clisp.org>
14249         openmp: Fix compilation error on platforms without OpenMP.
14250         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
14252 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
14254         mountlist: make parsing /proc/self/mountinfo more robust
14255         Cater for the following issues with mountinfo parsing (the first
14256         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
14257         in <https://bugs.gnu.org/35137>).
14258         1. The fields source, target, mntroot and fstype may contain characters
14259         like '\r'; sscanf(3) fails to read such values with the %s format
14260         specifier because it would stop at such characters.
14261         Example: "mount -t tmpfs tmpfs /foo^Mbar".
14262         The only true separator in that file is the ' ' character.
14263         2. The source field may be an empty string, which happens e.g. with
14264         "mount -t tmpfs '' /target".
14265         3. The fstype field may contain mangled characters as well which need
14266         unescaping.
14267         * lib/mountlist.c (terminate_at_blank): Add utility function.
14268         (read_file_system_list): In the block trying to read the mountinfo file,
14269         avoid using sscanf(3) with %s format; instead, parse the above fields
14270         separated by spaces one by one.
14271         This also handles the case when the source field is an empty string.
14272         Unescape the fstype field.
14274 2019-04-09  Bruno Haible  <bruno@clisp.org>
14276         openmp: Add workaround for 32-bit programs on AIX.
14277         * lib/omp.in.h: New file.
14278         * lib/omp-init.c: New file, based on lib/nproc.c.
14279         * m4/omp_h.m4: New file.
14280         * modules/openmp (Files): Add them.
14281         (Depends-on): Add include_next, c-ctype, setenv.
14282         (configure.ac): Invoke gl_OMP_H.
14283         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
14284         (Include): Mention <omp.h>.
14286 2019-04-09  Bruno Haible  <bruno@clisp.org>
14288         nproc: Fix return value for privileged processes.
14289         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
14290         getpid().
14292 2019-04-07  Bruno Haible  <bruno@clisp.org>
14294         Add copyright notices in several files.
14295         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
14296         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
14297         * lib/libunistring.valgrind: Likewise.
14298         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
14299         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
14300         * lib/memchr.valgrind: Likewise.
14301         * lib/memchr2.valgrind: Likewise.
14302         * lib/rawmemchr.valgrind: Likewise.
14303         * lib/relocatable.valgrind: Likewise.
14304         * lib/strchrnul.valgrind: Likewise.
14306 2019-03-25  Bruno Haible  <bruno@clisp.org>
14308         term-style-control tests: Fix link error.
14309         Reported by Tom G. Christensen in
14310         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
14311         * modules/term-style-control-tests (Makefile.am): Link
14312         test-term-style-control-hello and test-term-style-control-yes against
14313         LIBINTL.
14315 2019-03-24  Bruno Haible  <bruno@clisp.org>
14317         term-style-control: Add tests.
14318         * tests/test-term-style-control-hello.c: New file.
14319         * tests/test-term-style-control-yes.c: New file.
14320         * modules/term-style-control-tests: New file.
14322         term-style-control: New module.
14323         * lib/term-style-control.h: New file, based on libtextstyle's
14324         term-ostream.oo.h and term-ostream.oo.c.
14325         * lib/term-style-control.c: New file, based on libtextstyle's
14326         term-ostream.oo.c.
14327         * modules/term-style-control: New file.
14329 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14331         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
14332         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
14333         C++98 appears to be supported by Clang, but not by GCC nor ICC.
14335 2019-03-23  Bruno Haible  <bruno@clisp.org>
14337         Support cross-compilation to musl libc.
14338         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
14339         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
14340         musl libc.
14341         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14342         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14343         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14344         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14345         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14346         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14347         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14348         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14349         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14350         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14351         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14352         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14353         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14354         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14355         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14356         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14357         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14358         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14359         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14360         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14361         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14362         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14363         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14364         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14365         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14366         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14367         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14368         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14369         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14370         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14371         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14372         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14373         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14374         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14375         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14376         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14377         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14378         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14379         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14380         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14381         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14382         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14383         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14385         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14386         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14387         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14388         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14389         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14390         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14391         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14392         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14393         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14394         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14395         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14396         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14397         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14398         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14399         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14400         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14401         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14402         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14403         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14404         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14405         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14406         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14408         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14409         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14410         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14411         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14412         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14413         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14414         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14415         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14416         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14417         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14420 2019-03-23  Bruno Haible  <bruno@clisp.org>
14422         posix_spawn_file_actions_*: Document musl libc bugs.
14423         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14424         the bug.
14425         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14426         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14427         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14428         cross-compiling to a musl system, guess no.
14429         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14430         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14432 2019-03-23  Bruno Haible  <bruno@clisp.org>
14434         futimens: Document musl libc bug.
14435         * doc/posix-functions/futimens.texi: Mention the bug.
14436         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14437         cross-compiling, guess no on glibc and musl systems.
14439 2019-03-23  Bruno Haible  <bruno@clisp.org>
14441         Clarify that cross-compilation guesses are guesses.
14442         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14443         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14444         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14445         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14446         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14447         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14448         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14449         gl_cv_glob_lists_symlinks.
14450         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14451         'guessing ' to ac_cv_func_malloc_0_nonnull.
14452         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
14453         'guessing ' to ac_cv_func_realloc_0_nonnull.
14454         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
14455         'guessing ' to gl_cv_func_poll.
14456         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
14457         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
14458         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
14460 2019-03-23  Bruno Haible  <bruno@clisp.org>
14462         strtold: Fix typo.
14463         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
14465 2019-03-23  Bruno Haible  <bruno@clisp.org>
14467         noreturn: In C++ mode with clang, use _Noreturn as fallback.
14468         Reported by Akim Demaille.
14469         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
14470         [[noreturn]] would not work, use _Noreturn instead.
14472 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14474         libtextstyle-optional: Fix compiler warnings.
14475         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
14476         as unused.
14478 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14480         bitset: fix memory leaks
14481         Reported by Bruno Haible.
14482         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
14483         * lib/bitset/vector.c (vbitset_free): New.
14484         (vbitset_vtable): Use it.
14486 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14488         bitset: minor changes
14489         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
14490         * lib/bitset/table.c: Formatting changes.
14491         Remove useless braces.
14492         Prefer using else in cascades of if/else-if with returns.
14493         * lib/bitset/vector.c: Reduce scopes.
14495 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14497         bitset: expose bitset_resize
14498         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
14499         * tests/test-bitset.c (check_attributes): Check bitset_resize.
14500         (main): Use a variable bitset as reference, since fixed does not support resize.
14502 2019-03-19  Bruno Haible  <bruno@clisp.org>
14504         doc: Document the 'stdnoreturn' and 'noreturn' modules.
14505         Reported by Akim Demaille.
14506         * doc/noreturn.texi: New file.
14507         * doc/gnulib.texi: Include it.
14509 2019-03-19  Bruno Haible  <bruno@clisp.org>
14511         doc: Document how to use 'static inline'.
14512         * doc/static-inline.texi: New file.
14513         * doc/gnulib.texi: Include it.
14515 2019-03-19  Bruno Haible  <bruno@clisp.org>
14517         libtextstyle-optional: Add tests.
14518         * tests/test-libtextstyle.c: New file, based on libtextstyle's
14519         adhoc-tests/hello.c.
14520         * tests/test-libtextstyle-default.css: New file, copied from
14521         libtextstyle's adhoc-tests/hello-default.css.
14522         * modules/libtextstyle-optional-tests: New file.
14524         libtextstyle-optional: New module.
14525         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
14526         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
14527         * modules/libtextstyle-optional: New file.
14529 2019-03-19  Bruno Haible  <bruno@clisp.org>
14531         c-stack: Make signal handlers more reliable.
14532         * lib/c-stack.c (progname): New variable.
14533         (die): Use it.
14534         (c_stack_action): Initialize it.
14535         (segv_handler): Save and restore errno.
14537 2019-03-19  Bruno Haible  <bruno@clisp.org>
14539         Help making signal handlers more reliable.
14540         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
14541         _GL_ASYNC_SAFE into config.h.
14542         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
14543         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
14544         argument.
14545         * lib/fatal-signal.c (action_t, uninstall_handlers,
14546         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
14547         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
14548         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
14549         _GL_ASYNC_SAFE.
14550         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
14551         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
14553 2019-03-18  Bruno Haible  <bruno@clisp.org>
14555         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
14556         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
14557         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
14559 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14561         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
14562         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
14563         GCC 4.8.
14565 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14567         fts: minor simplification
14568         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
14570 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14572         bitset, timevar: Depend on c99.
14573         Reported by Bruno Haible.
14574         * modules/bitset, modules/timevar (Depends-on): Add c99.
14576 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14578         bitset: a bit (...) more tests
14579         * tests/test-bitset.c (check_attributes): Check zero and ones.
14581 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14583         bitset: fix overflows.
14584         Reported by Bruno Haible.
14585         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
14586         * lib/bitset/table.c (tbitset_test): last_bit is the position of
14587         the bit in the array of bitset_word, so be sure to take its modulo
14588         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14589         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14591 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14593         bitset: style changes.
14594         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14595         Formatting changes.
14596         (tbitset_list): Reduce scopes.
14598 2019-03-16  Bruno Haible  <bruno@clisp.org>
14600         fatal-signal: Pass the signal number to the action.
14601         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
14602         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
14603         (fatal_signal_handler): Pass the signal number to the action.
14604         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
14605         signal number as parameter.
14606         (create_temp_dir): Update.
14607         * lib/wait-process.c (cleanup_slaves_action): New function.
14608         (register_slave_subprocess): Update at_fatal_signal invocation.
14609         * NEWS: Mention the change.
14611 2019-03-16  Bruno Haible  <bruno@clisp.org>
14613         fatal-signal: Add function that lists the fatal signals.
14614         * lib/fatal-signal.h (get_fatal_signals): New declaration.
14615         * lib/fatal-signal.c (get_fatal_signals): New function.
14617 2019-03-14  Bruno Haible  <bruno@clisp.org>
14619         isatty: Make it return true in Cygwin consoles on native Windows.
14620         * lib/isatty.c: Include <string.h>.
14621         (GetProcAddress): New macro.
14622         (GetNamedPipeClientProcessIdFuncType): New type.
14623         (GetNamedPipeClientProcessIdFunc): New variable.
14624         (QueryFullProcessImageNameFuncType): New type.
14625         (QueryFullProcessImageNameFunc): New variable.
14626         (initialized): New variable.
14627         (initialize): New function.
14628         (IsCygwinConsoleHandle): New function.
14629         (isatty): Invoke it.
14630         * doc/posix-functions/isatty.texi: Mention the issue.
14632 2019-03-14  Bruno Haible  <bruno@clisp.org>
14634         all: Update URLs to msdn.microsoft.com.
14635         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
14636         was moved to docs.microsoft.com.
14638 2019-03-13  Bruno Haible  <bruno@clisp.org>
14640         gnulib-tool: Clarify the coding style.
14641         Suggested by Pavel Raiskup <praiskup@redhat.com>.
14642         * gnulib-tool: Add comment about coding style.
14644 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14646         strtod: fix clash with strtold
14647         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
14648         * lib/strtod.c (compute_minus_zero, minus_zero):
14649         Simplify by remving the macro / external variable,
14650         and having just a function.  User changed.  This avoids
14651         the need for an external variable that might clash.
14653 2019-03-10  Bruno Haible  <bruno@clisp.org>
14655         alloca-opt: Fix conflict mingw's new <alloca.h> file.
14656         Reported by Eli Zaretskii <eliz@gnu.org>.
14657         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
14658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
14659         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14661 2019-03-10  Bruno Haible  <bruno@clisp.org>
14663         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14664         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14665         is in use.
14666         * tests/test-printf-posix2.c: Likewise.
14668 2019-03-10  Bruno Haible  <bruno@clisp.org>
14670         uninorm tests: Free allocated memory.
14671         * tests/uninorm/test-u32-normalize-big.h
14672         (struct normalization_test_file): Remove 'const' from allocated member.
14673         (free_normalization_test_file): New declaration.
14674         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14675         memory.
14676         (free_normalization_test_file): New function.
14677         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14678         'struct normalization_test_file' contents.
14679         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14680         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14681         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14683 2019-03-10  Bruno Haible  <bruno@clisp.org>
14685         di-set: Fix memory leak.
14686         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14687         not free().
14689 2019-03-10  Bruno Haible  <bruno@clisp.org>
14691         tests: Free allocated memory.
14692         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14693         * tests/test-astrxfrm.c (main): Free allocated memory.
14694         * tests/test-bitset.c (compare, check_attributes): Free allocated
14695         bitsets.
14696         * tests/test-filenamecat.c (main): Free allocated memory.
14697         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14698         * tests/test-freadptr.c (main): Likewise.
14699         * tests/test-freadptr2.c (main): Free allocated memory.
14700         * tests/test-freadseek.c (main): Likewise.
14701         * tests/test-gc-arcfour.c (main): Close allocated context.
14702         * tests/test-gc-arctwo.c (main): Likewise.
14703         * tests/test-gc-des.c (main): Close all allocated contexts.
14704         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14705         * tests/test-pipe-filter-ii1.c (main): Likewise.
14706         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14707         allocated file actions.
14708         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14709         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14710         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14711         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14712         * tests/test-strfmon_l.c (main): Free allocated locales.
14713         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14714         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14715         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14716         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14717         * tests/unistr/test-chr.h (main): Free input32.
14718         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14720 2019-03-10  Bruno Haible  <bruno@clisp.org>
14722         tests: Prepare for using valgrind.
14723         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14724         * tests/*/*.sh: Likewise.
14725         * tests/test-freadptr.c (main): Update accordingly.
14726         * tests/test-freadseek.c (main): Likewise.
14728 2019-03-09  Bruno Haible  <bruno@clisp.org>
14730         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14731         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14732         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14733         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14734         before exiting.
14736 2019-03-09  Jim Meyering  <meyering@fb.com>
14738         test-userspec.c: don't print NULL
14739         * tests/test-userspec.c (main): A test release of gcc,
14740         9.0.1 20190310, warned that this test would attempt to
14741         print a NULL pointer via a %s printf format.  Fix that
14742         and remove the unnecessary preceding "!diag" conjunct.
14743         Also add a comment.
14745 2019-03-03  Bruno Haible  <bruno@clisp.org>
14747         getloadavg: Write NULL for the null pointer.
14748         Reported by Michal Privoznik <mprivozn@redhat.com>.
14749         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14751 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14753         alloca, tsearch-tests: Write NULL for the null pointer.
14754         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14755         * tests/test-tsearch.c (mangle_tree): Likewise.
14757 2019-03-09  Bruno Haible  <bruno@clisp.org>
14759         strfmon_l: Fix -fsanitize=address finding.
14760         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14761         <string.h>.
14762         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14763         (directive_t, directives_t): New types.
14764         (fmon_parse): New function.
14765         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14766         format string. Consume 'long double' arguments in places where the
14767         format string indicates so.
14768         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14770 2019-03-09  Bruno Haible  <bruno@clisp.org>
14772         crypto/des: Fix undefined behaviour.
14773         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14774         shift operations on 'int'.
14776 2019-03-09  Bruno Haible  <bruno@clisp.org>
14778         Fix undefined behaviour.
14779         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14780         'unsigned int', to avoid shift operations on 'int'.
14781         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14782         * tests/test-count-leading-zeros.c (main): Use a random number that has
14783         as many bits as TYPE, not only 2*15 or 2*31 bits.
14784         * tests/test-count-trailing-zeros.c (main): Likewise.
14785         * tests/test-count-one-bits.c (main): Likewise.
14786         * tests/test-memmem.c: Don't include "null-ptr.h".
14787         (main): Use zerosize_ptr() instead of null_ptr().
14788         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14790 2019-03-08  Bruno Haible  <bruno@clisp.org>
14792         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14793         Reported by Jeffrey Walton <noloader@gmail.com>.
14794         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14795         invoke memset with a zero size.
14796         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14797         Likewise.
14798         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14799         Adjust accordingly.
14801 2019-03-08  Bruno Haible  <bruno@clisp.org>
14803         unistr/*, uniconv/*: Fix undefined behaviour.
14804         Reported by Jeffrey Walton <noloader@gmail.com>.
14805         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14806         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14807         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14808         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14810 2019-03-08  Bruno Haible  <bruno@clisp.org>
14812         unistr/u8-cmp: Fix undefined behaviour.
14813         Reported by Jeffrey Walton <noloader@gmail.com>.
14814         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14816 2019-03-08  Bruno Haible  <bruno@clisp.org>
14818         unictype/numeric: Fix undefined behaviour.
14819         Reported by Jeffrey Walton <noloader@gmail.com>.
14820         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14821         on shift overflow, caught by "gcc -fsanitize=undefined".
14822         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14823         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14824         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14826 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14828         git-version-gen: fix --version copyright year
14829         * build-aux/git-version-gen, build-aux/move-if-change (version):
14830         --version output copyright year is now taken from script year,
14831         so that it no longer needs to be updated by hand.
14833 2019-03-04  Bruno Haible  <bruno@clisp.org>
14835         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14836         This approach supports relocatable installation of shared libraries
14837         which depend on other shared libraries from the same package.
14838         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14839         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14840         wrapper around the original LIBTOOL.
14841         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14842         token '@loader_path' instead of '$ORIGIN'.
14843         * build-aux/libtool-reloc: New file.
14844         * modules/relocatable-prog (Files): Add it.
14845         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14846         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14847         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14848         Makefile.am, not in configure.ac.
14850 2019-03-04  Bruno Haible  <bruno@clisp.org>
14852         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14853         * build-aux/install-reloc: Revert change.
14854         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14856 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14858         nstrftime: support the ‘+’ flag
14859         * lib/nstrftime.c (add, __strftime_internal):
14860         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14861         (__strftime_internal): New arg ‘width’.  All uses changed.
14862         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14864 2019-02-24  Bruno Haible  <bruno@clisp.org>
14866         relocatable-prog: Improve verbose output.
14867         * build-aux/install-reloc (func_verbose): Escape characters that would
14868         be interpreted by the shell.
14870 2019-02-24  Bruno Haible  <bruno@clisp.org>
14872         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14873         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14874         "sys/stat.h".
14875         * lib/lstat.c: Likewise.
14876         * lib/fstat.c: Likewise.
14877         * lib/fstatat.c: Likewise.
14879 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14881         long-options: add parse_gnu_standard_options_only
14882         Discussed in https://bugs.gnu.org/33468 .
14884         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14885         (parse_gnu_standard_options_only): Add function to process
14886         the GNU default options --help and --version and fail for
14887         any other unknown long or short option. See
14888         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14889         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14890         * modules/long-options (depends-on): Add stdbool, exitfail.
14891         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14892         syntax-check rule, add new function name.
14894 2019-02-23  Bruno Haible  <bruno@clisp.org>
14896         relocatable-prog: Update documentation.
14897         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14898         the recent changes.
14900 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14902         nstrftime: tweak arg order
14903         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14904         All callers changed.  Suggested by TAMUKI Shoichi in:
14905         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14907 2019-02-23  Bruno Haible  <bruno@clisp.org>
14909         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14910         Reported by Paul Smith <psmith@gnu.org>.
14911         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14912         (func_relativize): New function, from gnulib-tool.
14913         Handle mode 'macosx' through invocations of 'otool' and
14914         'install_name_tool'.
14915         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14916         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14917         'install-reloc' invocation with mode 'macosx'.
14919 2019-02-23  Bruno Haible  <bruno@clisp.org>
14921         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14922         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14923         Hurd with glibc >= 2.27.
14925 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14927         nstrftime: merge glibc strftime changes
14928         This incorporates:
14929         2019-02-11 Fix a few whitespace arrangement inconsistencies
14930         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14931         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14932         2019-01-11 strftime: use the "L_" macro with character literals
14933         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14934         callers changed.  Default width of %Ey is now 2.  This is needed
14935         for proper handling of Japanese dates starting on 2019-05-01.
14937 2019-02-19  Bruno Haible  <bruno@clisp.org>
14939         relocatable-prog: Use $ORIGIN trick on more platforms.
14940         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14941         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14942         Solaris >= 10, Haiku. But don't use it on Android.
14943         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14944         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14946 2019-02-19  Bruno Haible  <bruno@clisp.org>
14948         progreloc: Speed up executable lookup on various platforms.
14949         * lib/progreloc.c: Include <errno.h>.
14950         (safe_read, full_read): New functions.
14951         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14952         prefer the information from the /proc file system to a PATH search.
14954 2019-02-19  Bruno Haible  <bruno@clisp.org>
14956         progreloc: Simplify code for Android.
14957         * lib/progreloc.c (executable_fd): Don't define on Android.
14958         (maybe_executable, find_executable): Don't use executable_fd on Android.
14960 2019-02-15  Bruno Haible  <bruno@clisp.org>
14962         gnulib-tool: Support --import with just a few tests, not --with-tests.
14963         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14964         'inctests' when generating files; use 'inctests' only for computing the
14965         transitive closure.
14967 2019-02-14  Bruno Haible  <bruno@clisp.org>
14969         gnulib-tool: Improve handling of multiple --local-dir options.
14970         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14971         options work.
14972         * gnulib-tool (func_path_prepend): Remove function.
14973         (func_path_foreach): Make IFS handling more robust.
14974         (local_gnulib_path): Collect --local-dir values using func_path_append,
14975         not func_path_prepend.
14976         (func_determine_path_separator): Make IFS handling more robust.
14977         (func_lookup_file_cb): New function.
14978         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14979         func_lookup_local_file. Apply the patches in the reverse order of their
14980         origin in $local_gnulib_path.
14981         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14982         * NEWS: Mention that the first --local-dir option is the one with
14983         highest priority.
14985 2019-02-10  Bruno Haible  <bruno@clisp.org>
14987         libtextstyle: New module.
14988         * m4/libtextstyle.m4: New file.
14989         * modules/libtextstyle: New file.
14991 2019-02-05  Bruno Haible  <bruno@clisp.org>
14993         declared.sh: Fix bug with variables of pointer type.
14994         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14995         before the symbol to be omitted if the preceding character is a '*'.
14997 2019-02-04  Bruno Haible  <bruno@clisp.org>
14999         Add script for running tests under valgrind.
15000         * build-aux/run-test: New file, from GNU libunistring.
15001         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
15002         as well.
15004 2019-02-04  Bruno Haible  <bruno@clisp.org>
15006         declared.sh: Fix --version output.
15007         * build-aux/declared.sh (func_version): Update package name.
15009 2019-02-03  Bruno Haible  <bruno@clisp.org>
15011         Add script for determining the set of symbols to export from a library.
15012         * build-aux/declared.sh: New file, from GNU libunistring.
15013         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
15014         Mention it.
15016 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15018         vla: add commentary about VLA_ELEMS
15019         * lib/vla.h (VLA_ELEMS): Add commentary,
15020         some inspired by Bruno Haible’s proposal in:
15021         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
15023         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
15024         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
15025         assume the C99 signatures for strtod and strtold.  Programs that
15026         require stricter adherence to C99 should also use the strtod and
15027         strtold modules as needed, and we no longer need the
15028         HAVE_C99_STRTOLD macro.
15029         * NEWS: Mention this.
15030         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
15031         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
15032         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
15033         (Files): Remove m4/c-strtod.m4.
15034         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
15035         exists.
15037 2019-02-02  Bruno Haible  <bruno@clisp.org>
15039         fma: Improve code style.
15040         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
15042 2019-02-02  Colin Watson  <cjwatson@debian.org>
15044         *-map tests: Fix compilation error.
15045         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
15046         * tests/test-hash_map.c: Likewise.
15047         * tests/test-linkedhash_map.c: Likewise.
15049 2019-01-31  Bruno Haible  <bruno@clisp.org>
15051         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
15052         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
15053         GNULIB_defined_strtold_function): New macros.
15054         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
15055         (STRTOD): Ignore HAVE_C99_STRTOLD.
15056         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
15057         deemed buggy. But do use it on platforms where uselocale exists and is
15058         usable.
15059         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
15060         deemed buggy. On platforms where uselocale exists and is usable, use
15061         uselocale and strtod/strtold.
15062         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
15063         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
15064         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
15065         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
15066         (Depends-on): Add strtod.
15067         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
15068         (Depends-on): Add strtold.
15070 2019-01-31  Bruno Haible  <bruno@clisp.org>
15072         strtod, strtold: Use the locale's decimal point.
15073         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
15074         (decimal_point_char): New function, copied from lib/vasnprintf.c.
15075         (parse_number): Add a radixchar argument. Use it instead of '.'.
15076         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
15077         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
15078         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
15079         * tests/test-strtod1.c: New file.
15080         * tests/test-strtod1.sh: New file.
15081         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
15082         locale-fr.m4 and its dependencies.
15083         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15084         (Makefile.am): Arrange to compile test-strtod1.c and run
15085         test-strtod1.sh.
15086         * tests/test-strtold1.c: New file.
15087         * tests/test-strtold1.sh: New file.
15088         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
15089         locale-fr.m4 and its dependencies.
15090         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15091         (Makefile.am): Arrange to compile test-strtold1.c and run
15092         test-strtold1.sh.
15094 2019-01-31  Bruno Haible  <bruno@clisp.org>
15096         strtod, strtold tests: Simplify tests.
15097         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
15098         * tests/test-strtold.c (main): Likewise.
15100 2019-01-31  Bruno Haible  <bruno@clisp.org>
15102         strtod, strtold: Avoid unnecessary rounding errors.
15103         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
15104         decimal to DOUBLE conversion.
15106 2019-01-31  Bruno Haible  <bruno@clisp.org>
15108         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
15109         * lib/strtod.c (STRTOD): When there is an extra character after the
15110         exponent marker 'p', reparse the number.
15111         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
15112         * doc/posix-functions/strtold.texi: Likewise.
15114 2019-01-29  Bruno Haible  <bruno@clisp.org>
15116         strtold: Add tests.
15117         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
15118         * modules/strtold-tests: New file.
15120 2019-01-29  Bruno Haible  <bruno@clisp.org>
15122         strtold: New module.
15123         * lib/stdlib.in.h (strtold): New declaration.
15124         * lib/strtold.c: New file.
15125         * lib/strtod.c: Consider USE_LONG_DOUBLE.
15126         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
15127         USE_LDEXP): New macros.
15128         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
15129         USE_LONG_DOUBLE.
15130         (underlying_strtod): Remove function. Replace with some macros.
15131         Re-add the code for a missing underlying function that was removed on
15132         2013-02-19.
15133         * m4/strtold.m4: New file.
15134         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
15135         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
15136         REPLACE_STRTOLD.
15137         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
15138         REPLACE_STRTOLD.
15139         * modules/strtold: New file.
15140         * doc/posix-functions/strtold.texi: Document the new module.
15142 2019-01-29  Bruno Haible  <bruno@clisp.org>
15144         strtod: Fix compilation error on IRIX 6.5.
15145         * modules/strtod (Depends-on): Add 'math'.
15147 2019-01-28  Bruno Haible  <bruno@clisp.org>
15149         Fix build error when building a shared libunistring on Android.
15150         * tests/uninorm/test-nfc.c (n): Don't define on Android.
15151         (main): Add 'volatile', to defeat a GCC optimization that would
15152         eliminate the reference.
15153         * tests/uninorm/test-nfd.c (n): Don't define on Android.
15154         (main): Add 'volatile', to defeat a GCC optimization that would
15155         eliminate the reference.
15156         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
15157         (main): Add 'volatile', to defeat a GCC optimization that would
15158         eliminate the reference.
15159         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
15160         (main): Add 'volatile', to defeat a GCC optimization that would
15161         eliminate the reference.
15163 2019-01-27  Bruno Haible  <bruno@clisp.org>
15165         Avoid build errors due to wrong references between modules.
15166         * lib/uninorm/canonical-decomposition.c: Include
15167         "uninorm/decomposition-table.h", not "decomposition-table.h".
15168         * lib/uninorm/decomposition.c: Likewise.
15169         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
15170         not "decompose-internal.h".
15171         * lib/uninorm/u16-normalize.c: Likewise.
15172         * lib/uninorm/u32-normalize.c: Likewise.
15173         * lib/uninorm/uninorm-filter.c: Likewise.
15174         * lib/uninorm/nfkc.c: Likewise.
15175         * lib/uninorm/nfkd.c: Likewise.
15176         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
15177         "caseprop.h".
15178         * lib/unicase/u8-ct-totitle.c: Likewise.
15179         * lib/unicase/u8-prefix-context.c: Likewise.
15180         * lib/unicase/u8-suffix-context.c: Likewise.
15181         * lib/unicase/u16-casemap.c: Likewise.
15182         * lib/unicase/u16-ct-totitle.c: Likewise.
15183         * lib/unicase/u16-prefix-context.c: Likewise.
15184         * lib/unicase/u16-suffix-context.c: Likewise.
15185         * lib/unicase/u32-casemap.c: Likewise.
15186         * lib/unicase/u32-ct-totitle.c: Likewise.
15187         * lib/unicase/u32-prefix-context.c: Likewise.
15188         * lib/unicase/u32-suffix-context.c: Likewise.
15189         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
15190         "unicasemap.h".
15191         * lib/unicase/u8-toupper.c: Likewise.
15192         * lib/unicase/u8-ct-tolower.c: Likewise.
15193         * lib/unicase/u8-ct-toupper.c: Likewise.
15194         * lib/unicase/u16-tolower.c: Likewise.
15195         * lib/unicase/u16-toupper.c: Likewise.
15196         * lib/unicase/u16-ct-tolower.c: Likewise.
15197         * lib/unicase/u16-ct-toupper.c: Likewise.
15198         * lib/unicase/u32-tolower.c: Likewise.
15199         * lib/unicase/u32-toupper.c: Likewise.
15200         * lib/unicase/u32-ct-tolower.c: Likewise.
15201         * lib/unicase/u32-ct-toupper.c: Likewise.
15202         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
15203         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
15204         * lib/unicase/u16-ct-casefold.c: Likewise.
15205         * lib/unicase/u32-ct-casefold.c: Likewise.
15207 2019-01-27  Bruno Haible  <bruno@clisp.org>
15209         gperf: Fix error when this module is required by some test module.
15210         * modules/gperf (Applicability): Set to 'all'.
15212 2019-01-27  Bruno Haible  <bruno@clisp.org>
15214         tmpfile: Add support for Android.
15215         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
15216         works.
15217         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
15218         Android.
15219         * modules/tmpfile (Depends-on): Add 'stdbool'.
15220         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15221         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
15223 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
15225         bitsetv: allow free on NULL.
15226         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
15228 2019-01-27  Bruno Haible  <bruno@clisp.org>
15230         test-framework-sh: Improve maintainability.
15231         * tests/init.sh: Clarify what belongs together. Reorder definitions.
15233 2019-01-27  Bruno Haible  <bruno@clisp.org>
15235         tests: Don't assume that /tmp exists.
15236         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
15237         * tests/test-copy-acl-1.sh: Likewise.
15238         * tests/test-file-has-acl-1.sh: Likewise.
15239         * tests/test-copy-file-1.sh: Likewise.
15241 2019-01-27  Bruno Haible  <bruno@clisp.org>
15243         tests: Accommodate a shell that is not in /bin/sh.
15244         * tests/init.sh (setup_): Set srcdir and builddir.
15245         (BOURNE_SHELL): New variable.
15246         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
15247         * modules/file-has-acl-tests (Depends-on): Likewise.
15248         * modules/copy-file-tests (Depends-on): Likewise.
15249         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
15250         scripts through $BOURNE_SHELL.
15251         * tests/test-set-mode-acl-2.sh: Likewise.
15252         * tests/test-copy-acl-1.sh: Likewise.
15253         * tests/test-copy-acl-2.sh: Likewise.
15254         * tests/test-file-has-acl-1.sh: Likewise.
15255         * tests/test-file-has-acl-2.sh: Likewise.
15256         * tests/test-copy-file-1.sh: Likewise.
15257         * tests/test-copy-file-2.sh: Likewise.
15258         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
15259         invoker.
15260         * tests/test-copy-acl.sh (builddir): Likewise.
15261         * tests/test-file-has-acl.sh (builddir): Likewise.
15262         * tests/test-copy-file.sh (builddir): Likewise.
15263         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
15264         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
15265         * tests/test-vc-list-files-git.sh: Likewise.
15267 2019-01-27  Bruno Haible  <bruno@clisp.org>
15269         tests: Fix some "unused variable" warnings.
15270         * tests/test-fts.c (fts_dealloc): Remove unused variable.
15271         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
15272         * tests/test-striconveh.c (main): Move some variable into the
15273         '#if HAVE_ICONV'.
15274         * tests/test-striconveha.c (main): Likewise.
15275         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15276         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15277         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15278         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
15279         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15280         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15281         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15282         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15283         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15284         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
15285         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
15286         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
15287         * tests/test-tsearch.c (main): Move some variable into the
15288         '#if HAVE_INITSTATE'.
15290 2019-01-27  Bruno Haible  <bruno@clisp.org>
15292         unigbrk/uc-grapheme-breaks: Fix build failure.
15293         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
15294         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
15296 2019-01-27  Bruno Haible  <bruno@clisp.org>
15298         mountlist: Merge two .m4 files.
15299         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
15300         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
15301         * m4/ls-mntd-fs.m4: Remove file.
15302         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
15304 2019-01-27  Bruno Haible  <bruno@clisp.org>
15306         tests: Enable Linux specific tests on Android.
15307         * tests/test-flock.c (main): Treat Android like Linux.
15308         * tests/test-openat-safer.c (main): Likewise.
15310 2019-01-27  Bruno Haible  <bruno@clisp.org>
15312         relocatable-prog: Use Linux code on Android.
15313         * lib/progreloc.c: Treat Android like Linux.
15315 2019-01-26  Bruno Haible  <bruno@clisp.org>
15317         getloadavg: Add support for Android.
15318         * lib/getloadavg.c: Treat Android like Linux.
15320 2019-01-26  Bruno Haible  <bruno@clisp.org>
15322         vma-iter: Add support for Android.
15323         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
15324         * lib/vma-iter.c: Treat Android like Linux.
15325         * lib/get-rusage-data.c (get_rusage_data): Likewise.
15327 2019-01-26  Bruno Haible  <bruno@clisp.org>
15329         fts: Optimize on Android.
15330         * lib/fts.c: Treat Android like Linux.
15332 2019-01-26  Bruno Haible  <bruno@clisp.org>
15334         fts: Add support for Android.
15335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
15336         defined by this module and the ones in libc.
15337         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
15339 2019-01-26  Bruno Haible  <bruno@clisp.org>
15341         mountlist: Use Linux code on Android.
15342         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15343         (unescape_tab, read_file_system_list): Enable Linux code on Android
15344         as well.
15345         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15346         and endmntent.
15347         * modules/mountlist (Depends-on): Add 'getline'.
15349 2019-01-26  Bruno Haible  <bruno@clisp.org>
15351         localename tests: Fix test failure on Android.
15352         * modules/localename-tests (Depends-on): Add 'setlocale'.
15354 2019-01-26  Bruno Haible  <bruno@clisp.org>
15356         mountlist: Port better to Android.
15357         * lib/mountlist.c (MOUNTED): Redefine on Android.
15358         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15359         Android.
15361 2019-01-26  Bruno Haible  <bruno@clisp.org>
15363         striconveh: Fix use of uninitialized iconv_t.
15364         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15365         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15366         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15368 2019-01-26  Bruno Haible  <bruno@clisp.org>
15370         nonblocking-socket-tests: Fix test failure on Android 4.3.
15371         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15372         also on Android.
15374 2019-01-26  Bruno Haible  <bruno@clisp.org>
15376         sh-filename: Add support for Android 4.3.
15377         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15379 2019-01-26  Bruno Haible  <bruno@clisp.org>
15381         ptsname_r: Work around bug on Android 4.3.
15382         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15383         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15384         correct.
15385         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15386         is defined, just fix the return value.
15387         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15388         The behaviour of musl libc is nothing to be "fixed", since it is
15389         compliant with the next POSIX standard.
15391 2019-01-26  Bruno Haible  <bruno@clisp.org>
15393         ttyname_r: Work around bug on Android 4.3.
15394         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15395         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15396         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15397         * doc/posix-functions/ttyname.texi: Likewise.
15399 2019-01-25  Bruno Haible  <bruno@clisp.org>
15401         getprogname: Port to Android 4.3.
15402         * lib/getprogname.c (getprogname): On Android, take only the last
15403         component of __progname.
15405 2019-01-25  Bruno Haible  <bruno@clisp.org>
15407         wcrtomb: Work around bug on Android 4.3.
15408         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15409         the C locale.
15410         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15411         which does not have the 'wctomb' function.
15412         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15413         * tests/test-wcrtomb.c (main): Accept argument '5'.
15414         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15416 2019-01-25  Bruno Haible  <bruno@clisp.org>
15418         setlocale: Work around bug on Android 4.3.
15419         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15420         the "C" locale.
15421         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15422         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15424 2019-01-24  Bruno Haible  <bruno@clisp.org>
15426         memchr: Work around bug on Android <= 5.0.
15427         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15428         * doc/posix-functions/memchr.texi: Mention the Android bug.
15430 2019-01-24  Bruno Haible  <bruno@clisp.org>
15432         random: Fix compilation error on Android 4.3.
15433         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15434         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15435         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15436         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15437         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15439         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15440         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15441         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15442         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15443         REPLACE_INITSTATE, REPLACE_SETSTATE.
15444         * doc/posix-functions/random.texi: Correct the description of the
15445         situation on Android.
15446         * doc/posix-functions/srandom.texi: Likewise.
15447         * doc/posix-functions/rand.texi: Likewise.
15448         * doc/posix-functions/srand.texi: Likewise.
15450 2019-01-24  Bruno Haible  <bruno@clisp.org>
15452         mbtowc: Fix compilation error on Android 4.3.
15453         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
15454         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
15455         HAVE_MBTOWC.
15456         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
15457         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
15458         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
15459         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
15460         * doc/posix-functions/mbtowc.texi: Mention the change.
15462 2019-01-24  Bruno Haible  <bruno@clisp.org>
15464         fdatasync: Fix compilation error on Android 4.3.
15465         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
15466         test whether fdatasync() exists.
15468 2019-01-24  Bruno Haible  <bruno@clisp.org>
15470         unlinkat: Fix compilation error on Android 4.3.
15471         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
15472         also on Android.
15473         * doc/posix-functions/unlinkat.texi: Mention the issue.
15475 2019-01-24  Bruno Haible  <bruno@clisp.org>
15477         renameat: Fix compilation error on Android 4.3.
15478         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
15479         * doc/posix-functions/renameat.texi: Mention the issue.
15481 2019-01-24  Bruno Haible  <bruno@clisp.org>
15483         fchownat: Fix compilation error on Android 4.3.
15484         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
15485         use.
15486         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
15487         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
15488         * doc/posix-functions/fchownat.texi: Mention the issue.
15490 2019-01-23  Bruno Haible  <bruno@clisp.org>
15492         gnulib-tool: Support running testdirs on Android.
15493         * build-aux/test-driver.diff: New file.
15494         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
15495         build-aux/test-driver after running automake.
15497 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15499         relocatable-prog: avoid warnings from Automake
15500         * modules/relocatable-prog: Don't declare PHONY dependencies in
15501         Automake conditionals.
15503 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15505         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
15506         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
15508 2019-01-23  Bruno Haible  <bruno@clisp.org>
15510         threadlib: Revert commit from 2018-06-25. We now have a better fix.
15511         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
15512         preceding -Wl,--as-needed option. Don't check whether the linker
15513         supports --as-needed/--no-as-needed and --push-state/--pop-state.
15515 2019-01-23  Bruno Haible  <bruno@clisp.org>
15517         thread: Force linking with -lpthread, even when --as-needed is in use.
15518         Reported by Richard W.M. Jones <rjones@redhat.com> in
15519         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
15520         * lib/glthread/thread.h (pthread_create): Don't declare weak.
15522 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
15523             Bruno Haible  <bruno@clisp.org>
15525         relocatable: avoid compiler warnings (-Wshadow)
15526         * lib/relocatable.c (compute_curr_prefix): Rename local variables
15527         to avoid name collisions with global variables.
15529 2019-01-22  Bruno Haible  <bruno@clisp.org>
15531         vasnprintf: Don't use %n on Android.
15532         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
15533         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
15534         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
15536 2019-01-22  Bruno Haible  <bruno@clisp.org>
15538         *printf: Support cross-compilation to Android.
15539         * m4/printf.m4: Add cross-compilation guesses for Android.
15541 2019-01-21  Bruno Haible  <bruno@clisp.org>
15543         diacrit: Mark deprecated.
15544         * modules/diacrit (Status, Notice): Mark as deprecated.
15545         * NEWS: Mention it.
15547 2019-01-20  Bruno Haible  <bruno@clisp.org>
15549         rintl: Override broken implementation on NetBSD.
15550         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
15551         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
15552         REPLACE_RINTL.
15553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
15554         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
15555         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
15556         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
15558 2019-01-20  Bruno Haible  <bruno@clisp.org>
15560         log10l: Work around inaccurate implementation on NetBSD.
15561         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
15562         * lib/log10l.c: Comment out too simplistic override.
15563         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
15565 2019-01-20  Bruno Haible  <bruno@clisp.org>
15567         logl: Work around inaccurate implementation on NetBSD.
15568         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
15569         * lib/logl.c: Comment out unused code.
15570         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
15572 2019-01-20  Bruno Haible  <bruno@clisp.org>
15574         expm1l: Work around inaccurate implementation on NetBSD.
15575         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
15576         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
15577         REPLACE_EXPM1L.
15578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
15579         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
15580         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
15581         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
15583 2019-01-20  Bruno Haible  <bruno@clisp.org>
15585         expl: Work around inaccurate implementation on NetBSD.
15586         * lib/math.in.h (expl): Test also REPLACE_EXPL.
15587         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
15588         REPLACE_EXPL.
15589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15590         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15591         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15592         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15594 2019-01-20  Bruno Haible  <bruno@clisp.org>
15596         exp2l: Work around inaccurate implementation on NetBSD.
15597         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
15598         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
15600 2019-01-20  Bruno Haible  <bruno@clisp.org>
15602         floor, floorl: Avoid autoconf warnings.
15603         * modules/floor (configure.ac): Use AC_REQUIRE.
15604         * modules/floorl (configure.ac): Likewise.
15606 2019-01-20  Bruno Haible  <bruno@clisp.org>
15608         Defeat current GCC optimizations in math autoconf tests.
15609         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
15610         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15611         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15612         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15613         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15614         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15615         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15616         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15617         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15618         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15619         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15620         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15621         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15622         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15623         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
15624         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15625         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
15626         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15627         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15628         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15629         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15630         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15631         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15632         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15633         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15634         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15635         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15636         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15637         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15638         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15639         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15640         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15641         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15643         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15644         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15645         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15646         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15648 2019-01-19  Pádraig Brady  <P@draigBrady.com>
15650         gettext: support disabling use of VLAs
15651         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
15653 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15655         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
15656         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
15658 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15660         fcntl: Fix syntax error (regression from 2018-10-05).
15661         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15663 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15665         relocatable: improve documentation.
15666         * doc/relocatable-maint.texi (Supporting Relocation): For
15667         substitutions performed by config.status, we need more variables
15668         (for instance datarootdir defaults to '${prefix}/share' so we need
15669         prefix).
15671 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15673         backup: update dependencies
15674         * modules/backup-rename (Depends-on): It now depends on opendirat
15675         instead of opendir.  It also uses stdint, and xalloc-oversized.
15676         But no longer dirfd.
15677         * modules/backupfile (Depends-on): Add xalloc-oversized.
15679 2019-01-13  Bruno Haible  <bruno@clisp.org>
15681         getcwd: Fix test failure when building on a Linux 9p file system.
15682         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15683         EINVAL from mkdir like ENAMETOOLONG.
15684         * tests/test-getcwd.c (test_long_name): Likewise.
15686 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15688         Fix typos found by codespell.
15689         * lib/*.[hc]: Fix typos in comments.
15690         * pygnulib/*.py: Fix typos in error messages and comments.
15692 2019-01-12  Bruno Haible  <bruno@clisp.org>
15694         doc: Fix documentation about container data types.
15695         Reported by Werner Lemberg <wl@gnu.org>.
15696         * doc/containers.texi (Container data types): Fix typo.
15698 2019-01-10  Bruno Haible  <bruno@clisp.org>
15700         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15701         Reported by Reuben Thomas <rrt@sc3d.org>.
15702         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15704 2019-01-06  Bruno Haible  <bruno@clisp.org>
15706         maintainer-makefile: Make the configure.ac section optional.
15707         * top/maint.mk (GREP, SED): Define if not defined.
15709 2019-01-06  Bruno Haible  <bruno@clisp.org>
15711         localename: Assume setlocale function.
15712         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15713         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15715 2019-01-06  Bruno Haible  <bruno@clisp.org>
15717         doc: Add documentation about container data types.
15718         * doc/containers.texi: New file.
15719         * doc/gnulib.texi (Particular Modules): Include it.
15721 2019-01-06  Bruno Haible  <bruno@clisp.org>
15723         doc: Update documentation about 'progname' module.
15724         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15725         title. Rewrite.
15726         * doc/gnulib.texi (Particular Modules): Update.
15728 2019-01-06  Bruno Haible  <bruno@clisp.org>
15730         doc: Document the xstdopen and *-safer modules.
15731         * doc/xstdopen.texi: New file.
15732         * doc/gnulib.texi (Particular Modules): Include it.
15734 2019-01-06  Bruno Haible  <bruno@clisp.org>
15736         xstdopen: Add tests.
15737         * tests/test-xstdopen.c: New file.
15738         * tests/test-xstdopen.sh: New file.
15739         * modules/xstdopen-tests: New file.
15741         xstdopen: New module.
15742         * lib/xstdopen.h: New file.
15743         * lib/xstdopen.c: New file.
15744         * modules/xstdopen: New file.
15746 2019-01-06  Bruno Haible  <bruno@clisp.org>
15748         stdopen: Fix compilation error with IRIX cc.
15749         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15751 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15753         xfreopen need not include stdio--.h
15754         * lib/xfreopen.c: Do not include stdio--.h.
15756         xfreopen need not depend on freopen-safer
15757         * modules/xfreopen (Depends-on):
15758         Depend on freopen, not freopen-safer.
15760         stdopen: modernize and simplify
15761         * lib/stdopen.c: Update copyright date
15762         Do not include sys/types.h; no longer needed these days.
15763         (stdopen): Use C99-style decl in loop.  Return int errno
15764         value, rather than just a bool.  Do not worry about fd mismatches,
15765         since the caller cares only if 0, 1, 2 are occupied.
15766         * lib/stdopen.h: No need to include <stdbool.h>.
15767         * m4/stdopen.m4: Remove.
15768         * modules/stdopen: New file.
15770         stdopen: copy from last use in coreutils
15771         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15772         New files, taken from their last commit in coreutils
15773         2007-07-23T12:35:58Z!jim@meyering.net
15774         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
15776 2019-01-05  Bruno Haible  <bruno@clisp.org>
15778         argp: Don't pass an invalid argument to dgettext().
15779         Reported by He X <xw897002528@gmail.com>.
15780         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
15781         dgettext().
15783 2019-01-05  Bruno Haible  <bruno@clisp.org>
15785         argp: Don't pass an invalid argument to dgettext().
15786         Reported by He X <xw897002528@gmail.com>.
15787         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15788         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15789         dgettext().
15791 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15793         stdioext: port to newer 32-bit Android
15794         Problem reported by Tom Yan in:
15795         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15796         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15797         (fp_) [__ANDROID__]: Use it.
15799 2019-01-04  Bruno Haible  <bruno@clisp.org>
15801         lock: Fix link error with --enable-threads=pth.
15802         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15803         Mark as weak.
15805 2019-01-04  Bruno Haible  <bruno@clisp.org>
15807         Fix link errors in unit tests.
15808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15809         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15810         * modules/array-map-tests (Makefile.am): Link test-array_map against
15811         libintl.
15812         * modules/array-set-tests (Makefile.am): Link test-array_set against
15813         libintl.
15814         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15815         libintl.
15816         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15817         libintl.
15818         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15819         against libintl.
15820         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15821         against libintl.
15823 2019-01-04  Bruno Haible  <bruno@clisp.org>
15825         Fix incorrect 'Link' sections.
15826         * modules/regex (Link): Mention the link requirement of module 'lock'.
15827         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15829 2019-01-04  Bruno Haible  <bruno@clisp.org>
15831         Fix some 'Link' sections.
15832         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15833         dependency.
15834         * modules/getaddrinfo (Link): Likewise.
15836 2019-01-04  Bruno Haible  <bruno@clisp.org>
15838         Remove redundant 'Link' sections.
15839         * modules/canon-host (Link): Remove section.
15840         * modules/timevar (Link): Likewise.
15842 2019-01-04  Bruno Haible  <bruno@clisp.org>
15844         Remove incorrect 'Link' sections.
15845         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15846         the dependencies instead.
15847         * modules/crypto/md5 (Link): Likewise.
15848         * modules/crypto/sha1 (Link): Likewise.
15849         * modules/crypto/sha256 (Link): Likewise.
15850         * modules/crypto/sha512 (Link): Likewise.
15851         * modules/faccessat (Link): Likewise.
15852         * modules/fdutimensat (Link): Likewise.
15853         * modules/iconv_open-utf (Link): Likewise.
15854         * modules/propername (Link): Likewise.
15855         * modules/qacl (Link): Likewise.
15856         * modules/unicodeio (Link): Likewise.
15857         * modules/utimecmp (Link): Likewise.
15858         * modules/utimensat (Link): Likewise.
15859         * modules/xstriconv (Link): Likewise.
15860         * modules/xstriconveh (Link): Likewise.
15862 2019-01-04  Bruno Haible  <bruno@clisp.org>
15864         gnulib-tool: New option --extract-recursive-link-directive.
15865         * gnulib-tool (func_usage): Document the new options
15866         --extract-recursive-dependencies, --extract-recursive-link-directive.
15867         (func_verify_module): Document output variables.
15868         (func_get_dependencies_recursively): New function.
15869         (func_get_link_directive_recursively): New function.
15870         Use them to implement the new options
15871         --extract-recursive-dependencies, --extract-recursive-link-directive.
15872         * doc/gnulib-tool.texi (Link-time requirements): New section.
15874 2019-01-04  Bruno Haible  <bruno@clisp.org>
15876         Clarify meaning of 'Link' section in module description.
15877         * doc/gnulib.texi (Module description): Clarify the meaning of the
15878         'Link' section versus the one of the dependencies.
15879         * NEWS: Mention the change.
15881 2019-01-04  Bruno Haible  <bruno@clisp.org>
15883         pselect: Fix module description.
15884         * modules/pselect (Link): Put one link option per line.
15886 2019-01-04  Bruno Haible  <bruno@clisp.org>
15888         cosl: Fix module description.
15889         * modules/cosl (Link): Fix typo.
15890         * modules/mathl (configure.ac): Likewise.
15892 2019-01-04  Bruno Haible  <bruno@clisp.org>
15894         c-xvasprintf: Fix module dependencies.
15895         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15897 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15899         bootstrap: die when some submodules are not initialized
15900         * build-aux/bootstrap: Make sure all submodules are initialized.
15902 2019-01-04  Bruno Haible  <bruno@clisp.org>
15904         bitsetv: Fix module dependencies.
15905         * lib/bitsetv.c: Include xalloc.h.
15906         * modules/bitsetv (Depends-on): Add 'xalloc'.
15908 2019-01-04  Bruno Haible  <bruno@clisp.org>
15910         xmemdup0: Remove redundant code.
15911         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15913 2019-01-04  Bruno Haible  <bruno@clisp.org>
15915         backupfile: Fix module dependencies.
15916         * modules/backupfile (Depends-on): Add 'xalloc'.
15918 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15920         bitset, crypto/gc: fix conflicts with Solaris 11
15921         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15922         avoid clash with Solaris 11 <sys/bitset.h>.
15923         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15924         with Solaris 11 <xorg/gc.h>.
15926 2019-01-04  Bruno Haible  <bruno@clisp.org>
15928         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15929         Reported by Andy Fiddaman <andy@omniosce.org>.
15930         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15932 2019-01-03  Eric Blake  <eblake@redhat.com>
15934         maintainer-makefile: fix typo in previous patch
15935         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15936         of Roman's work.
15938 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15940         maintainer-makefile: prefer $(GREP) over grep
15941         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15942         defined.
15943         * top/maint.mk: Use it everywhere.
15945         maintainer-makefile: split long argument lines
15946         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15947         it would be too long for exec limits on BSD.
15949 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15951         mkfifo: bring back HAVE_MKFIFO macro
15952         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15953         Problem reported by Andrew Janke in:
15954         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15956 2018-12-21  Bruno Haible  <bruno@clisp.org>
15958         Assume Autoconf >= 2.63.
15959         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15960         versions < 2.60.
15962 2018-12-21  Bruno Haible  <bruno@clisp.org>
15964         memcmp: Mention the clang bug.
15965         * tests/test-memcmp.c: Add comment about a known test failure.
15966         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15968 2018-12-20  Jim Meyering  <meyering@fb.com>
15970         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15971         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15972           echo '123-x'|LC_ALL=C grep -E '.\bx'
15973         The goal is to revert the first, but reverting it requires to restore
15974         the function deleted in the second. I ran this to restore the deleted
15975         function:
15976           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15977             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15978             | patch -R -p1
15979         * lib/dfa.c (charclass_context): Restore deleted function.
15980         Reverting the primary commit removes this change:
15981         dfa: Simplify a building state
15982         * lib/dfa.c (build_state): Simplify a building state.
15984 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15986         version-etc: allow zero authors
15987         * lib/version-etc.c (version_etc_arn): If no authors are given,
15988         omit authorship info instead of dumping core.
15990 2018-12-19  Bruno Haible  <bruno@clisp.org>
15992         lchown tests: Be more permissive regarding errno values.
15993         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15994         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15995         alternative to ENOSYS.
15996         * modules/lchown-tests (Depends-on): Add 'errno'.
15997         * modules/fchownat-tests (Depends-on): Likewise.
15999 2018-12-18  Bruno Haible  <bruno@clisp.org>
16001         duplocale: Avoid test failure on AIX 7.
16002         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
16003         (configure.ac): Invoke gt_FUNC_USELOCALE.
16004         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
16005         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
16006         works.
16008 2018-12-18  Bruno Haible  <bruno@clisp.org>
16010         localename: Fix test failure on AIX 7.
16011         Reported by Assaf Gordon in
16012         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
16013         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
16014         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
16015         instead of ac_cv_func_uselocale.
16016         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
16017         HAVE_USELOCALE.
16018         * lib/localename-table.h: Likewise.
16019         * lib/localename-table.c: Likewise.
16020         * tests/test-localename.c: Likewise.
16021         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
16023 2018-12-18  Bruno Haible  <bruno@clisp.org>
16025         localename: Update comments regarding Cygwin.
16026         * lib/localename.c: Update comment.
16027         * doc/posix-functions/uselocale.texi: Update platforms list.
16028         * doc/posix-functions/newlocale.texi: Likewise.
16029         * doc/posix-functions/duplocale.texi: Likewise.
16030         * doc/posix-functions/freelocale.texi: Likewise.
16032 2018-12-16  Bruno Haible  <bruno@clisp.org>
16034         c-stack: Fix for Linux/sparc.
16035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
16036         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
16038 2018-12-16  Bruno Haible  <bruno@clisp.org>
16040         localename: Avoid test failure on some glibc systems.
16041         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16042         Unset environment variables that might disturb the first setlocale call,
16043         and verify that this setlocale call succeeds.
16045 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
16047         random: Fix build error on native Windows (regression from 2018-06-21).
16048         * lib/random.c (__srandom, __initstate, __setstate, __random,
16049         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
16050         to the symbols without '__' prefix.
16052 2018-12-16  Bruno Haible  <bruno@clisp.org>
16054         obstack, libc-config: Support HP-UX cc in C99 mode.
16055         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
16056         compiler, even when in C99 mode.
16057         * lib/cdefs.h (__flexarr): Likewise.
16058         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
16060 2018-12-16  Bruno Haible  <bruno@clisp.org>
16062         localename: Fix test failure on OpenBSD >= 6.2.
16063         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
16064         locale system. Define HAVE_FAKE_LOCALES in this case.
16065         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
16066         HAVE_USELOCALE.
16067         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
16068         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
16069         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
16070         platforms list.
16071         * doc/posix-functions/newlocale.texi: Likewise.
16072         * doc/posix-functions/duplocale.texi: Update platforms list.
16073         * doc/posix-functions/freelocale.texi: Likewise.
16075 2018-12-16  Bruno Haible  <bruno@clisp.org>
16077         duplocale tests: Re-enable the test on platforms without <monetary.h>.
16078         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
16079         of the test, on platforms without <monetary.h>.
16081 2018-12-16  Bruno Haible  <bruno@clisp.org>
16083         localename: Update comments.
16084         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
16086 2018-12-15  Jim Meyering  <meyering@fb.com>
16088         regex: fix indentation
16089         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
16091 2018-12-15  Bruno Haible  <bruno@clisp.org>
16093         openat-safer tests: Avoid test failure on NetBSD 8.
16094         * tests/test-openat-safer.c (main): Execute a Linux specific test only
16095         on Linux.
16097 2018-12-15  Jim Meyering  <meyering@fb.com>
16099         regex: work around a bug in glibc-2.27 and prior
16100         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
16101         assertion for /0|()0|\1|0/.
16102         * tests/test-regex.c (main): Add the same test here.
16104 2018-12-15  Bruno Haible  <bruno@clisp.org>
16106         localename: Fix use of uninitialized shell variable.
16107         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
16108         gt_cv_locale_solaris114 always before use. Remove assignment without
16109         effect.
16111 2018-12-15  Bruno Haible  <bruno@clisp.org>
16113         dfa tests: Avoid test failure on Alpine Linux.
16114         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
16115         command found on Alpine Linux.
16117 2018-12-15  Jim Meyering  <meyering@fb.com>
16119         dfa: avoid new warnings from gcc
16120         These would prevent building with -Werror and a Dec snapshot of gcc.
16121         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
16122         Rename each inner instance to "p".
16123         (charclass_context): Remove unused static function.
16125 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16127         mkdir-p: improve diagnostic for FUSE mounts
16128         Problem reported by Niklas Hambüchen in:
16129         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
16130         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
16131         errno to mkdir errno if the stat errno is likely more interesting.
16133 2018-12-14  Bruno Haible  <bruno@clisp.org>
16135         hash-map: Add tests.
16136         * tests/test-hash_map.c: New file.
16137         * modules/hash-map-tests: New file.
16139         linkedhash-map: Add tests.
16140         * tests/test-linkedhash_map.c: New file.
16141         * modules/linkedhash-map-tests: New file.
16143         array-map: Add tests.
16144         * tests/test-array_map.c: New file.
16145         * modules/array-map-tests: New file.
16147         xmap: New module.
16148         * lib/gl_xmap.h: New file.
16149         * lib/gl_xmap.c: New file.
16150         * modules/xmap: New file.
16152         hash-map: New module.
16153         * lib/gl_hash_map.h: New file.
16154         * lib/gl_hash_map.c: New file.
16155         * modules/hash-map: New file.
16157         linkedhash-map: New module.
16158         * lib/gl_linkedhash_map.h: New file.
16159         * lib/gl_linkedhash_map.c: New file.
16160         * lib/gl_anyhash1.h: Update comments.
16161         * lib/gl_anyhash2.h: Likewise.
16162         * modules/linkedhash-map: New file.
16164         array-map: New module.
16165         * lib/gl_array_map.h: New file.
16166         * lib/gl_array_map.c: New file.
16167         * modules/array-map: New file.
16169         map: New module.
16170         * lib/gl_map.h: New file.
16171         * lib/gl_map.c: New file.
16172         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16173         conflict with gl_map.h.
16174         * modules/map: New file.
16176 2018-12-13  Bruno Haible  <bruno@clisp.org>
16178         select tests: Avoid test failure on Cygwin.
16179         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
16181 2018-12-13  Bruno Haible  <bruno@clisp.org>
16183         localtime-buffer: Avoid endless recursion in localtime and gmtime.
16184         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
16186 2018-12-13  Bruno Haible  <bruno@clisp.org>
16188         localeconv tests: Avoid test failure on Cygwin.
16189         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
16190         'mon_grouping' tests.
16192 2018-12-11  Bruno Haible  <bruno@clisp.org>
16194         omap: Don't dispose the old value when the function returns it.
16195         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
16196         here.
16197         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16198         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16199         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
16200         here.
16202         array-omap, avltree-omap, rbtree-omap: Tweak style.
16203         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
16204         false.
16205         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
16207         rbtree-omap: Add tests.
16208         * tests/test-rbtree_omap.c: New file.
16209         * modules/rbtree-omap-tests: New file.
16211         avltree-omap: Add tests.
16212         * tests/test-avltree_omap.c: New file.
16213         * modules/avltree-omap-tests: New file.
16215         array-omap: Add tests.
16216         * tests/test-array_omap.c: New file.
16217         * modules/array-omap-tests: New file.
16219         xomap: New module.
16220         * lib/gl_xomap.h: New file.
16221         * lib/gl_xomap.c: New file.
16222         * modules/xomap: New file.
16224         rbtree-omap: New module.
16225         * lib/gl_rbtree_omap.h: New file.
16226         * lib/gl_rbtree_omap.c: New file.
16227         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
16228         Parameterize.
16229         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
16230         * modules/rbtree-omap: New file.
16231         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
16232         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
16234         avltree-omap: New module.
16235         * lib/gl_avltree_omap.h: New file.
16236         * lib/gl_avltree_omap.c: New file.
16237         * lib/gl_avltree_ordered.h: Code moved to here from
16238         lib/gl_avltree_oset.c. Parameterize.
16239         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
16240         * lib/gl_anytree_omap.h: New file.
16241         * modules/avltree-omap: New file.
16242         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
16243         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
16245         array-omap: New module.
16246         * lib/gl_array_omap.h: New file.
16247         * lib/gl_array_omap.c: New file.
16248         * modules/array-omap: New file.
16250         omap: New module.
16251         * lib/gl_omap.h: New file.
16252         * lib/gl_omap.c: New file.
16253         * modules/omap: New file.
16255 2018-12-11  Bruno Haible  <bruno@clisp.org>
16257         hash-set, linkedhash-set: Reduce code duplication.
16258         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
16259         lib/gl_anyhash_set1.h.
16260         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
16261         lib/gl_anyhash_set2.h. Parameterize.
16262         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
16263         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
16264         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
16265         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
16266         * lib/gl_rbtreehash_list.c: Likewise.
16267         * lib/gl_linkedhash_list.c: Likewise.
16268         (hash_resize_after_add): Remove function.
16269         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
16270         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
16271         * gl_hash_set.c: Likewise.
16272         * modules/avltreehash-list (Files, Makefile.am): Update file list.
16273         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
16274         * modules/linkedhash-list (Files, Makefile.am): Likewise.
16275         * modules/linkedhash-set (Files, Makefile.am): Likewise.
16276         * modules/hash-set (Files, Makefile.am): Likewise.
16278 2018-12-11  Bruno Haible  <bruno@clisp.org>
16280         array-set: Optimize.
16281         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
16282         outside the loop, not inside the loop.
16284 2018-12-11  Bruno Haible  <bruno@clisp.org>
16286         times: Fix tests.
16287         * tests/test-times.c (doublecmp): Implement a total order.
16289 2018-12-11  Bruno Haible  <bruno@clisp.org>
16291         array-set, linkedhash-set, hash-set: Fix tests.
16292         * tests/test-array_set.c (cmp_objects_in_array): New function.
16293         (check_equals): Use it.
16294         * tests/test-hash_set.c: Likewise.
16295         * tests/test-linkedhash_set.c: Likewise.
16297 2018-12-08  Bruno Haible  <bruno@clisp.org>
16299         Fix comments.
16300         * lib/gl_list.h (gl_list_free): Clarify what it does.
16301         * lib/gl_oset.h (gl_oset_free): Likewise.
16302         * lib/gl_set.h (gl_set_free): Likewise.
16303         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
16304         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
16305         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
16306         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
16308 2018-12-03  Bruno Haible  <bruno@clisp.org>
16310         hash-set: Add tests.
16311         * tests/test-hash_set.c: New file.
16312         * modules/hash-set-tests: New file.
16314         linkedhash-set: Add tests.
16315         * tests/test-linkedhash_set.c: New file.
16316         * modules/linkedhash-set-tests: New file.
16318         array-set: Add tests.
16319         * tests/test-array_set.c: New file.
16320         * modules/array-set-tests: New file.
16322         xset: New module.
16323         * lib/gl_xset.h: New file.
16324         * lib/gl_xset.c: New file.
16325         * modules/xset: New file.
16327         hash-set: New module.
16328         * lib/gl_hash_set.h: New file.
16329         * lib/gl_hash_set.c: New file.
16330         * modules/hash-set: New file.
16332         linkedhash-set: New module.
16333         * lib/gl_linkedhash_set.h: New file.
16334         * lib/gl_linkedhash_set.c: New file.
16335         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
16336         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
16337         * lib/gl_anyhash_primes.h: New file, extracted from
16338         lib/gl_anyhash_list2.h.
16339         * lib/gl_anyhash_list2.h: Include it.
16340         (primes, next_prime): Remove definitions.
16341         * modules/linkedhash-set: New file.
16342         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16343         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16344         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16345         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16346         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16347         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16349         array-set: New module.
16350         * lib/gl_array_set.h: New file.
16351         * lib/gl_array_set.c: New file.
16352         * modules/array-set: New file.
16354         set: New module.
16355         * lib/gl_set.h: New file.
16356         * lib/gl_set.c: New file.
16357         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16358         gl_set.h.
16359         * modules/set: New file.
16361 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16363         bison: don't force the Yacc mode
16364         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16365         errors when Bison features are used in the grammar file.  Some of
16366         these features (such as %expect) were flagged non-yacc recently.  Most
16367         of the time, -y is actually used to please Automake's ylwrap which
16368         expects the output to be y.tab.c.
16369         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16371 2018-12-01  Bruno Haible  <bruno@clisp.org>
16373         gnupload: Document short options.
16374         * build-aux/gnupload (usage): Document the short options.
16376 2018-11-28  Ben Elliston  <bje@gnu.org>
16378         gnupload: Support option -h as alias of --help.
16379         * build-aux/gnupload: Support -h.
16381 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16383         memrchr: port better to clang
16384         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16385         longword *, to pacify clang -Wcast-align (Bug#33544).
16387 2018-11-29  Eric Blake  <eblake@redhat.com>
16389         docs: mention printf %m considerations
16390         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16391         is not portable, and is easy enough to work around.
16392         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16393         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16394         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16395         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16396         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16397         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16398         * doc/posix-functions/printf.texi (printf): Likewise.
16399         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16400         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16401         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16402         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16403         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16404         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16405         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16406         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16407         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16408         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16409         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16410         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16412 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16414         bitset: rename ebitset/expandable.* as tbitset/table.*
16415         See
16416         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16417         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16418         * lib/bitset/table.h, lib/bitset/table.c: these.
16419         Rename all the ebitset* symbols as tbitset*.
16420         Adjust dependencies.
16422 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16424         bitset: check the operations
16425         * tests/test-bitset.c (bitset_random): New.
16426         Use it.
16427         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16429 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16431         bitset: properly use false/true instead of 0/1 for Booleans
16432         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16433         0/1, as Booleans.
16435 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16437         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16438         For consistency with the name of the file.
16439         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16440         * lib/bitset/stats.c, lib/bitset/vector.c
16441         (BITSET_VARRAY): Rename as...
16442         (BITSET_VECTOR): this.
16444 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16446         strerror_r-posix: memmove, not memcpy
16447         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16448         since the source and destination might overlap in the call
16449         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16450         Simplify.
16452 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16454         bitsetv: new module
16455         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
16457 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16459         bitset: add tests and doc
16460         First stabs at providing a documentation and test for the bitset
16461         module.
16462         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
16464 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16466         bitset: new module
16467         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
16468         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
16469         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
16470         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
16471         * lib/bitset/vector.h, modules/bitset:
16472         New.
16474 2018-11-23  Bruno Haible  <bruno@clisp.org>
16476         localename: Fix gettext test failures on mingw.
16477         * lib/localename.c (gl_locale_name_posix): Convert the result of
16478         gl_locale_name_environ to XPG syntax.
16480 2018-11-23  Karl Berry  <karl@freefriends.org>
16482         * config/srclistvars.txt,
16483         * config/srclist.txt: remove all gettext references;
16484         the gettext maintainers will sync as needed.
16486 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16488         mktime: add libc-config dependency
16489         I missed this when we synced from glibc.
16490         * modules/mktime (Depends-on): Add libc-config.
16492 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16494         longlong: fix comment typo
16495         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
16497 2018-11-11  Bruno Haible  <bruno@clisp.org>
16499         havelib: Remove the need to include asm-underscore.m4.
16500         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
16501         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
16502         gl_HOST_CPU_C_ABI.
16503         * modules/havelib (Files): Add host-cpu-c-abi.m4.
16504         (Depends-on): Remove host-cpu-c-abi.
16506 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16508         parse-datetime: simplify test for mktime failure
16509         * lib/parse-datetime.y (mktime_ok): Simplify.
16510         Remove args TZ and T; no longer needed.  Callers changed.
16512         posixtm: simplify test for mktime failure
16513         * lib/posixtm.c (posixtime): Simplify.
16515         nstrftime: simplify test for mktime failure
16516         * lib/nstrftime.c (__strftime_internal): Simplify.
16518 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16520         gnulib-common.m4: port _Noreturn to C++
16521         Problem reported by Akim Demaille in:
16522         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
16523         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
16524         Merge adjustments from _Noreturn.h and from glibc into the non-C++
16525         version.
16526         * lib/_Noreturn.h: Match gnulib-common.
16528 2018-10-30  Bruno Haible  <bruno@clisp.org>
16530         gnu-make: Fix for NetBSD 8 'make'.
16531         Reported by Reuben Thomas in
16532         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
16533         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
16534         output, ignoring exit codes.
16536 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
16538         maintainer-makefile: fix syntax-check rule for "same.h"
16539         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
16540         for 'same_nameat', too.
16542 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16544         havelib: fix nested ‘configure’ chatter
16545         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
16546         AC_CACHE_CHECK calls, which resulted in confusing output like
16547         “checking for the common suffixes of directories in the library
16548         search path... checking for 64-bit host... no lib,lib”.
16550         backupfile: tweak for better code
16551         * lib/backupfile.c: Sort include directives, and remove
16552         unnecessary <limits.h> include.
16553         (FALLTHROUGH): New macro, copied from other modules.
16554         (backupfile_internal): Use it to avoid code duplication.
16555         This lets GCC 8.2.1 generate better code by inlining the
16556         call to check_extension.
16558 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16560         backupfile: new dir_fd args
16561         New module opendirat with code taken from fts.
16562         Use this module to let backupfile use a directory file descriptor.
16563         * NEWS: Document the incompatible change.
16564         * lib/backup-find.c (find_backup_file_name):
16565         * lib/backup-rename.c (backup_file_rename):
16566         New arg DIR_FD.
16567         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
16568         (SIZE_MAX): Remove.
16569         Include opendirat.h rather than dirent--.h.
16570         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
16571         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
16572         (backupfile_internal): New arg DIR_FD.  All callers changed.
16573         * lib/fts.c: Include opendirat.h.
16574         (opendirat): Move to opendirat.c.
16575         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
16576         * modules/backupfile (Depends-on): Remove dirfd, opendir.
16577         Add opendirat.
16578         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
16579         Add opendirat.
16581 2018-10-23  Bruno Haible  <bruno@clisp.org>
16583         localename: Simplify support for per-thread locales on Solaris 11.4.
16584         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
16585         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
16586         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
16587         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
16588         specific code.
16589         * lib/localename-table.h: Update comments.
16590         * lib/localename-table.c: Update comments.
16591         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16592         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16593         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16594         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16595         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16596         HAVE_NAMELESS_LOCALES here.
16597         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
16598         m4/intlsolaris.m4.
16599         * modules/gettext (Files): Likewise.
16601 2018-10-22  Bruno Haible  <bruno@clisp.org>
16603         std-gnu11: Support Autoconf versions < 2.64.
16604         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
16605         when _AC_DO_LIMIT does not exist.
16607 2018-10-22  Bruno Haible  <bruno@clisp.org>
16609         Assume Autoconf >= 2.63.
16610         * DEPENDENCIES: Mention the requirement.
16612         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
16613         (func_get_filelist): Don't list m4/onceonly.m4 any more.
16614         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
16615         * m4/onceonly.m4: Remove file.
16617         * m4/openmp.m4: Remove file.
16618         * modules/openmp (Files): Remove m4/openmp.m4.
16620         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
16621         htmldir, dvidir, pdfdir, psdir, localedir.
16622         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
16624         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
16625         Autoconf < 2.60.
16626         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
16627         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
16629         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
16630         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
16631         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
16633         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
16634         exists.
16635         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
16637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
16638         Autoconf < 2.61.
16640         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
16641         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
16642         Autoconf >= 2.52.
16644         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
16645         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
16646         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
16648 2018-10-22  Bruno Haible  <bruno@clisp.org>
16650         Assume Automake >= 1.11.
16651         * m4/configmake.m4: Update comments.
16652         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
16653         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
16654         of 'eval'.
16655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
16656         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
16657         requires Automake >= 1.11.
16659 2018-10-22  Bruno Haible  <bruno@clisp.org>
16661         localename: Fix typo in comment.
16662         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16664 2018-10-22  Bruno Haible  <bruno@clisp.org>
16666         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16667         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16669 2018-10-21  Bruno Haible  <bruno@clisp.org>
16671         locale: Ease integration with GNU libintl.
16672         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16673         GNULIB_defined_freelocale): New macros.
16675 2018-10-21  Bruno Haible  <bruno@clisp.org>
16677         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16678         * lib/localename-table.h: New file, extracted from lib/localename.c.
16679         * lib/localename-table.c: Likewise.
16680         * lib/localename.c: Include localename-table.h.
16681         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16682         locale_hash_function instead of pointer_hash.
16683         * modules/localename (Files): Add lib/localename-table.h,
16684         lib/localename-table.c.
16685         (lib_SOURCES): Add localename-table.c.
16686         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16687         for Solaris 11.4 locale system only on Solaris. Test for it
16688         independently whether getlocalename_l exists.
16689         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16690         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16691         HAVE_NAMELESS_LOCALES.
16692         * modules/gettext (Files): Add m4/intlsolaris.m4.
16694 2018-10-21  Bruno Haible  <bruno@clisp.org>
16696         Small update from gettext.
16697         * m4/intl.m4: Update from gettext:
16698         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16699         mode on AIX.
16700         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16701         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16703 2018-10-16  Bruno Haible  <bruno@clisp.org>
16705         mountlist: Remove support for Cray with UNICOS 9.
16706         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16707         MOUNTED_LISTMNTENT.
16708         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16710 2018-10-16  Bruno Haible  <bruno@clisp.org>
16712         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16713         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16714         STAT_STATFS2_FS_DATA.
16715         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16717         MOUNTED_GETMNT.
16718         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16719         * lib/getloadavg.c (decstation): Remove definition and case.
16720         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16721         * lib/getgroups.c: Likewise.
16722         * doc/posix-functions/getgroups.texi: Likewise.
16723         * lib/time.in.h: Update comments.
16725 2018-10-16  Bruno Haible  <bruno@clisp.org>
16727         getloadavg: Remove support for ConvexOS.
16728         * lib/getloadavg.c: Remove convex case.
16730 2018-10-16  Bruno Haible  <bruno@clisp.org>
16732         getloadavg: Remove support for Sony NEWS.
16733         * lib/getloadavg.c: Remove sony_news case.
16735 2018-10-16  Bruno Haible  <bruno@clisp.org>
16737         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16738         * lib/fsusage.c: Remove _SEQUENT_ case.
16739         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16740         * lib/mountlist.c: Don't test for MNTTABNAME.
16741         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16742         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16743         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16744         * lib/stat-size.h: Don't mention the Sequent bug.
16745         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16747 2018-10-16  Bruno Haible  <bruno@clisp.org>
16749         fsusage: Remove support for AIX 3.
16750         * lib/fsusage.c: Remove code for AIX 3.
16751         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16753 2018-10-16  Bruno Haible  <bruno@clisp.org>
16755         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16756         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16757         * lib/fsusage.c: Remove code for AIX PS/2.
16758         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16759         * lib/getloadavg.c: Likewise.
16761 2018-10-16  Bruno Haible  <bruno@clisp.org>
16763         getloadavg: Remove support for HP-UX on m68k.
16764         * lib/getloadavg.c: Remove hp9000s300 case.
16766 2018-10-16  Bruno Haible  <bruno@clisp.org>
16768         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16769         * lib/fsusage.c: Remove DOLPHIN case.
16770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16771         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16773 2018-10-16  Bruno Haible  <bruno@clisp.org>
16775         getloadavg: Remove support for Alliant FX/2800.
16776         * lib/getloadavg.c: Remove alliant case.
16778 2018-10-16  Bruno Haible  <bruno@clisp.org>
16780         getloadavg: Remove support for tek4300.
16781         * lib/getloadavg.c: Remove tek4300 case.
16783 2018-10-16  Bruno Haible  <bruno@clisp.org>
16785         getloadavg: Remove support for Ardent.
16786         * lib/getloadavg.c: Remove ardent case.
16788 2018-10-16  Bruno Haible  <bruno@clisp.org>
16790         mountlist: Remove support for SVR2.
16791         Reported by Andrew Borodin <aborodin@vmail.ru> in
16792         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16793         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16794         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16795         MOUNTED_FREAD.
16797 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16799         libc-config: merge from glibc
16800         * lib/cdefs.h (__glibc_has_attribute): New macro.
16802         regex: depend on libc-config
16803         * modules/regex (Depends-on): Add libc-config.
16804         This is needed after the recent autoupdate from glibc.
16806 2018-10-14  Bruno Haible  <bruno@clisp.org>
16808         localename: Add support for per-thread locales on Solaris 11.4.
16809         * lib/locale.in.h (newlocale, freelocale): New declarations.
16810         (duplocale): Declare also when the 'localename' module requests it.
16811         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16812         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16813         (struniq): Update.
16814         (struct locale_categories_names, struct locale_hash_node): New types.
16815         (LOCALE_HASH_TABLE_SIZE): New constant.
16816         (locale_hash_table, locale_lock): New variables.
16817         (pointer_hash, get_locale_t_name): New functions.
16818         (newlocale, duplocale, freelocale): New overridden functions.
16819         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16820         * m4/intlsolaris.m4: New file.
16821         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16822         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16823         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16824         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16825         declared.
16826         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16827         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16828         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16829         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16830         * modules/localename (Files): Add intlsolaris.m4.
16831         (Depends-on): Add 'locale'.
16832         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16833         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16834         the signatures.
16836 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16838         timevar: use gethrxtime to get wall clock time
16839         clock_gettime is not portable.  gethrxtime takes the best available
16840         option to get the wall clock time, including clock_gettime (monotonic
16841         clock), and gettime (non monotonic).
16842         Also, using xtime_t instead of float preserves the precision.
16843         Suggested by Bruno Haible.
16844         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16845         * modules/timevar (Depends-on): We need gethrxtime.
16846         We no longer use times().
16847         (Link): Update.
16848         * lib/timevar.h (timevar_time_def): Use xtime_t.
16849         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16850         (timevar_print): Instead of checking whether the timings themselves
16851         are large enough for the timevar to be printed, check the percentages.
16853 2018-10-14  Bruno Haible  <bruno@clisp.org>
16855         wcsnrtombs: Work around Solaris 11.4 bug.
16856         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16857         macro.
16858         (gl_FUNC_WCSNRTOMBS): Invoke it.
16859         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16861 2018-10-14  Bruno Haible  <bruno@clisp.org>
16863         mbsnrtowcs: Work around Solaris 11.4 bug.
16864         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16865         macro.
16866         (gl_FUNC_MBSNRTOWCS): Invoke it.
16867         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16869 2018-10-14  Bruno Haible  <bruno@clisp.org>
16871         doc: Update for Solaris 11.4.
16872         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16873         mention Solaris 11.4.
16874         * m4/printf.m4: Update comments about Solaris.
16875         * m4/log.m4: Likewise.
16876         * m4/log10.m4: Likewise.
16877         * m4/logb.m4: Likewise.
16878         * m4/logbf.m4: Likewise.
16879         * m4/logbl.m4: Likewise.
16880         * m4/rename.m4: Likewise.
16881         * m4/wcrtomb.m4: Likewise.
16882         * m4/hostent.m4: Likewise.
16883         * m4/servent.m4: Likewise.
16885 2018-10-14  Bruno Haible  <bruno@clisp.org>
16887         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16888         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16889         pointer.
16890         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16891         pointer.
16892         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16893         pointer.
16894         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16895         pointer.
16896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16897         pointer.
16899 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16901         bootstrap: fix wget command for po files.
16902         * build-aux/bootstrap (po_download_command_format): Fix comment,
16903         and adjust callers.
16905 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16907         timevar: improve the output format
16908         Suggested by Bruno Haible.
16909         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16910         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16911         wall, since its resolution is much higher.
16913 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16915         timevar: expect that getrusage is available.
16916         Don't keep both times and getrusage as backend: both are guaranteed by
16917         gnulib, a single one suffices.  Using getrusage is open to possibly
16918         tracking other types of resources in the future.
16919         * modules/timevar (Depends-on): Add getrusage.
16920         (configure.ac): Remove gl_TIMEVAR.
16921         (Files): Remove m4/timevar.m4.
16922         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16923         * lib/timevar.h (timevar_enabled): Clarify documentation.
16924         * lib/timevar.c: Remove all the code about times.
16925         Remove all the CPP guards about getrusage: expect it to be present
16926         (courtesy of gnulib).
16928 2018-10-12  Bruno Haible  <bruno@clisp.org>
16930         mountlist: Improve support for Solaris in 64-bit mode.
16931         Reported by David Wood <David.Wood@deshaw.com> in
16932         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16934         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16935         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16937 2018-10-12  Bruno Haible  <bruno@clisp.org>
16939         mountlist: Add support for Minix.
16940         Reported by Assaf Gordon in
16941         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16942         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16943         AC_CHECK_FUNCS to check for 'getmntinfo'.
16944         * lib/mountlist.c: Update comments.
16946 2018-10-12  Bruno Haible  <bruno@clisp.org>
16948         Make better use of Autoconf.
16949         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16950         * m4/manywarnings.m4: Likewise.
16951         * m4/manywarnings-c++.m4: Likewise.
16952         * m4/socklen.m4: Likewise.
16953         * m4/sockpfaf.m4: Likewise.
16954         * m4/stdarg.m4: Likewise.
16955         * m4/visibility.m4: Likewise.
16956         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16957         indentation.
16958         * m4/ls-mntd-fs.m4: Likewise.
16960 2018-10-11  Bruno Haible  <bruno@clisp.org>
16962         mountlist: Modernize platform lists.
16963         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16964         platforms, deemphasizing the obsolete ones.
16965         * lib/mountlist.c: Likewise.
16967 2018-10-11  Bruno Haible  <bruno@clisp.org>
16969         getprogname: Add support for 32-bit programs on HP-UX.
16970         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16971         try the similar functions 32-bit programs on 64-bit HP-UX.
16973 2018-10-11  Bruno Haible  <bruno@clisp.org>
16975         getprogname: Work around program name truncation when possible.
16976         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16977         possibly use pst_cmd instead.
16979 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16981         fts: cleanup after FTS_NOATIME removal
16982         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16983         (FTS_STOP): Shrink to minimal values.  We don’t need to
16984         worry about binary compatibility in Gnulib, and the old way
16985         of doing things had a hole in the user options that caused
16986         FTS_OPTIONMASK to not work as desired.
16988 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16990         fts: remove FTS_NOATIME
16991         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16992         We cannot guarantee that O_NOATIME works: e.g. openat fails
16993         with EPERM if the effective user ID of the caller does not match
16994         the owner of the file and the caller is not privileged.
16995         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16996         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16997         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16998         (FTS_OPTIONMASK): Adjust.
16999         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
17000         (fd_ring_check): Likewise.
17002 2018-10-08  Bruno Haible  <bruno@clisp.org>
17004         csharpcomp*, csharpexec*: Remove support for pnet.
17005         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
17006         HAVE_CSCC.
17007         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
17008         Don't test HAVE_CSCC.
17009         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
17010         (compile_csharp_class): Don't invoke it.
17011         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
17012         HAVE_ILRUN.
17013         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
17014         Don't test HAVE_ILRUN.
17015         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
17016         (execute_csharp_program): Don't invoke it.
17017         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
17018         any more.
17020 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
17022         renameatu: prefer renameat2 to syscall
17023         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
17024         Use renameat2 instead of syscall (Bug#32796).
17025         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
17027 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17029         bootstrap, gnulib-tool: use https instead of insecure rsync
17030         * build-aux/bootstrap (download_po_files, po_download_command_format):
17031         Don't try using rsync; always use wget over https to fetch PO files.
17032         * gnulib-tool (func_import): Likewise.
17033         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17035 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17037         bootstrap, gnulib-tool: correct the translations wget command
17038         * build-aux/bootstrap (po_download_command_format2): Restrict
17039         recursion to a single level.
17040         * gnulib-tool (func_import): Likewise.
17041         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17043 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17045         doc: the gnulib snapshots are not maintained
17046         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
17048 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17050         timevar: add to lib_SOURCES
17051         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
17053 2018-10-07  Bruno Haible  <bruno@clisp.org>
17055         dirent: Update documentation.
17056         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
17058 2018-10-05  Bruno Haible  <bruno@clisp.org>
17060         strpbrk: Make it possible to namespace the defined symbol.
17061         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
17063 2018-10-05  Bruno Haible  <bruno@clisp.org>
17065         strcspn: Make it possible to namespace the defined symbol.
17066         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
17068 2018-10-05  Bruno Haible  <bruno@clisp.org>
17070         raise: Make it possible to namespace the defined symbol.
17071         * lib/raise.c (raise): Undefine only after the replacement function has
17072         been defined.
17073         (raise): Renamed from rpl_raise.
17074         (raise_nothrow): Move to the end of the compilation unit.
17076 2018-10-05  Bruno Haible  <bruno@clisp.org>
17078         memcmp: Make it possible to namespace the defined symbol.
17079         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
17081 2018-10-05  Bruno Haible  <bruno@clisp.org>
17083         explicit_bzero: Make it possible to namespace the defined symbol.
17084         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
17085         glibc.
17087 2018-10-05  Bruno Haible  <bruno@clisp.org>
17089         mkdir-p: Depend on 'mkdir'.
17090         * modules/mkdir-p (Depends-on): Add 'mkdir'.
17092 2018-10-05  Bruno Haible  <bruno@clisp.org>
17094         tempname: Depend on 'mkdir'.
17095         Reported by Maarten Bosmans <mkbosmans@gmail.com>
17096         at <https://savannah.gnu.org/bugs/?33379>.
17097         * modules/tempname (Depends-on): Add 'mkdir'.
17099 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
17101         timevar: rely on gnulib modules for time portability.
17102         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
17103         * m4/timevar.m4: Don't check for clock_t and struct tms,
17104         guaranteed by gnulib.
17105         * lib/timevar.h: Use extern "C" protection.
17106         Include <stdio.h> for FILE.
17107         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
17108         they are guaranteed by gnulib.
17109         Remove uses of clock as (now useless) fallback.
17111 2018-10-04  Bruno Haible  <bruno@clisp.org>
17113         sh-filename: New module.
17114         * m4/sh-filename.m4: New file.
17115         * modules/sh-filename: New file.
17116         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
17117         "/bin/sh".
17118         * tests/test-posix_spawn1.c (main): Likewise.
17119         * tests/test-posix_spawn2.c (main): Likewise.
17120         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
17121         is_envjavac_gcj43): Likewise.
17122         * lib/javaexec.c (execute_java_class): Likewise.
17123         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
17124         * modules/posix_spawnp-tests (Depends-on): Likewise.
17125         * modules/javacomp (Depends-on): Likewise.
17126         * modules/javaexec (Depends-on): Likewise.
17128 2018-10-04  Bruno Haible  <bruno@clisp.org>
17130         spawn-pipe tests: Avoid test failure on native Windows.
17131         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
17132         that fd 2 is closed.
17134 2018-10-04  Bruno Haible  <bruno@clisp.org>
17136         fcntl: Make it possible to namespace the defined symbol.
17137         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
17138         been defined.
17139         (fcntl): Renamed from rpl_fcntl.
17140         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
17141         from fcntl.
17142         (klibc_fcntl): Move to the end of the compilation unit.
17144 2018-10-02  Bruno Haible  <bruno@clisp.org>
17146         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
17147         * tests/test-vasnprintf.c (test_function): Change the test added on
17148         2018-09-23 to check only the 18 most significant digits.
17150         vasnprintf tests: Avoid test failure on Cygwin.
17151         * tests/test-vasnprintf.c (test_function): Change the test added on
17152         2018-09-23 to check only the 42 most significant digits.
17154 2018-10-01  Bruno Haible  <bruno@clisp.org>
17156         mkostemp, mkostemps: Update documentation.
17157         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
17158         * doc/glibc-functions/mkostemps.texi: Likewise.
17160 2018-10-01  Tom Tromey  <tom@tromey.com>
17162         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
17163         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
17164         on OS X.
17166 2018-09-30  Pádraig Brady  <P@draigBrady.com>
17168         hmac-*: refactor to remove repetitive code
17169         * lib/hmac.c: A new parameterized single implementation.
17170         * lib/hmac-md5.c: Define parameters and include implementation.
17171         * lib/hmac-sha1.c: Likewise.
17172         * lib/hmac-sha256.c: Likewise.
17173         * lib/hmac-sha512.c: Likewise.
17174         * modules/crypto/hmac-md5: Reference the new implementation file.
17175         * modules/crypto/hmac-sha1: Likewise.
17176         * modules/crypto/hmac-sha256: Likewise.
17177         * modules/crypto/hmac-sha512: Likewise.
17178         * tests/test-hmac-md5.c: Refactor common code to a single function.
17179         * tests/test-hmac-sha1.c: Likewise.
17180         * tests/test-hmac-sha256.c: Likewise.
17181         * tests/test-hmac-sha512.c: Likewise.
17183 2018-09-30  Zhang Qing  <zhangqingl@126.com>
17185         hmac-sha512: fix hash for keys > blocksize (128 bytes)
17186         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
17187         key length to that output by sha512, not the blocksize.
17188         Otherwise uninitialized data from the stack
17189         is used when computing the hash.
17190         * tests/test-hmac-sha512.c: Add a shortened key test case.
17191         Reported at https://github.com/coreutils/gnulib/pull/5
17193 2018-09-30  Bruno Haible  <bruno@clisp.org>
17195         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
17196         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
17197         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
17198         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
17199         'unsigned int' before comparison with an unsigned value.
17201 2018-09-30  Bruno Haible  <bruno@clisp.org>
17203         grantpt: Remove unnecessary dependency.
17204         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
17206 2018-09-30  Bruno Haible  <bruno@clisp.org>
17208         timevar: Small tweaks.
17209         * lib/timevar.h: Fix comments. Add parameter names to function
17210         declarations.
17211         * lib/timevar.c: Include timevar.h immediately after config.h.
17212         * lib/timevar.def: Fix comments.
17213         * modules/timevar (Maintainer): List Akim Demaille.
17215 2018-09-30  Bruno Haible  <bruno@clisp.org>
17217         timevar: Include documentation in gnulib manual.
17218         * doc/timevar.texi: Change node and section name to 'Profiling of
17219         program phases'.
17220         In the code snippets, tweak the #includes and use GNU coding style.
17221         * doc/gnulib.texi: Include timevar.texi.
17223 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
17225         timevar: import from Bison.
17226         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
17227         New files.
17228         * lib/timevar.def: New file.
17229         * doc/timevar.texi: New file.
17231 2018-09-26  Bruno Haible  <bruno@clisp.org>
17233         javacomp-script, javacomp: Add preliminary support for Java 12..17.
17234         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
17235         * lib/javacomp.c (default_target_version): Likewise.
17237 2018-09-26  Bruno Haible  <bruno@clisp.org>
17239         javacomp-script, javacomp: Add support for Java 11.
17240         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
17241         target-version 11.
17242         * lib/javaversion.h: Update comments.
17243         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17244         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17245         TARGET_VERSION_BOUND, target_version_index,
17246         corresponding_classfile_version): Accept source_version 11 and
17247         target_version 11.
17248         * lib/javacomp.h: Update comments accordingly.
17250 2018-09-23  Bruno Haible  <bruno@clisp.org>
17252         vasnprintf: Fix heap memory overrun bug.
17253         Reported by Ben Pfaff <blp@cs.stanford.edu> in
17254         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
17255         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
17256         memory.
17257         * tests/test-vasnprintf.c (test_function): Add another test.
17259 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17261         maint: mktime.c now shared with glibc
17262         * config/srclist.txt: intprops.h, timegm.c and mktime.c
17263         are now the same in Gnulib and glibc.
17265         mktime: fix _LIBC typo
17266         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
17268 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17270         dfa: optimization for state merge
17271         * lib/dfa.c (merge2): New function.
17272         (merge_nfa_state): Use it.
17274 2018-09-18  Jim Meyering  <meyering@fb.com>
17276         dfa: trivial comment fix: s/is/if/
17277         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
17279 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17281         dfa: use more-informative function name
17282         * lib/dfa.c (maybe_disable_superset_dfa):
17283         Rename from dfautf8noss.  Use change.
17285         dfa: tweak allocation performance
17286         * lib/dfa.c (merge_nfa_state, dfaoptimize):
17287         Prefer ptrdiff_t for indexes some more.
17288         Use char for flags, as it’s wide enough.
17289         Allocate queue and flags together, with one malloc call.
17290         No need to use xnmalloc since the multiplication and
17291         addition cannot overflow (it’s already been checked by
17292         earlier allocation).  Prefer memset to open-coding.
17294         dfa: prune states as we go
17295         * lib/dfa.c (prune): Remove.
17296         dfa: reorder enum for efficiency
17297         (merge_nfa_state): Prune as we go instead of at the end.
17298         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
17300         * lib/dfa.c (END): Now -1 again.  Reorder other elements
17301         of the enumeration to make it easier for GCC to generate
17302         efficient code by using fewer comparisons to check for
17303         ranges of values.
17304         (atom): Take advantage of the reordering.
17306 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17308         dfa: optimize alternation in NFA
17309         Even when similar states exist in alternation, the DFA treats them
17310         as separate items, which may complicate the transition in NFA and
17311         cause slowdown.  This change assembles the states into one.  For
17312         example, ab|ac is changed into a(b|c).  This change speeds-up
17313         matching for many branched patterns.  For example, grep speeds up
17314         more than 30× in:
17316           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
17317           time -p env LC_ALL=C grep -vf in in
17319         * lib/dfa.c (prune): New function.
17320         (merge_nfa_state): New function.  It merges similar NFA states.
17321         (dfaoptimize): New function.  It seeks merged and removed nodes.
17322         (dfaanalyze): Call new function.
17323         (dfautf8noss): Change name from dfaoptimize because of addition of new
17324         function.
17325         (dfacomp): Update caller.
17327         dfa: simplify initial state
17328         Simplifying the initial state enables easier optimization of the NFA.
17329         * lib/dfa.c (enum token): Add new element BEG.
17330         (prtok): Adjust due to adding element BEG.
17331         (dfaparse): Put BEG at a head of tokens.
17332         (state_index): Adjust due to adding element BEG.
17333         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
17334         build initial state.
17335         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
17337 2018-09-18  Bruno Haible  <bruno@clisp.org>
17339         file-has-acl: Fix test failure on Cygwin 2.9.
17340         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
17341         * lib/acl-internal.h: Likewise.
17342         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17343         * lib/acl-internal.c: Update comments regarding Cygwin.
17344         * lib/acl_entries.c: Likewise.
17345         * lib/file-has-acl.c: Likewise.
17346         (file_has_acl): For Cygwin, use a different way to determine whether
17347         the "default" ACL of a directory is nontrivial.
17348         * lib/get-permissions.c: Update comments regarding Cygwin.
17349         * lib/set-permissions.c: Likewise.
17351 2018-09-18  Bruno Haible  <bruno@clisp.org>
17353         stat-time tests: Fix test failure on Cygwin.
17354         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17356 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17358         doc: OS X 10.11 lacked ns time functions
17359         According to <https://github.com/zeromq/libzmq/issues/2175>,
17360         nanosecond-resolution timestamp functions were introduced
17361         in macOS 10.12, so document the last version (OS X 10.11)
17362         where they were absent.
17364         gettime: nanotime never existed
17365         Problem reported by Bruno Haible in:
17366         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17367         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17368         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17370 2018-09-18  Bruno Haible  <bruno@clisp.org>
17372         doc: Update statement about target platforms.
17373         Reported by Simon Sobisch.
17374         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17375         restrictions on MSVC versions.
17377 2018-09-18  Bruno Haible  <bruno@clisp.org>
17379         posix_spawn tests: Fix link error on 64-bit Cygwin.
17380         * tests/test-posix_spawn1.c (environ): Remove declaration.
17381         * tests/test-posix_spawn2.c (environ): Likewise.
17382         * tests/test-posix_spawn3.c (environ): Likewise.
17383         * tests/test-posix_spawn4.c (environ): Likewise.
17384         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17385         * modules/posix_spawnp-tests (Depends-on): Likewise.
17387 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17389         timespec: new function current_timespec
17390         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17391         and don’t worry about it failing on a CLOCK_REALTIME arg.
17392         POSIX requires it to succeed and I don’t know of any
17393         counterexamples where the fallbacks would work.
17394         (current_timespec): New function, taken from Emacs.  It is more
17395         convenient than gettime, and can help register allocation.
17396         * lib/timespec.h: Include arg-nonnull.h.
17397         (current_timespec): New declaration.
17398         (gettime, settime): Declare args to be nonnull.
17399         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17401 2018-09-16  Bruno Haible  <bruno@clisp.org>
17403         setlocale: Improve locale handling on macOS 10.12 or newer.
17404         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17405         gl_locale_name_canonicalize.
17406         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17407         and LC_MESSAGES.
17408         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17410 2018-09-16  Bruno Haible  <bruno@clisp.org>
17412         Update list of locale names with scripts on macOS.
17413         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17414         match Mac OS X 10.13 and recent glibc.
17416 2018-09-16  Bruno Haible  <bruno@clisp.org>
17418         gettext: Use newer macOS APIs when possible.
17419         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17420         CFLocaleCopyPreferredLanguages.
17422 2018-09-16  Bruno Haible  <bruno@clisp.org>
17424         localename: Revisit macOS specific code.
17425         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17426         Fix comments about Mac OS X versions.
17428 2018-09-15  Bruno Haible  <bruno@clisp.org>
17430         setlocale: Improve support for locales not supported by libc.
17431         Reported by Dapeng Gao <peter@dpgao.cc> at
17432         <https://savannah.gnu.org/bugs/?54479>.
17433         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17434         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17435         to be set is not supported by libc: Emit warnings instead of failing.
17437 2018-09-15  Bruno Haible  <bruno@clisp.org>
17439         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17440         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17441         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17442         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17443         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17444         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17445         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17446         * doc/glibc-functions/strcasestr.texi: Likewise.
17448 2018-09-14  Bruno Haible  <bruno@clisp.org>
17450         doc: Fix bottom of top-level page.
17451         Reported by Akim Demaille <akim.demaille@gmail.com> in
17452         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
17453         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
17454         mode.
17455         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
17456         accordingly.
17458 2018-09-12  Bruno Haible  <bruno@clisp.org>
17460         Add test case from a recent glibc bug.
17461         * tests/test-strstr.c (main): Add test of long needle.
17462         * tests/test-strcasestr.c (main): Likewise.
17463         * tests/test-c-strstr.c (main): Likewise.
17464         * tests/test-c-strcasestr.c (main): Likewise.
17465         * tests/test-memmem.c (main): Likewise.
17467 2018-09-12  Bruno Haible  <bruno@clisp.org>
17469         Apply Eric Blake's improvements from 2011-02-25 to more tests.
17470         * tests/test-c-strstr.c (main): Add the same tests here as well.
17472 2018-09-12  Bruno Haible  <bruno@clisp.org>
17474         Apply Jim Meyering's fix from 2015-01-11 to more tests.
17475         * tests/test-memmem.c (main): Free haystack.
17476         * tests/test-strcasestr.c (main): Likewise.
17477         * tests/test-c-strcasestr.c (main): Likewise.
17479 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17481         xstrtol: fix missing-TYPE_SIGNED typo
17482         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
17484 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17486         timespec: fix resolution confusion
17487         In normal usage, clock resolution is given in seconds, but the
17488         code was mistakenly using inverse seconds and calling it
17489         “resolution”.  Fix this, partly by renaming two identifiers.
17490         The old names will be kept for a bit, to ease transition.
17491         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
17492         New constants, replacing TIMESPEC_RESOLUTION and
17493         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
17494         All uses changed.
17496 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17498         mktime: simplify in prep for glibc merge
17499         * lib/mktime.c, lib/timegm.c [_LIBC]:
17500         Include mktime-internal.h (a small file just for glibc)
17501         instead of using a typedef.
17503 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17505         intprops: minor clarification of code
17506         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
17507         Use _GL_INT_CONVERT rather than reinventing it.
17509 2018-09-07  Bruno Haible  <bruno@clisp.org>
17511         Fix a comment.
17512         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
17514 2018-09-07  Bruno Haible  <bruno@clisp.org>
17516         posix_spawn_file_actions_addchdir: Add tests.
17517         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
17518         * tests/test-posix_spawn4.c: New file.
17519         * modules/posix_spawn_file_actions_addchdir-tests: New file.
17521 2018-09-07  Bruno Haible  <bruno@clisp.org>
17523         posix_spawn_file_actions_addchdir: New module.
17524         Suggested by Eric Blake in
17525         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
17526         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
17527         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
17528         union member 'chdir_action'.
17529         * lib/spawn_faction_addchdir.c: New file.
17530         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
17531         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
17532         HAVE_WORKING_POSIX_SPAWN.
17533         * lib/spawn_faction_adddup2.c: Likewise.
17534         * lib/spawn_faction_addopen.c: Likewise.
17535         * m4/posix_spawn_faction_addchdir.m4: New file.
17536         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
17537         'posix_spawn_file_actions_addchdir' is present and whether
17538         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
17539         instead of HAVE_WORKING_POSIX_SPAWN.
17540         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
17541         posix_spawn_file_actions_addchdir is declared.
17542         (gl_SPAWN_H_DEFAULTS): Initialize
17543         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17544         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17545         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17546         * modules/spawn (Makefile.am): Substitute
17547         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17548         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17549         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17550         * modules/posix_spawn_file_actions_addchdir: New file.
17551         * modules/posix_spawn_file_actions_addclose (Depends-on,
17552         configure.ac): Test also REPLACE_POSIX_SPAWN.
17553         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
17554         configure.ac): Likewise.
17555         * modules/posix_spawn_file_actions_addopen (Depends-on,
17556         configure.ac): Likewise.
17557         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
17558         signature.
17559         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17560         * doc/posix-functions/posix_spawnp.texi: Likewise.
17562 2018-09-06  Bruno Haible  <bruno@clisp.org>
17564         stddef: Override max_align_t on NetBSD 8.0/x86.
17565         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
17566         the value of __alignof__ (max_align_t).
17567         * doc/posix-headers/stddef.texi: Mention the issue.
17569 2018-09-06  Bruno Haible  <bruno@clisp.org>
17571         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
17572         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
17573         system fcntl.
17574         * doc/posix-functions/fcntl.texi: Document the issue.
17576 2018-09-06  Bruno Haible  <bruno@clisp.org>
17578         count-trailing-zeros tests: Rely on limits-h module.
17579         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
17580         definition.
17581         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
17583 2018-09-06  Bruno Haible  <bruno@clisp.org>
17585         count-leading-zeros tests: Rely on limits-h module.
17586         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
17587         definition.
17588         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17590 2018-09-06  Bruno Haible  <bruno@clisp.org>
17592         count-one-bits tests: Rely on limits-h module.
17593         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17594         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17596 2018-09-06  Bruno Haible  <bruno@clisp.org>
17598         xstrtoll: Rely on limits-h module.
17599         * lib/xstrtol.c: Don't include intprops.h.
17600         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17601         * modules/xstrtol (Depends-on): Remove 'intprops'.
17602         * modules/xstrtoll (Depends-on): Add 'limits-h'.
17604 2018-09-06  Bruno Haible  <bruno@clisp.org>
17606         strtoll, strtoull: Rely on limits-h module.
17607         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
17608         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17609         * modules/strtoll (Depends-on): Add limits-h.
17610         * modules/strtoull (Depends-on): Likewise.
17612 2018-09-06  Bruno Haible  <bruno@clisp.org>
17614         intprops tests: Fix compilation error with pre-C99 compiler.
17615         * tests/test-intprops.c (verify_stmt): New macro.
17616         (VERIFY, main): Use it.
17618 2018-09-06  Bruno Haible  <bruno@clisp.org>
17620         limits-h: Provide numerical limits macros.
17621         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
17622         IRIX and for GCC.
17623         (WORD_BIT, LONG_BIT): Define.
17624         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
17625         <limits.h> does not define LLONG_MAX or WORD_BIT.
17626         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
17627         TYPE_MAXIMUM): New macros, from intprops.h.
17628         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
17629         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
17630         provides.
17632 2018-09-05  Bruno Haible  <bruno@clisp.org>
17634         fcntl: Don't access nonexistent optional argument.
17635         Reported by Frank Busse <f.busse@imperial.ac.uk> in
17636         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
17637         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
17638         don't consume an argument. For actions that take an 'int' argument,
17639         consume an 'int' argument.
17641 2018-09-05  Eric Blake  <eblake@redhat.com>
17643         doc: mention environ pitfall
17644         * doc/posix-functions/environ.texi (environ): Assigning NULL to
17645         environ is a glibc extension.
17647 2018-09-03  Bruno Haible  <bruno@clisp.org>
17649         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
17650         Reported by Antoine Luong <antoine.luong@c-s.fr> in
17651         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
17652         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
17653         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
17654         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
17656 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17658         mktime: fix unlikely race+overflow bug
17659         Problem reported by Alexandre Oliva in:
17660         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17661         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17662         to avoid an unlikely race if the compiler delays a load and
17663         if this cascades into a signed integer overflow.
17665 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17667         mktime, timegm: simplify glibc time64_t
17668         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17669         Now long int, not time_t, since long int is the longstanding type
17670         for this in glibc and there is no need to change it even if time_t
17671         becomes 64 bits - even int would do, though this would be a change
17672         to the glibc generated code.  When this change is merged into
17673         glibc, it should simplify the time_t vs time64_t situation.
17675         mktime, timegm: simplify merge to glibc
17676         Move code around to make a merge to glibc easier to audit.
17677         This should not change behavior.
17678         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17679         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17680         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17681         simplify later conditionals; default the others to zero.  In uses
17682         of these conditionals, explicitly spell out how _LIBC affects
17683         things, so it’s easier to review from a glibc viewpoint.
17684         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17685         compartmentalize tzset issues.  Move system-dependent tzsettish
17686         code here from mktime.
17687         (mktime): Move tzsettish code to my_tzset, and move
17688         localtime_offset to within mktime so that it doesn’t
17689         need a separate ifdef.
17691 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17693         intprops: avoid evaluation of some expressions
17694         This makes EXPR_SIGNED (e) easier to use, as it no longer
17695         evaluates the expression E.  Formerly, E was required to be free
17696         of side effects.
17697         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17698         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17699         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17701 2018-08-23  Bruno Haible  <bruno@clisp.org>
17703         getcwd: Add cross-compilation guesses.
17704         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17705         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17706         Based on a patch by Paul Eggert.
17707         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17708         guesses for all GNU systems.
17710 2018-08-19  Bruno Haible  <bruno@clisp.org>
17712         glob-h: Formalize side effects from other modules.
17713         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17714         * m4/glob.m4 (gl_GLOB): Invoke it.
17716         fnmatch-h: Formalize side effects from other modules.
17717         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17718         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17720         limits-h: Formalize side effects from other modules.
17721         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17722         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17724 2018-08-19  Bruno Haible  <bruno@clisp.org>
17726         getpass: Move declaration to <unistd.h>.
17727         * lib/unistd.in.h (getpass): New declaration.
17728         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17729         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17730         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17731         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17732         On glibc systems, don't set REPLACE_GETPASS to 1.
17733         * modules/getpass (Depends-on): Add 'unistd'.
17734         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17735         (Include): Specify <unistd.h> instead of "getpass.h".
17736         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17737         (configure.ac): Sync with the configure.ac section of modules/getpass.
17738         (Include): Specify <unistd.h> instead of "getpass.h".
17739         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17740         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17741         REPLACE_GETPASS.
17742         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17743         REPLACE_GETPASS.
17744         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17745         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17746         and musl.
17747         * NEWS: Mention the change.
17749 2018-08-19  Bruno Haible  <bruno@clisp.org>
17751         glob: Fix over-optimization due to attribute __nonnull__.
17752         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17754 2018-08-19  Bruno Haible  <bruno@clisp.org>
17756         glob: Fix another compilation error when glob.h is not replaced.
17757         Reported by Reuben Thomas <rrt@sc3d.org> in
17758         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17759         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17760         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17762 2018-08-18  Bruno Haible  <bruno@clisp.org>
17764         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17765         Reported by Reuben Thomas <rrt@sc3d.org> in
17766         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17767         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17768         in config.h.
17770 2018-08-18  Bruno Haible  <bruno@clisp.org>
17772         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17773         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17774         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17775         Solution proposed by Eli Zaretskii.
17776         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17777         * lib/gettimeofday.c (GetProcAddress): Likewise.
17778         * lib/link.c (GetProcAddress): Likewise.
17779         * lib/physmem.c (GetProcAddress): Likewise.
17780         * lib/poll.c (GetProcAddress): Likewise.
17781         * lib/select.c (GetProcAddress): Likewise.
17782         * lib/stat-w32.c (GetProcAddress): Likewise.
17784 2018-08-18  Bruno Haible  <bruno@clisp.org>
17786         glob: Fix another compilation error when glob.h is not replaced.
17787         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17788         * lib/globfree.c: Include <libc-config.h>.
17790 2018-08-18  Bruno Haible  <bruno@clisp.org>
17792         glob: Fix compilation error when glob.h is not replaced.
17793         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17794         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17795         * lib/glob_pattern_p.c: Include <libc-config.h>.
17796         * modules/glob (Depends-on): Add libc-config.
17798 2018-08-18  Bruno Haible  <bruno@clisp.org>
17800         scratch_buffer: Add tests.
17801         * tests/test-scratch-buffer.c: New file.
17802         * modules/scratch_buffer-tests: New file.
17804 2018-08-18  Bruno Haible  <bruno@clisp.org>
17806         scratch_buffer: Fix include file.
17807         Reported by Reuben Thomas <rrt@sc3d.org> in
17808         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17809         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17810         double-inclusion guard.
17812 2018-08-18  Bruno Haible  <bruno@clisp.org>
17814         glob-h: Revert Paul Eggert's revert.
17815         * m4/glob_h.m4: Revert to previous state.
17816         * modules/glob-h: Likewise.
17818 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17820         glob-h: always build glob.h
17821         This works around a problem reported by Reuben Thomas in:
17822         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17823         This workaround always builds glob.h, even on platforms that
17824         do not need it; perhaps this could be improved someday.
17825         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17826         is always created now.
17827         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17829 2018-08-13  Bruno Haible  <bruno@clisp.org>
17831         monetary: Simplify m4 code.
17832         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17833         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17835 2018-08-13  Bruno Haible  <bruno@clisp.org>
17837         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17838         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17839         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17840         and by Paul J. Lucas <paul@lucasmail.org> in
17841         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17842         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17844 2018-08-11  Bruno Haible  <bruno@clisp.org>
17846         setlocale: Trivial simplification.
17847         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17849 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17851         verify: port 'assume' to traditional tools
17852         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17853         and other tools that use /*NOTREACHED*/ comments.
17855 2018-08-10  Bruno Haible  <bruno@clisp.org>
17857         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17858         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17859         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17860         'fnmatch-gnu' is in use.
17862 2018-08-07  Bruno Haible  <bruno@clisp.org>
17864         glob-h: Add tests.
17865         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17866         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17867         tests/test-glob-h.c.
17868         * modules/glob-h-tests: New file.
17869         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17870         conditions.
17871         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17872         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17874 2018-08-07  Bruno Haible  <bruno@clisp.org>
17876         glob-h: New module.
17877         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17878         replacements.
17879         * lib/glob.c: Include <config.h>.
17880         * m4/glob_h.m4: New file.
17881         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17882         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17883         REPLACE_GLOB_PATTERN_P as appropriate.
17884         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17885         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17886         * modules/glob-h: New file.
17887         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17888         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17889         lstat, sys_stat. Change conditions.
17890         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17891         REPLACE_GLOB_PATTERN_P. Set module indicator.
17892         (Makefile.am): Remove code that is moved to glob-h.
17893         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17894         * modules/posixcheck (Depends-on): Add glob-h.
17896 2018-08-06  Bruno Haible  <bruno@clisp.org>
17898         Force generation of substitute .h file when C++ support is enabled.
17899         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17900         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17901         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17902         FNMATCH_H to non-empty.
17903         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17904         ICONV_H to non-empty.
17905         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17906         MONETARY_H to non-empty.
17907         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17908         non-empty.
17910 2018-08-06  Bruno Haible  <bruno@clisp.org>
17912         fnmatch-h: Fix test compilation error on mingw (regression from today).
17913         * lib/fnmatch.in.h: Fix conditions.
17915 2018-08-06  Bruno Haible  <bruno@clisp.org>
17917         sys_resource: Relicense under LGPLv2+.
17918         John Malmberg's approval is in
17919         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17920         * modules/sys_resource (License): Change to LGPLv2+.
17922 2018-08-06  Bruno Haible  <bruno@clisp.org>
17924         fnmatch-h: Add tests.
17925         * tests/test-fnmatch-h.c: New file.
17926         * modules/fnmatch-h-tests: New file.
17927         * tests/test-fnmatch-h-c++.cc: New file.
17928         * modules/fnmatch-h-c++-tests: New file.
17930 2018-08-06  Bruno Haible  <bruno@clisp.org>
17932         fnmatch-h: New module.
17933         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17934         replacements.
17935         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17936         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17937         'posixcheck' warning.
17938         * m4/fnmatch_h.m4: New file.
17939         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17940         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17941         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17942         as appropriate.
17943         * modules/fnmatch-h: New file.
17944         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17945         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17946         conditions.
17947         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17948         indicator.
17949         (Makefile.am): Remove code that is moved to fnmatch-h.
17950         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17951         REPLACE_FNMATCH.
17952         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17953         * modules/posixcheck (Depends-on): Add fnmatch-h.
17955 2018-08-06  Bruno Haible  <bruno@clisp.org>
17957         Enable more C++ tests.
17958         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17959         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17960         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17961         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17962         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17964 2018-08-06  Bruno Haible  <bruno@clisp.org>
17966         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17967         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17968         getopt.h.
17969         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17971 2018-08-05  Bruno Haible  <bruno@clisp.org>
17973         utime-h: Generate header file when module 'posixcheck' is in use.
17974         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17975         UTIME_H to non-empty.
17977 2018-08-05  Bruno Haible  <bruno@clisp.org>
17979         monetary: Generate header file when module 'posixcheck' is in use.
17980         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17981         use, set MONETARY_H to non-empty.
17983 2018-08-05  Bruno Haible  <bruno@clisp.org>
17985         iconv-h: Generate header file when module 'posixcheck' is in use.
17986         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17987         set ICONV_H to non-empty.
17989 2018-08-05  Bruno Haible  <bruno@clisp.org>
17991         Optimize the "checking whether ... is declared without a macro" checks.
17992         Suggested by Paul Eggert in
17993         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17994         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17995         Gnulib module 'posixcheck' is not in use.
17997 2018-08-05  Bruno Haible  <bruno@clisp.org>
17999         iconv-h: Enable 'posixcheck' warnings.
18000         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
18001         iconv_open.
18002         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
18004 2018-08-05  Bruno Haible  <bruno@clisp.org>
18006         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
18007         * m4/extern-inline.m4: Add more comments.
18008         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
18009         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
18010         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
18012 2018-08-04  Bruno Haible  <bruno@clisp.org>
18014         New module 'posixcheck'.
18015         * modules/posixcheck: New file.
18016         * m4/posixcheck.m4: New file.
18017         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
18018         (Which modules?): Reference it.
18020 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
18022         dfa: fix memory leak
18023         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
18025 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18027         ieee754-h: new module
18028         It looks like Emacs can use this for some NaN processing.
18029         Emacs uses it only on double NaNs so it should be safe.
18030         * MODULES.html.sh (func_all_modules): Add ieee754-h.
18031         * config/srclist.txt: Mention ieee754.h in a comment.
18032         * doc/glibc-headers/ieee754.texi (ieee754.h):
18033         Gnulib now has a substitute that should work
18034         except for long double and for non-IEEE platforms.
18035         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
18036         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
18038 2018-07-27  Bruno Haible  <bruno@clisp.org>
18040         iswcntrl: Mention minor problem on macOS.
18041         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
18043 2018-07-26  Colin Watson  <cjwatson@debian.org>
18045         bootstrap, gnulib-tool: fix translations rsync
18046         Previously, we created files such as $pobase/Makefile.in.in and then the
18047         subsequent rsync would immediately delete them.
18048         * build-aux/bootstrap (po_download_command_format): Avoid deleting
18049         non-.po files in target directory when rsyncing translations.
18050         * gnulib-tool (func_import): Likewise.
18051         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18053 2018-07-25  Jim Meyering  <meyering@fb.com>
18055         bootstrap: reinstate definition fo gnulib_mk.
18056         That variable is used at least by cppi.
18057         * build-aux/bootstrap (gnulib_mk): Restore definition.
18058         This reverts the deletion from v0.1-1844-gc66dba9ba.
18060 2018-07-23  Bruno Haible  <bruno@clisp.org>
18062         doc: For module names, use texinfo markup @code{} or @samp{}.
18063         * doc/alloca.texi: Mark gnulib module names with @code.
18064         * doc/alloca-opt.texi: Likewise.
18065         * doc/quote.texi: Likewise.
18066         * doc/posix-functions/freopen.texi: Likewise.
18067         * doc/posix-functions/open.texi: Likewise.
18068         * doc/posix-functions/readlink.texi: Likewise.
18069         * doc/posix-functions/readlinkat.texi: Likewise.
18070         * doc/posix-functions/stdout.texi: Likewise.
18071         * doc/posix-functions/stderr.texi: Likewise.
18072         * doc/posix-functions/unlink.texi: Likewise.
18073         * doc/posix-functions/unlinkat.texi: Likewise.
18074         * doc/posix-functions/utime.texi: Likewise.
18075         * doc/posix-functions/utimensat.texi: Likewise.
18076         * doc/posix-functions/utimes.texi: Likewise.
18077         * doc/posix-headers/stdint.texi: Likewise.
18078         * doc/glibc-functions/futimesat.texi: Likewise.
18079         * doc/glibc-functions/lutimes.texi: Likewise.
18080         * doc/glibc-functions/memmem.texi: Likewise.
18082 2018-07-23  Werner LEMBERG  <wl@gnu.org>
18084         doc: Avoid some overfull lines in the TeX output.
18085         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
18086         @example.
18087         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
18088         newline before the long URL.
18089         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
18090         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
18091         Add line breaks in code snippets.
18093 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18095         hard-locale: simplify by removing hard-locale.m4
18096         * m4/hard-locale.m4: Remove.
18097         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
18098         (configure.ac): Do not call gl_HARD_LOCALE.
18100         gnulib-tool: limit line length for git send-email
18101         * gnulib-tool (func_import): Break actioncmd log line
18102         into multiple lines.
18104 2018-07-16  Bruno Haible  <bruno@clisp.org>
18106         ffs: Ensure declaration on mingw.
18107         Reported by Daniel P. Berrangé <berrange@redhat.com>
18108         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
18109         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
18110         also declared.
18112 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18114         regex-tests: add dependency
18115         * modules/regex-tests (Depends-on): Add gettext-h.
18116         This is needed given the recent changes to regex,
18117         which no longer depends on gettext-h.
18119 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18121         regex: now in sync with glibc
18122         * config/srclist.txt: Gnulib and glibc regex code
18123         are synchronized again.
18125 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18127         renameatu: rename from renameat2
18128         It's looking like Glibc will add a renameat2 function
18129         that is incompatible with Gnulib renameat2; see:
18130         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
18131         To help avoid future confusion, rename renameat2 to something else.
18132         Use the name 'renameatu', as the Gnulib function is close to the
18133         Glibc function.  Perhaps someday there will also be a renameat2
18134         Gnulib module, which mimicks the future glibc renameat2, but that
18135         can wait as nobody seems to need such a module now.
18136         * NEWS: Mention this.
18137         * lib/renameatu.c: Rename from lib/renameat2.c.
18138         * lib/renameatu.h: Rename from lib/renameat2.h.
18139         * modules/renameatu: Rename from modules/renameat2.
18140         * modules/renameatu-tests: Rename from modules/renameat2-tests.
18141         All uses of "renameat2" in identifiers or file name
18142         changed to "renameatu", except for two instances in
18143         lib/renameatu.c that deal with the Linux kernel's
18144         renameat2 syscall.
18146 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18148         gnulib-tool: minor tweaks for --gnu-make
18149         * gnulib-tool: Do not allow --gnu-make in test modes,
18150         since they all require automake.
18151         (func_emit_lib_Makefile_am): Don’t emit automake comment
18152         if --gnu-make.
18154         regex: work around conditional-dependencies glitch
18155         * modules/regex (Depends-on): Add langinfo.
18156         Without this change, I had problems building an experimental
18157         version of GNU Emacs.  The symptom of the bug was a message
18158         ‘./configure: line 12726: test: =: unary operator expected’.
18159         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
18160         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
18161         was unset.  Although gl_FUNC_NL_LANGINFO has
18162         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
18163         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
18164         --conditional-dependencies sometimes arranges for the
18165         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
18166         code.  Since the regex code includes <langinfo.h> it should be
18167         depending on the langinfo module anyway, and this happens to work
18168         around the bug, so install that as a workaround for now.  To
18169         reproduce the original problem, run the following shell script on
18170         the version of Gnulib just before this patch was installed.
18171                 rm -fr foo
18172                 mkdir foo
18173                 cat >foo/configure.ac <<'EOF'
18174                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18175                 gl_EARLY
18176                 gl_INIT
18177                 AC_OUTPUT
18178                 EOF
18179                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
18180                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
18181                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
18182                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
18183                 cd foo
18184                 aclocal -I m4
18185                 autoconf
18186                 ./configure --with-included-regex
18188 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18190         wchar: fix bug when checking for ‘inline’
18191         I discovered this when looking into using the regex module
18192         with Emacs.
18193         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
18194         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
18195         conftest1.c and conftest2.c but these files were not created.
18196         As far as I can see, this check never worked and nobody reported
18197         it until now, which is a bit worrisome.
18199 2018-06-30  Jim Meyering  <meyering@fb.com>
18201         bootstrap: s/--option val/--option=val/
18202         * build-aux/bootstrap (gnulib_tool_options): Change the
18203         spelling of "--option val" pairs to "--option=val", for
18204         aesthetics, and also so that this file no longer triggers
18205         a common help2man syntax-check warning when copied into
18206         projects like grep, gzip, etc.
18208 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18210         manywarnings: omit -Wswitch-default
18211         This should make things more consistent, as we already ignore
18212         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
18213         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
18214         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
18215         Add -Wswitch-default.
18216         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
18217         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18218         Remove -Wswitch-default.
18220         regex: revert most trimming
18221         Problems reported by Bruno Haible in:
18222         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
18223         * modules/regex (Depends-on): Add lock, memcmp, memmove,
18224         and wctype back in.  lock because regex users shouldn’t
18225         need to know that regex needs locking, and the rest because
18226         gnulib-tool should ordinarily ignore them anyway.
18228 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18230         regex: trim module dependencies
18231         * modules/regex (Depends-on): Remove gettext-h and lock,
18232         since the regex code should work OK without these modules,
18233         and Emacs uses it that way.  Also remove memcmp, memmove,
18234         and wctype, as these modules are obsolete and should not be
18235         needed any more.
18237 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
18239         regex: glibc does not use intprops.h
18240         Maybe we can talk glibc into using intprops.h someday, but
18241         now doesn’t seem to be a good time.
18242         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
18243         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
18244         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
18246 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
18248         regex: port to recently proposed glibc regex merge
18249         This patch is inspired by Adhemerval Zanella's recent proposal
18250         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
18251         to merge glibc and Gnulib regex.  It aims to simplify the merge on
18252         the glibc side, without keeping Gnulib portable.
18253         * lib/regex.h: Fix a problem with glibc installed-header checking,
18254         as follows:
18255         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
18256         (_Restrict_arr_): Prefer __restrict_arr if defined,
18257         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
18258         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
18259         (build_wcs_upper_buffer, build_upper_buffer)
18260         (re_string_translate_buffer, re_string_context_at):
18261         Move decls here from lib/regex_internal.h, for glibc internal tests.
18262         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18263         glibc BZ #18496.
18264         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
18265         -Wunused-value.
18266         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
18267         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18268         (bitset_mask): Now static inline, and without any __attribute__
18269         ((unused)) decoration, for glibc internal tests.
18271 2018-06-25  Bruno Haible  <bruno@clisp.org>
18273         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
18274         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
18275         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
18276         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
18277         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
18278         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
18279         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
18280         / -lthread / -lpth does not get optimized away by a preceding
18281         --as-needed option.
18283 2018-06-25  Bruno Haible  <bruno@clisp.org>
18285         Continue to use spaces for indentation, not tabs.
18286         * MODULES.html.sh: Untabify.
18287         * doc/regex.texi: Likewise.
18288         * lib/acl-internal.c: Likewise.
18289         * lib/dfa.c: Likewise.
18290         * lib/exclude.c: Likewise.
18291         * lib/exclude.h: Likewise.
18292         * lib/get-permissions.c: Likewise.
18293         * lib/gettimeofday.c: Likewise.
18294         * lib/parse-datetime.y: Likewise.
18295         * lib/pselect.c: Likewise.
18296         * lib/set-permissions.c: Likewise.
18297         * lib/time.in.h: Likewise.
18298         * m4/canonicalize.m4: Likewise.
18299         * m4/gc.m4: Likewise.
18300         * m4/gnulib-common.m4: Likewise.
18301         * m4/pthread_sigmask.m4: Likewise.
18302         * m4/vararrays.m4: Likewise.
18303         * tests/test-digest.h: Likewise.
18304         * tests/test-fcntl-h.c: Likewise.
18305         * tests/test-timespec.c: Likewise.
18306         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
18308 2018-06-25  Bruno Haible  <bruno@clisp.org>
18310         manywarnings: Don't enable -Wjump-misses-init warnings by default.
18311         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
18312         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
18313         -Wjump-misses-init.
18315 2018-06-25  Jim Meyering  <meyering@fb.com>
18317         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
18318         * lib/acl-internal.h (free_permission_context): Remove that
18319         attribute directive.  Otherwise, it would provoke this from GCC 9:
18320         lib/acl-internal.h:300:3: error: 'const' attribute on function \
18321           returning 'void' [-Werror=attributes]
18323 2018-06-24  Jim Meyering  <meyering@fb.com>
18325         parse-datetime: accommodate gcc-4.8.5
18326         Bruno Haible reported the build failure in
18327         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
18328         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
18329         on declaration of new local.
18331 2018-06-24  Bruno Haible  <bruno@clisp.org>
18333         af_alg: Fail in continuable manner on Linux/powerpc64le.
18334         Reported by Assaf Gordon <assafgordon@gmail.com>
18335         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
18336         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
18337         byte send() as the first round.
18339 2018-06-24  Bruno Haible  <bruno@clisp.org>
18341         af_alg: Fix state of stream after sendfile() succeeds.
18342         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18343         the stream is correctly positioned afterwards.
18344         * modules/crypto/af_alg (Depends-on): Add fflush.
18345         * tests/test-digest.h (test_digest_on_files): Verify that after the
18346         operation the stream is positioned at end of file.
18348 2018-06-24  Jim Meyering  <meyering@fb.com>
18350         canon-host: take GCC9's advice rather than ignoring warning
18351         Pádraig Brady suggested not to ignore this GCC9 advice.
18352         * lib/canon-host.c: Undo preceding change.
18353         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18355         parse-datetime.y: avoid spurious GCC 9 warning
18356         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18357         a function local prior to the first "goto fail".  The prior use would
18358         evoke this:
18359         parse-datetime.y: In function 'parse_datetime2':
18360         parse-datetime.y:1791:19: error: jump skips variable initialization \
18361           [-Werror=jump-misses-init]
18362         parse-datetime.y:2385:2: note: label 'fail' defined here
18363         parse-datetime.y:188:43: note: '({anonymous})' declared here
18364         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18366         canon-host.c: avoid spurious GCC 9 warning
18367         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18369         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18370         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18371         * m4/manywarnings.m4: Remove them.
18372         Otherwise, building coreutils, I would see this:
18373         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18374         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18375         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18376           which is also used by default
18377         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18379 2018-06-24  Bruno Haible  <bruno@clisp.org>
18381         af_alg tests: Add another test.
18382         * tests/test-digest.h (test_digest_on_files): Also check a large file
18383         with a skipped header.
18384         * tests/test-md5.c: Include macros.h.
18385         * tests/test-sha1.c: Likewise.
18386         * tests/test-sha256.c: Likewise.
18387         * tests/test-sha512.c: Likewise.
18388         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18389         * modules/crypto/sha1-tests (Files): Likewise.
18390         * modules/crypto/sha256-tests (Files): Likewise.
18391         * modules/crypto/sha512-tests (Files): Likewise.
18393 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18395         maint: clarify comments about sticky EOF
18396         * lib/af_alg.c: Be more direct that we can't
18397         assume stickiness of EOF for portability reasons.
18398         * lib/md5.c: Clarify that this isn't just a glibc issue.
18399         * lib/sha1.c: Likewise.
18400         * lib/sha256.c: Likewise.
18401         * lib/sha512.c: Likewise.
18403 2018-06-24  Bruno Haible  <bruno@clisp.org>
18405         af_alg: Comment and style improvements.
18406         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18407         (afalg_buffer, afalg_stream): Improve comments.
18409 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18411         af_alg: disable kernel hash functions by default
18412         All the kernel routines were seen to be significantly slower
18413         with these relatively recent components on an i3-2310M system:
18414           kernel-4.10.6-200.fc25.x86_64
18415           openssl-1.0.2m-1.fc25.x86_64
18416         sha1 was nearly twice as slow in the kernel for example.
18417         Further considerations why this should not be the default, at:
18418         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18420         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18421         * m4/gl-openssl.m4: Tweak accordingly.
18423 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18425         af_alg: avoid hangs when reading from streams
18426         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18427         and thus avoid doing a fread() when feof() is set.
18428         * lib/md5.c: Ensure feof() is called before fread().
18429         * lib/sha1.c: Likewise.
18430         * lib/sha256.c: Likewise.
18431         * lib/sha512.c: Likewise.
18433 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18435         af_alg: fix error handling when hash not returned
18436         * lib/af_alg.c (afalg_stream): Handle the case where we've
18437         successfully written data to the kernel in the read/write loop,
18438         but the kernel doesn't respond with the hash.
18440 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18442         libc-config: merge from glibc
18443         * lib/cdefs.h (__inline, __restrict):
18444         Copy from current glibc.  This fixes glibc bug 17721,
18445         which Gnulib had already fixed in a different way.
18446         (__nonnull): Lessen the distance from glibc by using the
18447         glibc definition inside an ‘#ifndef __nonnull’.
18448         (__attribute_nonstring__): New macro, copied from
18449         current glibc.
18450         * lib/libc-config.h (__attribute_nonstring__): New undef.
18451         (__restrict): Remove; workaround no longer needed.
18452         Keep the __inline workaround, though, as it uses HAVE___INLINE to
18453         support more compilers than the glibc __inline can.
18455 2018-06-24  Bruno Haible  <bruno@clisp.org>
18457         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
18458         * lib/mbrtowc.c (enc_t): New enum type.
18459         (locale_enc, locale_enc_cached): New functions.
18460         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
18461         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
18462         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
18463         instead.
18464         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
18465         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
18466         * modules/wcwidth (configure.ac): Invoke it.
18468 2018-06-24  Bruno Haible  <bruno@clisp.org>
18470         wchar-single: Fix test failure in wcwidth tests.
18471         * tests/test-wcwidth.c (main): If the wchar-single module is present,
18472         skip the tests in the C locale.
18474 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18476         crypto: mention --without-linux-crypto in --with-openssl --help
18477         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
18478         routines take precedence in --with-openssl help output.
18480 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18482         wchar-single: a new module to enable optimizations in wchar replacements
18483         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
18484         GNULIB_WCHAR_SINGLE is enabled.
18485         * lib/wcwidth.c (wcwidth): Likewise.
18487 2018-06-23  Bruno Haible  <bruno@clisp.org>
18489         libc-config: Fix conflict with FreeBSD include files.
18490         * lib/cdefs.h (__nonnull): Remove definition.
18491         * lib/libc-config.h (__nonnull): Remove undefinition.
18493 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18495         random_r: do not crash if state is unaligned
18496         Problem reported by Bruce Korb in:
18497         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
18498         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
18499         with 'cc -O2 -xmemalign=8s'.
18500         * lib/random_r.c: Include string.h, for memcpy.
18501         (get_int32, set_int32): New functions.
18502         (__srandom_r, __initstate_r, __setstate_r, __random_r):
18503         Use them to avoid assumption that state pointer is aligned.
18504         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
18505         * tests/test-random_r.c (test_failed): New function.
18506         (main): Use it, to test for alignment bugs.
18508         random_r: omit unnecessary include
18509         * lib/random_r.c: Do not include limits.h.
18511         random, random_r: merge from glibc
18512         * lib/random.c, lib/random_r.c:
18513         Include libc-config.h if !_LIBC, not config.h unilaterally.
18514         * lib/random.c:
18515         Do not include stdint.h or time.h; not needed.
18516         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
18517         (unsafe_state): Rename from generator.  All uses changed.
18518         Use C99-style initializers.
18519         (__random, __srandom, __initstate, __setstate): Rename from
18520         non-underscored version, but define it to non-underscored version
18521         on Gnulib.  Add a lock.
18522         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
18523         Likewise.
18524         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
18525         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
18526         (__srandom_r): Use int32_t instead of long int where int32_t will do.
18527         (__random_r): Use uint32 to fix glibc bug 17343.
18528         * modules/random, modules/random_r (Depends-on): Add libc-config.
18529         Depend on stdint only if $HAVE_RANDOM = 0.
18531 2018-06-19  Jim Meyering  <meyering@fb.com>
18533         README-release: also run any check-very-expensive tests
18534         * top/README-release: Adjust instructions so they run the
18535         check-very-expensive tests when there is such a target.
18537 2018-06-18  Bruno Haible  <bruno@clisp.org>
18539         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
18540         * m4/pthread_rwlock_rdlock.m4: Add comment.
18541         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
18542         are reader-preferring in glibc.
18543         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
18544         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
18546 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18548         crypto: use byteswap
18549         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
18550         * lib/sm3.c: Include <byteswap.h>.
18551         (SWAP): Use its macros rather than reinventing the wheel.
18552         * modules/crypto/md4, modules/crypto/md5-buffer:
18553         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
18554         * modules/crypto/sha512-buffer, modules/crypto/sm3:
18555         (Depends-on): Add byteswap.
18557 2018-06-17  Pádraig Brady  <P@draigBrady.com>
18559         gendocs.sh: fix support for legacy --texi2html
18560         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
18561         to the default makeinfo invocation.
18562         Reported by Bruce Korb
18564 2018-06-17  Bruno Haible  <bruno@clisp.org>
18566         gettext po infrastructure: Update from current gettext git.
18567         Reported by Akim Demaille <akim@lrde.epita.fr>.
18568         * build-aux/po/Makefile.in.in: Update from current gettext git.
18569         * build-aux/po/remove-potcdate.sin: Likewise.
18570         * config/srclist.txt: Temporarily disable sync for these files.
18572 2018-06-17  Bruno Haible  <bruno@clisp.org>
18574         getloadavg: Return 0 on Windows without Cygwin.
18575         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
18577 2018-06-17  Paul Smith  <psmith@gnu.org>
18579         getloadavg: Allow building on Windows without Cygwin
18580         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
18581         * m4/getloadavg.m4: Check for unistd.h.
18583 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
18585         Port crypto/af_alg to GCC 4.8.4
18586         Problem reported by Peter Simons in:
18587         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
18588         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18590 2018-05-27  Colin Watson  <cjwatson@debian.org>
18592         bootstrap: document source fetching in --help
18593         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18595 2018-04-09  Colin Watson  <cjwatson@debian.org>
18597         bootstrap: allow non-submodule control of gnulib
18598         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
18599         bootstrap.conf when fetching gnulib using "git clone" or via
18600         GNULIB_SRCDIR.
18602 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18604         crypto: omit stream ops Emacs doesn’t need
18605         * lib/md5.c (md5_stream):
18606         * lib/sha1.c (sha1_stream):
18607         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
18608         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18609         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
18610         defined.  Emacs needs this, as it does not use the stream
18611         operations and doesn’t need all the af_alg stuff we’ve recently
18612         added.  Perhaps a similar change is needed to the other crypto
18613         modules, but this patch changes only those needed for Emacs.
18614         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
18615         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
18616         New modules, used by Emacs.
18617         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18618         * modules/crypto/sha512: Rewrite to depend on the new modules.
18620 2018-05-20  Pádraig Brady  <P@draigBrady.com>
18622         fts: avoid a memory leak edge case
18623         * lib/fts.c (fts_open): Set an appropriate fts_level
18624         so that an immediate fts_close() will free the allocation.
18625         * tests/test-fts.c (fts_dealloc): Add a test case which
18626         will trigger under valgrind or address sanitizer.
18627         Fixes https://bugs.gnu.org/31439
18629 2018-05-20  Bruno Haible  <bruno@clisp.org>
18631         wcwidth tests: Fix link error.
18632         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
18633         $(LIBUNISTRING).
18635 2018-05-20  Bruno Haible  <bruno@clisp.org>
18637         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
18638         * modules/regex (Files): Add m4/glibc21.m4.
18640 2018-05-20  Bruno Haible  <bruno@clisp.org>
18642         localcharset: Optimize.
18643         * lib/localcharset.c (alias_table): Comment out no-op mappings for
18644         platforms where these don't matter. This reduces the table size,
18645         which in turn reduces the lookup time.
18647 2018-05-19  Bruno Haible  <bruno@clisp.org>
18649         localcharset: Map the locale encodings found in newer OSes.
18650         * lib/localcharset.c (alias_table): Add mapping for locale encodings
18651         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
18652         IRIX 6.5, Minix 3.3.
18653         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
18655 2018-05-19  Bruno Haible  <bruno@clisp.org>
18657         localcharset: Move mapping tables into the code. Use a binary search.
18658         * lib/localcharset.h: Document the GNU canonical names for character
18659         encodings here.
18660         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18661         relocatable.h, configmake.h.
18662         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18663         macros.
18664         (charset_aliases): Remove variable.
18665         (get_charset_aliases): Remove function.
18666         (struct table_entry): New type.
18667         (alias_table, locale_table): New constants.
18668         (locale_charset): Use the alias_table or locale_table to get the
18669         canonicalized encoding name.
18670         * lib/config.charset: Remove file.
18671         * lib/ref-add.sin: Remove file.
18672         * lib/ref-del.sin: Remove file.
18673         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18674         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18675         * modules/localcharset (Notice): Remove.
18676         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18677         glibc21.m4.
18678         (Depends-on): Remove configmake.
18679         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18680         (Makefile.am): Simplify.
18681         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18683 2018-05-19  Bruno Haible  <bruno@clisp.org>
18685         localcharset: Add a manual test.
18686         * tests/test-localcharset.c: New file.
18687         * modules/localcharset-tests: New file.
18689 2018-05-19  Bruno Haible  <bruno@clisp.org>
18691         localcharset: Remove support for obsolete platforms.
18692         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18693         Mac OS X 10.2. Comment out dubious entry for Solaris.
18695 2018-05-19  Jim Meyering  <meyering@fb.com>
18697         gnupload: adjust comment
18698         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18699         more likely we'll remove the just-added code in a year or two.
18701 2018-05-19  Bruno Haible  <bruno@clisp.org>
18703         gnupload: Fix "gpg-agent is not available in this session" error.
18704         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18706 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18708         crypto/af_alg: fix --help
18709         * m4/af_alg.m4: Avoid spurious newline in --help output.
18711 2018-05-13  Bruno Haible  <bruno@clisp.org>
18713         nl_langinfo: Fix compilation error on Android.
18714         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18715         INT_CURR_SYMBOL, etc. only if these items are defined.
18717 2018-05-13  Bruno Haible  <bruno@clisp.org>
18719         truncate: Fix compilation error on Android.
18720         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18721         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18722         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18723         HAVE_TRUNCATE.
18724         * modules/truncate: Likewise.
18725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18726         not HAVE_TRUNCATE.
18727         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18728         HAVE_TRUNCATE.
18729         * doc/posix-functions/truncate.texi: Mention the issue.
18731 2018-05-13  Bruno Haible  <bruno@clisp.org>
18733         pthread: Fix compilation error on Android.
18734         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18735         recursive inclusion of this file.
18737 2018-05-13  Bruno Haible  <bruno@clisp.org>
18739         posix_spawn: Fix compilation error on Android.
18740         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18741         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18742         (posix_spawn_file_actions_t): Consider also the case
18743         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18745 2018-05-13  Bruno Haible  <bruno@clisp.org>
18747         tsearch: Move from K&R C to ANSI C.
18748         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18750 2018-05-13  Bruno Haible  <bruno@clisp.org>
18752         tsearch: Fix compilation error on Android.
18753         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18754         is 0.
18755         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18756         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18757         GNULIB_defined_tsearch is true.
18758         (twalk): Define only if GNULIB_defined_twalk is true.
18759         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18760         is 0.
18761         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18762         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18763         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18765 2018-05-13  Bruno Haible  <bruno@clisp.org>
18767         imaxdiv: Fix compilation error on Android.
18768         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18769         is not defined.
18770         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18771         HAVE_DECL_IMAXDIV, is 0.
18772         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18773         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18775 2018-05-13  Bruno Haible  <bruno@clisp.org>
18777         Support selective inclusion mechanism of recent mingw.org header files.
18778         Reported by Eli Zaretskii <eliz@gnu.org>.
18779         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18780         __need_ssize_t, or __need_time_t is defined, just include the system's
18781         <sys/types.h>.
18782         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18783         include the system's <locale.h>.
18785 2018-05-13  Bruno Haible  <bruno@clisp.org>
18787         Avoid compilation error due to 'mmap' on Android.
18788         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18789         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18790         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18791         Undefine on Android.
18793 2018-05-13  Bruno Haible  <bruno@clisp.org>
18795         Add cross-compilation guesses for Linux systems without glibc.
18796         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18798         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18799         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18800         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18801         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18802         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18803         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18804         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18805         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18806         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18807         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18808         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18809         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18810         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18811         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18812         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18813         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18815 2018-05-13  Bruno Haible  <bruno@clisp.org>
18817         getpagesize: Fix compilation error on Android.
18818         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18819         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18820         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18821         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18822         HAVE_GETPAGESIZE accordingly.
18823         * modules/getcwd (Files): Add m4/getpagesize.m4.
18825 2018-05-13  Bruno Haible  <bruno@clisp.org>
18827         tcgetsid: Fix compilation error on Android.
18828         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18829         AC_CHECK_FUNC.
18831 2018-05-13  Bruno Haible  <bruno@clisp.org>
18833         getpass: Fix configure test for Android.
18834         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18835         AC_CHECK_FUNC.
18837 2018-05-13  Bruno Haible  <bruno@clisp.org>
18839         ffs: Fix compilation error on Android.
18840         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18842 2018-05-13  Bruno Haible  <bruno@clisp.org>
18844         mkfifo: Fix compilation error on Android.
18845         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18846         AC_CHECK_FUNC.
18848 2018-05-13  Bruno Haible  <bruno@clisp.org>
18850         c-strtod: Fix configure test for Android.
18851         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18852         AC_CHECK_FUNC.
18854 2018-05-13  Bruno Haible  <bruno@clisp.org>
18856         random: Fix compilation error on Android.
18857         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18858         AC_CHECK_FUNC.
18860 2018-05-13  Bruno Haible  <bruno@clisp.org>
18862         grantpt: Fix compilation error on Android.
18863         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18864         AC_CHECK_FUNC.
18866 2018-05-13  Bruno Haible  <bruno@clisp.org>
18868         stdioext: Fix compilation errors with newer Android headers.
18869         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18870         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18871         fallbacks for Android.
18872         * lib/fpending.c: Update comments.
18873         * lib/fpurge.c: Likewise.
18874         * lib/freadable.h: Likewise.
18875         * lib/freadable.c: Likewise.
18876         * lib/freadahead.c: Likewise.
18877         * lib/freading.h: Likewise.
18878         * lib/freadptr.c: Likewise.
18879         * lib/fseterr.c: Likewise.
18880         * lib/fwritable.h: Likewise.
18881         * lib/fwritable.c: Likewise.
18882         * lib/fwriting.h: Likewise.
18883         * lib/fwriting.c: Likewise.
18885 2018-05-13  Bruno Haible  <bruno@clisp.org>
18887         doc: Add info about Android versions 2.0 to 8.1.
18888         * doc/**/*.texi: Add info about functions in all released versions of
18889         Bionic.
18891 2018-05-12  Bruno Haible  <bruno@clisp.org>
18893         fseeko: On mingw, don't use the hidden function _fseeki64.
18894         Reported by Eli Zaretskii <eliz@gnu.org>.
18895         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18896         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18898 2018-05-12  Bruno Haible  <bruno@clisp.org>
18900         glob: Choose 'dirent_type' in a way that works better on mingw.
18901         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18902         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18904 2018-05-12  Bruno Haible  <bruno@clisp.org>
18906         execute, spawn-pipe: Avoid warning about redefining 'close'.
18907         Reported by Eli Zaretskii <eliz@gnu.org>.
18908         * lib/execute.c: Undefine 'close' before redefining it.
18909         * lib/spawn-pipe.c: Likewise.
18911 2018-05-12  Bruno Haible  <bruno@clisp.org>
18913         nanosleep: Avoid test failure on mingw when it has nanosleep.
18914         Reported by Eli Zaretskii <eliz@gnu.org>.
18915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18916         If it does not exist, use a simpler test program that does not call
18917         alarm().
18919 2018-05-10  Bruno Haible  <bruno@clisp.org>
18921         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18922         Reported by Devin Hussey <husseydevin@gmail.com>.
18923         Based on a patch by Paul Eggert.
18924         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18925         as witness of libpthread.
18926         * lib/glthread/cond.h (pthread_in_use): Likewise.
18927         * lib/glthread/thread.h (pthread_in_use): Likewise.
18928         * lib/glthread/tls.h (pthread_in_use): Likewise.
18930 2018-05-10  Bruno Haible  <bruno@clisp.org>
18932         cond tests: Fix compilation error on Solaris.
18933         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18934         macro.
18936 2018-05-10  Bruno Haible  <bruno@clisp.org>
18938         doc: Add partial info about Android 4.3.
18939         * doc/*-functions/*.texi: Add info about functions that were added
18940         to Bionic between Android 4.3 and Android 9.0.
18942 2018-05-10  Bruno Haible  <bruno@clisp.org>
18944         doc: Add info about Android 9.0.
18945         * doc/**/*.texi: Add info about functions and headers in Bionic from
18946         Android 9.0.
18948 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18950         af_alg: fix my typo in afalg_buffer
18951         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18952         (afalg_stream): Simplify and avoid the need for a runtime test
18953         at the end.
18955         af_alg: recover better from crypto failures
18956         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18957         input stream is seekable, by repositioning the stream back to
18958         where it was, possibly by just calling sendfile with an offset
18959         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18960         cases, which lets our callers try again with user-mode code.
18961         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18962         instead of on fflush and lseek.
18964         af_alg: distiguish I/O errors better
18965         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18966         not -EIO, if it’s OK for the caller to try again with user-mode code.
18967         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18968         some other error number) if fflush fails, as the caller should not
18969         try again that case.
18971         af_alg: avoid gotos
18972         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18973         gotos, as they were a source of unreliability and made the code a
18974         bit harder to follow.
18976         af_alg: don’t leak file descriptors into children
18977         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18978         This code should be compiled only on recent GNU/Linux platforms
18979         so we shouldn’t have to also depend on the accept4 module.
18981         af_alg: coalesce socket creation
18982         * lib/af_alg.c (alg_socket): New function.
18983         (afalg_buffer, afalg_stream): Use it.  This avoids some
18984         code duplication and gotos.
18986         af_alg: fix file descriptor leak
18987         * lib/af_alg.c (afalg_stream): Close leak.
18989         af_alg: Pacify --enable-gcc-warnings on GCC 8
18990         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18991         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18993 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18995         af_alg: Pacify --enable-gcc-warnings
18996         Problem reported by Assaf Gordon in:
18997         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18998         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18999         gcc -Wjump-misses-init.
19000         * lib/sha512.c (shaxxx_stream): Now static.
19002 2018-05-06  Bruno Haible  <bruno@clisp.org>
19004         af_alg: Add ability to use Linux kernel crypto API on data in memory.
19005         * lib/af_alg.h (afalg_buffer): New declaration.
19006         * lib/af_alg.c (afalg_buffer): New function.
19008 2018-05-06  Bruno Haible  <bruno@clisp.org>
19010         af_alg: Avoid warnings.
19011         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
19012         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
19014 2018-05-06  Bruno Haible  <bruno@clisp.org>
19016         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
19017         * tests/bench-digest.h: New file.
19018         * tests/bench-md5.c: New file.
19019         * tests/bench-sha1.c: New file.
19020         * tests/bench-sha224.c: New file.
19021         * tests/bench-sha256.c: New file.
19022         * tests/bench-sha384.c: New file.
19023         * tests/bench-sha512.c: New file.
19024         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
19025         tests/bench-digest.h.
19026         (Depends-on): Add getrusage, gettimeofday.
19027         (Makefile.am): Add variables to build bench-md5.
19028         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
19029         tests/bench-digest.h.
19030         (Depends-on): Add getrusage, gettimeofday.
19031         (Makefile.am): Add variables to build bench-sha1.
19032         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
19033         tests/bench-sha256.c, tests/bench-digest.h.
19034         (Depends-on): Add getrusage, gettimeofday.
19035         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
19036         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
19037         tests/bench-sha512.c, tests/bench-digest.h.
19038         (Depends-on): Add getrusage, gettimeofday.
19039         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
19041 2018-05-06  Bruno Haible  <bruno@clisp.org>
19043         af_alg: Fix a resource leak.
19044         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
19045         New local variable 'result'.
19047 2018-05-06  Bruno Haible  <bruno@clisp.org>
19049         af_alg: Fix bug with streams that are not at position 0.
19050         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
19051         assume that the stream is positioned at position 0.
19052         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
19053         of the stream.
19054         * lib/md5.h (md5_stream): Likewise.
19055         * lib/sha1.h (sha1_stream): Likewise.
19056         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
19057         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
19058         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
19060         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
19061         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
19062         stream that is not positioned at the beginning.
19064 2018-05-06  Bruno Haible  <bruno@clisp.org>
19066         af_alg: Add configure option to enable/disable use of Linux crypto API.
19067         Suggested by Assaf Gordon <assafgordon@gmail.com>.
19068         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
19069         USE_LINUX_CRYPTO_API.
19070         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
19071         * lib/af_alg.c: Likewise.
19073 2018-05-06  Bruno Haible  <bruno@clisp.org>
19075         Followup to 'af_alg: New module.'.
19076         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
19077         * modules/crypto/sha1 (Depends-on): Likewise.
19078         * modules/crypto/sha256 (Depends-on): Likewise.
19079         * modules/crypto/sha512 (Depends-on): Likewise.
19081 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19083         crypto/{md5,sha1,sha256,sha512}: simplify
19084         * lib/md5.c (md5_stream):
19085         * lib/sha1.c (sha1_stream):
19086         * lib/sha256.c (shaxxx_stream):
19087         Simplify, partly by assuming C99.
19088         * lib/sha256.c (shaxxx_stream):
19089         New function, which implements both sha256 and sha224.
19090         Simplify, partly by assuming C99.
19091         (sha256_stream, sha224_stream):
19092         Use it to avoid code duplication, removing a FIXME.
19093         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19094         Likewise.
19096         af_alg: Improve comments.
19097         * lib/af_alg.h: Use imperatives and tighten up wording.
19099 2018-05-05  Bruno Haible  <bruno@clisp.org>
19101         af_alg: Improve comments.
19102         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
19104 2018-05-05  Bruno Haible  <bruno@clisp.org>
19106         af_alg: New module.
19107         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
19108         * lib/af_alg.c: Include "af_alg.h" before the other header files.
19109         * lib/md5.c: Include "af_alg.h" unconditionally.
19110         (md5_stream): Invoke afalg_stream unconditionally.
19111         * lib/sha1.c: Include "af_alg.h" unconditionally.
19112         (sha1_stream): Invoke afalg_stream unconditionally.
19113         * lib/sha256.c: Include "af_alg.h" unconditionally.
19114         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
19115         * lib/sha512.c: Include "af_alg.h" unconditionally.
19116         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
19117         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
19118         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
19119         * modules/crypto/af_alg: New file.
19120         * modules/crypto/md5 (Files): Remove files that are now in the
19121         'crypto/af_alg' module.
19122         (Depends-on): Add crypto/af_alg.
19123         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19124         (Makefile.am): Don't mention af_alg.c here.
19125         * modules/crypto/sha1 (Files): Remove files that are now in the
19126         'crypto/af_alg' module.
19127         (Depends-on): Add crypto/af_alg.
19128         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19129         (Makefile.am): Don't mention af_alg.c here.
19130         * modules/crypto/sha256 (Files): Remove files that are now in the
19131         'crypto/af_alg' module.
19132         (Depends-on): Add crypto/af_alg.
19133         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19134         (Makefile.am): Don't mention af_alg.c here.
19135         * modules/crypto/sha512 (Files): Remove files that are now in the
19136         'crypto/af_alg' module.
19137         (Depends-on): Add crypto/af_alg.
19138         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19139         (Makefile.am): Don't mention af_alg.c here.
19141 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19143         crypto tests: pacify GCC
19144         * tests/test-digest.h (test_digest_on_files):
19145         Don’t assume digest size fits in int (!).
19147         af_alg: minor style improvements
19148         * lib/af_alg.c (afalg_stream): Prefer C99 style
19149         decl-after-statement, since we’re already assuming C99.  Clarify
19150         by strengthening the bind test and omit unnecessary assignment.
19152 2018-05-05  Bruno Haible  <bruno@clisp.org>
19154         af_alg: Fix bug on empty files.
19155         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
19156         stream is empty.
19158 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19160         sys-limits.h: new file for crypto and safe I/O
19161         * lib/af_alg.c: Include sys-limits.h.
19162         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
19163         (afalg_stream): Also reject negative sizes for sendfile; they
19164         should not happen and the code is a bit cleaner and faster this way.
19165         * lib/safe-read.c: Include sys-limits.h.
19166         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
19167         * lib/sys-limits.h: New file, with values and commentary derived
19168         from the old safe-read.c and from GNU Emacs sysdep.c.
19169         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19170         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
19171         Add lib/sys-limits.h to Files section.
19173 2018-05-05  Bruno Haible  <bruno@clisp.org>
19175         af_alg: Improve function signature.
19176         * lib/af_alg.h (afalg_stream): Swap second and third argument.
19177         * lib/af_alg.c (afalg_stream): Likewise.
19178         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
19180 2018-05-05  Bruno Haible  <bruno@clisp.org>
19182         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
19183         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
19184         * modules/crypto/sha1 (Depends-on): Likewise.
19185         * modules/crypto/sha256 (Depends-on): Likewise.
19186         * modules/crypto/sha512 (Depends-on): Likewise.
19188 2018-05-05  Bruno Haible  <bruno@clisp.org>
19190         crypto/{md5,sha1,sha256,sha512}: Fix module description.
19191         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
19192         * modules/crypto/sha1 (Depends-on): Likewise.
19193         * modules/crypto/sha256 (Depends-on): Likewise.
19194         * modules/crypto/sha512 (Depends-on): Likewise.
19196 2018-05-05  Bruno Haible  <bruno@clisp.org>
19198         af_alg: Add documentation.
19199         * lib/af_alg.h: Add comments.
19201 2018-05-05  Bruno Haible  <bruno@clisp.org>
19203         sha512: Add tests.
19204         * tests/test-sha512.c: New file.
19205         * modules/crypto/sha512-tests: New file.
19207 2018-05-05  Bruno Haible  <bruno@clisp.org>
19209         sha256: Add tests.
19210         * tests/test-sha256.c: New file.
19211         * modules/crypto/sha256-tests: New file.
19213 2018-05-05  Bruno Haible  <bruno@clisp.org>
19215         sha1 tests: Add test for sha1_stream.
19216         * tests/test-sha1.c: Include test-digest.h.
19217         (main): Invoke test_digest_on_files on 'sha1_stream'.
19218         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
19220 2018-05-05  Bruno Haible  <bruno@clisp.org>
19222         md5 tests: Add test for md5_stream.
19223         * tests/test-digest.h: New file.
19224         * tests/test-md5.c: Include test-digest.h.
19225         (main): Invoke test_digest_on_files on 'md5_stream'.
19226         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
19228 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19230         md5sum: Use AF_ALG when available.
19231         * lib/md5.c: Include af_alg.h.
19232         (md5_stream): Use afalg_stream when available.
19233         * modules/crypto/md5 (Files): Add the af_alg files.
19234         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19235         (Makefile.am): Add af_alg.c.
19237 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19239         sha512sum: Use AF_ALG when available.
19240         * lib/sha512.c: Include af_alg.h.
19241         (sha512_stream, sha384_stream): Use afalg_stream when available.
19242         * modules/crypto/sha512 (Files): Add the af_alg files.
19243         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19244         (Makefile.am): Add af_alg.c.
19246 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19248         sha256sum: Use AF_ALG when available.
19249         * lib/sha256.c: Include af_alg.h.
19250         (sha256_stream, sha224_stream): Use afalg_stream when available.
19251         * modules/crypto/sha256 (Files): Add the af_alg files.
19252         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19253         (Makefile.am): Add af_alg.c.
19255 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19257         sha1sum: Use AF_ALG when available.
19258         * lib/af_alg.h: New file.
19259         * lib/af_alg.c: New file.
19260         * lib/sha1.c: Include af_alg.h.
19261         (sha1_stream): Use afalg_stream when available.
19262         * m4/linux-if-alg.m4: New file.
19263         * modules/crypto/sha1 (Files): Add the new files.
19264         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19265         (Makefile.am): Add af_alg.c.
19267 2018-05-05  Bruno Haible  <bruno@clisp.org>
19269         all: Replace more http URLs by https URLs.
19270         * lib/localename.c: Use https: URL.
19271         * lib/timespec.h: Likewise.
19273 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19275         maint: port more modules to GCC 8
19276         * lib/dirname.h (base_name):
19277         * lib/exclude.h (new_exclude):
19278         * lib/xstrndup.h (xstrndup):
19279         Add malloc attribute.
19280         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
19281         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
19282         This pacifies GCC 8.
19283         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19284         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
19286 2018-05-03  Bruno Haible  <bruno@clisp.org>
19288         Simplify code. Drop support for Borland C++ on Windows.
19289         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
19290         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
19291         'defined _WIN32'.
19292         * lib/canonicalize-lgpl.c: Likewise.
19293         * lib/classpath.c: Likewise.
19294         * lib/clean-temp.c: Likewise.
19295         * lib/csharpexec.c: Likewise.
19296         * lib/ctime.c: Likewise.
19297         * lib/dosname.h: Likewise.
19298         * lib/dup2.c: Likewise.
19299         * lib/errno.in.h: Likewise.
19300         * lib/error.c: Likewise.
19301         * lib/euidaccess.c: Likewise.
19302         * lib/execute.c: Likewise.
19303         * lib/fcntl.in.h: Likewise.
19304         * lib/fcntl.c: Likewise.
19305         * lib/filename.h: Likewise.
19306         * lib/findprog.c: Likewise.
19307         * lib/flock.c: Likewise.
19308         * lib/fopen.c: Likewise.
19309         * lib/freopen.c: Likewise.
19310         * lib/fstat.c: Likewise.
19311         * lib/fsync.c: Likewise.
19312         * lib/gc-gnulib.c: Likewise.
19313         * lib/get-rusage-data.c: Likewise.
19314         * lib/getaddrinfo.c: Likewise.
19315         * lib/getdelim.c: Likewise.
19316         * lib/getdtablesize.c: Likewise.
19317         * lib/gethostname.c: Likewise.
19318         * lib/getlogin.c: Likewise.
19319         * lib/getlogin_r.c: Likewise.
19320         * lib/getopt.c: Likewise.
19321         * lib/getpagesize.c: Likewise.
19322         * lib/getpass.c: Likewise.
19323         * lib/getrusage.c: Likewise.
19324         * lib/gettimeofday.c: Likewise.
19325         * lib/glob.c: Likewise.
19326         * lib/inttypes.in.h: Likewise.
19327         * lib/isapipe.c: Likewise.
19328         * lib/javaexec.c: Likewise.
19329         * lib/link.c: Likewise.
19330         * lib/localcharset.c: Likewise.
19331         * lib/localename.h: Likewise.
19332         * lib/localename.c: Likewise.
19333         * lib/localtime.c: Likewise.
19334         * lib/lseek.c: Likewise.
19335         * lib/mbsinit.c: Likewise.
19336         * lib/mkdir.c: Likewise.
19337         * lib/msvc-nothrow.h: Likewise.
19338         * lib/nanosleep.c: Likewise.
19339         * lib/nl_langinfo.c: Likewise.
19340         * lib/nonblocking.c: Likewise.
19341         * lib/nproc.c: Likewise.
19342         * lib/open.c: Likewise.
19343         * lib/openpty.c: Likewise.
19344         * lib/pathmax.h: Likewise.
19345         * lib/pipe-filter-aux.c: Likewise.
19346         * lib/pipe-filter-gi.c: Likewise.
19347         * lib/pipe-filter-ii.c: Likewise.
19348         * lib/pipe.c: Likewise.
19349         * lib/pipe2.c: Likewise.
19350         * lib/poll.c: Likewise.
19351         * lib/popen.c: Likewise.
19352         * lib/posix_openpt.c: Likewise.
19353         * lib/printf-parse.c: Likewise.
19354         * lib/progreloc.c: Likewise.
19355         * lib/putenv.c: Likewise.
19356         * lib/read.c: Likewise.
19357         * lib/relocatable.c: Likewise.
19358         * lib/rename.c: Likewise.
19359         * lib/same-inode.h: Likewise.
19360         * lib/secure_getenv.c: Likewise.
19361         * lib/select.c: Likewise.
19362         * lib/sethostname.c: Likewise.
19363         * lib/setlocale.c: Likewise.
19364         * lib/sigaction.c: Likewise.
19365         * lib/sigprocmask.c: Likewise.
19366         * lib/sleep.c: Likewise.
19367         * lib/spawn-pipe.h: Likewise.
19368         * lib/spawn-pipe.c: Likewise.
19369         * lib/spawni.c: Likewise.
19370         * lib/stat-time.h: Likewise.
19371         * lib/stat-w32.c: Likewise.
19372         * lib/stat.c: Likewise.
19373         * lib/stdio.in.h: Likewise.
19374         * lib/stdio-impl.h: Likewise.
19375         * lib/stdio-read.c: Likewise.
19376         * lib/stdio-write.c: Likewise.
19377         * lib/stdlib.in.h: Likewise.
19378         * lib/strerror_r.c: Likewise.
19379         * lib/strftime-fixes.c: Likewise.
19380         * lib/sys_stat.in.h: Likewise.
19381         * lib/sys_types.in.h: Likewise.
19382         * lib/sys_wait.in.h : Likewise.
19383         * lib/system-quote.h: Likewise.
19384         * lib/system-quote.c: Likewise.
19385         * lib/tmpdir.c: Likewise.
19386         * lib/tzset.c: Likewise.
19387         * lib/uname.c: Likewise.
19388         * lib/unistd.in.h: Likewise.
19389         * lib/utime.in.h: Likewise.
19390         * lib/utime.c: Likewise.
19391         * lib/utimecmp.c: Likewise.
19392         * lib/utimens.c: Likewise.
19393         * lib/vasnprintf.c: Likewise.
19394         * lib/vma-iter.h: Likewise.
19395         * lib/vma-iter.c: Likewise.
19396         * lib/wait-process.c: Likewise.
19397         * lib/wcsftime.c: Likewise.
19398         * lib/wctype.in.h: Likewise.
19399         * lib/write.c: Likewise.
19400         * tests/nap.h: Likewise.
19401         * tests/test-cloexec.c: Likewise.
19402         * tests/test-dup-safer.c: Likewise.
19403         * tests/test-dup2.c: Likewise.
19404         * tests/test-dup3.c: Likewise.
19405         * tests/test-fcntl.c: Likewise.
19406         * tests/test-get-rusage-data.c: Likewise.
19407         * tests/test-getaddrinfo.c: Likewise.
19408         * tests/test-getlogin.h: Likewise.
19409         * tests/test-isatty.c: Likewise.
19410         * tests/test-localename.c: Likewise.
19411         * tests/test-mbrtowc-w32.c: Likewise.
19412         * tests/test-nonblocking.c: Likewise.
19413         * tests/test-nonblocking-pipe-main.c: Likewise.
19414         * tests/test-nonblocking-socket-main.c: Likewise.
19415         * tests/test-nonblocking-socket.h: Likewise.
19416         * tests/test-pipe.c: Likewise.
19417         * tests/test-pipe2.c: Likewise.
19418         * tests/test-poll.c: Likewise.
19419         * tests/test-pthread_sigmask1.c: Likewise.
19420         * tests/test-select.h: Likewise.
19421         * tests/test-sethostname2.c: Likewise.
19422         * tests/test-sigprocmask.c: Likewise.
19423         * tests/test-spawn-pipe-child.c: Likewise.
19424         * tests/test-stat-time.c: Likewise.
19425         * tests/test-system-quote-main.c: Likewise.
19426         * tests/test-utimens-common.h: Likewise.
19427         * tests/test-wcrtomb-w32.c: Likewise.
19428         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19429         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19430         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19431         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19432         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19433         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19434         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19435         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19436         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19437         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19438         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19439         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19440         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19441         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19442         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19443         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19445 2018-05-02  Bruno Haible  <bruno@clisp.org>
19447         localename: Fix test failures on mingw.
19448         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19449         native Windows.
19450         (gl_locale_name_posix): Move code specific to native Windows here.
19451         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19452         Accept result without charset suffix, as it appears on mingw.
19454 2018-04-28  Paul Smith  <psmith@gnu.org>
19456         bootstrap: Avoid gnulib operations if not needed
19457         * build-aux/bootstrap: Remove unused variable gnulib_mk.
19458         Set $gnulib_extra_files early so it can be overridden in .conf.
19459         Remove redundant --import flag from $gnulib_tool_options.
19460         Set $use_gnulib to false if no gnulib modules or files are needed.
19461         If $use_gnulib is false, don't do anything related to gnulib.
19462         A lot of this is just whitespace (indentation) changes.
19464 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19466         manywarnings: port to GCC 8.0
19467         * build-aux/gcc-warning.spec: Add -Wcatch-value,
19468         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
19469         fact that the GCC help message now mentions operands for
19470         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
19471         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
19472         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
19473         and -Wunused-const-variable.
19474         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
19475         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
19476         -Wmissing-attributes, -Wmultistatement-macros,
19477         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
19478         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
19480 2018-04-24  Bruno Haible  <bruno@clisp.org>
19482         sys_socket: Make SO_REUSEPORT available across platforms.
19483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19484         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
19485         * doc/posix-headers/sys_socket.texi: Mention the issue.
19486         * tests/test-poll.c (SO_REUSEPORT): Remove.
19487         * tests/test-select.h: Include <sys/socket.h>.
19488         (SO_REUSEPORT): Remove.
19489         * modules/select-tests (Depends-on): Add 'sys_socket'.
19491 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
19493         localcharset: short-circuit the search for an alias on a Mac
19494         * lib/localcharset.c (get_charset_aliases): Add a tautological
19495         UTF-8 entry to speed up the search for this case.
19496         Most machines default to a UTF-8 locale nowadays, so begin the
19497         list of aliases with a dummy UTF-8 entry so it will be found
19498         immediately and a time-consuming search through the rest of
19499         the list is avoided.
19501 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19503         fts: add comment
19504         * lib/fts.c (fts_build): Explain why ==, not >.
19505         See remark by Bernhard Voelker in:
19506         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
19508         fts: fix bug in find across filesystems
19509         This fixes a bug I introduced last summer.
19510         Problem reported by Kamil Dudka in:
19511         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
19512         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
19513         (leaf_optimization):
19514         New arg for file descriptor.  All callers changed.
19515         (fts_build): Check for whether inodes should be sorted
19516         before closing the directory.
19518 2018-04-07  Bruno Haible  <bruno@clisp.org>
19520         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
19521         Reported by Genki Sky <sky@genki.is>.
19522         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
19523         version 0.9.10 or newer.
19524         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
19525         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
19526         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
19527         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
19528         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
19530 2018-04-07  Bruno Haible  <bruno@clisp.org>
19532         execute: Update comment.
19533         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
19535 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19537         fts: treat CIFS like NFS
19538         Problem reported by Kamil Dudka in:
19539         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
19540         * lib/fts.c (S_MAGIC_CIFS): New macro.
19541         (dirent_inode_sort_may_be_useful, leaf_optimization):
19542         Treat CIFS like NFS.
19544 2018-03-28  Bruno Haible  <bruno@clisp.org>
19546         c-stack: Fix possible build failure on some platforms.
19547         * lib/c-stack.c (die): Define whenever this function is referenced.
19549 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
19551         time_rz: fix workaround for Mac OS X 10.6 infloop
19552         Problems reported by Charles A. Roelli (Bug#27736#117).
19553         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
19554         Also, discard output, which clutters the 'configure' log.
19556 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
19558         havelib: port to Solaris 10 /bin/sh
19559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
19560         instead of '! test EXPR'.
19562 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19564         time_rz: work around Mac OS X 10.6 infloop
19565         * doc/posix-functions/localtime.texi:
19566         * doc/posix-functions/localtime_r.texi: Mention the bug.
19567         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
19568         better to fix localtime and localtime_r instead, but that would be
19569         more work and is not needed to fix the Emacs problem.
19570         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
19572 2018-03-24  Jim Meyering  <meyering@fb.com>
19574         test-version-etc.sh: don't use diff directly: use init.sh's compare
19575         We'd rather not sacrifice readable "diff -u" output even for
19576         "diff -c" output (not supported by busybox) or for even less
19577         readable ed-style "diff" output.  So use init.sh's compare function
19578         * tests/test-version-etc.sh: Source init.sh and add "." to path.
19579         Remove "./" from invocation of test-version-etc, so we use path.
19580         And s/diff/compare/.
19581         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
19582         to get init.sh.
19583         Prompted by Eric Blake's comments in
19584         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
19586 2018-03-24  Bruno Haible  <bruno@clisp.org>
19588         javacomp-script, javacomp: Add support for Java 10.
19589         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19590         target-version 10.
19591         * lib/javaversion.h: Update comments.
19592         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19593         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19594         TARGET_VERSION_BOUND, target_version_index,
19595         corresponding_classfile_version): Accept source_version 10 and
19596         target_version 10.
19597         * lib/javacomp.h: Update comments accordingly.
19599 2018-03-24  Bruno Haible  <bruno@clisp.org>
19601         javacomp-script, javacomp: Update comments.
19602         * m4/javacomp.m4: Update comments regarding gcj.
19603         * lib/javacomp.h: Likewise.
19605 2018-03-24  Bruno Haible  <bruno@clisp.org>
19607         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
19608         * lib/javaversion.h: Update comments.
19609         * lib/javacomp.h: Likewise.
19610         * lib/javacomp.c (default_target_version, source_version_index,
19611         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
19612         "1.9".
19613         (TARGET_VERSION_BOUND): Bump to 9.
19614         (target_version_index, corresponding_classfile_version): Recognize "9"
19615         instead of "1.9".
19616         (get_source_version_for_javac): New function.
19617         (is_envjavac_nongcj_usable, is_javac_usable): Add
19618         source_version_for_javac argument.
19619         (compile_java_class): Determine and pass source_version_for_javac.
19620         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
19621         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
19622         appropriate.
19624 2018-03-23  Jim Meyering  <meyering@fb.com>
19626         test-version-etc.sh: port to diff without -c
19627         * tests/test-version-etc.sh: Don't use diff's -c option.
19628         This caused spurious test failure on Alpine Linux, which
19629         uses busybox's diff. Reported by Assaf Gordon in
19630         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
19632 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19634         c-stack: port to recent GCC build
19635         Problem reported by The Fireplace (Bug#30913).
19636         * lib/c-stack.c (die): Define only if used.
19638 2018-03-20  Bruno Haible  <bruno@clisp.org>
19640         euidaccess: Port to native Windows.
19641         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
19642         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
19644 2018-03-19  Bruno Haible  <bruno@clisp.org>
19646         javacomp: Add support for Java 7, 8, 9.
19647         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19648         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19649         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
19650         and target_version 1,7, 1.8, 1.9.
19651         * lib/javacomp.h: Update comments accordingly.
19653 2018-03-19  Bruno Haible  <bruno@clisp.org>
19655         javacomp-script: Add support for Java 9.
19656         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
19657         target-version 1.9.
19659 2018-03-16  Bruno Haible  <bruno@clisp.org>
19661         glob: Don't compile replacements on recent glibc systems.
19662         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19663         REPLACE_GLOB is 0, include the system's <glob.h> and use
19664         _GL_CXXALIAS_SYS.
19665         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19666         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19667         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19668         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19669         Remove snippet/warn-on-use.
19670         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19671         (Makefile.am): Create glob.h always. Update list of substitutions in
19672         glob.h. Don't depend on $(WARN_ON_USE_H).
19674 2018-03-16  Bruno Haible  <bruno@clisp.org>
19676         glob: Fix link error on native Windows.
19677         * modules/glob (Depends-on): Add 'lstat'.
19679 2018-03-15  Bruno Haible  <bruno@clisp.org>
19681         glob: Fix compilation error in C++ mode.
19682         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19684 2018-03-15  Bruno Haible  <bruno@clisp.org>
19686         host-cpu-c-abi: Support for RISC-V CPU.
19687         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19688         riscv32 and riscv64 ABIs.
19689         References:
19690         https://github.com/riscv/riscv-toolchain-conventions
19691         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19692         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19694 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19696         fflush: be more paranoid about libio.h change
19697         Suggested by Eli Zaretskii in:
19698         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19699         * lib/fbufmode.c (fbufmode):
19700         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19701         (disable_seek_optimization, rpl_fflush):
19702         * lib/fpending.c (__fpending):
19703         * lib/fpurge.c (fpurge):
19704         * lib/freadable.c (freadable):
19705         * lib/freadahead.c (freadahead):
19706         * lib/freading.c (freading):
19707         * lib/freadptr.c (freadptr):
19708         * lib/freadseek.c (freadptrinc):
19709         * lib/fseeko.c (fseeko):
19710         * lib/fseterr.c (fseterr):
19711         * lib/fwritable.c (fwritable):
19712         * lib/fwriting.c (fwriting):
19713         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19715 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19717         maint: write-file-hooks -> before-save-hook
19718         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19719         it's time to use the recommended replacement.
19720         Problem reported by Glenn Morris in:
19721         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19722         * build-aux/announce-gen, build-aux/bootstrap:
19723         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19724         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19725         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19726         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19727         * build-aux/update-copyright, build-aux/useless-if-before-free:
19728         * build-aux/vc-list-files:
19729         Update hook usage for files where Gnulib is the canonical source.
19731 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19733         binary-io: pacify gcc -Wunused-parameter
19734         Problem reported by Reuben Thomas in:
19735         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19736         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19737         Use _GL_UNUSED where appropriate.
19739         fflush: adjust to glibc 2.28 libio.h removal
19740         Problem reported by Daniel P. Berrangé in:
19741         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19742         * lib/fbufmode.c (fbufmode):
19743         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19744         (disable_seek_optimization, rpl_fflush):
19745         * lib/fpending.c (__fpending):
19746         * lib/fpurge.c (fpurge):
19747         * lib/freadable.c (freadable):
19748         * lib/freadahead.c (freadahead):
19749         * lib/freading.c (freading):
19750         * lib/freadptr.c (freadptr):
19751         * lib/freadseek.c (freadptrinc):
19752         * lib/fseeko.c (fseeko):
19753         * lib/fseterr.c (fseterr):
19754         * lib/fwritable.c (fwritable):
19755         * lib/fwriting.c (fwriting):
19756         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19757         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19758         Define if not already defined.
19760 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19762         environ: fix link error on 32-bit Cygwin
19763         Problem reported for GNU Emacs by Ken Brown in:
19764         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19765         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19767 2018-02-24  Bruno Haible  <bruno@clisp.org>
19769         mbrtowc tests: Fix regression on glibc.
19770         Reported by Bernhard Voelker.
19771         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19773 2018-02-24  Bruno Haible  <bruno@clisp.org>
19775         striconveha, uniconv/*: Avoid test failures on musl libc.
19776         * tests/iconvsupport.c: New file.
19777         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19778         does not support the ISO-2022-JP-2 encoding.
19779         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19780         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19781         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19782         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19783         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19784         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19785         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19786         (Makefile.am): Link test-striconveha with iconvsupport.o.
19787         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19788         tests/iconvsupport.c.
19789         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19790         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19791         tests/iconvsupport.c.
19792         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19793         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19794         tests/iconvsupport.c.
19795         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19796         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19797         tests/iconvsupport.c.
19798         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19799         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19800         tests/iconvsupport.c.
19801         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19802         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19803         tests/iconvsupport.c.
19804         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19806 2018-02-24  Bruno Haible  <bruno@clisp.org>
19808         localename: Add support for musl libc.
19809         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19810         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19811         on Linux platforms which define NL_LOCALE_NAME.
19813 2018-02-24  Bruno Haible  <bruno@clisp.org>
19815         mbrtowc tests: Don't make assumptions about the charset the C locale.
19816         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19817         particular mapping in the C locale.
19819 2018-02-24  Bruno Haible  <bruno@clisp.org>
19821         ptsname_r: Don't expect that this function sets errno.
19822         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19823         from ptsname_r().
19824         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19826 2018-02-23  Bruno Haible  <bruno@clisp.org>
19828         xmalloca: pacify gcc -Wbad-function-cast
19829         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19831 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19833         nl_langinfo: pacify gcc -Wunused-function
19834         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19835         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19836         this case.  Without this change, I got a diagnostic when building
19837         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19839         same: pacify gcc -Wunused-variable
19840         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19841         Omit unused variable.
19843         malloca: pacify gcc -Wbad-function-cast
19844         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19845         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19846         To pacify GCC, I had to cast alloca’s result to some type other
19847         than void * before casting that to uintptr_t.
19849 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19851         utimecmp: new function utimecmpat
19852         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19853         Do not include utimens.h.
19854         (utimecmpat): New function, generalizing utimecmp.
19855         (utimecmp): Now a thin layer around utimecmpat.
19856         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19857         utimensat instead of on lstat and utimens.
19859         same: new function same_nameat
19860         * lib/same.c: Include fcntl.h.
19861         * lib/same.c (same_nameat): New function, generalizing same_name.
19862         (same_name): Now a thin layer around same_nameat.
19863         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19864         * modules/same (Depends-on): Depend on fstatat, openat.
19866 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19868         warnings: Add support for Objective C.
19869         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19870         macro.
19872 2018-02-17  Bruno Haible  <bruno@clisp.org>
19874         lock: Fix test-once1 crash on FreeBSD11.
19875         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19876         'pthread_create', not 'pthread_cancel'.
19878 2018-02-17  Bruno Haible  <bruno@clisp.org>
19880         lock: Add test of gl_once.
19881         * tests/test-once.c: New file.
19882         * modules/lock-tests (Files): Add it.
19883         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19885 2018-02-17  Bruno Haible  <bruno@clisp.org>
19887         thread: Fix compilation error on IRIX.
19888         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19889         needed; include it outside the C++ extern "C" {} block.
19890         * doc/posix-headers/pthread.texi: Mention the problem with
19891         pthread_atfork on IRIX.
19893 2018-02-04  Bruno Haible  <bruno@clisp.org>
19895         nl_langinfo: Override the system's nl_langinfo() when needed.
19896         Reported by Jim Meyering.
19897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19898         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19900 2018-02-04  Bruno Haible  <bruno@clisp.org>
19902         signal-h, monetary, strings: Fix build failure in some cases.
19903         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19904         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19905         as delimiter in sed command, not '|'.
19906         * modules/monetary (Makefile.am): Likewise.
19907         * modules/strings (Makefile.am): Likewise.
19909 2018-02-03  Jim Meyering  <meyering@fb.com>
19911         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19912         * top/maint.mk (sc_file_system): Don't complain about
19913         "/proc/filesystems".
19915 2018-02-03  Bruno Haible  <bruno@clisp.org>
19917         stdlib: Fix compilation error on OpenIndiana.
19918         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19919         <sys/time.h>.
19920         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19921         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19923 2018-02-03  Bruno Haible  <bruno@clisp.org>
19925         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19926         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19927         and use $EGREP instead of 'grep -E'.
19928         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19929         'grep -E'.
19931 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19933         malloca: Add a compile-time verification.
19934         * lib/malloca.c (small_t): Verify that it is wide enough.
19935         * modules/malloca (Depends-on): Add verify.
19937 2018-02-02  Bruno Haible  <bruno@clisp.org>
19939         malloca: Add an argument check.
19940         Suggested by Paul Eggert.
19941         * lib/malloca.c (freea): Check against an invalid argument.
19943 2018-02-02  Bruno Haible  <bruno@clisp.org>
19945         localename: Add support for OpenIndiana.
19946         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19947         Solaris 11 variants with uselocale() but without getlocalename_l().
19949 2018-02-02  Bruno Haible  <bruno@clisp.org>
19951         malloca, xmalloca: Make multithread-safe.
19952         Reported by Florian Weimer <fweimer@redhat.com>.
19953         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19954         * lib/malloca.h (malloca): In the stack allocation case, return a
19955         pointer that is a multiple of 2 * sa_alignment_max.
19956         (sa_increment): Remove enum item.
19957         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19958         a pointer that is a multiple of 2 * sa_alignment_max.
19959         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19960         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19961         HASH_TABLE_SIZE, mmalloca_results): Remove.
19962         (small_t): New type.
19963         (mmalloca, free): Rewritten.
19964         * lib/malloca.valgrind: Remove file.
19965         * modules/malloca (Files): Remove it.
19966         (Depends-on): Remove verify.
19968 2018-01-31  Bruno Haible  <bruno@clisp.org>
19970         environ: Fix link error on 64-bit Cygwin.
19971         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19972         __declspec(dllimport) attribute.
19973         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19975 2018-01-30  Bruno Haible  <bruno@clisp.org>
19977         get-rusage-data: Add support for Minix 3.
19978         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19980 2018-01-30  Bruno Haible  <bruno@clisp.org>
19982         vma-iter: Add support for Minix 3.
19983         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19984         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19986 2018-01-27  Bruno Haible  <bruno@clisp.org>
19988         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19989         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19990         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19991         _HPUX_ALT_XOPEN_SOCKET_API.
19992         * modules/accept (Depends-on): Add 'extensions'.
19993         * modules/getpeername (Depends-on): Likewise.
19994         * modules/getsockname (Depends-on): Likewise.
19995         * modules/getsockopt (Depends-on): Likewise.
19996         * modules/recvfrom (Depends-on): Likewise.
19997         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19998         * doc/posix-functions/getpeername.texi: Likewise.
19999         * doc/posix-functions/getsockname.texi: Likewise.
20000         * doc/posix-functions/getsockopt.texi: Likewise.
20001         * doc/posix-functions/recvfrom.texi: Likewise.
20003 2018-01-27  Bruno Haible  <bruno@clisp.org>
20005         getsockname tests: More tests.
20006         * tests/test-getsockname.c (open_server_socket): New function, mostly
20007         copied from test-poll.c.
20008         (main): Check that getsockname fills in addr.
20009         * modules/getsockname-tests (Depends-on): Add the necessary
20010         dependencies.
20011         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
20013 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20015         manywarnings: fix maintainer comment
20016         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
20017         it does not mistakenly think that ‘-1)’ is an option.
20019 2018-01-26  Bruno Haible  <bruno@clisp.org>
20021         langinfo: Fix last commit.
20022         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20023         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
20025 2018-01-24  Bruno Haible  <bruno@clisp.org>
20027         langinfo, nl_langinfo: Add support for alternative month names.
20028         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
20029         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
20030         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
20031         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
20032         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
20033         * doc/posix-functions/nl_langinfo.texi: Likewise.
20035 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20037         Merge strftime.c changes from glibc
20038         This incorporates:
20039         2017-11-14 [BZ #10871] Implement alternative month names
20040         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
20041         2017-06-20 Use locale_t, not __locale_t, throughout glibc
20042         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
20043         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
20044         Use locale_t, not __locale_t.
20045         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
20046         (__strftime_internal): Add support for alternate months.
20048 2018-01-23  Bruno Haible  <bruno@clisp.org>
20050         doc: Mention another prerequisite for using Gnulib.
20051         Reported at <https://stackoverflow.com/questions/48378214/>.
20052         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
20053         AC_CONFIG_HEADERS.
20055 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
20057         build: GuixSD doesn't have /bin/bash
20058         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
20060 2018-01-21  Bruno Haible  <bruno@clisp.org>
20062         Avoid test failures on Microsoft Windows Subsystem for Linux.
20063         * tests/test-fcntl.c (main): Allow a different errno.
20064         * tests/test-rename.h (test_rename): Likewise.
20065         * tests/test-renameat.c (main): Likewise.
20066         * tests/test-renameat2.c (main): Likewise.
20068 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20070         filenamecat: make base a suffix of result
20071         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
20072         (mfile_name_concat): Always make BASE a suffix of the result, as
20073         cp expects this.  To implement this, separate with '.' instead of
20074         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
20075         * tests/test-filenamecat.c (main): Adjust tests to match
20076         current behavior.  Check that BASE_IN_RESULT points to
20077         a copy of BASE and is a suffix of the resultk, and that DIR
20078         is a prefix of the result that is no longer than the prefix
20079         indicated by BASE_IN_RESULT.
20081 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
20083         update-copyright: Handle use of ©
20084         * build-aux/update-copyright ($circle_c_re): Update regex to
20085         handle use of © in headers.
20087 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
20089         Fix -Wundef warning in user-included header lib/cdefs.h.
20090         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
20092 2018-01-04  Bruno Haible  <bruno@clisp.org>
20094         pthread_sigmask: Avoid compilation error on mingw.
20095         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20096         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
20097         macro.
20099 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20101         test-framework-sh: ‘ps -ef’, not ‘ps ef’
20102         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
20103         Suggested by Bob Proulx (Bug#29968).
20104         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
20106 2018-01-02  Eric Blake  <eblake@redhat.com>
20108         stat-time: silence -Wunused-parameter regression
20109         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20110         Prefer attribute over cast-to-void.
20111         (stat_time_normalize): Mark st as potentially unused.
20113 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20115         test-framework-sh: avoid netstat
20116         Problem reported by Kristýna Streitová (Bug#29947).
20117         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
20118         deprecated on SuSE and it's not that important anyway.
20120 2018-01-01  Jim Meyering  <meyering@fb.com>
20122         update-copyright: add code to handle more special cases
20123         After running "make update-copyright" this year, five files
20124         required additional manual changes.  Automate those adjustments
20125         for next year.
20126         * Makefile (_year_and_prev): Define.
20127         (update-copyright): Add perl commands to induce this year's post-
20128         update-copyright adjustments.
20130 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20132         version-etc: new year
20133         * build-aux/gendocs.sh (version):
20134         * doc/gendocs_template:
20135         * doc/gendocs_template_min:
20136         * doc/gnulib.texi:
20137         * lib/version-etc.c (COPYRIGHT_YEAR):
20138         Update copyright dates by hand in templates and the like.
20140         maint: fix 'make update-copyright'
20141         * Makefile (update-copyright): Adjust to 2016-11-23 change
20142         to config/srclist-update, which changed the format of srclist.txt.
20144 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20146         chdir-safer: remove this module
20147         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
20148         * NEWS: Document removal.
20149         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
20150         * modules/chdir-safer: Remove these files.
20152 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
20154         Add cross-compilation results for GNU/Hurd.
20155         * m4/calloc.m4: Add GNU/Hurd guess.
20156         * m4/cbrtl.m4: Likewise.
20157         * m4/ceil.m4: Likewise.
20158         * m4/ceilf.m4: Likewise.
20159         * m4/ceill.m4: Likewise.
20160         * m4/chown.m4: Likewise.
20161         * m4/duplocale.m4: Likewise.
20162         * m4/exp2l.m4: Likewise.
20163         * m4/expm1.m4: Likewise.
20164         * m4/fchdir.m4: Likewise.
20165         * m4/floor.m4: Likewise.
20166         * m4/floorf.m4: Likewise.
20167         * m4/fmod.m4: Likewise.
20168         * m4/fmodf.m4: Likewise.
20169         * m4/fmodl.m4: Likewise.
20170         * m4/getcwd.m4: Likewise.
20171         * m4/getgroups.m4: Likewise.
20172         * m4/gettimeofday.m4: Likewise.
20173         * m4/hypot.m4: Likewise.
20174         * m4/hypotf.m4: Likewise.
20175         * m4/hypotl.m4: Likewise.
20176         * m4/link-follow.m4: Likewise.
20177         * m4/link.m4: Likewise.
20178         * m4/linkat.m4: Likewise.
20179         * m4/log.m4: Likewise.
20180         * m4/log10.m4: Likewise.
20181         * m4/log10f.m4: Likewise.
20182         * m4/log1p.m4: Likewise.
20183         * m4/log1pf.m4: Likewise.
20184         * m4/log1pl.m4: Likewise.
20185         * m4/log2.m4: Likewise.
20186         * m4/log2f.m4: Likewise.
20187         * m4/logf.m4: Likewise.
20188         * m4/lstat.m4: Likewise.
20189         * m4/malloc.m4: Likewise.
20190         * m4/mbrlen.m4: Likewise.
20191         * m4/mbrtowc.m4: Likewise.
20192         * m4/mkdir.m4: Likewise.
20193         * m4/mkfifo.m4: Likewise.
20194         * m4/mknod.m4: Likewise.
20195         * m4/mkstemp.m4: Likewise.
20196         * m4/modf.m4: Likewise.
20197         * m4/modff.m4: Likewise.
20198         * m4/modfl.m4: Likewise.
20199         * m4/printf.m4: Likewise.
20200         * m4/pselect.m4: Likewise.
20201         * m4/ptsname.m4: Likewise.
20202         * m4/putenv.m4: Likewise.
20203         * m4/readlink.m4: Likewise.
20204         * m4/realloc.m4: Likewise.
20205         * m4/remainder.m4: Likewise.
20206         * m4/remainderf.m4: Likewise.
20207         * m4/remainderl.m4: Likewise.
20208         * m4/rmdir.m4: Likewise.
20209         * m4/round.m4: Likewise.
20210         * m4/roundf.m4: Likewise.
20211         * m4/roundl.m4: Likewise.
20212         * m4/select.m4: Likewise.
20213         * m4/setenv.m4: Likewise.
20214         * m4/signbit.m4: Likewise.
20215         * m4/sleep.m4: Likewise.
20216         * m4/stat.m4: Likewise.
20217         * m4/strerror.m4: Likewise.
20218         * m4/strtok_r.m4: Likewise.
20219         * m4/symlink.m4: Likewise.
20220         * m4/symlinkat.m4: Likewise.
20221         * m4/trunc.m4: Likewise.
20222         * m4/truncf.m4: Likewise.
20223         * m4/truncl.m4: Likewise.
20224         * m4/tzset.m4: Likewise.
20225         * m4/ungetc.m4: Likewise.
20226         * m4/usleep.m4: Likewise.
20227         * m4/wcwidth.m4: Likewise.
20229 2017-12-28  Bruno Haible  <bruno@clisp.org>
20231         gnulib-tool: Make --conditional-dependencies work better.
20232         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
20233         * gnulib-tool (Options): Don't reject the combination of
20234         --conditional-dependencies with --with-tests.
20235         (func_emit_autoconf_snippets): Add argument referenceable_modules.
20236         Don't reference $modules.
20237         (func_import, func_create_testdir): Pass it.
20239 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20241         regex: use re_malloc etc. consistently
20242         Problem and original patch reported by Arnold Robbins in:
20243         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
20244         * lib/regcomp.c (re_comp):
20245         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
20246         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
20248 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
20249             Paul Eggert  <eggert@cs.ucla.edu>
20251         glob: Silence warning about void pointer arithmetic.
20252         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20253         arithmetic.
20255 2017-12-15  Bruno Haible  <bruno@clisp.org>
20257         spawn-pipe: Silence a clang warning.
20258         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20259         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
20260         in this file.
20262 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20264         explicit_bzero: port to macOS + Clang 9.0.0
20265         Problem reported by Marcus Johnson (Bug#29658).
20266         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
20267         Don’t use asm.
20269 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20271         doc: Improve explanation of supporting relocatable libraries.
20272         * doc/relocatable-maint.texi (Supporting Relocation): Explain
20273         properly how to build the relocatable module for
20274         libraries. (Method and example code from Bruno Haible.)
20276 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20278         doc: Use better texinfo tags in a few cases.
20279         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
20280         instead of @samp in a few places.
20282 2017-12-11  Bruno Haible  <bruno@clisp.org>
20284         unistr/base: Update comment.
20285         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
20287 2017-12-10  Pádraig Brady  <P@draigBrady.com>
20289         test-faccessat.c: unlink temp file to avoid subsequent test failure
20290         * tests/test-faccessat.c: Remove the file to avoid failure
20291         to open the file on subsequent runs due to being created
20292         with no permissions.
20294 2017-12-10  Bruno Haible  <bruno@clisp.org>
20296         doc: New sect. "Modifying the build rules of a Gnulib import directory".
20297         * doc/gnulib-tool.texi (Modified build rules): New node.
20299 2017-12-10  Bruno Haible  <bruno@clisp.org>
20301         doc: Tweak wording.
20302         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
20303         "binaries".
20305 2017-12-05  Sam Steingold  <sds@gnu.org>
20306             Bruno Haible  <bruno@clisp.org>
20308         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
20309         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
20310         AC_EGREP_CPP pattern.
20312 2017-12-03  Bruno Haible  <bruno@clisp.org>
20314         all: Replace more http URLs by https URLs.
20315         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
20316         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
20317         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
20318         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
20320 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
20322         Port better to CentOS 5
20323         Problems reported by Tom G. Christensen in:
20324         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
20325         * doc/glibc-functions/strverscmp.texi (strverscmp):
20326         Document strverscmp bug with glibc 2.9 and earlier.
20327         * doc/posix-functions/tzset.texi (tzset):
20328         Document that TZ with angle brackets is POSIX-2001 and later.
20329         * tests/test-nstrftime.c: Include unistd.h.
20330         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
20331         (TZ): Use it to skip tests with angle brackets in TZ,
20332         for older systems.
20334         stat: add missing module dependencies
20335         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
20336         Add stat-time.
20338 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
20340         stat: fix compilation failure on macOS Sierra
20341         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20342         https://savannah.gnu.org/bugs/?52546
20343         * lib/stat.c: Add missing include of stat-time.h.
20345 2017-11-28  Jim Meyering  <meyering@fb.com>
20347         test-faccessat.c: correct BASE definition to avoid parallel test failure
20348         * tests/test-faccessat.c (BASE): Define using this file's name, not
20349         that of test-lstat.c.  Using the latter caused this test to fail
20350         sometimes when run concurrently with test-lstat.
20352 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20354         unicase: fix VPATH build
20355         * modules/unicase/special-casing (Makefile.am): Ensure that the
20356         base directory is created when generating
20357         unicase/special-casing.h.
20359 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20361         libunistring: update to Unicode 9.0.0
20362         * lib/gen-uni-tables.c (fill_properties): Recognize
20363         Sentence_Terminal and Prepended_Concatenation_Mark.
20364         (is_property_default_ignorable_code_point): Exclude U+08E2.
20365         (fill_arabicshaping): Allow missing whitespace when parsing;
20366         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20367         (output_blocks): Increase the element size of the level1 table to
20368         accommodate more blocks.
20369         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20370         Update each class according to the standard.
20371         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20372         E_Base_GAZ characters.
20373         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20374         Glue_After_Zwj, and E_Base_GAZ characters.
20375         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20376         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20377         enum value.
20378         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20379         value.
20380         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20381         LBP_ZWJ, LBP_EB, and LBP_EM.
20382         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20383         enum value.
20384         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20385         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20386         declaration.
20387         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20388         (uniwbrk_table): Implement WB14.
20389         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20390         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20391         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20392         uc-is-grapheme-break.
20393         * modules/unigbrk/uc-grapheme-breaks: New module.
20394         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20395         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20396         enum value.
20397         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20398         * lib/unigbrk/u-grapheme-breaks.h: New file.
20399         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20400         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20401         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20402         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20403         29.
20404         * tests/unigbrk/test-uc-gbrk-prop.c
20405         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20406         GBP_GAZ, and GBP_EBG.
20407         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20408         * tests/unigbrk/test-uc-is-grapheme-break.c
20409         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20410         GBP_GAZ, and GBP_EBG.
20411         (main): Skip unsupported rules involving 3 or more characters,
20412         namely GB10, GB12, and GB13.
20413         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20414         * all generated files under lib/uni* and tests/uni*: Regenerate.
20415         * all the affected modules: Bump version.
20417 2017-11-26  Bruno Haible  <bruno@clisp.org>
20419         strfmon_l: Fix compilation error with glibc 2.5.
20420         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20421         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20422         * lib/monetary.in.h: Include also <locale.h>.
20424 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20426         posixtm: remove PDS_LEADING_YEAR
20427         This changes the API slightly, in a hopefully-innocuous way.
20428         Without this change the code had undefined behavior when a
20429         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20430         Problem reported by Pádraig Brady in:
20431         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20432         * NEWS: Mention this.
20433         * lib/posixtm.c (posix_time_parse): Treat the absence of
20434         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20435         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20436         present, but define it as zero, for compatibility with existing
20437         source code).  All other PDS_* values moved up.
20438         * tests/test-posixtm.c (LY): New macro.
20439         (T): Use it.  Do not expect a particular numeric encoding
20440         for PDS_CENTURY etc.
20442 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20444         stat: work around Solaris bug with tv_nsec < 0
20445         * doc/posix-functions/fstat.texi (fstat):
20446         * doc/posix-functions/fstatat.texi (fstatat):
20447         * doc/posix-functions/lstat.texi (lstat):
20448         * doc/posix-functions/stat.texi (stat):
20449         Mention Solaris 11 bug.
20450         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20451         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20452         * lib/lstat.c (rpl_lstat):
20453         * lib/stat.c (rpl_stat):
20454         Normalize resulting timestamps.
20455         * lib/fstatat.c (normal_fstatat): New function.
20456         (rpl_fstatat): Use it.
20457         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
20458         (stat_time_normalize): New function.
20459         * m4/fstat.m4 (gl_FUNC_FSTAT):
20460         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
20461         * m4/lstat.m4 (gl_FUNC_LSTAT):
20462         * m4/stat.m4 (gl_FUNC_STAT):
20463         Replace on Solaris.
20464         * modules/fstat (Depends-on):
20465         * modules/fstatat (Depends-on):
20466         Add stat-time.
20467         * modules/stat-time (Depends-on): Add errno, intprops.
20469 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20471         regex: merge from glibc
20472         * lib/regcomp.c (init_word_char): Add comments.
20474 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20476         regex: merge from glibc
20477         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
20478         * lib/regex_internal.h (internal_function): Remove.
20479         All uses removed.
20481 2017-11-20  Bruno Haible  <bruno@clisp.org>
20483         crypto/gc-sm3: Fix buffer overrun.
20484         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
20485         Reported by Coverity.
20487 2017-11-12  Jim Meyering  <meyering@fb.com>
20489         maint: shorten https://lists.gnu.org/archive/html/... links
20490         Each /archive/html/ part can be replace with /r/.
20491         Run this to induce the change:
20492         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
20493         * ChangeLog: Perform that substitution.
20494         * Makefile: Likewise.
20495         * STATUS-libposix: Likewise.
20496         * build-aux/bootstrap: Likewise.
20497         * doc/maintain.texi: Likewise.
20498         * gnulib-tool: Likewise.
20499         * lib/allocator.h: Likewise.
20500         * lib/argp-ba.c: Likewise.
20501         * lib/argp-pv.c: Likewise.
20502         * lib/canon-host.c: Likewise.
20503         * lib/canonicalize-lgpl.c: Likewise.
20504         * lib/float.in.h: Likewise.
20505         * lib/fstat.c: Likewise.
20506         * lib/getdelim.c: Likewise.
20507         * lib/getprogname.c: Likewise.
20508         * lib/glthread/thread.h: Likewise.
20509         * lib/intprops.h: Likewise.
20510         * lib/mbsrtowcs-state.c: Likewise.
20511         * lib/safe-read.c: Likewise.
20512         * lib/signal.in.h: Likewise.
20513         * lib/stat.c: Likewise.
20514         * lib/stdbool.in.h: Likewise.
20515         * lib/stdio-impl.h: Likewise.
20516         * lib/stdio.in.h: Likewise.
20517         * lib/sysexits.in.h: Likewise.
20518         * lib/timespec.h: Likewise.
20519         * lib/wcsrtombs-state.c: Likewise.
20520         * m4/alloca.m4: Likewise.
20521         * m4/extern-inline.m4: Likewise.
20522         * m4/fstatat.m4: Likewise.
20523         * m4/gnulib-common.m4: Likewise.
20524         * m4/lib-ignore.m4: Likewise.
20525         * m4/printf.m4: Likewise.
20526         * m4/regex.m4: Likewise.
20527         * m4/stat-size.m4: Likewise.
20528         * m4/std-gnu11.m4: Likewise.
20529         * m4/stdbool.m4: Likewise.
20530         * m4/sys_types_h.m4: Likewise.
20531         * m4/threadlib.m4: Likewise.
20532         * m4/vararrays.m4: Likewise.
20533         * pygnulib/GLImport.py: Likewise.
20534         * tests/test-exp.h: Likewise.
20535         * tests/test-exp2.h: Likewise.
20536         * tests/test-expm1.h: Likewise.
20537         * tests/test-fflush2.c: Likewise.
20538         * tests/test-getopt_long.h: Likewise.
20539         * tests/test-intprops.c: Likewise.
20540         * tests/test-log.h: Likewise.
20541         * tests/test-log10.h: Likewise.
20542         * tests/test-log1p.h: Likewise.
20543         * tests/test-log2.h: Likewise.
20544         * tests/test-printf-posix.h: Likewise.
20545         * tests/test-regex.c: Likewise.
20546         * tests/test-snprintf-posix.h: Likewise.
20547         * tests/test-sprintf-posix.h: Likewise.
20548         * tests/test-stdalign.c: Likewise.
20549         * tests/test-stdbool.c: Likewise.
20550         * tests/test-vasnprintf-posix.c: Likewise.
20551         * tests/test-vasprintf-posix.c: Likewise.
20552         * top/maint.mk: Likewise.
20554 2017-11-12  Bruno Haible  <bruno@clisp.org>
20556         faccessat: Make the last change more robust.
20557         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
20558         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
20560 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20562         faccessat: port to macOS (Bug#29231)
20563         macOS faccessat has the same bug that lstat does: if the file
20564         name ends in '/' it ignores the trailing slash.
20565         Problem reported for Emacs by Vincent Zhang.
20566         * doc/posix-functions/faccessat.texi (faccessat): Document this.
20567         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
20568         around the initial includes.  Include errno.h, string.h, sys/stat.h.
20569         (orig_faccessat) [HAVE_FACCESSAT]: New function.
20570         Include "unistd.h" after defining it.
20571         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
20572         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
20573         Handle in the usual way.
20574         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
20575         lstat dereferences symlinks, since faccessat is likely to
20576         have the same problem.
20577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
20578         * modules/faccessat (Depends-on): Add fstatat.
20579         Depend if REPLACE_FACCESSAT is 1, too.
20580         (configure.ac): Link if REPLACE_FACCESSAT is 1.
20581         * modules/faccessat-tests (Depends-on): Add symlink.
20582         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
20583         * tests/test-faccessat.c (main): Test for the bug.
20585 2017-11-11  Bruno Haible  <bruno@clisp.org>
20587         getprogname: Fix compilation error on IRIX.
20588         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20589         'namesize'.
20591 2017-11-11  Bruno Haible  <bruno@clisp.org>
20593         year2038: Tweak last patch.
20594         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20596 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20598         year2038: be more insistent about 64-bit time_t
20599         Applications requiring access to arbitrary files should not be
20600         built with 32-bit time_t on hosts that have 64-bit timestamps,
20601         as this can lead to real trouble at runtime.
20602         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
20603         Check on all systems, not just MinGW.  Use a heuristic involving
20604         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
20605         output a failure or just a warning, to make it more likely that
20606         builders will select 64-bit time_t.
20608 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20610         havelib: fix typo in previous change
20611         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
20613         Don’t use AC_EGREP_CPP if affected by CFLAGS
20614         * m4/float_h.m4 (gl_FLOAT_H):
20615         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
20616         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
20617         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
20618         * m4/year2038.m4 (gl_YEAR2038):
20619         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
20620         likely to be affected by the choice of CFLAGS, since CFLAGS are
20621         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
20622         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
20624         fstatat: pacify GCC on unusual platform
20625         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
20626         Omit, as it’s unused in this case.
20628 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20630         timespec: prefer ‘assume’ to ‘assure’
20631         This avoids some runtime tests.  The rest of the module makes
20632         similar assumptions and there is little point to testing here.
20633         * lib/timespec.h: Include verify.h instead of assure.h.
20634         (timespec_cmp): Use ‘assume’, not ‘assure’.
20635         Also, remove an unnecessary cast to ‘int’, as lots of other
20636         code in this module now causes -Wconversion to complain, and
20637         this is a problem with -Wconversion not with the code.
20639         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
20641         Port recent gnulib-tool change to Dash
20642         * gnulib-tool (func_create_testdir): Don't assume that the shell
20643         retokenizes after expanding "$@" inside the call to
20644         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
20646 2017-10-27  Jim Meyering  <meyering@fb.com>
20648         timespec.h: use "assure" to avoid a spurious warning
20649         * lib/timespec.h: Include "assure.h" and use it to help
20650         gcc7's -Wstrict-overflow avoid a false positive warning
20651         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
20652         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
20653         * modules/timespec (Depends-on): Add assure.
20655 2017-10-29  Bruno Haible  <bruno@clisp.org>
20657         Avoid several test failures with traditional locales on Haiku.
20658         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
20659         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
20660         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20661         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20662         LOCALE_ZH_CN=none.
20664 2017-10-29  Bruno Haible  <bruno@clisp.org>
20666         strerror_r-posix: Fix behaviour and test failure on Haiku.
20667         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20668         are positive. Work around return value 0 instead of ERANGE on Haiku.
20669         For unknown error numbers, use a format string consistent with perror().
20670         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20671         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20672         are positive.
20674 2017-10-29  Bruno Haible  <bruno@clisp.org>
20676         get-rusage-data: Avoid crash on Haiku.
20677         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20679 2017-10-29  Bruno Haible  <bruno@clisp.org>
20681         get-rusage-as: Avoid crash on Haiku.
20682         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20684 2017-10-29  Bruno Haible  <bruno@clisp.org>
20686         ilogbl: Ensure replacement on Haiku.
20687         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20688         REPLACE_ILOGBL if ilogbl does not work.
20689         (gl_FUNC_ILOGBL_WORKS): New macro.
20690         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20692         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20693         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20694         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20696 2017-10-29  Bruno Haible  <bruno@clisp.org>
20698         expl: Ensure replacement on Haiku.
20699         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20700         zero.
20701         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20703 2017-10-29  Bruno Haible  <bruno@clisp.org>
20705         math: Fix test failure on Haiku.
20706         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20707         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20708         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20709         * doc/posix-headers/math.texi: Mention the Haiku problem.
20711 2017-10-29  Bruno Haible  <bruno@clisp.org>
20713         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20714         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20715         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20717 2017-10-29  Bruno Haible  <bruno@clisp.org>
20719         crypto/*: Verify that the header file is self-contained.
20720         * tests/test-gc-*.c: Include the module's header file immediately after
20721         <config.h>.
20722         * tests/test-hmac-*.c: Likewise.
20723         * tests/test-arcfour.c: Likewise.
20724         * tests/test-arctwo.c: Likewise.
20725         * tests/test-des.c: Likewise.
20726         * tests/test-md2.c: Likewise.
20727         * tests/test-md4.c: Likewise.
20728         * tests/test-md5.c: Likewise.
20729         * tests/test-rijndael.c: Likewise.
20730         * tests/test-sha1.c: Likewise.
20731         * tests/test-sm3.c: Likewise.
20733 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20734             Bruno Haible  <bruno@clisp.org>
20736         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20737         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20739 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20741         New module: crypto/gc-sm3
20742         * lib/gc.h: Declare SM3-related stuffs.
20743         * lib/gc-gnulib.c: Support sm3 in internal functions.
20744         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20745         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20746         * modules/crypto/gc-sm3: Define gc-sm3 module.
20747         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20748         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20749         * MODULES.html.sh: List gc-sm3 module.
20751 2017-10-29  Bruno Haible  <bruno@clisp.org>
20753         random, random_r: Mention different prototypes on Haiku.
20754         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20755         * doc/glibc-functions/random_r.texi: Likewise.
20756         * doc/glibc-functions/initstate_r.texi: Likewise.
20757         * doc/glibc-functions/setstate_r.texi: Likewise.
20759 2017-10-28  Bruno Haible  <bruno@clisp.org>
20761         posix_spawn: Avoid spurious message in configure output.
20762         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20763         'cmp' command.
20765 2017-10-28  Bruno Haible  <bruno@clisp.org>
20767         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20768         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20769         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20771 2017-10-28  Bruno Haible  <bruno@clisp.org>
20773         ioctl: Override non-POSIX declaration on Haiku.
20774         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20775         * lib/sys_ioctl.in.h: Add comment about Haiku.
20776         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20777         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20779 2017-10-28  Bruno Haible  <bruno@clisp.org>
20781         crypto/sm3: Add overview documentation to the .h file.
20782         * lib/sm3.h: Add comments.
20784 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20786         New module: crypto/sm3
20787         This new module can be used to compute SM3 message digest of files or
20788         memory blocks according to the specification GM/T 004-2012
20789         Cryptographic Hash Algorithm SM3, published by State Cryptography
20790         Administration, China.
20791         The official SM3 cryptographic hash algorithm specification is
20792         available at
20793         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20794         * lib/sm3.h: Declare the APIs of sm3 module.
20795         * lib/sm3.c: Implement SM3 hash algorithm.
20796         * m4/sm3.m4: m4 file for sm3 module.
20797         * modules/crypto/sm3: Define sm3 module.
20798         * tests/test-sm3.c: Implement SM3 test case.
20799         * modules/crypto/sm3-tests: Define sm3 test module.
20800         * MODULES.html.sh: List sm3 module.
20802 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20804         gc-libgcrypt: fix undefined enum type in switch statement
20805         Resolve the following build failure:
20806         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20807         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20808         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20809              case 0:
20810              ^~~~
20811         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20812         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20814 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20816         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20817         Resolve the following build failure:
20818         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20819         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20820         in signedness [-Werror=pointer-sign]
20821             digest = gcry_md_read (ctx->gch, 0);
20822                    ^
20823         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20825 2017-10-26  Bruno Haible  <bruno@clisp.org>
20827         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20828         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20829         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20831 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20833         glob: fix another heap buffer overflow
20834         Problem reported by Tim Rühsen in:
20835         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20836         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20838 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20840         quotearg: pacify compiler re unsigned
20841         * lib/quotearg.c (quotearg_n_options):
20842         Rewrite to avoid diagnostic from overly-picky compiler.
20843         Problem reported by Sami Kerola in:
20844         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20846         glob: fix heap buffer overflow
20847         * lib/glob.c (glob): Fix off-by-one error introduced into
20848         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20849         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20850         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20851         Fix suggested by Bruno Haible.
20853 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20855         glob: pacify fuzzer for mempcpy
20856         Problem reported by Tim Rühsen in:
20857         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20858         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20860 2017-10-12  Bruno Haible  <bruno@clisp.org>
20862         doc: Fix syntax error (regression from 2017-10-03).
20863         * doc/posix-functions/strncpy.texi: Fix syntax error.
20865 2017-10-12  Bruno Haible  <bruno@clisp.org>
20867         doc: Update for Solaris 11.3.
20868         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20869         mention Solaris 11.3.
20870         * m4/log2.m4: Fix comments.
20871         * m4/log2f.m4: Likewise.
20872         * m4/printf.m4: Update comments.
20873         * m4/rename.m4: Likewise.
20874         * m4/strncat.m4: Likewise.
20876         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20878 2017-10-10  Bruno Haible  <bruno@clisp.org>
20880         doc: Improve doc about ioctl.
20881         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20882         prototype.
20884 2017-10-09  Bruno Haible  <bruno@clisp.org>
20886         wcwidth: Don't use obsolete syntax of 'test'.
20887         Reported by Eric Blake.
20888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20889         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20891 2017-10-09  Bruno Haible  <bruno@clisp.org>
20893         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20894         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20895         and Daniel P. Berrange <berrange@redhat.com>.
20896         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20897         on glibc systems. The getopt-pfx-core.h file declares exactly what
20898         unistd.h needs, nothing more.
20900 2017-10-08  Bruno Haible  <bruno@clisp.org>
20902         vma-iter: Improve support for FreeBSD.
20903         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20904         vma_iterate.
20905         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20907 2017-10-08  Bruno Haible  <bruno@clisp.org>
20909         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20910         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20912 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20914         test-framework-sh: Fix 'invalid path dir' error.
20915         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20916         separator between a drive letter and directory parts.
20917         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20918         treated as an invalid path dir.
20919         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20920         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20921         instead of hard coded ':'.
20923 2017-10-07  Bruno Haible  <bruno@clisp.org>
20925         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20926         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20927         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20928         (rof_open): On Linux, do multiple read() calls and make sure
20929         MIN_LEFTOVER bytes are left when read() returns.
20931 2017-10-07  Bruno Haible  <bruno@clisp.org>
20933         vma-iter: Improve support for GNU/Hurd.
20934         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20935         API, not the /proc file system.
20937 2017-10-07  Bruno Haible  <bruno@clisp.org>
20939         test-framework-sh: Don't require bash on Windows and OS/2.
20940         Reported by KO Myung-Hun.
20941         * tests/test-init.sh: Use 'shopt' only when running in bash.
20943 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20945         wcwidth: check a macro version of wcwidth () as well
20946         * lib/wchar.in.h: Revert commit from 2016-01-14.
20947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20949 2017-10-06  Bruno Haible  <bruno@clisp.org>
20951         getopt-posix: Clarify copyright header.
20952         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20953         * lib/getopt-pfx-core.h: Likewise.
20954         * lib/getopt-pfx-ext.h: Likewise.
20955         * lib/getopt-cdefs.in.h: Likewise.
20957 2017-10-03  Bruno Haible  <bruno@clisp.org>
20959         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20960         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20961         gl_HOST_CPU_C_ABI.
20963 2017-10-03  Bruno Haible  <bruno@clisp.org>
20965         doc: warn about misuse of strncpy and wcsncpy.
20966         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20967         memory allocation.
20968         * doc/posix-functions/wcscpy.texi: Likewise.
20969         * doc/posix-functions/strncpy.texi: Describe what this function is not
20970         useful for.
20971         * doc/posix-functions/wcsncpy.texi: Likewise.
20973 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20975         fsuage: fix typo in previous change
20976         * lib/fsusage.c: Remove stray include of full-read.h.
20977         Problem reported by Sam Steingold for macOS (Bug#28669).
20979 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20981         fsusage: remove SVR2 support
20982         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20983         and its code was getting in the way of use of this module by
20984         Emacs, which has its own ‘read’ function anyway.
20985         * lib/fsusage.c: Do not include sys/filsys.h.
20986         (get_fs_usage): Remove SVR2-specific code.
20987         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20988         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20989         * modules/fsusage (Depends-on): Do not depend on full-read.
20991         Simplify autoupdate of licenses
20992         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20993         place.
20995 2017-10-01  Bruno Haible  <bruno@clisp.org>
20997         vma-iter: Add support for GNU/Hurd.
20998         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20999         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21001 2017-09-30  Bruno Haible  <bruno@clisp.org>
21003         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
21004         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
21005         fail when module 'largefile' is in use.
21006         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
21007         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
21008         Don't test HAVE_SYS_PROCFS_H.
21010 2017-09-30  Bruno Haible  <bruno@clisp.org>
21012         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
21013         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
21014         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
21015         * modules/havelib (Depends-on): Add host-cpu-c-abi.
21017 2017-09-30  Bruno Haible  <bruno@clisp.org>
21019         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
21020         * lib/uniname/uniname.c (unicode_name_character): Add braces around
21021         scope of local variables.
21023 2017-09-28  Bruno Haible  <bruno@clisp.org>
21025         string: code style
21026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
21027         substitutable variables.
21028         * modules/string (Makefile.am): Likewise.
21030 2017-09-26  Bruno Haible  <bruno@clisp.org>
21032         uniname/uniname-tests: Tighten code.
21033         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
21034         local variables into one.
21036 2017-09-26  Bruno Haible  <bruno@clisp.org>
21038         vma-iter: Improvements for Linux and BSD platforms.
21039         - Add support for DragonFly BSD.
21040         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
21041         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
21042         Read the entire file into memory in a single system call.
21043         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
21044         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
21046 2017-09-26  Bruno Haible  <bruno@clisp.org>
21048         vma-iter: Provide the protection flags on FreeBSD.
21049         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
21050         skip three fields between the addresses and the protection flags.
21052 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21054         glob: remove bogus extern decl
21055         * lib/glob.c (__glob_pattern_type): Remove now-spurious
21056         extern declaration.  Problem reported by Adhemerval Zanella in:
21057         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
21059 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21061         uniname/uniname-tests: integer overflow fix
21062         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
21063         Check for integer overflow.
21065         duplocale-tests: fix unlikely crash
21066         * tests/test-duplocale.c (get_locale_dependent_values):
21067         Don’t crash with absurdly long month names.
21069         maint: fix overflow checking in nap.h
21070         * modules/chown-tests:
21071         * modules/fchownat-tests, modules/fdutimensat-tests:
21072         * modules/futimens-tests, modules/lchown-tests:
21073         * modules/stat-time-tests, modules/utime-tests:
21074         * modules/utimens-tests, modules/utimensat-tests:
21075         Depend on intprops.
21076         * tests/nap.h: Include intprops.h.
21077         (diff_timespec): Handle overflow properly.
21079         sys_types: update URL
21080         * m4/sys_types_h.m4: Use https: URL.
21082         parse-datetime: fix dependency
21083         * modules/parse-datetime (Depends-on): Depend
21084         on nstrftime, not strftime.
21086         parse-datetime, posixtm: avoid uninit access
21087         * lib/parse-datetime.y (parse_datetime2):
21088         * lib/posixtm.c (posixtime):
21089         Do not access uninitialized storage, even though the resulting
21090         value is never used.
21092 2017-09-25  Bruno Haible  <bruno@clisp.org>
21094         vma-iter: Improvements for BSD platforms.
21095         - Add support for GNU/kFreeBSD.
21096         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
21097         - Speed up on OpenBSD.
21098         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
21099         (vma_iterate_bsd): New function.
21100         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
21101         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
21102         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21103         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
21105 2017-09-23  Bruno Haible  <bruno@clisp.org>
21107         strfmon_l: New module.
21108         * modules/strfmon_l: New file.
21109         * lib/strfmon_l.c: New file.
21110         * m4/strfmon_l.m4: New file.
21111         * doc/posix-functions/strfmon_l.texi: Mention the new module.
21112         * modules/strfmon_l-tests: New file.
21113         * tests/test-strfmon_l.c: New file.
21115         monetary: New module.
21116         * modules/monetary: New file.
21117         * lib/monetary.in.h: New file.
21118         * m4/monetary_h.m4: New file.
21119         * doc/posix-headers/monetary.texi: Mention the new module.
21120         * modules/monetary-tests: New file.
21121         * tests/test-monetary.c: New file.
21122         * modules/monetary-c++-tests: New file.
21123         * tests/test-monetary-c++.cc: New file.
21124         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
21126 2017-09-23  Bruno Haible  <bruno@clisp.org>
21128         duplocale tests: Fix test crash on Linux/x86.
21129         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
21130         locale from the current thread before freeing it.
21132 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
21134         mktime: port to OpenVMS
21135         Problem reported by John E. Malmberg in:
21136         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
21137         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
21139 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21141         manywarnings: port to GCC on 64-bit MS-Windows
21142         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
21143         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
21144         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
21146 2017-09-13  Bruno Haible  <bruno@clisp.org>
21148         all: Replace many more http URLs by https URLs. Update stale URLs.
21149         * users.txt: Remove mention of 'newts'.
21150         * lib/localename.c: Update comment about LANG_SOTHO.
21152 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21154         all: Replace many http URLs by https URLs.
21156 2017-09-12  Bruno Haible  <bruno@clisp.org>
21158         doc: Prefer https URLs where possible.
21159         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
21160         * doc/ld-output-def.texi: Remove unavailable URL.
21162 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21164         maintainer-makefile: FTP -> HTTPS
21165         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
21166         of FTP, which is planned to be decommissioned on 2017-11-01.
21168 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21170         libc-config: Fix __GNUC_PREREQ macro.
21171         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21172         __GNUC_MINOR.
21174 2017-09-09  Bruno Haible  <bruno@clisp.org>
21176         gnulib-tool: Simplify commit from 2015-08-20.
21177         * gnulib-tool (func_add_or_update): Remove local variable
21178         is_binary_file.
21180 2017-09-08  Bruno Haible  <bruno@clisp.org>
21182         stddef: Avoid conflict with system-defined max_align_t.
21183         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
21184         Reported by Werner Lemberg <wl@gnu.org> in
21185         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
21186         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
21187         (max_align_t): Define as a macro.
21188         (GNULIB_defined_max_align_t): New macro. Guards against multiple
21189         definitions of rpl_max_align_t in different copies of gnulib-generated
21190         <stddef.h>.
21192 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21194         libc-config: port to MSVC
21195         Problems reported by Gisle Vanem in:
21196         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
21197         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
21198         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
21199         * m4/__inline.m4: New file.
21200         * modules/libc-config (Files): Add it.
21201         (Depends-on): Use it.
21203         glob: Use enum for __glob_pattern_type result
21204         From a patch proposed by Adhemerval Zanella in:
21205         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
21206         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21207         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21208         * lib/glob_internal.h (__glob_pattern_type):
21209         * lib/glob.c (glob):
21210         * lib/glob_pattern_p.c (__glob_pattern_p):
21211         Use them.
21213         glob: fix for use in glibc
21214         Problem reported by Adhemerval Zanella in:
21215         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
21216         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
21217         Do not redefine if _LIBC.
21219 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21221         glob: fix bugs with long login names
21222         Problem reported by Adhemerval Zanella in:
21223         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
21224         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
21225         (glob): Use the same scratch buffer for both getlogin_r and
21226         getpwnam_r.  Don’t require preallocation of the login name.  This
21227         simplifies storage allocation, and corrects the handling of
21228         long login names.
21230 2017-09-02  Bruno Haible  <bruno@clisp.org>
21232         dirent: Update doc.
21233         * doc/posix-headers/dirent.texi: More concrete list of platforms.
21235 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21237         glob: fix getpwnam_r errno typo
21238         * lib/glob.c (glob): Fix longstanding misuse of errno after
21239         getpwnam_r, which returns an error number rather than setting
21240         errno.
21242         glob: fix typo in recent change
21243         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
21244         Fix recently-introduced typo.
21246 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21248         glob: don't save and restore errno unnecessarily
21249         * lib/glob.c (glob): Don't save and restore errno
21250         merely because we have getpwnam_r.
21252         glob: don't assume getpwnam_r
21253         * lib/glob.c (glob): Port recent patches to platforms
21254         lacking getpwnam_r.
21256         scratch_buffer: don’t use private glibc API
21257         Suggested by Florian Weimer in:
21258         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
21259         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
21260         * lib/scratch_buffer_grow.c: Rename to
21261         lib/malloc/scratch_buffer_grow.c.
21262         * lib/scratch_buffer_grow_preserve.c: Rename to
21263         lib/malloc/scratch_buffer_grow_preserve.c.
21264         * lib/scratch_buffer_set_array_size.c: Rename to
21265         lib/malloc/scratch_buffer_set_array_size.c.
21266         * lib/scratch_buffer.h: New file.
21267         * modules/scratch_buffer (Files, Makefile.am):
21268         Adjust to source-file renaming.
21270 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21272         glob: use scratch_buffer instead of extend_alloca
21273         Much of the lib/glob.c part of this patch comes from a glibc patch
21274         proposed by Adhemerval Zanella in:
21275         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
21276         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
21277         included via glob.h, does this for us now.
21278         (__set_errno): Remove, as libc-config does this for us now.
21279         Include <scratch_buffer.h>.
21280         (GETPW_R_SIZE_MAX): Remove.
21281         (glob): Use struct scratch_buffer instead of extend_alloca.
21282         * lib/glob.in.h: Include libc-config.h rather than
21283         including <sys/cdefs.h> conditionally.
21284         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
21285         (__glibc_unlikely, __restrict, weak_alias):
21286         Remove, as libc-config does this for us now.
21287         * m4/glob.m4 (gl_PREREQ_GLOB):
21288         Remove sys/cdefs.h tests; no longer needed.
21289         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
21290         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
21292         scratch_buffer: new module
21293         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
21294         * lib/scratch_buffer_grow_preserve.c:
21295         * lib/scratch_buffer_set_array_size.c:
21296         New files, copied from glibc with very minor changes that can be
21297         copied back.
21298         * modules/scratch_buffer: New file.
21300         libc-config: new module
21301         * MODULES.html.sh: Add libc-config.
21302         * lib/cdefs.h: New file, copied from the GNU C Library with very
21303         minor changes that can be copied back.
21304         * lib/libc-config.h, modules/libc-config: New files.
21306 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21308         glob: match dangling symlinks
21309         This fixes a bug I inadvertently introduced to Gnulib when I
21310         merged glibc glob back into gnulib on 2007-10-16.  This fix is
21311         inspired by a patch proposed for glibc by Adhemerval Zanella in:
21312         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
21313         * doc/posix-functions/glob.texi: Update list of affected platforms.
21314         * lib/glob.c (__lstat64): New macro.
21315         (is_dir): New function.
21316         (glob, glob_in_dir): Match symlinks even if they are dangling.
21317         (link_stat, link_exists_p): Remove.  All uses removed.
21318         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
21319         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
21320         * modules/glob-tests (Depends-on): Add symlink.
21321         * tests/test-glob.c: Include errno.h, unistd.h.
21322         (BASE): New macro.
21323         (main): Test dangling symlinks, if symlinks are supported.
21325         glob, backupfile: inode 0 is a valid inode number
21326         * doc/posix-functions/readdir.texi (readdir):
21327         * doc/posix-headers/dirent.texi (dirent.h):
21328         Document more readdir portability issues.
21329         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
21330         (numbered_backup): Don’t treat inode 0 any differently from
21331         other inode values.
21332         * lib/glob.c (struct readdir_result): Remove skip_entry member.
21333         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21334         All uses removed.
21335         * modules/glob (Depends-on): Remove d-ino.
21337         glob: simplify symlink detection
21338         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
21339         uint8_t, as C99 does not require uint8_t.
21340         (struct readdir_result): Use it.  Do not define skip_entry unless
21341         it is needed; this saves a byte on platforms lacking d_ino.
21342         (readdir_result_type, readdir_result_skip_entry):
21343         New functions, replacing ...
21344         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21345         ... these functions, which were removed.  This makes the callers
21346         easier to read.  All callers changed.
21347         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21349 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21351         fts-tests: tag as a longrunning-test so not included by default
21352         * modules/fts-tests: This test takes about 20s on current systems,
21353         and uses about 285M of space on ext4.
21355 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21357         renameat2: fix compilation on alpine linux
21358         * m4/renameat.m4: Check for <linux/fs.h> presence.
21359         * lib/renameat2.h: Only include <linux/fs.h> if present.
21360         Reported by Assaf Gordon on Alpine Linux.
21362 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21364         glob: try to port recent changes to MS-Windows
21365         Problem reported by Bruno Haible in:
21366         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21367         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21368         * lib/glob.in.h (__glob_pattern_p): ... to here.
21370 2017-08-24  Eric Blake  <eblake@redhat.com>
21372         warnings: fix compilation with old autoconf
21373         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21374         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21375         AC_DEFUN.
21376         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21377         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21379 2017-08-24  Bruno Haible  <bruno@clisp.org>
21381         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21382         * modules/glob (Depends-on): Add c99.
21384 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21386         glob: fix typo that broke platforms lacking d_ino
21387         This typo also hurt performance on GNU/Linux and similar hosts.
21388         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21389         in previous change.
21391 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21393         glob: merge from glibc with Zanella glob changes
21394         Merge glob from glibc, with changes for glob proposed
21395         by Adhemerval Zanella in the thread starting here:
21396         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21397         plus some fixes for this merge.
21398         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21399         New files, ported from glibc.
21400         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21401         with __restrict.
21402         (__size_t): Remove.  All uses replaced by size_t.
21403         (size_t): Define by defining __need_size_t and including <stddef.h>.
21404         This should work even in non-glibc platforms, where any name
21405         pollution is OK.
21406         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21407         (struct stat64): Don’t worry about __GLOB_GNULIB.
21408         (glob, globfree, glob_pattern_p): Remove macros for
21409         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21410         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21411         but set errno.
21412         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21413         removed since the glibc behavior works on null pointers.
21414         Do not include stdio.h; old SunOS is irrelevant now.
21415         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21416         Include glob_internal.h.
21417         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21418         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21419         worked only coincidentally.
21420         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21421         Remove macros; now done in glob.in.h.
21422         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21423         (glob): Properly initialize glob structure with
21424         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21425         Remove old code using SHELL since Bash no longer
21426         uses this.
21427         (glob, prefix_array): Separate MS code better.
21428         (glob, glob_in_dir): Use C99 decls before statements when glibc
21429         does.
21430         (glob_in_dir): Remove old Amiga and VMS code.
21431         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21432         separate files.
21433         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21434         (__glibc_unlikely):
21435         Move here from glob.c.
21436         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21437         (weak_alias): New macro.
21438         (__size_t): Remove.  All uses replaced by size_t.
21439         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21440         * modules/glob (Files): Add +lib/glob_internal.h,
21441         lib/glob_pattern_p.c, lib/globfree.c.
21442         (Depends-on): Remove snippet/arg-nonnull.
21444 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21446         glob: port to clang's Undefined Sanitizer
21447         Problem reported by Tim Rühsen in:
21448         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21449         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21450         (glob_in_dir): Do not rely on undefined behavior in accessing
21451         struct members beyond their bounds.  Use a flexible array member
21452         instead.
21454 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21456         vc-list-files: port to Solaris 10
21457         * build-aux/vc-list-files: Don't assume test -e works.
21459 2017-08-21  Karl Berry  <karl@freefriends.org>
21461         * doc/posix-functions/srandom.texi (srandom): typo }.
21463 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21465         git-version-gen: port to Solaris 10
21466         Problem reported by Dagobert Michelsen in:
21467         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
21468         * build-aux/git-version-gen (v_from_git):
21469         Use expr instead of shell substitution.
21471 2017-08-19  Bruno Haible  <bruno@clisp.org>
21473         host-cpu-c-abi: Improve detection of MIPS ABI.
21474         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
21475         _MIPS_SIM.
21477 2017-08-17  Bruno Haible  <bruno@clisp.org>
21479         hypot tests: Fix test failure on FreeBSD 11.0/x86.
21480         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
21482 2017-08-17  Bruno Haible  <bruno@clisp.org>
21484         float: Fix LDBL_MIN value on FreeBSD/x86.
21485         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
21487 2017-08-17  Bruno Haible  <bruno@clisp.org>
21489         random: Fix test compilation failure on Cygwin 1.5.25.
21490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
21491         HAVE_DECL_SETSTATE.
21492         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
21493         declared.
21494         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
21495         HAVE_DECL_SETSTATE.
21496         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
21497         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
21498         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
21499         * doc/posix-functions/random.texi: Likewise.
21500         * doc/posix-functions/setstate.texi: Likewise.
21501         * doc/posix-functions/srandom.texi: Likewise.
21503 2017-08-16  Bruno Haible  <bruno@clisp.org>
21505         stdnoreturn: Fix test compilation failure on Cygwin.
21506         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
21507         <stdnoreturn.h> replacement.
21508         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
21509         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
21511 2017-08-16  Bruno Haible  <bruno@clisp.org>
21513         thread: Fix conflict with pthread_sigmask module.
21514         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
21515         it's defined as a macro.
21516         * modules/thread (Depends-on): Add pthread_sigmask.
21518 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21520         rename: port better to NetBSD
21521         * doc/posix-functions/rename.texi (rename): NetBSD 7
21522         does not have the link-count bug.
21523         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
21524         broken merely because rename ("a", "b") removes "a" when the two
21525         names are hard links to the same file.
21527 2017-08-16  Bruno Haible  <bruno@clisp.org>
21529         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
21530         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
21531         the target file names with '$(srcdir)/'.
21532         * modules/unicase/locale-language (Makefile.am): Likewise.
21533         * modules/unicase/special-casing (Makefile.am): Likewise.
21534         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
21535         * modules/unictype/category-byname (Makefile.am): Likewise.
21536         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21537         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21538         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21539         * modules/unictype/property-byname (Makefile.am): Likewise.
21540         * modules/unictype/scripts (Makefile.am): Likewise.
21541         * modules/uninorm/composition (Makefile.am): Likewise.
21543 2017-08-16  Bruno Haible  <bruno@clisp.org>
21545         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
21546         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
21547         value for OpenBSD.
21549 2017-08-16  Bruno Haible  <bruno@clisp.org>
21551         rename, renameat: Update doc regarding NetBSD.
21552         * doc/posix-functions/rename.texi: Clarify that when using
21553         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
21554         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
21555         version.
21557 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21559         renameat2: port better to macOS
21560         * lib/renameat2.c (renameat2): Use renameatx_np if available.
21562         futimens: don’t assume struct timespec layout
21563         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
21564         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
21565         * tests/test-fdutimensat.c (main):
21566         * tests/test-futimens.h (test_futimens):
21567         * tests/test-lutimens.h (test_lutimens):
21568         * tests/test-utimens.h (test_utimens):
21569         * tests/test-utimensat.c (main):
21570         Don’t assume that struct timespec is a two-member structure in
21571         tv_sec, tv_nsec order.  Although this is true on all platforms we
21572         know about, POSIX does not guarantee it.
21574         rename: document+test NetBSD rename
21575         Test failure reported by Bruno Haible in:
21576         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
21577         This is an area where NetBSD is better-behaved than POSIX,
21578         so allow the NetBSD behavior in tests.
21579         * doc/posix-functions/rename.texi:
21580         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
21581         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
21583 2017-08-15  Bruno Haible  <bruno@clisp.org>
21585         renameat: Ensure declaration in <stdio.h> on NetBSD.
21586         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
21587         * doc/posix-functions/renameat.texi: Mention this problem.
21589 2017-08-15  Bruno Haible  <bruno@clisp.org>
21591         duplocale: Work around NetBSD 7.0 bug.
21592         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21593         * lib/duplocale.c: Add comment about NetBSD problem.
21594         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21596 2017-08-15  Bruno Haible  <bruno@clisp.org>
21598         duplocale tests: Verify use with *_l functions.
21599         * modules/duplocale-tests (configure.ac): Test for uselocale and
21600         some *_l functions.
21601         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
21602         from main.
21603         (get_locale_dependent_values_from, test_with_locale_parameter): New
21604         functions.
21605         (main): Test both test_with_uselocale and test_with_locale_parameter.
21607 2017-08-15  Bruno Haible  <bruno@clisp.org>
21609         extensions: Enable NetBSD specific extensions.
21610         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
21612 2017-08-14  Bruno Haible  <bruno@clisp.org>
21614         open, openat: Update doc about O_CLOEXEC.
21615         * doc/posix-functions/open.texi: More concrete list of platforms.
21616         * doc/posix-functions/openat.texi: Likewise.
21618 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21620         open: support O_CLOEXEC
21621         * NEWS, doc/posix-functions/open.texi:
21622         * doc/posix-functions/openat.texi: Document this.
21623         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
21624         (GNULIB_defined_O_CLOEXEC): New symbol.
21625         * lib/open.c: Include cloexec.h.
21626         (open): Support O_CLOEXEC.
21627         * lib/openat.c: Include cloexec.h.
21628         (rpl_openat): Support O_CLOEXEC.
21629         * lib/popen-safer.c: Do not include cloexec.h.
21630         (open_noinherit): Remove.
21631         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
21632         * lib/save-cwd.c: Do not include cloexec.h.
21633         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
21634         * m4/open-cloexec.m4: New file.
21635         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
21636         Replace 'open' if O_CLOEXEC is not present.
21637         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
21638         Replace 'openat' if O_CLOEXEC is not present.
21639         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
21640         * modules/open (Files): Add m4/open-cloexec.m4.
21641         (Depends-on): Depend on cloexec if replacing 'open'.
21642         * modules/openat (Files): Add m4/open-cloexec.m4.
21643         (Depends-on): Depend on cloexec if replacing openat.
21644         * modules/popen-safer (Depends-on): Remove cloexec.
21645         * modules/save-cwd (Depends-on): Remove cloexec, and add
21646         fd-safer-flag and 'open'.
21648 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
21650         reallocarray: minor fixes
21651         * doc/glibc-functions/reallocarray.texi: Update version numbers.
21652         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
21653         * modules/reallocarray (License): Change from GPL to LGPL.
21654         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
21655         Indent properly and don't use tabs.
21657 2017-08-13  Darshit Shah  <darnir@gnu.org>
21659         reallocarray: New module
21660         reallocarray is a new function in glibc 2.26 to safely allocate an array
21661         of memory locations with integer overflow protection.
21662         * MODULES.html.sh: Add reallocarray.
21663         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21664         * lib/reallocarray.c: New file to implement module reallocarray.
21665         * lib/stdlib.in.h: Add function declarations for reallocarray.
21666         * m4/reallocarray.m4: New file.
21667         * m4/stdlib_h.m4: Declare reallocarray.
21668         * modules/reallocarray: New file.
21669         * modules/reallocarray-test: New file.
21670         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21671         * tests/test-reallocarray.c: New test.
21673 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21675         dirent-safer: fix cloexec race
21676         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21677         (opendir_safer): Use F_DUPFD_CLOEXEC.
21678         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21679         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21680         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21681         instead of dup_safer.
21683         fts: fix cloexec races
21684         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21685         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21686         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21687         (fd_ring_check): Set cloexec flag on new file descriptors.
21688         (fts_build, fd_ring_check): While we’re at it, make sure the
21689         resulting file descriptor is not 0, 1, or 2, since that is easy.
21691 2017-08-11  Bruno Haible  <bruno@clisp.org>
21693         fts tests: Fix link error.
21694         Reported by Tom G. Christensen in
21695         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21696         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21698 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21700         fts: port recent changes to CentOS 6
21701         Problem reported by Tom G. Christensen in:
21702         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21703         * lib/fts.c (fsword): New type.
21704         (struct dev_type, filesystem_type): Use it.
21705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21706         Also, check for f_type only if fstatfs and sys/vfs.h work.
21708 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21710         tempname: do not depend on secure_getenv
21711         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21712         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21713         * modules/tempname (Depends-on): Remove secure_getenv.
21715 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21717         extensions: add _OPENBSD_SOURCE
21718         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21720 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21721             Bruno Haible  <bruno@clisp.org>
21723         manywarnings: Add support for C++.
21724         * build-aux/g++-warning.spec: New file.
21725         * m4/manywarnings-c++.m4: New file.
21726         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21727         redirects to manywarnings-c++.m4.
21728         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21730 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21732         git-version-gen: another fix for tags with "-"
21733         * build-aux/git-version-gen: Improve fix for tags containing "-".
21734         Suggested by Markus Armbruster in:
21735         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21737 2017-08-06  Bruno Haible  <bruno@clisp.org>
21739         warnings, manywarnings: Add support for multiple languages, not just C.
21740         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21741         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21742         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21743         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21744         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21745         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21746         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21747         of the current language. If C++ is the current language, modify
21748         WARN_CXXFLAGS instead of WARN_CFLAGS.
21749         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21750         gl_MANYWARN_ALL_GCC.
21751         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21753 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21755         git-version-gen: Fix for tags containing '-'
21757         Really old versions of git-describe (before v1.5.0, Feb 2007)
21758         don't have the number of commits in their long format output,
21759         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21760         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21761         recognizes both patterns, and normalizes the old format to the new one.
21763         Unfortunately, this normalization code gets confused when the tag
21764         contains '-'.  Reproducer:
21766             $ git-tag -m test v0.2-rc1
21767             $ build-aux/git-version-gen .tarball-version; echo
21768             build-aux/git-version-gen: WARNING: git rev-list failed
21769             UNKNOWN
21771         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21772         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21773         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21775         * git-version-gen: We could perhaps drop support for versions from
21776         more than a decade ago.  But tightening the pattern match is easy
21777         enough, so do that.  Still breaks when you use version tags ending in
21778         something matching -g????, but you arguably get what you deserve then.
21780 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21782         valgrind-tests: use ls, and cache
21783         * m4/valgrind-tests.m4: Test ls, not bash.
21784         Problem reported by Reuben Thomas.
21785         Also, cache the result so that it can be overridden.
21787 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21789         manywarnings: port to 64-bit GCC builds of Emacs
21790         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21791         object size rather than hardwiring 2147483647.  This is needed to
21792         build GNU Emacs, which has one conditional (and used
21793         only-in-theory) call to malloc with a literal greater than
21794         2147483647.
21796 2017-08-04  Bruno Haible  <bruno@clisp.org>
21798         Relax the license of some modules with no runtime code.
21799         * modules/std-gnu11 (License): Set to 'unlimited'.
21800         * modules/c99 (License): Likewise.
21801         Reported by Reuben Thomas <rrt@sc3d.org>.
21802         * modules/d-ino (License): Set to 'LGPL'.
21803         * modules/host-os (License): Likewise.
21804         * modules/longlong (License): Likewise.
21806 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21808         renameat2: port to RHEL 7 + NFS
21809         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21810         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21811         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21813 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21815         renameat2: port to non-renameat platforms
21816         Problem reported for MSVC-2015 by Gisle Vanem in:
21817         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21818         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21819         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21821 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21823         manywarnings: port to 32-bit GCC bug
21824         Problem reported by Pino Toscano in:
21825         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21826         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21827         not 2**63 - 1, to work around the following GCC bug:
21828         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21830 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21832         backupfile: new function to validate backup suffix
21833         * lib/backupfile.c (set_simple_backup_suffix): New function.
21834         (backupfile_internal): Use it.
21836         canonicalize: fix EOVERFLOW commentary
21837         Problem reported by Bruno Haible in:
21838         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21839         * lib/canonicalize.c (canonicalize_filename_mode):
21840         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21842         Don't interpret EOVERFLOW to mean nonexistence
21843         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21844         may be EOVERFLOW; this is likely more useful than reporting the
21845         stat errno.
21846         * lib/glob.c (link_stat): Rename from link_exists2_p and
21847         return -1/0 instead of 0/1.  Caller changed.
21848         * lib/glob.c (link_exists_p):
21849         * lib/renameat2.c (rename_noreplace, renameat2):
21850         * lib/tempname.c (try_nocreate):
21851         If errno == EOVERFLOW then the directory entry exists, so do not
21852         act as if it does not exist.
21854         backup-rename: new module
21855         It is like backupfile, except it avoids some race conditions,
21856         and it does not output to stderr or exit.
21857         * MODULES.html.sh: Add backup-rename.
21858         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21859         * modules/backup-rename: New files.
21860         * lib/backupfile.c: Turn this into an internals file, which
21861         contains code common to backupfile and backup_rename.  Include
21862         backupfile-internal.h instead of backupfile.h.  Do not include
21863         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21864         renameat2.h and fcntl.h.
21865         (BACKUP_NOMEM): New constant.
21866         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21867         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21868         (backupfile_internal): Rename from find_backup_file_name.
21869         Support new arg RENAME.
21870         (backup_args, backup_types, get_version, xget_version):
21871         Move to lib/backup-find.c.
21872         * lib/backupfile.h (backup_file_rename): New decl.
21873         * modules/backupfile (Files): Add lib/backup-internal.h,
21874         lib/backup-find.c.
21875         (Depends-on): Add dirfd, fcntl, renameat2.
21876         (lib_SOURCES): Add backup-find.c.
21878         renameat2: port better to older Solaris
21879         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21880         Add goto to use a label, to silence picky compilers.
21882         fts-tests: port to gcc -Wwrite-strings
21883         * tests/test-fts.c (base, base_d): New static vars.
21884         (argv, remove_tree, main): Use them.
21886 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21888         relocatable-lib{,-lgpl}: improve documentation
21889         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21890         Various other updates.
21892 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21893             Bruno Haible  <bruno@clisp.org>
21895         relocatable-lib{,-lgpl}: add Valgrind suppressions
21896         * lib/relocatable.valgrind: New file.
21897         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21898         * modules/relocatable-lib-lgpl: Likewise.
21900 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21902         relocatable: Make the license on the sources the GPL.
21903         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21904         LGPL, which was a special case so that the relocatable source files
21905         could be used without gnulib-tool, to GPL. They can still be used under
21906         the LGPL, using the --lgpl option to gnulib-tool.
21908 2017-07-30  Bruno Haible  <bruno@clisp.org>
21910         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21911         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21912         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21913         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21914         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21916 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21918         faccessat: document AT_SYMLINK_NOFOLLOW issue
21919         * doc/posix-functions/faccessat.texi: Modernize platform list.
21920         Document AT_SYMLINK_NOFOLLOW limitation.
21922         renameat2: port to Solaris 10
21923         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21924         with AT_SYMLINK_NOFOLLOW (which is not portable).
21925         (renameat): Undef before using, to avoid endless recursion when
21926         the replacement renameat calls renameat2 which calls the
21927         replacement renameat.
21928         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21929         * modules/renameat2 (Depends-on): Remove faccessat.
21930         * modules/renameat-tests (test_renameat_LDADD):
21931         * modules/renameat2-tests (test_renameat2_LDADD):
21932         Remove $(LIB_EACCESS).
21934         renameat2: new module
21935         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21936         useful to have access to its RENAME_NOREPLACE flag.
21937         * MODULES.html.sh (func_all_modules): Add renameat2.
21938         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21939         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21940         * lib/renameat.c (renameat): Move most of the implementation
21941         to renameat2, and just call renameat2.
21942         * modules/renameat (Files): Remove lib/at-func2.c.
21943         (Depends-on): Depend only on renameat2.
21944         (Include): Remove <fcntl.h>.
21945         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21946         since renameat (via renameat2) might use faccessat.
21948 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21950         vc-list-files: Adjust the script to support git worktrees
21951         * build-aux/vc-list-files: Require existence, not directory.
21953 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21955         doc: bring MODULES.html.sh up to date
21956         Somehow a few months ago we stopped updating MODULES.html.sh.
21957         I don’t recall explicitly deciding this, so I updated it now.
21958         Alternatively I suppose we could remove it.
21959         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21960         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21961         truncate, utime, utime-h, windows-stat-inodes,
21962         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21964 2017-07-26  Jim Meyering  <meyering@fb.com>
21966         fprintftime: fix build-break caused by recent renaming
21967         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21968         "strftime.c".
21969         * modules/fprintftime: Depend directly on nstrftime.
21971 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21973         regex: work with GCC7's -Werror=implicit-fallthrough=
21974         * lib/regex_internal.h (FALLTHROUGH): New macro.
21975         * lib/regcomp.c (peek_token_bracket, parse_expression):
21976         * lib/regexec.c (check_node_accept): Use it.
21978 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21980         fts: simplify fts_build
21981         * lib/fts.c (fts_build): Simplify, and be lazier about
21982         calling leaf_optimization.
21984         fts: three levels of leaf optimization
21985         * lib/fts.c (enum leaf_optimization): New type with three values.
21986         (S_MAGIC_AFS): New macro.  Sort them.
21987         (leaf_optimization): Rename from leaf_optimization_applies, and
21988         return enum leaf_optimization instead of bool.  All uses changed.
21989         Add cases for unknown type and for AFS.
21990         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21992         fts: cache dirent_inode_sort_may_be_useful too
21993         * lib/fts.c (struct dev_type): New struct.
21994         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21995         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21996         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21997         Now takes FTSENT const *, not int.  All uses changed.  Use
21998         filesystem_type to cache.
21999         (link_count_optimize_ok): Remove.  Caller changed to use
22000         leaf_optimization_applies, which now uses shared cache.
22002         fts: introduce MIN_DIR_NLINK
22003         * lib/fts.c (MIN_DIR_NLINK): New constant.
22004         Use it instead of 2, whenever we are talking about link counts.
22006         fts: nlink_t signedness fixups
22007         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
22008         so that root need not be a special case later.
22009         (fts_read): Remove now-redundant test for fts_level.
22010         Do not assume that nlink_t is signed.
22011         (fts_build): Remove useless decrement of nlinks.
22012         (fts_stat): Avoid unlikely signed integer overflow later, if
22013         nlink_t is signed.
22015         fts-tests: new module
22016         * modules/fts-tests, tests/test-fts.c: New files.
22018 2017-07-23  Bruno Haible  <bruno@clisp.org>
22020         Rename module 'strftime' to 'nstrftime'.
22021         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
22022         * lib/nstrftime.c: Renamed from lib/strftime.c.
22023         * modules/nstrftime: Renamed from modules/strftime.
22024         (Files, Makefile.am): Update.
22025         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
22026         Fix comment.
22027         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
22028         (Files, Makefile.am): Update.
22029         * modules/strftime: New file, an obsolete indirection.
22030         * doc/posix-functions/strftime.texi: Update reference.
22031         * config/srclist.txt: Update info.
22032         * NEWS: Mention the change.
22034 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
22036         malloca: Silence a warning from clang's memory sanitizer.
22037         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
22038         (freea): Use it.
22040 2017-07-18  Bruno Haible  <bruno@clisp.org>
22042         host-cpu-c-abi: Fix detection of MIPS ABI.
22043         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
22044         ABI, not the CPU instruction set.
22046 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22048         explicit_bzero: new module
22049         The explicit_bzero function has been added to glibc.
22050         This module is intended to supports its use in GNU programs.
22051         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
22052         * m4/explicit_bzero.m4, modules/explicit_bzero:
22053         New files.
22054         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22055         * lib/string.in.h (explicit_bzero): Declare.
22056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
22057         * modules/string (string.h): Substitute its vars.
22059 2017-07-16  Bruno Haible  <bruno@clisp.org>
22061         threadlib: Support static linking.
22062         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
22063         set gl_cv_have_weak to 'no'.
22065 2017-07-16  Bruno Haible  <bruno@clisp.org>
22067         unicase/locale-language: Fix link dependencies.
22068         * modules/unicase/locale-language (Link): New section.
22069         * modules/unicase/locale-language-tests (Makefile.am): Link
22070         test-locale-language program with $(LIBTHREAD).
22072 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22074         sys_socket: Add support for OpenVMS.
22075         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
22076         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
22078 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22080         sys_resource: Add support for OpenVMS.
22081         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
22082         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
22084 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22085             Bruno Haible  <bruno@clisp.org>
22087         math: Add support for OpenVMS.
22088         * lib/math.in.h [__VMS]: Include <fp.h>.
22089         * doc/posix-headers/math.texi: Mention OpenVMS issues.
22091 2017-07-15  Bruno Haible  <bruno@clisp.org>
22093         getdtablesize: Add minimal support for OpenVMS.
22094         Reported by John E. Malmberg <wb8tyw@qsl.net>.
22095         * modules/getdtablesize (Description): Fix.
22096         * lib/getdtablesize.c: Fix comment.
22097         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
22098         getdtablesize() function, even though the test fails.
22099         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
22100         limitation on OpenVMS.
22102 2017-07-13  Bruno Haible  <bruno@clisp.org>
22104         Revisit cross-compilation guesses.
22105         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
22107 2017-07-13  Bruno Haible  <bruno@clisp.org>
22109         Improve cross-compilation guesses for native Windows.
22110         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
22111         Windows.
22112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
22113         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
22114         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22115         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
22116         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
22117         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
22118         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22119         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22120         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22121         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22122         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22123         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
22124         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
22125         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
22126         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
22127         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22128         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
22129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22130         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22131         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22132         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
22133         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22134         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
22135         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
22136         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
22137         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
22138         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22139         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22140         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22141         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
22142         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22143         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
22144         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22145         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
22146         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
22147         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
22148         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22149         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22150         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22151         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22152         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22154         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
22155         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
22156         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
22157         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
22158         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
22159         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
22160         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
22161         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
22162         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
22163         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
22164         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
22165         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
22166         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
22167         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
22168         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
22169         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22170         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
22171         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22172         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22173         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22174         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22175         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22176         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22178         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
22179         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22180         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
22181         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
22182         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
22183         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
22184         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22185         * m4/regex.m4 (gl_REGEX): Likewise.
22186         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22187         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
22188         gl_FUNC_REMAINDERF_WORKS): Likewise.
22189         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
22190         gl_FUNC_REMAINDERL_WORKS): Likewise.
22191         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22192         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22193         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22194         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22195         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22196         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
22197         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22198         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22199         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
22200         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22201         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
22202         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
22203         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22204         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22205         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22206         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22207         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22208         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22209         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22210         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22211         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22212         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22213         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22214         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22215         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22216         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22217         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22218         Likewise.
22219         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22220         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
22221         Windows. Enable also on Autoconf 2.70.
22222         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22223         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22224         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22225         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
22226         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22227         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
22228         for native Windows.
22229         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22230         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
22232 2017-07-13  Bruno Haible  <bruno@clisp.org>
22234         Improve cross-compilation guesses for native Windows.
22235         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
22236         Windows.
22237         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
22238         memchr.m4.
22239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22241 2017-07-13  Bruno Haible  <bruno@clisp.org>
22243         Improve cross-compilation guesses for native Windows.
22244         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
22245         native Windows.
22246         (gl_FUNC_FFLUSH): Update accordingly.
22247         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
22248         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22250 2017-07-11  Bruno Haible  <bruno@clisp.org>
22252         More systematic m4 quoting and indentation.
22253         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
22254         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22255         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22256         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22257         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22258         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
22259         gl_WINSIZE_IN_PTEM): Likewise.
22260         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
22261         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22262         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22263         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
22264         Correct indentation.
22265         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22266         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22267         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
22268         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22269         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22270         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22272 2017-07-10  Bruno Haible  <bruno@clisp.org>
22274         round, roundf: Avoid compiler warning in configure test.
22275         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
22276         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22278 2017-07-10  Bruno Haible  <bruno@clisp.org>
22280         getlogin tests: Avoid #ifdefs when sharing code between modules.
22281         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
22282         * modules/getlogin-tests (Files): Likewise. Remove
22283         tests/test-getlogin_r.c.
22284         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
22285         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
22286         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
22287         getlogin().
22289 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22291         getlogin: don’t assume one name per uid
22292         Problem reported by Wolfgang F. Muthmann (Bug#27640).
22293         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
22294         (ttyname): Remove test.
22295         * modules/getlogin_r-tests (ttyname): Remove test.
22296         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
22297         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
22298         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
22299         getlogin rather than getlogin_r.  This avoids code duplication.
22300         (main): Use isatty and fstat rather than ttyname and stat.
22301         Use getpwnam instead of getpwuid, to be portable to test platforms
22302         that have multiple login names for the same uid.
22304 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
22305             Bruno Haible  <bruno@clisp.org>
22307         glob: Fix more memory leaks.
22308         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
22309         returning.
22310         Reported by Tim Rühsen.
22312 2017-07-10  Bruno Haible  <bruno@clisp.org>
22314         Make sure $host and $host_os are defined when used.
22315         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
22316         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
22317         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
22318         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22319         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22320         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22321         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22322         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22323         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22324         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22325         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
22326         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
22327         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22328         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
22329         m4_ifdef block.
22331 2017-07-09  Bruno Haible  <bruno@clisp.org>
22333         *printf: Fix cross-compilation guess for Solaris.
22334         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
22335         2010-12-21.
22337 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22338             Bruno Haible  <bruno@clisp.org>
22340         vasnprintf: port to macOS 10.13
22341         Problem reported by comex in:
22342         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22343         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22345 2017-07-06  Bruno Haible  <bruno@clisp.org>
22347         imaxdiv tests: Fix logic.
22348         * tests/test-imaxdiv.c (main): Use == instead of =.
22349         Reported by Coverity.
22351 2017-07-06  Bruno Haible  <bruno@clisp.org>
22353         uninorm/filter: Fix use-after-free bug.
22354         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22355         sortbuf == filter->sortbuf invariant.
22356         Reported by Coverity.
22358 2017-07-06  Bruno Haible  <bruno@clisp.org>
22360         glob: Fix more memory leaks.
22361         * lib/glob.c (glob): Free dirname before returning.
22362         Reported by Coverity and Tim Rühsen.
22364 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22366         parse-datetime: fix uninit var bug
22367         Reported by Bruno Haible in:
22368         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22369         * lib/parse-datetime.y (parse_datetime2): Do not use
22370         uninitialized.
22372 2017-07-05  Bruno Haible  <bruno@clisp.org>
22374         doc: Update for MSVC 14.
22375         * doc/posix-headers/*.texi: Add info about MSVC 14.
22376         * doc/posix-functions/*.texi: Likewise.
22377         * doc/pastposix-functions/*.texi: Likewise.
22378         * doc/glibc-headers/*.texi: Likewise.
22379         * doc/glibc-functions/*.texi: Likewise.
22381 2017-07-05  Bruno Haible  <bruno@clisp.org>
22383         sched: Fix build failure on native Windows (regression from 2017-06-19).
22384         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22386 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22388         stdioext: Port to OpenVMS.
22389         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22390         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22391         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22392         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22393         * lib/fpurge.c (fpurge): Likewise.
22394         * lib/freadable.c (freadable): Likewise.
22395         * lib/freadahead.c (freadahead): Likewise.
22396         * lib/freading.c (freading): Likewise.
22397         * lib/freadptr.c (freadptr): Likewise.
22398         * lib/freadseek.c (freadseek): Likewise.
22399         * lib/fseeko.c (fseeko): Likewise.
22400         * lib/fseterr.c (fseterr): Likewise.
22401         * lib/fwritable.c (fwriteable): Likewise.
22402         * lib/fwriting.c (fwriting): Likewise.
22404 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22406         glob: Declare variables at the very start of their scope.
22407         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22408         its separate scope, so the functions will compile on Haiku.
22410 2017-07-01  Bruno Haible  <bruno@clisp.org>
22412         logbl: Work around a glibc bug on PowerPC64LE.
22413         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22414         numbers.
22415         * doc/posix-functions/logbl.texi: Update.
22417 2017-06-29  Bruno Haible  <bruno@clisp.org>
22419         stat, fstat: Compile stat-w32.c only on platforms that need it.
22420         Suggested by Paul Eggert.
22421         * modules/stat (configure.ac): Request stat-w32.o only on native
22422         Windows.
22423         * modules/fstat (configure.ac): Likewise.
22425 2017-06-25  Bruno Haible  <bruno@clisp.org>
22427         stat: Improve last change.
22428         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22430 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22432         stat: port to xlc 12.01
22433         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22434         12.01 complains "Compilation unit is empty."
22436 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22438         xalloc-oversized: port to icc
22439         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22440         __builtin_mul_overflow if ICC is defined, as this results in
22441         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22442         20170213.
22444 2017-06-19  Bruno Haible  <bruno@clisp.org>
22446         classpath: Avoid including config.h twice, as it produces warnings.
22447         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22448         * lib/classpath.h: Conditionalize the include of config.h.
22450 2017-06-19  Bruno Haible  <bruno@clisp.org>
22451             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
22453         sched: Fix compilation failure on OpenVMS.
22454         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
22455         test whether <pthread.h> exists and defines struct sched_param.
22456         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
22458 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22460         diffseq: port to GCC 7 with --enable-gcc-warnings
22461         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
22462         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
22463         not complain about big_snake being defined but not used.
22465 2017-06-15  Bruno Haible  <bruno@clisp.org>
22467         gettext-h: Update theoretical condition for use of variable size arrays.
22468         Reported by Paul Eggert.
22469         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
22470         to include the theoretical condition for availability of variable size
22471         arrays, if we could trust the value of __STDC_VERSION__.
22473 2017-06-12  Bruno Haible  <bruno@clisp.org>
22475         Relicense some modules under LGPLv2+.
22476         Daiki Ueno's approval is in
22477         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
22478         * modules/uniwidth/base (License): Change to LGPLv2+.
22479         * modules/uniwidth/width (License): Likewise.
22481 2017-06-11  Bruno Haible  <bruno@clisp.org>
22483         localename: Fix test failure on DragonFly BSD.
22484         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
22485         like FreeBSD.
22487 2017-06-11  Bruno Haible  <bruno@clisp.org>
22489         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
22490         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
22491         * lib/float.in.h: Likewise.
22492         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
22494 2017-06-11  Bruno Haible  <bruno@clisp.org>
22496         gnulib-tool: Clean up after autotools.
22497         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
22498         useless directory left over by the Autotools.
22500 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22502         getopt-posix: port to glibc 2.25.90
22503         Problem reported by Daniel P. Berrange in:
22504         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
22505         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
22506         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
22507         #undef if __GETOPT_PREFIX is defined.
22509 2017-06-11  Bruno Haible  <bruno@clisp.org>
22511         strtod-obsolete: Fix license.
22512         * modules/strtod-obsolete (License): Change to LGPL.
22514 2017-06-10  Jim Meyering  <meyering@fb.com>
22516         maint: update to work with GCC7's -Werror=implicit-fallthrough=
22517         * lib/savewd.c (FALLTHROUGH): Define.
22518         (savewd_save, savewd_restore): Use this, rather than a comment,
22519         whenever one switch case falls through into the next.
22521 2017-06-08  Bruno Haible  <bruno@clisp.org>
22523         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
22524         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
22525         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
22526         case.
22528 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22530         doc: remove robots, add prereqs
22531         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
22532         builds.  Simon's robot site does not seem to be up, so remove
22533         mentions of it for now.
22535 2017-06-08  Bruno Haible  <bruno@clisp.org>
22537         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
22538         * gnulib-tool (func_symlink_target): New function, extracted from
22539         func_symlink.
22540         (func_symlink, func_symlink_if_changed): Use it.
22542 2017-06-08  Bruno Haible  <bruno@clisp.org>
22544         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
22545         * gnulib-tool (func_ln_s): Determine cp_src correctly.
22547 2017-06-07  Bruno Haible  <bruno@clisp.org>
22549         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
22550         Reported by John E. Malmberg <wb8tyw@gmail.com> in
22551         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
22552         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
22553         override, pass 2 arguments to getcwd, not 3.
22555 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22557         same-inode: port better to VMS 8.2 and later
22558         Problem reported by John E. Malmberg in:
22559         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
22560         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
22561         Use the usual POSIX definition.
22562         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
22564 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22566         error: fix POSIX violation for va_end
22567         Problem reported by Bruno Haible in:
22568         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
22569         * lib/error.c (error_tail): Do not call va_end here.
22570         (error, error_at_line): Call it here instead.
22572 2017-05-28  Bruno Haible  <bruno@clisp.org>
22574         c-strtod: Make it usable in C++ mode.
22575         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
22577 2017-05-25  Jim Meyering  <meyering@fb.com>
22579         quotearg: fix compilation failure due to FALLTHROUGH misuse
22580         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
22581         macro back to /* fall through */ comment.  The macro can apply only
22582         to a following case statement.  Reported by Assaf Gordon.
22584 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22586         intprops: port to recent icc
22587         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
22588         but does not support __builtin_add_overflow etc.
22589         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22590         Define to 0.
22592 2017-05-23  Karl Berry  <karl@freefriends.org>
22594         * config/srclist.txt (iconv.m4): sync broken, comment out
22595         until (hopefully) the next gettext release.
22597 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
22599         Remove repeated words in comments.
22601 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
22603         fallthrough: reinstate a FALLTHROUGH instance in quotearg
22604         quotearg.c: Reinstate this instance which is significant
22605         when the if branch is not taken.
22607 2017-05-21  Bruno Haible  <bruno@clisp.org>
22609         gnulib-tool: Add options to create hard links.
22610         * gnulib-tool (func_usage): Document options --hardlink,
22611         --local-hardlink, --more-hardlinks.
22612         (func_symlink): Renamed from func_ln.
22613         (func_symlink_if_changed): Renamed from func_ln_if_changed.
22614         (func_hardlink): New function.
22615         (copymode, lcopymode): New variables.
22616         (symbolic, lsymbolic): Remove variables.
22617         (Options): Implement options --hardlink, --local-hardlink,
22618         --more-hardlinks.
22619         (func_should_link): Renamed from func_should_symlink. Set copyaction.
22620         (func_add_file, func_update_file): Update invocation of
22621         func_should_link. Invoke func_hardlink when appropriate.
22622         (func_import): Update comments.
22623         (func_create_testdir): Update invocation of func_should_link. Invoke
22624         func_hardlink when appropriate.
22625         Finally, invoke 'git update-index --refresh' to mitigate the effects of
22626         the hard links on git.
22628 2017-05-20  Bruno Haible  <bruno@clisp.org>
22630         argp: Simplify bit manipulation.
22631         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
22632         on a signed integer type.
22634 2017-05-20  Bruno Haible  <bruno@clisp.org>
22636         Avoid wrong configure results with gcc -fsanitize=address.
22637         This completes the work done on 2016-02-06 on this topic.
22638         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
22639         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22641         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22642         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
22643         returning.
22644         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22645         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
22646         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22647         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22648         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22649         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
22651         free allocated memory before returning.
22652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22653         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
22654         objects before returning.
22655         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
22656         returning.
22658 2017-05-20  Bruno Haible  <bruno@clisp.org>
22660         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22661         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22663 2017-05-20  Bruno Haible  <bruno@clisp.org>
22665         argp, tsearch tests: Fix file list.
22666         * modules/argp-tests (Files): Add tests/macros.h.
22667         * modules/tsearch-tests (Files): Likewise.
22669 2017-05-20  Bruno Haible  <bruno@clisp.org>
22671         getopt-posix tests: Remove redundant include.
22672         * tests/test-getopt.h: Don't include "macros.h". It's already included
22673         by tests/test-getopt-main.h.
22675 2017-05-19  Jim Meyering  <meyering@fb.com>
22677         dfa: two small simplifications
22678         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22680 2017-05-18  Jim Meyering  <meyering@fb.com>
22682         fallthrough: update for GCC 7/8
22683         * lib/quotearg.c (FALLTHROUGH): New macro.
22684         Use it whenever one switch case falls through into the next,
22685         replacing "/* Fall through */" comments.  This exposed one
22686         instance of an unwarranted "fall through" comment: unwarranted
22687         because it preceded a "goto" label not a case statement.
22688         * lib/freopen-safer.c (freopen_safer): Likewise.
22689         * lib/fts.c (leaf_optimization_applies): Likewise.
22690         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22691         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22692         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22693         tests/macros.h for the definition.
22694         * tests/test-argp.c (group1_parser): Likewise.
22695         * tests/test-getopt.h (getopt_loop): Likewise.
22697 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22699         argp: fix shift bug
22700         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22701         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22703         argp: fix pointer-subtraction bug
22704         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22705         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22706         See the thread containing Bruno Haible’s report in:
22707         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22709 2017-05-19  Bruno Haible  <bruno@clisp.org>
22711         printf-posix tests: Avoid test failure with "gcc --coverage".
22712         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22713         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22714         than 5000000.
22715         * tests/test-fprintf-posix2.c (main): Likewise.
22717 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22719         closeout: don’t close stderr when sanitizing
22720         * NEWS: Document this.
22721         * lib/closeout.c (__has_feature): New macro, if not already defined.
22722         (SANITIZE_ADDRESS): New constant.
22723         (close_stdout): Don’t close stderr if sanitizing addresses.
22725 2017-05-19  Bruno Haible  <bruno@clisp.org>
22727         get-rusage-data tests: Avoid failure on Linux/glibc.
22728         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22729         on glibc systems.
22731 2017-05-18  Bruno Haible  <bruno@clisp.org>
22733         localename: Include necessary header files on Cygwin.
22734         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22735         where NL_LOCALE_NAME is defined.
22737 2017-05-18  Bruno Haible  <bruno@clisp.org>
22739         gettext: Update macros from gettext git.
22740         * m4/intldir.m4: Require Autoconf >= 2.60.
22741         * m4/progtest.m4: Fix typos in copyright notice.
22743 2017-05-18  Bruno Haible  <bruno@clisp.org>
22745         copy-file tests: Fix link error (regression from 2017-05-01).
22746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22747         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22748         $(LIB_CLOCK_GETTIME).
22750 2017-05-18  Bruno Haible  <bruno@clisp.org>
22752         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22753         (regression from 2017-02-13).
22754         * lib/unicase/special-casing.in.h: Renamed from
22755         lib/unicase/special-casing.h.
22756         * modules/unicase/special-casing (Files): Add
22757         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22758         (Makefile.am): Add rule for generating unicase/special-casing.h.
22759         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22760         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22761         not "special-casing.h".
22762         * lib/unicase/u*.c: Likewise.
22764 2017-05-17  Bruno Haible  <bruno@clisp.org>
22766         README: Don't ask people to read a TeXinfo file.
22767         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22768         * README: Tell people how to read the HTML formatted manual.
22770 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22772         parse-datetime: Fix memleak
22773         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22774         localtime_rz() failure.
22776 2017-05-16  Bruno Haible  <bruno@clisp.org>
22778         javacomp: Fix handle leak.
22779         Found by Coverity.
22780         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22782 2017-05-16  Bruno Haible  <bruno@clisp.org>
22784         relocate: Make it easier to reclaim allocated memory.
22785         * lib/relocatable.h (relocate2): New declaration/macro.
22786         * lib/relocatable.c (relocate2): New function.
22787         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22788         relocate2 function.
22789         * lib/localcharset.c (relocate2): Define fallback.
22790         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22791         allocated memory.
22792         * lib/javaversion.c (relocate2): Define fallback.
22793         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22794         allocated memory.
22796 2017-05-16  Bruno Haible  <bruno@clisp.org>
22798         relocate: Simplify EMX specific code.
22799         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22800         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22802 2017-05-16  Bruno Haible  <bruno@clisp.org>
22804         sigpipe tests: Fix file list.
22805         * modules/sigpipe-tests (Files): Add tests/macros.h.
22807 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22809         manywarnings: update for GCC 7
22810         * build-aux/gcc-warning.spec:
22811         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22812         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22813         requires a non-comment fallthrough attribute.  This is a bit
22814         cleaner than the comment versions.
22815         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22816         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22817         Use it whenever one switch case falls through into the next.
22818         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22819         Use FALLTHROUGH macro.
22821 2017-05-15  Bruno Haible  <bruno@clisp.org>
22823         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22824         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22825         @ALLOCA@, not @LTALLOCA@.
22827 2017-05-15  Bruno Haible  <bruno@clisp.org>
22829         sys_select: Avoid "was expanded before it was required" warning.
22830         * modules/sys_select (configure.ac): Require, not invoke,
22831         gl_HEADER_SYS_SELECT.
22833 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22835         gnulib-tool: improve GNU Make debugging
22836         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22837         Report autoconf diagnostics when it fails, in the output makefile.
22839 2017-05-14  Bruno Haible  <bruno@clisp.org>
22841         stat-time tests: Improve comment.
22842         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22844 2017-05-14  Bruno Haible  <bruno@clisp.org>
22846         same-inode: Adapt for windows-stat-inodes.
22847         * lib/same-inode.h: Include <sys/types.h>.
22848         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22849         * modules/same-inode (Depends-on): Add sys_types.
22851 2017-05-14  Bruno Haible  <bruno@clisp.org>
22853         windows-stat-inodes: New module.
22854         * m4/windows-stat-inodes.m4: New file.
22855         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22856         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22857         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22858         (_GL_WINDOWS_STAT_INODES): New macro.
22859         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22860         (GetFileInformationByHandleExFunc): New variable.
22861         (initialize): Initialize it.
22862         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22863         st_ino appropriately.
22864         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22865         a fallback, because it does not provide st_dev and st_ino values.
22866         * modules/fstat (Depends-on): Add 'verify'.
22867         * modules/windows-stat-inodes: New file.
22868         * doc/windows-stat-inodes.texi: New file.
22869         * doc/gnulib.texi: Include it.
22870         * doc/posix-headers/sys_stat.texi: Mention the new module.
22872 2017-05-14  Bruno Haible  <bruno@clisp.org>
22874         stat-time tests: Workaround for native Windows.
22875         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22876         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22877         New variables.
22878         (initialize_filenames): New function.
22879         (main): Invoke it.
22880         (cleanup, prepare_test): Update.
22882 2017-05-14  Bruno Haible  <bruno@clisp.org>
22884         stat-time: Adapt for windows-stat-timespec.
22885         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22886         entire st_ctim field.
22888 2017-05-13  Jim Meyering  <meyering@fb.com>
22890         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22891         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22892         file that uses the assume macro, claiming that verify.h is unused.
22894 2017-05-13  Bruno Haible  <bruno@clisp.org>
22896         Use symbolic values for _WIN32_WINNT.
22897         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22898         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22900 2017-05-13  Bruno Haible  <bruno@clisp.org>
22902         year2038: New module.
22903         * m4/year2038.m4: New file.
22904         * modules/year2038: New file.
22905         * doc/year2038.texi: New file.
22906         * doc/gnulib.texi: Include it.
22908 2017-05-13  Bruno Haible  <bruno@clisp.org>
22910         largefile: Simplify.
22911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22912         of _GL_WINDOWS_64_BIT_ST_SIZE.
22914 2017-05-13  Bruno Haible  <bruno@clisp.org>
22916         largefile: Improve and document.
22917         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22918         the mingw headers already define 'stat' appropriately.
22919         * modules/largefile (Description): Clarify.
22920         * doc/largefile.texi: New file.
22921         * doc/gnulib.texi: Include it.
22922         * doc/posix-headers/sys_types.texi: Update.
22924 2017-05-13  Bruno Haible  <bruno@clisp.org>
22926         truncate: New module.
22927         * lib/unistd.in.h (truncate): New declaration.
22928         * lib/truncate.c: New file.
22929         * m4/truncate.m4: New file.
22930         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22931         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22932         REPLACE_TRUNCATE.
22933         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22934         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22935         * modules/truncate: New file.
22936         * tests/test-unistd-c++.cc (truncate): Test signature.
22937         * doc/posix-functions/truncate.texi: Mention the new module.
22939         * tests/test-truncate.c: New file.
22940         * modules/truncate-tests: New file.
22942 2017-05-13  Bruno Haible  <bruno@clisp.org>
22944         windows-stat-timespec: New module.
22945         * modules/windows-stat-timespec: New file.
22946         * m4/windows-stat-timespec.m4: New file.
22947         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22948         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22949         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22950         fields st_atim, st_mtim, st_ctim.
22951         (st_atime, st_mtime, st_ctime): Define as macros.
22952         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22953         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22954         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22955         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22956         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22957         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22958         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22959         FILETIME to 'struct timespec', not 'time_t'.
22960         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22961         FILETIME to 'struct timespec', not 'time_t'.
22962         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22963         _GL_WINDOWS_STAT_TIMESPEC.
22964         * doc/windows-stat-timespec.texi: New file.
22965         * doc/gnulib.texi: Include it.
22967 2017-05-13  Bruno Haible  <bruno@clisp.org>
22969         windows-stat-override: New module.
22970         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22971         definition. Define GNULIB_defined_struct_stat.
22972         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22973         link error if this symbol is used and the corresponding module is not
22974         in use.
22975         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22976         GNULIB_OVERRIDES_STRUCT_STAT.
22977         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22978         GNULIB_OVERRIDES_STRUCT_STAT.
22979         * modules/sys_stat (Makefile.am): Substitute
22980         GNULIB_OVERRIDES_STRUCT_STAT.
22981         * modules/windows-stat-override: New file.
22983 2017-05-13  Bruno Haible  <bruno@clisp.org>
22985         fstat: Fix module dependency conditions.
22986         * modules/fstat (Depends-on): Fix typo.
22988 2017-05-13  Bruno Haible  <bruno@clisp.org>
22990         stat, fstat: Complete removal of old native Windows code.
22991         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22992         * lib/fstat.c: Likewise.
22993         * lib/stat-w32.c: Likewise.
22995 2017-05-13  Bruno Haible  <bruno@clisp.org>
22997         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22998         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
23000 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23002         getopt-posix: port to mingw
23003         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
23004         Problem reported by Daniel P. Berrage in:
23005         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
23007 2017-05-11  Bruno Haible  <bruno@clisp.org>
23009         gettimeofday: Increase precision on mingw.
23010         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
23011         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
23012         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
23013         GetSystemTimePreciseAsFileTime based implementation always.
23014         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
23015         mingw.
23017 2017-05-11  Bruno Haible  <bruno@clisp.org>
23019         poll: Fix confusion between SOCKETs and FDs on native Windows.
23020         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
23021         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
23023 2017-05-11  Bruno Haible  <bruno@clisp.org>
23025         doc: Clarify doc about socket functions on native Windows.
23026         This reworks doc that was added on 2008-09-29.
23027         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
23028         clearer wording.
23029         * doc/posix-functions/accept.texi: Use clearer wording.
23030         * doc/posix-functions/bind.texi: Likewise.
23031         * doc/posix-functions/connect.texi: Likewise.
23032         * doc/posix-functions/getpeername.texi: Likewise.
23033         * doc/posix-functions/getsockname.texi: Likewise.
23034         * doc/posix-functions/getsockopt.texi: Likewise.
23035         * doc/posix-functions/ioctl.texi: Likewise.
23036         * doc/posix-functions/listen.texi: Likewise.
23037         * doc/posix-functions/recv.texi: Likewise.
23038         * doc/posix-functions/recvfrom.texi: Likewise.
23039         * doc/posix-functions/send.texi: Likewise.
23040         * doc/posix-functions/sendto.texi: Likewise.
23041         * doc/posix-functions/setsockopt.texi: Likewise.
23042         * doc/posix-functions/shutdown.texi: Likewise.
23043         * doc/posix-functions/socket.texi: Likewise.
23045 2017-05-10  Bruno Haible  <bruno@clisp.org>
23047         poll: Fix link error on native Windows.
23048         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
23050 2017-05-10  Bruno Haible  <bruno@clisp.org>
23052         time: Fix missing initialization of HAVE_TIMEZONE_T.
23053         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
23054         here...
23055         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
23056         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
23057         gl_HEADER_SYS_TIME_H_DEFAULTS.
23058         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
23059         (configure.ac): Remove useless quoting.
23061 2017-05-10  Bruno Haible  <bruno@clisp.org>
23063         Implement a way to opt out from MSVC support, part 2.
23064         * modules/msvc-inval (Include): Document recommended idiom.
23065         * modules/msvc-nothrow (Include): Likewise.
23067         Implement a way to opt out from MSVC support.
23068         This is useful for Emacs.
23069         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
23070         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
23071         * lib/error.c: Likewise.
23072         * lib/fcntl.c: Likewise.
23073         * lib/flock.c: Likewise.
23074         * lib/fstat.c: Likewise.
23075         * lib/fsync.c: Likewise.
23076         * lib/ioctl.c: Likewise.
23077         * lib/isapipe.c: Likewise.
23078         * lib/lseek.c: Likewise.
23079         * lib/nonblocking.c: Likewise.
23080         * lib/poll.c: Likewise.
23081         * lib/select.c: Likewise.
23082         * lib/sockets.h: Likewise.
23083         * lib/sockets.c: Likewise.
23084         * lib/stdio-read.c: Likewise.
23085         * lib/stdio-write.c: Likewise.
23086         * lib/utimens.c: Likewise.
23087         * lib/w32sock.h: Likewise.
23088         * lib/w32spawn.h: Likewise.
23089         * tests/test-cloexec.c: Likewise.
23090         * tests/test-dup-safer.c: Likewise.
23091         * tests/test-dup2.c: Likewise.
23092         * tests/test-dup3.c: Likewise.
23093         * tests/test-fcntl.c: Likewise.
23094         * tests/test-pipe.c: Likewise.
23095         * tests/test-pipe2.c: Likewise.
23096         * lib/ftruncate.c: Likewise.
23097         (chsize_nothrow): Renamed from chsize.
23098         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
23099         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23100         * lib/close.c: Likewise.
23101         * lib/dup.c: Likewise.
23102         * lib/fclose.c: Likewise.
23103         * lib/raise.c: Likewise.
23104         * tests/test-fgetc.c: Likewise.
23105         * tests/test-fputc.c: Likewise.
23106         * tests/test-fread.c: Likewise.
23107         * tests/test-fwrite.c: Likewise.
23108         * lib/getdtablesize.c: Likewise.
23109         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
23110         * lib/isatty.c: Don't include msvc-inval.h if
23111         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23112         Include <io.h> as an alternative to msvc-nothrow.h.
23113         * lib/read.c: Likewise.
23114         * lib/write.c: Likewise.
23115         * lib/dup2.c: Likewise.
23116         (dup2_nothrow): New function.
23117         (ms_windows_dup2): Use it.
23118         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
23119         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
23120         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23121         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
23122         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
23123         * m4/read.m4 (gl_FUNC_READ): Likewise.
23124         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
23125         * doc/windows-without-msvc.texi: New file.
23126         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
23127         section.
23129 2017-05-10  Bruno Haible  <bruno@clisp.org>
23131         wait-process: Adjust native Windows support.
23132         * lib/wait-process.c: Use the usual condition for recognizing a native
23133         Windows platform.
23135 2017-05-10  Bruno Haible  <bruno@clisp.org>
23137         doc: New chapter "Native Windows Support".
23138         * doc/gnulib.texi (Native Windows Support): New chapter.
23139         * doc/windows-libtool.texi: Small wording changes.
23140         * doc/windows-sockets.texi: Small wording and formatting changes.
23142 2017-05-10  Bruno Haible  <bruno@clisp.org>
23144         doc: Move section "Library version handling".
23145         * doc/gnulib.texi: Move section "Library version handling"
23146         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
23148 2017-05-10  Bruno Haible  <bruno@clisp.org>
23150         doc: Move section "Running self-tests under valgrind".
23151         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
23152         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
23154 2017-05-10  Bruno Haible  <bruno@clisp.org>
23156         doc: New chapter "Build Infrastructure Modules".
23157         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
23159 2017-05-10  Bruno Haible  <bruno@clisp.org>
23161         Prepare for reordering sections in the manual.
23162         * doc/gnulib.texi: Move several sections to separate files. Include
23163         these files.
23164         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
23165         * doc/obsolete.texi: Likewise.
23166         * doc/extra-tests.texi: Likewise.
23167         * doc/transversal.texi: Likewise.
23168         * doc/namespace.texi: Likewise.
23169         * doc/check-version.texi: Likewise.
23170         * doc/windows-sockets.texi: Likewise.
23171         * doc/windows-libtool.texi: Likewise.
23172         * doc/licenses-texi.texi: Likewise.
23173         * doc/build-automation.texi: Likewise.
23174         * doc/c-locale.texi: Likewise.
23176 2017-05-10  Bruno Haible  <bruno@clisp.org>
23178         Fix instructions how to update manual on www.gnu.org.
23179         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
23181 2017-05-09  Bruno Haible  <bruno@clisp.org>
23183         tzset: Expand comment about TZ problem on native Windows.
23184         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
23185         Paul Eggert.
23186         * lib/ctime.c (rpl_ctime): Likewise.
23187         * lib/localtime.c (rpl_localtime): Likewise.
23188         * lib/mktime.c (mktime): Likewise.
23189         * lib/strftime-fixes.c (rpl_strftime): Likewise.
23190         * lib/wcsftime.c (rpl_wcsftime): Likewise.
23192 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23194         intprops: don’t depend on ‘verify’
23195         Problem reported by Ævar Arnfjörð Bjarmason in:
23196         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
23197         * lib/intprops.h: Do not include verify.h, and move compile-time
23198         checks from here ...
23199         * tests/test-intprops.c (main): ... to here, if they’re not here
23200         already.  Check widths of other standard integer types.
23201         * modules/intprops (Depends-on): Remove ‘verify’.
23203 2017-05-07  Bruno Haible  <bruno@clisp.org>
23205         utimens: On native Windows, support 100ns resolution also if fd < 0.
23206         * lib/utime.in.h: Include <time.h>.
23207         (_gl_utimens_windows): New declaration.
23208         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
23209         (utime): Invoke it.
23210         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
23211         instead of utime.
23212         * modules/utime (Depends-on): Add 'time'.
23214 2017-05-07  Bruno Haible  <bruno@clisp.org>
23216         utimens: Improve error code on native Windows.
23217         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
23218         error code EACCES, not EINVAL.
23220 2017-05-07  Bruno Haible  <bruno@clisp.org>
23222         utime: Handle more Windows error codes.
23223         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
23224         Based on explanations by Billy O'Neal.
23226 2017-05-05  Bruno Haible  <bruno@clisp.org>
23228         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
23229         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
23230         union.
23231         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
23232         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
23233         value of cipher->IV.
23235 2017-05-05  Bruno Haible  <bruno@clisp.org>
23237         wctype-h-c++-tests: Update.
23238         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
23240 2017-05-05  Bruno Haible  <bruno@clisp.org>
23242         wchar-c++-tests: Update.
23243         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
23245 2017-05-05  Bruno Haible  <bruno@clisp.org>
23247         utime-h-c++-tests: New module.
23248         * tests/test-utime-h-c++.cc: New file.
23249         (utime): Declare, missing since 2017-04-30.
23250         * modules/utime-h-c++-tests: New file.
23252 2017-05-05  Bruno Haible  <bruno@clisp.org>
23254         unistd-c++-tests: Update.
23255         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
23256         (read): Declare, missing since 2011-04-15.
23257         (sethostname): Declare, missing since 2011-12-03.
23259 2017-05-05  Bruno Haible  <bruno@clisp.org>
23261         time-c++-tests: Update.
23262         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
23263         (localtime, gmtime): Declare, missing since 2017-04-30.
23264         (ctime): Declare, missing since 2017-04-30.
23265         (strftime): Declare, missing since 2017-04-30.
23266         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
23267         2015-07-24.
23269 2017-05-05  Bruno Haible  <bruno@clisp.org>
23271         sys_resource-c++-tests: New module.
23272         * tests/test-sys_resource-c++.cc: New file.
23273         (getrusage): Declare, missing since 2012-04-13.
23274         * modules/sys_resource-c++-tests: New file.
23276 2017-05-05  Bruno Haible  <bruno@clisp.org>
23278         strings-c++-tests: New module.
23279         * tests/test-strings-c++.cc: New file.
23280         (ffs): Declare, missing since 2011-07-12.
23281         * modules/strings-c++-tests: New file.
23283 2017-05-05  Bruno Haible  <bruno@clisp.org>
23285         string-c++-tests: Update.
23286         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
23287         (ffsll): Declare, missing since 2011-07-15.
23289 2017-05-05  Bruno Haible  <bruno@clisp.org>
23291         stdlib-c++-tests: Update.
23292         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
23293         2011-10-18.
23294         (ptsname_r): Declare, missing since 2011-11-07.
23295         (qsort_r): Declare, missing since 2014-08-29.
23296         (random, srandom, initstate, setstate): Declare, missing since
23297         2012-01-14.
23298         (secure_getenv): Declare, missing since 2013-02-05.
23300 2017-05-05  Bruno Haible  <bruno@clisp.org>
23302         stdio-c++-tests: Update.
23303         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
23305 2017-05-05  Bruno Haible  <bruno@clisp.org>
23307         signal-h-c++-tests: Update.
23308         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
23310 2017-05-05  Bruno Haible  <bruno@clisp.org>
23312         math-c++-tests: Update.
23313         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
23314         (fma): Declare, missing since 2011-10-17.
23315         (fmal): Declare, missing since 2011-10-17.
23317 2017-05-05  Bruno Haible  <bruno@clisp.org>
23319         locale-c++-tests: Update.
23320         * tests/test-locale-c++.cc (localeconv): Declare, missing since
23321         2012-03-25.
23323 2017-05-05  Bruno Haible  <bruno@clisp.org>
23325         inttypes-c++-tests: New module.
23326         * tests/test-inttypes-c++.cc: New file.
23327         (strtoimax): Declare, missing since 2012-01-05.
23328         (strtoumax): Declare, missing since 2012-01-05.
23329         * modules/inttypes-c++-tests: New file.
23331 2017-05-05  Bruno Haible  <bruno@clisp.org>
23333         dirent-c++-tests: Update.
23334         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
23335         (rewinddir): Declare, missing since 2011-09-13.
23336         (dirfd): Declare, missing since 2010-03-08.
23338 2017-05-04  Bruno Haible  <bruno@clisp.org>
23340         argp: Fix mistake in 2017-04-23 commit.
23341         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23342         assume that strerror_r returns 'int', not 'char *'.
23344 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23346         argp: Fix typo.
23347         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23349 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23351         utimens: port to Emacs + MS-Windows
23352         Skip the new MS-Windows-specific code if Emacs.
23353         * lib/utimens.c [EMACS_CONFIGUATION]:
23354         Avoid new MS-Windows-specific code.
23355         (USE_SETFILETIME): New macro.
23356         (fdutimens): Use it.
23358 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23360         tzset: update doc for TZ problems on MS-Windows
23361         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23362         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23363         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23364         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23365         * doc/posix-functions/wcsftime.texi:
23366         Mention some issues with TZ under MS-Windows.
23368 2017-05-01  Bruno Haible  <bruno@clisp.org>
23370         copy-file: Fix build error on mingw.
23371         * modules/copy-file (Depends-on): Add 'close'.
23373 2017-05-01  Bruno Haible  <bruno@clisp.org>
23375         tzset: Work around TZ problem on native Windows.
23376         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23377         Windows, set REPLACE_TZSET to 1.
23378         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23379         invoke '_tzset' instead of 'tzset'.
23380         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23382         * modules/time_rz (Depends-on): Add tzset.
23383         * lib/time_rz.c (tzset): Remove fallback definition.
23384         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23386 2017-05-01  Bruno Haible  <bruno@clisp.org>
23388         mktime: Fix dependencies.
23389         * modules/mktime (Depends-on): Add 'time'.
23391 2017-05-01  Bruno Haible  <bruno@clisp.org>
23393         New module 'localtime-buffer', split off from module 'gettimeofday'.
23394         * lib/localtime-buffer.h: New file.
23395         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23396         * lib/time.in.h (tzset): New declaration.
23397         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23398         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23399         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23400         moved to lib/localtime-buffer.c or lib/tzset.c.
23401         * m4/localtime-buffer.m4: New file.
23402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23403         HAVE_TZSET, REPLACE_TZSET.
23404         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23405         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23406         gl_LOCALTIME_BUFFER_NEEDED.
23407         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23408         since 2007-01-18.
23409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23410         tzset.
23411         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23412         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23413         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23414         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23415         * modules/localtime-buffer: New file.
23416         * modules/time (Depends-on): Remove 'gettimeofday'.
23417         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23418         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23419         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23420         (Files): Add lib/tzset.c.
23421         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23422         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23423         gl_TIME_MODULE_INDICATOR.
23424         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23426 2017-05-01  Bruno Haible  <bruno@clisp.org>
23428         copy-file: Preserve sub-second time stamps.
23429         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23430         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23431         transport the time stamps from the original file to the destination
23432         file.
23433         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23434         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23435         utime-h.
23437 2017-05-01  Bruno Haible  <bruno@clisp.org>
23439         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23440         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23441         also on MSVC.
23442         Reported by Eli Zaretskii <eliz@gnu.org>.
23444 2017-05-01  Bruno Haible  <bruno@clisp.org>
23446         wchar: Fix compilation error with the original mingw.org mingw.
23447         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23448         <stddef.h> instead.
23449         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23450         gl_WCTYPE_H.
23451         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23452         gl_TYPE_WINT_T_PREREQ instead.
23453         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
23454         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
23455         Reported by Eli Zaretskii <eliz@gnu.org>.
23457 2017-04-30  Bruno Haible  <bruno@clisp.org>
23459         utimecmp: Add support for native Windows.
23460         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
23462 2017-04-30  Bruno Haible  <bruno@clisp.org>
23464         utimens: Add support for native Windows.
23465         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
23466         (fdutimens): Provide a native Windows implementation, like utime.c with
23467         added tv_nsec support.
23468         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
23469         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
23471 2017-04-30  Bruno Haible  <bruno@clisp.org>
23473         wcsftime: New module.
23474         * lib/wchar.in.h (wcsftime): New declaration.
23475         * lib/wcsftime.c: New file.
23476         * m4/wcsftime.m4: New file.
23477         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
23478         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
23479         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
23481         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23482         * modules/wcsftime: New file.
23483         * doc/posix-functions/wcsftime.texi: Mention the new module.
23485 2017-04-30  Bruno Haible  <bruno@clisp.org>
23487         strftime-fixes: New module.
23488         * lib/time.in.h (strftime): New declaration.
23489         * lib/strftime-fixes.c: New file.
23490         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
23491         (gl_FUNC_STRFTIME): Remove macro.
23492         * m4/strftime-fixes.m4: New file.
23493         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
23494         REPLACE_STRFTIME.
23495         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
23496         REPLACE_STRFTIME.
23497         * modules/strftime-fixes: New file.
23498         * doc/posix-functions/strftime.texi: Mention the new module.
23500 2017-04-30  Bruno Haible  <bruno@clisp.org>
23502         mktime: Work around TZ problem on native Windows.
23503         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
23504         from the native Windows workaround.
23505         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
23506         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
23507         'guessing no'.
23508         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
23509         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
23510         NEED_MKTIME_WINDOWS.
23511         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
23512         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
23513         NEED_MKTIME_INTERNAL.
23514         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
23515         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
23516         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
23517         not REPLACE_MKTIME.
23518         * doc/posix-functions/mktime.texi: Mention the native Windows
23519         workaround.
23521 2017-04-30  Bruno Haible  <bruno@clisp.org>
23523         localtime: New module.
23524         * lib/time.in.h (localtime): Declare also if requested by module
23525         'localtime'.
23526         * lib/localtime.c: New file.
23527         * m4/localtime.m4: New file.
23528         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
23529         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
23530         * modules/localtime: New file.
23531         * doc/posix-functions/localtime.texi: Mention the new module.
23533 2017-04-30  Bruno Haible  <bruno@clisp.org>
23535         ctime: New module.
23536         * lib/time.in.h (ctime): New declaration.
23537         * lib/ctime.c: New file.
23538         * m4/ctime.m4: New file.
23539         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
23540         REPLACE_CTIME.
23541         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
23542         * modules/ctime: New file.
23543         * doc/posix-functions/ctime.texi: Mention the new module.
23545 2017-04-30  Bruno Haible  <bruno@clisp.org>
23547         gettimeofday: Provide higher resolution on native Windows.
23548         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
23549         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
23550         (initialize): Initialize it.
23551         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
23552         'struct timeval'. Don't use _ftime().
23553         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
23554         <sys/timeb.h> and _ftime.
23556 2017-04-30  Bruno Haible  <bruno@clisp.org>
23558         Document the problem with the Cygwin environment variable TZ.
23559         * doc/posix-functions/tzset.texi: Add note about TZ.
23560         * doc/posix-functions/ctime.texi: Likewise.
23561         * doc/posix-functions/localtime.texi: Likewise.
23562         * doc/posix-functions/mktime.texi: Likewise.
23563         * doc/posix-functions/strftime.texi: Likewise.
23564         * doc/posix-functions/wcsftime.texi: Likewise.
23565         * doc/pastposix-functions/ftime.texi: Likewise.
23567 2017-04-30  Bruno Haible  <bruno@clisp.org>
23569         utime-tests: New module.
23570         * tests/test-utime.c: New file, based on tests/test-utimens.h.
23571         * tests/test-utimens-common.h: Include <sys/stat.h>.
23572         * modules/utime-tests: New file.
23574 2017-04-29  Bruno Haible  <bruno@clisp.org>
23576         utime: New module.
23577         * lib/utime.in.h: Add comment for snippets.
23578         (utime): New declaration.
23579         * lib/utime.c: New file.
23580         * m4/utime.m4: New file.
23581         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
23582         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
23583         REPLACE_UTIME.
23584         * modules/utime-h (Depends-on): Add snippets.
23585         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
23586         Insert snippets.
23587         * modules/utime: New file.
23588         * doc/posix-functions/utime.texi: Mention the new module.
23590 2017-04-29  Bruno Haible  <bruno@clisp.org>
23592         utime-h: Modernize handling of 'struct utimbuf'.
23593         * lib/utime.in.h: Include next <utime.h> if it exists.
23594         (utimbuf): Define to _utimbuf on native Windows.
23595         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23596         Set UTIME_H on native Windows.
23597         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
23598         * modules/utime-h (Depends-on): Add include_next.
23599         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
23600         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
23602         * lib/utimens.c (utimbuf): Remove fallback definition.
23603         * m4/utimens.m4 (gl_UTIMENS): Don't require
23604         gl_CHECK_TYPE_STRUCT_UTIMBUF.
23605         * m4/utimbuf.m4: Remove file.
23606         * modules/utimens (Files): Remove m4/utimbuf.m4.
23608 2017-04-29  Bruno Haible  <bruno@clisp.org>
23610         Make use of module 'utime-h'.
23611         * modules/copy-file (Depends-on): Add utime-h.
23612         * lib/copy-file.c: Assume that <utime.h> exists.
23613         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
23615         * modules/utimens (Depends-on): Add utime-h.
23616         * lib/utimens.c: Assume that <utime.h> exists.
23618 2017-04-29  Bruno Haible  <bruno@clisp.org>
23620         utime-h: New module.
23621         * m4/utime_h.m4: New file.
23622         * lib/utime.in.h: New file.
23623         * modules/utime-h: New file.
23624         * doc/posix-headers/utime.texi: Mention the new module.
23626         * tests/test-utime-h.c: New file.
23627         * modules/utime-h-tests: New file.
23629 2017-04-30  Bruno Haible  <bruno@clisp.org>
23631         Fix a few typos.
23632         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
23633         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
23634         * doc/posix-functions/fstat.texi: Fix a plural typo.
23635         * doc/posix-functions/stat.texi: Likewise.
23636         * m4/include_next.m4: Update comments.
23638 2017-04-29  Bruno Haible  <bruno@clisp.org>
23640         error: Fix mistake in 2017-04-23 commit.
23641         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
23642         assume that strerror_r returns 'int', not 'char *'.
23644 2017-04-29  Bruno Haible  <bruno@clisp.org>
23646         stat: Fix time_t values and other problems on native Windows platforms.
23647         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
23648         implementations of stat().
23649         * lib/stat.c: Include filename.h instead of dosname.h. Include
23650         malloca.h, stat-w32.h.
23651         (is_unc_root): New function.
23652         (rpl_stat): New implementation for native Windows. Remove
23653         REPLACE_FUNC_STAT_DIR code.
23654         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
23655         Don't define REPLACE_FUNC_STAT_DIR.
23656         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
23657         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23658         (Depends-on): Remove dosname. Add filename, malloca.
23659         (configure.ac): Also compile lib/stat-w32.c.
23661 2017-04-29  Bruno Haible  <bruno@clisp.org>
23663         fstat: Fix time_t values on native Windows platforms.
23664         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23665         * lib/stat-w32.h: New file.
23666         * lib/stat-w32.c: New file.
23667         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23668         stat-w32.h instead.
23669         (fstat_nothrow): Remove function.
23670         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23671         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23672         always.
23673         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23674         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23675         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23676         (configure.ac): Also compile lib/stat-w32.c.
23678 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23680         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23681         Problem reported by Assaf Gordon and Gavin Smith in:
23682         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23683         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23684         #define this, too.
23686 2017-04-29  Bruno Haible  <bruno@clisp.org>
23688         strerror_r-posix: Fixes for MSVC 14.
23689         * lib/strerror_r.c: Include <stdarg.h>.
23690         (strerror_r): Provide error messages for errno values 100...140.
23691         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23693 2017-04-28  Bruno Haible  <bruno@clisp.org>
23695         noreturn: New module.
23696         * lib/noreturn.h: New file.
23697         * modules/noreturn: New file.
23698         * tests/test-noreturn.c: New file.
23699         * modules/noreturn-tests: New file.
23700         * tests/test-noreturn-c++.cc: New file.
23701         * modules/noreturn-c++-tests: New file.
23703 2017-04-27  Bruno Haible  <bruno@clisp.org>
23705         wctype-h: Fix compilation error with the original mingw.org mingw.
23706         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23707         HAVE_CRTDEFS_H.
23708         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23709         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23710         <stddef.h> instead.
23711         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23713 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23715         nap.h: Fix compilation on non windows platforms
23716         * tests/nap.h: Move misplaced endif.
23718 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23719         and Paul Eggert  <eggert@cs.ucla.edu>
23721         time_rz: fix heap buffer overflow vulnerability
23722         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23723         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23724         whether there is enough buffer space available, thus avoiding
23725         the problematic promotion of signed to unsigned causing an invalid
23726         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23727         the start of the buffer.
23728         * tests/test-parse-datetime.c (main): Add a test case written by
23729         Paul Eggert, which overwrites enough of the heap so that
23730         standard glibc will fail with "free(): invalid pointer"
23731         without the patch applied.
23733 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23735         xalloc: add missing integer overflow check
23736         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23737         overflow when P is null.
23739 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23741         parse-datetime: make it standalone
23742         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23743         (_GL_ATTRIBUTE_FORMAT): New macro.
23744         These are needed to get './gnulib-tool --test parse-datetime' to work.
23746 2017-04-23  Bruno Haible  <bruno@clisp.org>
23748         nap.h: Port to native Windows.
23749         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23750         use nap_fd instead. On native Windows, close and reopen nap_fd.
23751         (nap_works): Don't compare the ctimes, because on native Windows, these
23752         are the creation times.
23753         (nap): Update.
23755 2017-04-23  Bruno Haible  <bruno@clisp.org>
23757         nap.h: Fix logic.
23758         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23760 2017-04-23  Bruno Haible  <bruno@clisp.org>
23762         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23763         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23764         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23765         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23766         * lib/argp-help.c (__argp_failure): Likewise.
23768 2017-04-23  Bruno Haible  <bruno@clisp.org>
23770         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23771         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23772         * lib/strerror_r.c: Likewise.
23774 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23776         Target a C99 subset, not a C89 subset
23777         For many years Gnulib has targeted C89 and has resisted using C99
23778         features, as some Gnulib-using programs still wanted to target
23779         C89.  As this no longer seems to be the case, relax the porting
23780         requirements to allow some C99 features.  This is merely a change
23781         to the documentation, to give other Gnulib developers a chance to
23782         weigh in on the topic.
23783         * doc/extern-inline.texi (extern inline):
23784         * doc/gnulib-readme.texi (Portability guidelines):
23785         * doc/gnulib-tool.texi (Initial import):
23786         * doc/gnulib.texi (Header files):
23787         Modernize to talk about C99 and C11 instead of C89 and C99.
23788         * doc/gnulib-readme.texi (Portability guidelines):
23789         Now a section, not merely a subsection, so that it
23790         can be split up.  Modernize a bit.
23791         (C language versions, C99 features assumed)
23792         (C99 features avoided):
23793         New sections.
23795 2017-04-23  Bruno Haible  <bruno@clisp.org>
23797         doc: New section "Modules that modify the way other modules work".
23798         * doc/gnulib.texi (Modules that modify the way other modules work): New
23799         section.
23801 2017-04-23  Bruno Haible  <bruno@clisp.org>
23803         stat-time: Update comments.
23804         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23805         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23806         Windows.
23808 2017-04-01  Bruno Haible  <bruno@clisp.org>
23810         glob: Fix more memory leaks.
23811         * lib/glob.c (glob): Free allocated memory before returning.
23812         Reported by Coverity via Tim Rühsen.
23814 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23816         poll: improve fast check for out-of-range NFD
23817         * lib/poll.c: Do not include intprops.h.
23818         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23819         * modules/poll (Depends-on): Remove intprops.
23821         ftoastr: cite a newer paper
23822         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23823         instead of Loitsch 2010.
23825 2017-04-22  Bruno Haible  <bruno@clisp.org>
23827         poll: Enable argument check also in the Windows implementation.
23828         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23829         Reported by Paul Eggert.
23831 2017-04-22  Bruno Haible  <bruno@clisp.org>
23833         getlogin_r: Work around bug in Mac OS X 10.12.
23834         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23835         bug.
23836         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23837         given size minus 1, call getlogin_r a second time, on a larger buffer.
23838         * modules/getlogin_r (Depends-on): Add malloca.
23839         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23841 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23843         parse-datetime: fix %z and prefer signed int
23844         %z problem reported by Pádraig Brady in:
23845         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23846         While fixing it, I decided to prefer signed ints to size_t, as
23847         they are less error-prone (e.g., ubsan catches overflow).
23848         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23849         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23850         counts, since signed integers make for better debugging.
23851         (date): Don’t assume %z works in printf formats.
23852         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23853         sizes of buffers known to be small, e.g., because we’re using snprintf.
23854         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23856 2017-04-22  Bruno Haible  <bruno@clisp.org>
23858         *printf: Work around rounding bug on Mac OS X.
23859         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23860         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23861         Mac OS X and FreeBSD.
23862         * doc/glibc-functions/*printf.texi: Likewise.
23864 2017-04-22  Bruno Haible  <bruno@clisp.org>
23866         vasnprintf tests: Avoid warnings.
23867         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23868         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23869         test.
23871 2017-04-22  Bruno Haible  <bruno@clisp.org>
23873         sys_file tests: Avoid warning.
23874         * tests/test-sys_file.c (main): Add a default clause to the switch
23875         statement.
23877 2017-04-22  Bruno Haible  <bruno@clisp.org>
23879         sethostname: Update doc.
23880         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23881         Mac OS X.
23883 2017-04-22  Bruno Haible  <bruno@clisp.org>
23885         quotearg tests: Avoid warnings.
23886         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23887         false.
23889 2017-04-22  Bruno Haible  <bruno@clisp.org>
23891         poll: Enable argument check.
23892         * lib/poll.c: Include intprops.h.
23893         (poll): Check value of nfd correctly.
23894         * modules/poll (Depends-on): Add intprops.
23896 2017-04-22  Bruno Haible  <bruno@clisp.org>
23898         get-rusage-data: Avoid warnings on Mac OS X.
23899         * lib/get-rusage-data.c: On Mac OS X, don't define
23900         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23901         (get_rusage_data) [Mac OS X]: Just return 0.
23903 2017-04-22  Bruno Haible  <bruno@clisp.org>
23905         xbinary-io: Fix build error.
23906         * modules/xbinary-io (Depends-on): Add gettext-h.
23907         * lib/xbinary-io.c: Include gettext.h and define _().
23908         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23909         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23911 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23913         parse-datetime: overflow and debug cleanups
23914         This long patch was triggered by this bug report from Ruediger Meier:
23915         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23916         I fixed the bug he noted, then found some others nearby, and then
23917         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23918         up some of the code to follow GNU standards while I was at it.
23919         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23920         use c_isdigit.
23921         (EPOCH_YEAR): Remove; unused.
23922         (TM_YEAR_BASE): Now an enum rather than a macro.
23923         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23924         time zone offset, since timezones now are in terms of seconds and
23925         not minutes.
23926         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23927         appropriate.  Verify that intmax_t is wide enough.
23928         (time_overflow, time_zone_str): New functions, used to deal
23929         more reliably with overflow.
23930         (dbg_printf): Add printf attribute, to help catch integer width errors.
23931         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23932         (%union, to_hour, yylex, parse_datetime2):
23933         Use intmax_t instead of long int and/or long_time_t.
23934         All uses changed.
23935         (DBGBUFSIZE): Move earlier.
23936         (relative_time, set_hhmmss, parser_control):
23937         Just use int for nanoseconds and for time zones; that’s wide enough.
23938         (parser_control): Use bool for members like year_seen that can
23939         be booleans instead of counters.  All uses changed.
23940         Remove debug_default_input_timezone; no longer needed.
23941         All uses removed.
23942         (apply_relative_time): Return a bool overflow flag.
23943         All uses changed to check for overflow.
23944         (apply_relative_time, zone, date, relunit, relunit_snumber)
23945         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23946         Check for integer overflow portably.
23947         (str_days): Use just int for N, as it’s wide enough.
23948         Prefer 2D char arrays to arrays of char * when it looks like
23949         2D is a win on typical platforms.
23950         Prefer snprintf to strncpy/strncat, for simplicity;
23951         all buffers are smaller than INT_MAX so this is safe.
23952         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23953         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23954         as this is not true on x32.  Output "." before any nanoseconds.
23955         (debug_print_current_time, parse_datetime2):
23956         Output local zones using a more-consistent format.
23957         (debug_print_current_time, date, parse_datetime2):
23958         (main) [TEST]:
23959         Don’t assume time_t is the same width as long.
23960         (print_rel_part): New function, replacing ...
23961         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23962         (debug_print_relative_time): Use bool for boolean.
23963         (local_zone): dsts_seen now counts only tDST instances.
23964         (date): Fix printf of size_t to use %z.  Do not assume numeric
23965         tokens have negative values merely because the context suggests
23966         a syntax with "-" separating tokens.
23967         (time_zone_hhmm): Return bool success indicator, which checks for
23968         overflow.  Store result into PC->time_zone instead.  All callers
23969         changed.
23970         (tm_year_str): New function.  Return a bool success indicator and
23971         store the result into a buffer.  All callers changed.  Output the
23972         numerically correct string even if adding 1900 to the year would
23973         overflow.
23974         (to_tm_year): New function, replacing the old to_year.  All
23975         callers changed.
23976         (tm_diff): Sync with glibc.
23977         (lookup_word): Use to_uchar instead of doing it by hand.
23978         (TZBUFSIZE): Now local to the only function that needs it.
23979         (debug_strfdatetime): Simplify now that time zones are int seconds.
23980         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23981         (get_effective_timezone): Remove.  All uses removed.
23982         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23983         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23984         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23985         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23986         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23987         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23988         * modules/parse-datetime (Depends-on): Add inttypes.
23990 2017-04-21  Bruno Haible  <bruno@clisp.org>
23992         gettext-h: Avoid -Wundef warning.
23993         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23994         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23995         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23997 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23999         error: Avoid "function declaration isn't a prototype" warning.
24000         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
24002 2017-04-21  Bruno Haible  <bruno@clisp.org>
24004         vasnprintf: Fix for MSVC 14.
24005         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
24006         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
24007         of !HAVE_SNPRINTF_RETVAL_C99.
24009 2017-04-21  Bruno Haible  <bruno@clisp.org>
24011         mbrtowc tests: Fix test failures on MSVC 14.
24012         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
24013         behaviour for invalid input.
24015 2017-04-21  Bruno Haible  <bruno@clisp.org>
24017         mbsinit: Fix for MSVC 14.
24018         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
24019         implementation that is in sync with mbrtowc.c. On other platforms, use
24020         an adequate ad-hoc implementation.
24022 2017-04-21  Bruno Haible  <bruno@clisp.org>
24024         Fix test-mbrtowc5.sh failure on native Windows.
24025         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
24026         "C".
24028 2017-04-21  Bruno Haible  <bruno@clisp.org>
24030         Avoid accidental use of native Windows APIs on Cygwin.
24031         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
24032         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
24033         * lib/localename.c (WINDOWS_NATIVE): Likewise.
24035 2017-04-20  Bruno Haible  <bruno@clisp.org>
24037         Remove red warnings from the generated MODULES.html.
24038         * modules/fcntl (Description): Disambiguate function references.
24039         * modules/getcwd-lgpl (Description): Likewise.
24040         * modules/hostent (Description): Likewise.
24041         * modules/servent (Description): Likewise.
24042         * modules/tempname (Description): Likewise.
24044 2017-04-20  Bruno Haible  <bruno@clisp.org>
24046         verify tests: Fix spurious failure with parallel make.
24047         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
24048         EXTRA_PROGRAMS.
24049         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
24050         * tests/test-verify-try.c: New file.
24051         * modules/verify-tests (Files): Add it.
24052         (EXTRA_PROGRAMS): Add test-verify-try.
24053         (MOSTLYCLEANFILES): Update accordingly.
24054         Reported by Adam James Stewart <ajstewart@anl.gov>.
24056 2017-04-18  Bruno Haible  <bruno@clisp.org>
24058         vma-iter: Fix compilation error on Solaris 7.
24059         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
24060         like on IRIX, OSF/1.
24061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24063 2017-04-18  Bruno Haible  <bruno@clisp.org>
24065         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
24066         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
24067         included.
24068         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
24069         <sys/procfs.h>.
24070         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
24071         <sys/procfs.h> cannot be included.
24072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24074 2017-04-18  Bruno Haible  <bruno@clisp.org>
24076         getopt-gnu: Add comments.
24077         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
24078         * modules/getopt-gnu (configure.ac): Likewise.
24080 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
24082         regex: port better to Solaris 10
24083         Solaris 10 <locale.h> includes <libintl.h>, which #defines
24084         gettext, and this causes a double #define.
24085         Problem reported by Gavin Smith in:
24086         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
24087         * lib/regex_internal.h (gettext): #undef before #defining.
24089 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24091         intprops: improve comments
24092         * lib/intprops.h: Improve and shorten commentary.
24093         For the record, if we ever run into a pedantic compiler that
24094         behaves differently from GCC when converting an out-of-range value
24095         to a signed integer, we can work around the problem with something
24096         like the following code, where UCT is the signed counterpart of T
24097         (UCT is sometimes narrower than UT) and all callers are changed
24098         accordingly:
24099         #if __SUNPRO_C <= 0x5120
24100         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24101            ((t) ((ut) (a) op (ut) (b)))
24102         #else
24103         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24104            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
24105             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
24106                + TYPE_MINIMUM (t)) \
24107             : (t) (uct) ((ut) (a) op (ut) (b)))
24108         #endif
24110 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24112         intprops: try to avoid tickling similar bugs
24113         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
24114         needs to be the same width as T; it can be wider.
24115         Change callers so that UT is at least as wide as unsigned int,
24116         as I suspect that this is less likely to run into compiler bugs.
24118         intprops: port to Oracle Studio 12.3 x86
24119         Problem reported by Gavin Smith in:
24120         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
24121         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24122         Convert unsigned to signed via the usual rather than the standard way,
24123         to avoid a compiler bug in Oracle Studio 12.3 x86.
24125 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
24127         getopt: prefer - to _ in new file names
24128         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
24129         * lib/getopt-core.h: Rename from lib/getopt_core.h.
24130         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
24131         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
24132         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
24133         All uses changed.
24135         getopt: port recent getopt changes to macOS
24136         Problem reported by Harald Maier (Bug#26398).
24137         The macOS C compiler uses __nonnull for its own purposes and that
24138         clashes with glibc's __nonnull.
24139         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
24140         * lib/getopt_cdefs.in.h (__nonnull): Remove.
24141         * lib/getopt_core.h (getopt):
24142         * lib/getopt_ext.h (getopt_long, getopt_long_only):
24143         Use _GL_ARG_NONNULL, not __nonnull.
24144         * lib/unistd.in.h: Move snippet hooks to before where the getopt
24145         .h files are included, so that _GL_ARG_NONNULL is defined in time.
24146         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
24147         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
24149 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
24151         getopt-gnu: omit some duplicate code
24152         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
24153         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
24154         gnulib-tool already does this.
24155         * modules/getopt-gnu (configure.ac): Omit code duplicated from
24156         getopt-posix, which we depend on.
24158         getopt-posix: use angle-bracket include
24159         * lib/getopt1.c: Include <config.h>, not "config.h".
24161 2017-04-06  Zack Weinberg  <zackw@panix.com>
24163         getopt: annotate files with relationship to glibc
24165         As the final act in this patchset, adjust the message at the top of
24166         each file to indicate which files are synced with glibc.  (This has
24167         already been done for most of the headers.)
24169         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
24170         Mention in top-of-file boilerplate that these files are shared
24171         between glibc and gnulib.
24174         getopt: split up getopt.in.h and eliminate __need_getopt
24176         Over in glibc, all of the __need macros are being phased out in favor
24177         of small headers that declare only the necessary components, as this
24178         is much simpler and less prone to bugs.  As getopt is shared with
24179         glibc, gnulib needs to do the same for __need_getopt.
24181         __need_getopt is misnamed; what it really means is "we want only the
24182         getopt features specified in POSIX, not the GNU extensions".  glibc
24183         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
24184         these files can be shared verbatim with gnulib.  The portability
24185         wrapper, on the other hand, they have renounced altogether; glibc's
24186         getopt.h will no longer be shared with gnulib at all.  In exchange,
24187         certain glibc-specific quirks (having to do with __posix_getopt) no
24188         longer need appear in gnulib's headers at all.
24190         This patch merges getopt_core.h and getopt_ext.h from glibc, and
24191         splits up the current gnulib-side portability wrapper into three
24192         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
24193         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
24194         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
24195         unistd.in.h just use them.  All new files are clearly marked with
24196         whether they are shared with glibc.
24198         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
24199         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
24200         with glibc, and ...
24201         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
24202         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
24203         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
24204         instead of defining __need_getopt and including the full getopt.h.
24206         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
24207         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
24208         * modules/getopt-posix (Files): Add new headers and sort list.
24209         (Depends-on): No longer need snippet/arg-nonnull.
24210         (Makefile.am): Generate getopt_cdefs.h.
24213         getopt: better handling of ambiguous options
24215         glibc's getopt uses alloca to construct a linked list of possibilities
24216         for an "ambiguous" long option.  In gnulib, malloc should be used
24217         instead.  Providing for both cases complicates things a fair bit.
24219         This patch rewrites ambiguous-option handling to use a boolean vector
24220         instead of a linked list.  There is then only one allocation that
24221         might need freeing; in glibc it can honor __libc_use_alloca as usual,
24222         and in gnulib we define __libc_use_alloca to always be false, so we
24223         don't need ifdefs in the middle of the function.  This should also be
24224         slightly more efficient in the normal case of long options being fully
24225         spelled out -- I think most people aren't even aware they _can_
24226         sometimes abbreviate long options.
24228         One interesting consequence is that the list of possibilities is now
24229         printed in exactly the order they appear in the list of long options,
24230         instead of the first possibility being shuffled to the end.
24232         (The patch looks bigger than it really is because there's a fair bit
24233         of reindentation and code rearrangement.)
24235         * lib/getopt.c: When used standalone, define __libc_use_alloca
24236         as always false and alloca to abort if called.
24237         (process_long_option): Rewrite handling of ambiguous long options
24238         to use a single boolean vector, not a linked list; use
24239         __libc_use_alloca to decide whether to allocate this using alloca.
24242         getopt: refactor long-option handling
24244         There were two copies of the bulk of the code to handle long options.
24245         Now there is only one.
24247         This change temporarily removes the logic to avoid using alloca when
24248         standalone; the next patch in the series will restore it.
24250         * lib/getopt.c (process_long_option): New function split out
24251         from _getopt_internal_r.
24252         (_getopt_internal_r): Replace both copies of the long-option
24253         processing code with calls to process_long_option.
24256         getopt: tidy up _getopt_initialize a bit
24258         _getopt_data.__posixly_correct is completely redundant to
24259         _getopt_data.__ordering, and some work that logically belongs in
24260         _getopt_initialize was being done by _getopt_internal_r, making the
24261         code harder to understand.
24263         As a side effect, getenv will no longer be called if the first
24264         character of the options string is '+' or '-', which is probably a
24265         Good Thing.  (Perhaps we should have a flag character that
24266         specifically asks for the permutation behavior?)
24268         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
24269         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
24270         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
24273         getopt: merge from glibc: repetition reduction
24275         The definitions of the entry point functions 'getopt' and
24276         '__posix_getopt' can be made substantially less repetitive with a
24277         helper macro.
24279         While I was merging the const-correctness changes from gnulib into
24280         glibc I noticed there are still some unnecessary casts in
24281         _getopt_internal_r.
24283         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
24284         a macro.  Consistently cast 'argv' to 'char **' when calling
24285         _getopt_internal.
24286         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
24289         getopt: clean up error reporting
24291         getopt can print a whole bunch of error messages, and when used
24292         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
24293         cancellation point and getopt isn't, and also applying fprintf to a
24294         stream in wide-character mode is not allowed.  So every single error
24295         reporting case has an #ifdef _LIBC block in which it calls internal
24296         libc functions instead.  The counterpart patch series in glibc makes
24297         it possible to simplify all of that down to a set of #defines at the
24298         top of the file; core code is written as if it is safe to just call
24299         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
24300         call any *other* stdio functions.)
24302         * lib/getopt.c: When _LIBC is defined, define fprintf to
24303         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
24304         to _IO_funlockfile.  When neither _LIBC nor
24305         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
24306         funlockfile as no-ops.
24307         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
24308         standalone error-printing code can now be used for libc as well.
24309         Add an flockfile/funlockfile pair around one case where the error
24310         message is printed in several chunks.  Don't use fputc.
24313         getopt: fix fencepost error in ambiguous-W-option handling
24315         getopt_long contains an undocumented (AFAICT) feature in which, if you
24316         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
24317         treated as equivalent to '--foo'.  This is implemented with a partial
24318         second copy of the code for handling long options, and that code
24319         increments optind one too many times when recovering from an ambiguous
24320         abbreviated option, which can cause the main loop to walk past the end
24321         of argv and crash.
24323         I discovered this while writing a test case that tries to exercise all
24324         of getopt's error reporting paths; I wouldn't be surprised to learn
24325         that this feature is never used by real applications.
24327         * lib/getopt.c (_getopt_internal_r): Don't increment
24328         d->optind a second time when reporting ambiguous -W options.
24331         getopt: clean up getopt.c and getopt1.c file headers
24333         In getopt.c, there is no need to include wchar.h at all, and it is
24334         safe nowadays to assume that stdlib.h does declare getenv (several
24335         other gnulib modules make this assumption).
24337         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
24338         by using "" inclusions consistently, and there is no actual need to
24339         include stdlib.h (except in the #ifdef TEST block, where it should be
24340         unconditional), nor to provide a backup definition of NULL at all.
24342         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24343         Move inclusion of stdlib.h to #ifdef TEST block and make
24344         unconditional.  Do not define NULL.
24345         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24346         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24347         * modules/getopt-gnu, modules/getopt-posix: Don't call
24348         gl_PREREQ_GETENV.
24351         getopt: harmonize comments with glibc
24353         The comments explaining how the behavior of 'getopt' varies depending
24354         on whether it's the standalone version and whether there are special
24355         characters at the beginning of the options string were inconsistent
24356         between gnulib and glibc, and also out of sync with the code.
24358         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24361         getopt: remove USE_NONOPTION_FLAGS
24363         getopt includes code to parse an environment variable named
24364         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24365         in decimal); but all of it has been #ifdefed out since 2001, with no
24366         official way to turn it back on.
24368         According to commentary in glibc's config.h.in, bash version 2.0
24369         set this environment variable to indicate argv elements that were
24370         the result of glob expansion and therefore should not be treated
24371         as options, but the feature was "disabled later" because "it
24372         caused problems".  According to bash's CHANGES file, "later" was
24373         release 2.01; it gives no more detail about what the problems
24374         were.
24376         Version 2.0 of bash was released on the last day of 1996, and version
24377         2.01 in June of 1997.  Twenty years later, I think it is safe to
24378         assume that this environment variable isn't coming back.
24380         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24381         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24382         __libc_argc and __libc_argv externs, which were only used by
24383         #ifdef USE_NONOPTION_FLAGS blocks.
24386         getopt: tabify, in preparation for merge with glibc
24388         glibc sticks to the GNU default of indenting with a mix of
24389         8-column tabs and spaces; make the gnulib copy match.
24391         getopt.h is not included because it is *not* going to be merged in its
24392         present form.
24394         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24396 2017-04-02  Bruno Haible  <bruno@clisp.org>
24398         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24399         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24400         like it was done in modules/relocatable-lib on 2011-05-21 and in
24401         modules/relocatable-prog on 2011-08-15.
24402         Reported by Reuben Thomas <rrt@sc3d.org>.
24404 2017-03-31  Bruno Haible  <bruno@clisp.org>
24406         glob: Fix invalid free() call.
24407         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24408         static storage to home_dir.
24409         Reported by Coverity via Tim Rühsen.
24411 2017-03-31  Bruno Haible  <bruno@clisp.org>
24413         glob: Fix memory leaks.
24414         * lib/glob.c (glob): Free allocated memory before returning.
24415         Reported by Coverity via Tim Rühsen.
24417 2017-03-31  Bruno Haible  <bruno@clisp.org>
24419         md5, sha1, sha256, sha512: Add comments regarding correctness.
24420         * lib/md5.h (buflen): Add comments regarding range.
24421         * lib/sha1.h (buflen): Likewise.
24422         * lib/sha256.h (buflen): Likewise.
24423         * lib/sha512.h (buflen): Likewise.
24424         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24425         * lib/sha1.c (sha1_process_bytes): Likewise.
24426         * lib/sha256.c (sha256_process_bytes): Likewise.
24427         * lib/sha512.c (sha512_process_bytes): Likewise.
24428         Reported by Coverity via Tim Rühsen.
24430 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24432         getopt: merge from glibc
24433         This does not change anything substantial; it merely simplifies
24434         hypothetical merges back to glibc.
24435         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24436         Change copyright notice to match what is in glibc.
24437         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24438         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24439         __open_memstream rather than open_memstream and __glibc_likely
24440         instead of __builtin_expect.
24441         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24443 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24445         dfa: make [0-9] faster in non-C locales
24446         Problem reported by John P. Linderman (Bug#26193).
24447         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24448         If both ends of the range are ASCII digits, do not worry about
24449         multi-character collating sequences and the like.  Be consistent
24450         about using isalpha as a precondition for setbit_case_fold_c.
24452 2017-03-19  Bruno Haible  <bruno@clisp.org>
24454         lock: Fix compilation error with HP-UX IA64 cc.
24455         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
24456         weak on non-glibc platforms.
24458 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24460         stdalign: tweak version# and test for HP-UX IA64
24461         Problems reported by Bruno Haible in:
24462         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
24463         * lib/stdalign.in.h (_Alignas):
24464         * m4/stdalign.m4 (gl_STDALIGN_H):
24465         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
24466         used octal (as that is how they document it), but it is decimal in
24467         practice now and the ancient implementations no longer matter.
24468         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
24470 2017-03-19  Bruno Haible  <bruno@clisp.org>
24472         vma-iter: Add support for Solaris.
24473         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
24474         approach.
24475         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
24476         * lib/get-rusage-as.c: Update comment about Solaris.
24477         * lib/get-rusage-data.c: Likewise.
24479 2017-03-19  Bruno Haible  <bruno@clisp.org>
24481         vma-iter: Prefer HP-UX specific API on HP-UX.
24482         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
24483         * lib/vma-iter.h: Update.
24484         Just in case HP-UX ever implements mquery().
24486 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24488         stdalign: restore previous behavior for HP-UX IA64
24489         See Bruno Haible's email in:
24490         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24491         which cites p 150 of a manual saying that 'aligned' works on Itanium.
24492         * lib/stdalign.in.h (_Alignas):
24493         Assume the '061200' applies to Itanium, not to PA-RISC.
24494         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
24496 2017-03-17  Bruno Haible  <bruno@clisp.org>
24498         stat-time, timespec: Support use of the header files in C++ mode.
24499         * lib/stat-time.h: Add "C" linkage declaration.
24500         * lib/timespec.h: Likewise.
24502 2017-03-17  Bruno Haible  <bruno@clisp.org>
24504         stdalign: Make it work with HP-UX cc.
24505         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
24506         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
24507         for HP-UX cc.
24509 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
24511         flexmember: try to detect HP-UX 11.31 cc bug
24512         Problem reported by Bruno Haible in:
24513         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24514         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24515         Attempt to detect bug in HP-UX 11.31 cc.
24517 2017-03-16  Bruno Haible  <bruno@clisp.org>
24519         stdint: Fix test compilation failure with HP-UX 11 cc.
24520         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
24521         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
24522         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
24523         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24525 2017-03-14  Bruno Haible  <bruno@clisp.org>
24527         gnulib-tool: Don't produce a tests directory with only snippet .h files.
24528         * gnulib-tool (func_modules_transitive_closure_separately): If
24529         testsrelated_modules ends up with no "real" modules, aside from
24530         modules with applicability 'all', set it to empty.
24532 2017-03-14  Bruno Haible  <bruno@clisp.org>
24534         vma-iter: Add support for HP-UX.
24535         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
24536         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
24537         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
24538         * lib/get-rusage-as.c: Update comment about HP-UX.
24539         * lib/get-rusage-data.c: Likewise.
24540         (get_rusage_data): Use get_rusage_data_via_setrlimit.
24542 2017-03-14  Bruno Haible  <bruno@clisp.org>
24544         limits-h: Make it work with HP-UX cc.
24545         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
24546         defined.
24548 2017-03-14  Bruno Haible  <bruno@clisp.org>
24550         Fix test failures on DragonFlyBSD.
24551         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
24552         * tests/test-select.h (test_bad_fd): Likewise.
24553         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
24555 2017-03-14  Bruno Haible  <bruno@clisp.org>
24557         freadahead: Silence warning on DragonFlyBSD.
24558         * lib/freadahead.c (__sreadahead): Declare ourselves.
24560 2017-03-14  Bruno Haible  <bruno@clisp.org>
24562         vma-iter: Add comment about AIX.
24563         * lib/vma-iter.c: Add comment about why this module is not implemented
24564         on AIX.
24566 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24568         snippets: move unadjusted snippet sources to lib
24569         Problem reported by Michal Privoznik in:
24570         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
24571         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
24572         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
24573         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
24574         * lib/unused-parameter.h: Rename from
24575         build-aux/snippet/unused-parameter.h.
24576         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
24577         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
24578         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
24579         * modules/snippet/c++defs (Files:, CXXDEFS_H):
24580         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
24581         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
24582         Adjust to file renamings.
24584 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
24586         gnulib-tool: don't automatically distribute files from top/
24587         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
24588         not distribute top/README-release by default, don't distribute files
24589         from top/ unconditionally.
24590         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24591         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24593 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24595         gnulib-tool: fix typo in comment output
24596         * gnulib-tool (func_import): Fix typo with previous change.
24598         snippets: work around GNU Make 3.82 VPATH
24599         When using 'gnulib-tool --gnu-make' on Emacs, and building
24600         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
24601         an out-of-source (VPATH) build failed because the sans-copyright
24602         snippet file was not built before the file that used it.
24603         Presumably this is some sort of VPATH thing.  Work around the
24604         problem by using the original snippet, i.e., don’t bother to
24605         remove its copyright notice.
24606         * modules/snippet/_Noreturn, modules/snippet/link-warning:
24607         Don’t assume Automake in comments.  Omit long-incorrect comment.
24608         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
24609         (MOSTLYCLEANFILES):
24610         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
24611         (MOSTLYCLEANFILES):
24612         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
24613         (MOSTLYCLEANFILES):
24614         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
24615         (MOSTLYCLEANFILES):
24616         Remove.
24617         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
24618         * modules/snippet/c++defs (CXXDEFS_H):
24619         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
24620         * modules/snippet/warn-on-use (WARN_ON_USE_H):
24621         Don’t bother to remove the copyright notice; just use the
24622         original snippet as-is.
24624 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24626         gnulib-tool: minor --gnu-make fixups
24627         * gnulib-tool (func_emit_lib_Makefile_am):
24628         Remove useless code that was a blind alley during implementation.
24629         Problem reported by Thien-Thi Nguyen in:
24630         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
24631         (func_import): Note the "--gnu-make" option in the output comment.
24633 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24635         gnulib-tool: new option --gnu-make
24636         This is for applications like GNU Emacs that use GNU Make
24637         features instead of Automake.
24638         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
24639         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
24640         Do not assume Automake.
24641         * gnulib-tool (func_determine_path_separator)
24642         (func_modules_transitive_closure, func_update_file)
24643         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24644         (func_import): Add support for --gnu-make.
24646 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24648         gnulib-common.m4: avoid aclocal.m4 bloat
24649         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
24650         Hide AM_PROG_AR from aclocal, so that aclocal does not
24651         install irrelevant macro definitions into aclocal.m4.
24653 2017-03-10  Bruno Haible  <bruno@clisp.org>
24655         vma-iter: Let callers know about error.
24656         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
24657         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
24659 2017-03-05  Bruno Haible  <bruno@clisp.org>
24661         Fix value of LD for 64-bit compilers on AIX.
24662         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24663         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24665 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24667         dtotimespec: simplify
24668         * lib/dtotimespec.c (dtotimespec): Simplify.
24670 2017-03-04  Bruno Haible  <bruno@clisp.org>
24672         test-calloc-gnu: Reenable test also for GCC 7.
24673         * tests/test-calloc-gnu.c (eight): New function.
24674         (main): Don't skip test; use eight() instead.
24676 2017-03-04  Jim Meyering  <meyering@fb.com>
24678         test-calloc-gnu: port to GCC7
24679         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24680         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24681         and newer would detect that at compilation time.
24683 2017-03-04  Bruno Haible  <bruno@clisp.org>
24685         tests: Avoid compiler warning about uses of null_ptr.
24686         * tests/null-ptr.h: New file.
24687         * tests/test-canonicalize.c: Include null-ptr.h.
24688         (null_ptr): Remove function.
24689         * tests/test-canonicalize-lgpl.c: Likewise.
24690         * tests/test-memmem.c: Likewise.
24691         * tests/test-ptsname_r.c: Likewise.
24692         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24693         * modules/canonicalize-lgpl-tests: Likewise.
24694         * modules/memmem-tests: Likewise.
24695         * modules/ptsname_r-tests: Likewise.
24696         Reported by Jim Meyering.
24698 2017-03-03  Bruno Haible  <bruno@clisp.org>
24700         doc: Mention Mac OS X deficiencies regarding semaphores.
24701         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24702         * doc/posix-functions/sem_destroy.texi: Likewise.
24703         * doc/posix-functions/sem_getvalue.texi: Likewise.
24705 2017-03-03  Bruno Haible  <bruno@clisp.org>
24707         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24708         Reported by Assaf Gordon <assafgordon@gmail.com> via
24709         Pádraig Brady <P@draigBrady.com>.
24710         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24711         semaphores.
24712         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24713         (atomic_int_semaphore): New macro.
24715 2017-02-28  Bruno Haible  <bruno@clisp.org>
24717         perror tests: Tweak for z/OS.
24718         Reported by Daniel Richard G. <skunk@iskunk.org>.
24719         * tests/test-perror.sh: Don't fail z/OS style perror output.
24721 2017-02-26  Bruno Haible  <bruno@clisp.org>
24723         nproc: Refactor large function.
24724         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24725         from num_processors.
24726         (num_processors): In this function, only deal with OMP.
24728 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24730         nproc: adjust handling of OpenMP environment variables
24731         to match the return value from omp_get_num_threads(), i.e.:
24732          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24733          - Treat 0 as an invalid value and ignore
24734         Also remove the call to omp_get_num_threads() because
24735         it's ineffective without the omp pragmas in place.
24736         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24737         so that it can be ignored.
24738         (num_processors): Honor OMP_THREAD_LIMIT even without
24739         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24740         variable being checked, from the previous recent commit.
24742 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24744         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24745         * lib/nproc.c (parse_omp_threads): A new function refactored
24746         from num_processors() to support parsing both of the
24747         above environment variables.
24748         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24749         to accurately reflect the current OpenMP nesting level.
24750         Also support the OMP_THREAD_LIMIT environment variable
24751         to limit the max value determined from OMP_NUM_THREADS.
24752         * modules/nproc: Depend on minmax header.
24753         Suggested by Oliver Heimlich.
24755 2017-02-25  Bruno Haible  <bruno@clisp.org>
24757         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24758         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24760 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24762         ftoastr: port to -Wdouble-promotion
24763         Work around -Wdouble-promotion false alarm in recent GCCs.
24764         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24765         (ftoastr_snprintf, FTOASTR): Use it.
24767 2017-02-21  Bruno Haible  <bruno@clisp.org>
24769         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24770         Reported by Rene Saavedra <rennes@openmailbox.org> in
24771         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24772         * lib/glthread/lock.h: On glibc systems without
24773         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24774         implementation of rwlocks.
24775         * lib/glthread/lock.c: Likewise.
24777 2017-02-20  Bruno Haible  <bruno@clisp.org>
24779         lock tests: Fix build failure on z/OS.
24780         Reported by Daniel Richard G. <skunk@iskunk.org>.
24781         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24782         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24783         exist.
24785 2017-02-19  Bruno Haible  <bruno@clisp.org>
24787         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24788         This helps when CC=clang.
24789         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24790         of /usr/bin/gcc.
24792         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24793         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24795 2017-02-19  Bruno Haible  <bruno@clisp.org>
24797         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24798         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24799         --with-tests --single-configure is specified.
24801 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24803         users.txt: Update links, use HTTPS where possible
24804         * users.txt: Updated to HTTPS where possible,
24805         fixed some links to new locations.
24807 2017-02-16  Bruno Haible  <bruno@clisp.org>
24809         xbinary-io: Fix inlining.
24810         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24812 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24814         xbinary-io: rename from xsetmode
24815         This patch is taken from suggestions by Bruno Haible in:
24816         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24817         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24818         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24819         not ENOTTY, when it is an inappropriate device.
24820         * lib/binary-io.h (SET_BINARY): Resurrect.
24821         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24822         (xset_binary_mode_error): Rename from xsetmode_error.
24823         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24824         (xset_binary_mode): Rename from xsetmode.
24825         All uses changed.
24826         * modules/xbinary-io: Rename from modules/xsetmode.
24827         Update file names.
24828         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24829         * NEWS: Update to match revised behavior.
24831 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24833         tests: Adjust to recent SET_BINARY change
24834         * tests/test-binary-io.c (main):
24835         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24836         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24837         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24838         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24840         xsetmode: new module
24841         This is to fix a problem noted by Eric Blake.
24842         Code was using xfreopen to change files to binary mode, but this
24843         fails for stdout when in append mode.  Such code should use
24844         xsetmode instead.
24845         * NEWS: Document incompatible changes to binary-io module.
24846         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24847         New function.
24848         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24849         (set_binary_mode): New function, which also checks for tty.
24850         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24852 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24854         headers: fix begin-end typos
24855         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24856         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24858         selinux-h: port to PGI 16.10
24859         * lib/se-selinux.in.h: Don't assume that include_next skips over
24860         duplicate -I DIR options.
24862         argp: port to PGI 16.10
24863         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24865 2017-02-13  Darshit Shah  <darnir@gnu.org>
24867         unicase: Update function protoype to match definition.
24868         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24869         uses 'size_t' as the datatype for the 'len' parameter in the functions
24870         it generates. Update the prototype specified here to match the newly
24871         generated function.
24873 2017-02-12  Bruno Haible  <bruno@clisp.org>
24875         times test: Avoid gcc warnings on Linux/x32.
24876         * tests/test-times.c (main): Really cast printf arguments from clock_t
24877         to 'long int'.
24879 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24881         glob: port better to emscripten
24882         Problem reported by Bruno Haible in:
24883         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24884         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24886 2017-02-11  Bruno Haible  <bruno@clisp.org>
24888         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24889         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24890         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24891         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24892         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24893         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24894         Distinguish hppa64 from hppa.
24896 2017-02-10  Bruno Haible  <bruno@clisp.org>
24898         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24899         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24900         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24901         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24903 2017-02-09  Bruno Haible  <bruno@clisp.org>
24905         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24906         * doc/gnulib.texi (Libtool and Windows): Recommend
24907         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24908         Reported by Reuben Thomas <rrt@sc3d.org>.
24910 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24912         stddef-tests: port to SIZE_MAX <= INT_MAX
24913         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24914         Do not assume that INT_MAX < SIZE_MAX.
24916 2017-02-01  Bruno Haible  <bruno@clisp.org>
24918         lock tests: Fix link error.
24919         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24922 2017-01-31  Bruno Haible  <bruno@clisp.org>
24924         lock: Fix link error (regression from 2017-01-05).
24925         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24926         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24927         pthread_rwlockattr_destroy weak.
24928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24930 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24932         Port to PGI 16.10 x86-64
24933         This patch fixes one real bug in gl_anylinked_list2.h, along with
24934         some minor glitches that are not bugs.  It does not silence PGI’s
24935         thousands of bogus warnings when compiling test-intprops.c.
24936         Fortunately, the warnings do not cause a failure.
24937         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24938         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24939         My goodness, PGI goes back a long ways - this predates C89!
24940         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24941         For example, ASYNCSAFE (const void *) should expand to
24942         ‘const void *volatile’, not to ‘volatile const void *’.
24943         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24944         * lib/verify.h (verify) [!__GNUC__]:
24945         Use shorter albeit meaningless string to bypass silly compiler limits.
24946         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24947         * tests/nan.h (NaNf, NaNd, NaNl):
24948         Use static functions to avoid misguided compiler diagnostics.
24949         Is there some reason we don’t use static functions on all platforms?
24951 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24953         parse-datetime: handle timezones reentrantly
24954         This API change was prompted by a report by Pádraig Brady in:
24955         https://bug.debian.org/851934#10
24956         To help fix the bug, make parse_datetime2 more reentrant.
24957         * NEWS: Document this incompatible change.
24958         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24959         Add two arguments, the timezone and the timezone name.
24960         All callers changed.  If TZ="..." is specified, use it for
24961         calculating defaults.
24962         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24963         this code should be usable in a library.
24964         (mktime_ok, get_effective_timezone):
24965         Accept timezone arg too.  All callers changed.
24966         (get_tz): Remove.
24967         (get_effective_timezone): Check for failures.
24969 2017-01-20  Eric Blake  <eblake@redhat.com>
24971         localename: port to cygwin 2.6
24972         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24973         Cygwin.
24974         * modules/localename (Depends-on): Add extensions, since
24975         NL_LOCALE_NAME() is not visible without it.
24977 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24979         parse-datetime: fix dependence on AC_PROG_SED
24980         * modules/parse-datetime: Use `sed` directly like all other modules.
24981         Reported by J William Piggott
24983 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24985         intprops: update doc URLs
24986         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24988 2017-01-16  Bruno Haible  <bruno@clisp.org>
24990         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24991         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24992         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24993         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24994         distinguish s390 and s390x.
24995         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24996         * NEWS: Mention the change regarding 'armel'.
24998 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25000         localeinfo: case_folded_counterparts and WEOF
25001         * NEWS: Document this.
25002         * lib/localeinfo.c (case_folded_counterparts):
25003         First arg is now wint_t, not wchar_t.  This generalizes the
25004         function to also work on WEOF, where it returns 0.
25006         dfa: port to gcc -fsanitize=undefined
25007         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
25008         as this runs afoul of gcc -fsanitize=undefined.
25010 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
25012         strftime: %z is -00 if unknown
25013         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
25014         the caller's responsibility to set 'negative_number'.  All uses changed.
25015         (__strftime_internal): Put '-' before a zero UTC offset if the time
25016         zone abbreviation starts with "-", which is the recently-introduced
25017         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
25018         * tests/test-strftime.c: Test for this.
25020 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25022         dfa: port to older GCC
25023         Problem reported by Assaf Gordon in:
25024         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
25025         * modules/c99: New module.  This merely attempts to use the latest
25026         C version, which should be enough to solve this particular problem.
25027         The idea is to document which Gnulib modules assume C99 or later.
25028         * modules/dfa (Depends-on): Add it.
25030 2017-01-10  Bruno Haible  <bruno@clisp.org>
25032         Update DEPENDENCIES.
25033         * DEPENDENCIES: List only https URLs. Update recommended version for
25034         autoconf, automake, gperf.
25036 2017-01-10  Jim Meyering  <meyering@fb.com>
25038         maint.mk: enforce spelling of "timestamp" (i.e., no space)
25039         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
25040         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
25042 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25044         dfa: minor simplification with emptyset
25045         * lib/dfa.c (build_state): Simplify by using emptyset.
25047 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25049         dfa: shrink constraints from 4 bits to 3
25050         * lib/dfa.c (newline_constraint, letter_constraint)
25051         (other_constraint, prev_newline_dependent)
25052         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
25053         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
25054         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
25055         Constraints need only 3 bits, not 4.  Using smaller integers
25056         shrinks the code a bit and makes grep a tad faster on x86-64.
25058         dfa: omit unnecessary ptrdiff_t check
25059         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
25060         overflow, since xnmalloc does that now.
25062         dfa: omit unnecessary allocation
25063         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
25064         an all-zero follow set works just fine.
25066         dfa: omit unused local
25067         * lib/dfa.c (build_state): Fix up recent change.
25069         maint: remove stray .texi files
25070         Although these were superseded by other files like
25071         doc/posix-functions/ctime.texi, the old files were not removed.
25072         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
25074 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25076         getprogname: fix port to IRIX
25077         * lib/getprogname.c (getprogname) [__sgi]:
25078         Don't dump core if malloc returns NULL.
25080         dfa: fix reallocation bug when matching newlines
25081         Problem reported for sed by S. Gilles (Bug#25390).
25082         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
25083         (dfastate): Reallocate before moving any newline transition ...
25084         (build_state): ... instead of reallocating here, where it is too late.
25086 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25088         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
25089         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
25091 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25093         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
25094         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
25096 2017-01-07  Bruno Haible  <bruno@clisp.org>
25098         stdioext: Port to Minix 3.2 and newer.
25099         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
25100         * lib/fseeko.c (fseeko): Likewise.
25101         Reported by Nelson Beebe via Paul Eggert.
25103 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25105         getprogname: port to IRIX
25106         * lib/getprogname.c (getprogname): Port to IRIX.
25107         Based on an idea by Bastien Roucariès at:
25108         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
25109         via code from Bruno Haible at:
25110         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25112         localename-tests: port to NetBSD 7
25113         Problem reported by Nelson H. F. Beebe.
25114         * tests/test-localename.c:
25115         Test newlocale and uselocale only if both exist.
25117         glob, intprops, xalloc: work around Clang bug
25118         Work around LLVM bug 16404, which is still not fixed.
25119         https://llvm.org/bugs/show_bug.cgi?id=16404
25120         Problem reported by Nelson H. F. Beebe.
25121         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
25122         Remove.
25123         * lib/glob.c (size_add_wrapv):
25124         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
25125         * lib/xalloc-oversized.h (xalloc_oversized):
25126         Do not use overflow builtins if Clang.
25128         dfa: fix 'return' typo
25129         Problem reported by Nelson H. F. Beebe.
25130         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
25132 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25134         parse-datetime: fix generated paths for coverage files
25135         * modules/parse-datetime: Adjust the paths for parse-datetime.y
25136         within parse-datetime.c, so that gcc generates appropriate .gcno
25137         files, allowing lcov to proceed without error.  Previously it
25138         would error trying to find "lib/lib/parse-datetime.y".
25140 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25142         maint.mk: support parallel execution of coverage
25143         * top/maint.mk (coverage): Run dependencies serially,
25144         thus supporting parallel processing of each one,
25145         particularly build-coverage, which builds and runs tests.
25147 2017-01-05  Bruno Haible  <bruno@clisp.org>
25149         lock tests: Prefer semaphore over mutex.
25150         * tests/test-lock.c (USE_SEMAPHORE): New constant.
25151         (struct atomic_int, init_atomic_int, get_atomic_int_value,
25152         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
25153         Suggested by Torvald Riegel <triegel@redhat.com>.
25155 2017-01-05  Bruno Haible  <bruno@clisp.org>
25157         lock: Provide guarantee to avoid writer starvation for rwlocks.
25158         The rationale is: 1) Read-preferring read-write locks are prone to
25159         writer starvation if the number of reader threads multiplied by the
25160         percentage of time they have the lock held is too high. 2) Write-
25161         preferring read-write locks are the only reliable way to avoid this.
25162         3) There have been reports of 'test-lock' hanging on glibc systems
25163         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
25164         and glibc indeed implements read-preferring rwlocks by default, see
25165         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
25166         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
25167         * m4/pthread_rwlock_rdlock.m4: New file.
25168         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25169         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
25170         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25171         of rwlock initialization on glibc systems without
25172         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25173         of rwlocks altogether on non-glibc systems without
25174         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25175         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25176         * lib/glthread/lock.c [USE_POSIX_THREADS]
25177         (glthread_rwlock_init_for_glibc): New function.
25178         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
25179         comment.
25180         [USE_PTH_THREADS]: New implementation of rwlocks.
25181         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
25182         readers.
25183         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
25184         (Depends-on): Add 'extensions'.
25185         * tests/test-rwlock1.c: New file.
25186         * lock-tests (Files): Add it.
25187         (Depends-on): Add usleep.
25188         (Makefile.am): Add test-rwlock1 to the tests.
25190 2017-01-05  Bruno Haible  <bruno@clisp.org>
25192         thread: Fix pth port.
25193         * lib/glthread/thread.h (pth_init): Declare weak.
25194         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
25195         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
25196         function.
25198 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
25200         parse-datetime: fix debug message on lone year number
25201         Input dates such as
25202           date -d "Apr 11 22:59:00 2011"
25203         are parsed as date (Apr 11, with default year 2016), then time, then a
25204         number (2011). Based on the combination of previously seen tokens,
25205         'digits_to_date_time' determines 2011 to be a year value.
25206         This fixes the debug messages to correctly show the updated year.
25207         Before:
25208             $ date --debug -d 'Apr 11 22:59:00 2011'
25209             date: parsed date part: (Y-M-D) 2016-04-11
25210             date: parsed time part: 22:59:00
25211             date: parsed number part: today/this/now
25212         After:
25213             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
25214             date: parsed date part: (Y-M-D) 2016-04-11
25215             date: parsed time part: 22:59:00
25216             date: parsed number part: year: 2011
25217         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
25218         'debug_year_seen' member fields.
25219         (digits_to_date_time): Update 'year_seen' as needed.
25220         (debug_print_current_time): Inform about year updates.
25221         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
25223         parse-datetime: fix local timezone debug messages
25224         "Local timezones" are strings that affect only DST relative to the
25225         default timezone. The debug messages in parse-datetime.y printed
25226         wrong information when encountering local timezones.
25227         Examples:
25228         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
25229              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
25230              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
25231         When the default timezone relates to the zone strings, EET/EEST are
25232         parsed as local timezones (tLOCAL_ZONE), and only change the DST
25233         value (0/1, respectively):
25234              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
25235              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
25236         * lib/parse-datetime.y (debug_print_current_time): If local timezone
25237         was seen, inform about DST change, don't print actual timezone.
25238         (debug_strfdatetime): If local timezone was seen, use default timezone
25239         (and adjust as needed) instead of using incorrect timezone.
25240         (parse_datetime2): Use correct time-zone source string, and adjust
25241         default timezone as needed.
25243         parse-datetime: add debug warning about DST changes
25244         Incorrect date arithmetic due to daylight saving time (DST) are a
25245         common (false) bug report in coreutils.
25246         Detect two such cases and print a warning:
25247         1. year/month/day adjustments (performed on 'struct tm'),
25248            where 'mktime' returns a different isdst value.
25249         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
25250            where the result of 'localtime(3)' on the value will return a
25251            different isdst value.
25252         Note: DST changes could be harmless or unnoticeable.
25253         Examples (with 'TZ=America/New_York'):
25254         Unnoticeable: result is 2016-Dec-14
25255            $ date -d '2016-06-15 EDT + 6 months' +%b
25256            Dec
25257         Unnoticeable: result is 2016-Dec-15 11:00:00
25258            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
25259            2016-12-15
25260         This is unexpected:
25261            $ date -d '2016-06-01 EDT + 6 months' +%F
25262            2016-11-30
25263         The new debug warnings will show:
25264            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
25265            ...
25266            date: warning: daylight saving time changed after date adjustment
25267            ...
25268         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
25269         print an appropriate warning message.
25271         parse-datetime: add debug warning about date arithmetic
25272         Date arithmetic are done directly on the fields of 'struct tm',
25273         which can result in invalid dates. Normalization with 'mktime(3)'
25274         will then produce a different date - which might cause unexpected
25275         results.
25276         Examples:
25277           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
25278           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
25279         Note that date normalization is not inherently wrong and not rejected,
25280         as it has legitimate uses:
25281           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
25282         If the user asked to adjust months but 'mday' changed,
25283         or user asked to adjust years but 'month' changed - warn about it.
25284             $ ./src/date --debug -d '2016-10-31 - 1 month'
25285             ...
25286             date: warning: when adding relative months/years, \
25287                            it is recommended to specify the 15th of the month
25288             ...
25289             date: warning: month/year adjustment resulted in shifted dates:
25290             date:      adjusted Y M D: 2016 09 31
25291             date:    normalized Y M D: 2010 10 01
25292             ...
25293         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
25294         a warning message. Improve recommendation of when to use 15 of the
25295         month or noon for date arithmetic.
25297         parse-datetime: fix debug message of relative part after timezone
25298         Relative part (e.g '+8 days') after a timezone string was not
25299         reported (was only reported after a timezone number). Due to the
25300         parser's structure, timezone strings with numbers were handled
25301         separately.
25302         before:
25303              # Timezone number + relative part: OK
25304              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
25305              ...
25306              date: parsed relative part: -8 day(s)
25307              # Timezone string + relative part: missing
25308              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
25309              [ missing message ]
25310         After: messages are printed in both cases.
25311         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
25313         parse-datetime: fix incorrect debug message on lone number
25314         A lone number is an absolute value, not a relative time part.
25315         before:
25316            $ date --debug -d '20130101'
25317            date: parsed number part: today/this/now
25318         After:
25319            $ ./src/date --debug -d '20130101'
25320            date: parsed number part: (Y-M-D) 2013-01-01
25321         * lib/parse-datetime.y ('item'/'number' tokens): Call
25322         'debug_print_current_time' instead of 'debug_print_relative_time'.
25324 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25326         doc: modernize for C11 etc.
25327         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
25328         for C11, MinGW, etc.  This responds to Paul Smith's question in:
25329         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
25331         dfa: prefer functions to FETCH_WC macro
25332         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
25333         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
25334         wint_t result into DFA->lex.wctok instead of to a separate arg.
25335         All callers changed.  Move more local decls closer to where
25336         they're used.
25338         dfa: narrow more local var scopes
25339         * lib/dfa.c: Move more local decls to be more local.
25341         dfa: remove duplicate assignment
25342         Problem reported by Bruno Haible in:
25343         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25344         * lib/dfa.c (parse_bracket_exp): Simplify.
25346 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25348         dfa: simplify constraint-dependency checking
25349         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25350         (prev_other_constraint): Remove.
25351         (prev_newline_dependent, prev_letter_dependent):
25352         Simplify, to avoid an unnecessary bitwise AND operation.
25354         dfa: prefer functions and constants to macros
25355         * lib/dfa.c: Prefer constants to macros where either will do.
25356         (streq, isasciidigit, newline_constraint)
25357         (letter_constraint, other_constraint, succeeds_in_context)
25358         (prev_newline_constraint, prev_letter_constraint)
25359         (prev_other_constraint, prev_newline_dependent)
25360         (prev_letter_dependent, accepting, accepts_in_context):
25361         Now static functions instead of function-like macros.
25362         Use lower-case names accordingly.  All uses changed.
25364         dfa: narrow more local var scopes
25365         * lib/dfa.c: Move some more local decls down to nearer where
25366         they're needed.
25368 2016-12-31  Jim Meyering  <meyering@fb.com>
25370         dfa: narrow the scope of many local variables
25371         * lib/dfa.c: Now that we are no longer constrained to c89, move
25372         declarations of many variables (often indices) "down" into the
25373         scope(s) where used or to the point of definition.  This is a
25374         no-semantic-change diff.
25376 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25378         version-etc: new year
25379         * build-aux/gendocs.sh (version):
25380         * doc/gendocs_template:
25381         * doc/gendocs_template_min:
25382         * doc/gnulib.texi:
25383         * lib/version-etc.c (COPYRIGHT_YEAR):
25384         Update copyright dates by hand in templates and the like.
25385         * all files: Run 'make update-copyright'.
25387 2016-12-31  Eric Blake  <eblake@redhat.com>
25389         do-release-commit-and-tag: avoid shell syntax error
25390         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25391         contain spaces when rebasing.
25393         maint.mk: hoist gnulib_dir definition earlier
25394         * top/maint.mk (gnulib_dir): Move near top of file.
25396 2016-12-31  Jim Meyering  <meyering@fb.com>
25398         maint.mk: do not always evaluate intprops-related shell
25399         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25400         using gnulib_dir undefined (gnulib_dir is defined later in the
25401         file, which will be fixed separately), and besides, there is no
25402         need to incur the cost of this shell invocation for every single
25403         use of this .mk file.  Reported by Eric Blake in
25404         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25406 2016-12-30  Jim Meyering  <meyering@fb.com>
25408         maint.mk: improve sc_prohibit_intprops_without_use
25409         * top/maint.mk (_intprops_names): Don't hard-code the list of
25410         symbol names.  Instead, derive it on the fly.
25412 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25414         dfa: shorten sbit, success
25415         * lib/dfa.c (struct regex_syntax.sbit):
25416         (struct dfa.success): Use char, not int, for array elements, since
25417         they are all in the range 0..7.
25419         dfa: simplify multibyte_prop etc.
25420         This follows up on a change made when dfa.c was in grep, namely grep
25421         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25422         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25423         That earlier simplification allows for some more simplification
25424         and trimming down here.
25425         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25426         (struct lexer_state): New mamber brack.
25427         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25428         since they must be in the range 0..3 now.
25429         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25430         the brack member now supersedes them.
25431         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25432         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25433         (dfaparse): Remove unnecessary initializations of already-0 storage.
25434         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25435         (dfassbuild): No need to clear sup->mbcsets.
25437         dfa: minor performance tweak
25438         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25440         dfa: wrap charclass inside a struct
25441         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25442         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25443         about 5% faster, where list.txt is generated by 'aspell dump
25444         master | head -n 100000 >list.txt'.  See Bug#22239.
25445         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25446         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25447         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25448         Adjust to this, e.g., by using charclass * rather than charclass.
25449         All callers changed as needed.
25450         (copyset): Remove.  All uses changed to simple assignment.
25451         (parse_bracket_exp): Use zeroset instead of memset.
25453 2016-12-30  Jim Meyering  <meyering@fb.com>
25455         maint.mk: update list of intprops.h symbol names
25456         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
25457         This avoids a false failure of the sc_prohibit_intprops_without_use
25458         rule in grep.
25460 2016-12-29  Eric Blake  <eblake@redhat.com>
25462         getopt: fix parallel test failure
25463         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
25464         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
25465         * tests/test-getopt-main.h (main): Use different file names
25466         in case test-getopt-gnu and test-getopt-posix run in parallel.
25468 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25470         xalloc: x2nrealloc check for ptrdiff_t overflow
25471         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
25472         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
25474 2016-12-24  Bruno Haible  <bruno@clisp.org>
25476         lock test: Fix performance problem on multi-core machines.
25477         * tests/test-lock.c (USE_VOLATILE): New macro.
25478         (struct atomic_int): New type.
25479         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
25480         functions.
25481         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
25482         as 'struct atomic_int'.
25483         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
25484         reclock_checker_thread, test_recursive_lock): Use the new functions.
25485         Reported by Eric Blake in
25486         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
25487         and by Pádraig Brady in
25488         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
25490 2016-12-19  Bruno Haible  <bruno@clisp.org>
25492         vma-iter: Fix endless loop on 64-bit Windows.
25493         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
25494         'unsigned long'.
25496 2016-12-19  Bruno Haible  <bruno@clisp.org>
25498         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
25499         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
25500         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
25501         Invoke gt_TYPE_WINT_T instead.
25502         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
25503         * modules/stdint (Files): Add m4/wint_t.m4.
25504         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25505         * modules/wctype-h (Makefile.am): Likewise.
25506         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
25507         not only on MSVC.
25508         * lib/wctype.in.h (wint_t): Likewise.
25510 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25512         getopt-posix-tests: fix Makefile typo
25513         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
25514         Fix typo: the last ‘_’ was missing in the name.
25515         I suspect that the typo explains this build failure:
25516         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
25517         although I can’t reproduce the problem on Solaris 10 sparc.
25519 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25521         dfa: improve worst-case 'replace' performance
25522         See my note in Bug#22357#71.
25523         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
25524         (merge_constrained): New function, which is like
25525         the old 'merge' function, except with a new argument C2.
25526         Simplify the body by avoiding the need for different sections
25527         of code depending on whether one input is exhausted.
25528         (merge): Use the new function.
25529         (delete): Return the constraint of the deleted position,
25530         not the entire position.  Caller changed.
25531         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
25533 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25535         dfa: performance improvement for removal of epsilon closure
25536         See Bug#22357#32.
25537         * lib/dfa.c (delete): Use binary search to find deleted index.
25538         (replace): New function.  It replaces a position with the followed set.
25539         (epsclosure): Replace it with a new algorithm.  Update caller.
25541 2016-12-18  Bruno Haible  <bruno@clisp.org>
25543         Split tests for getopt-posix and getopt-gnu.
25544         * tests/test-getopt-posix.c: New file.
25545         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
25546         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
25547         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
25548         GNULIB_TEST_GETOPT_GNU.
25549         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
25550         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
25551         (Makefile.am): Test test-getopt-posix instead of test-getopt.
25552         * modules/getopt-gnu-tests: New file.
25553         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
25555 2016-12-18  Bruno Haible  <bruno@clisp.org>
25557         posix-modules: Add options for specific platforms.
25558         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
25559         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
25560         Invoke func_tmpdir. Filter out the excludes.
25562 2016-12-18  Bruno Haible  <bruno@clisp.org>
25564         getopt: Fix link error for users of getopt() in <unistd.h>.
25565         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
25566         __need_getopt is defined. Undefine all macros before defining them.
25567         * modules/getopt (Include): Clarify that including <unistd.h> is also
25568         OK.
25569         * tests/test-getopt.c: Add comment.
25571 2016-12-17  Bruno Haible  <bruno@clisp.org>
25573         getaddrinfo tests: Avoid compilation error on MSVC.
25574         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
25575         getaddrinfo on native Windows.
25577 2016-12-17  Bruno Haible  <bruno@clisp.org>
25579         getlogin, getlogin_r: Fix link errors on MSVC.
25580         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
25581         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
25582         (Link): New section.
25583         * modules/getlogin_r (Files): Add m4/getlogin.m4.
25584         (configure.ac): Require gl_LIB_GETLOGIN.
25585         (Link): New section.
25586         * NEWS: Mention the new link requirements.
25587         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
25588         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25590 2016-12-17  Bruno Haible  <bruno@clisp.org>
25592         Un-deprecate the 'progname' module.
25593         * NEWS: Describe the appropriate use-cases of 'progname' versus
25594         'getprogname'. Based on discussion summary at
25595         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
25597 2016-12-17  Bruno Haible  <bruno@clisp.org>
25599         Reorganize NEWS a bit.
25600         * NEWS: Move some not so important changes away from section
25601         "Important Notes".
25603 2016-12-17  Bruno Haible  <bruno@clisp.org>
25605         tanhf: Avoid redefinition error on MSVC.
25606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
25607         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
25608         may be defined as an inline function.
25609         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
25610         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
25612 2016-12-17  Bruno Haible  <bruno@clisp.org>
25614         tanf: Avoid redefinition error on MSVC.
25615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
25616         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
25617         may be defined as an inline function.
25618         * modules/math (Makefile.am): Substitute REPLACE_TANF.
25619         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
25621 2016-12-17  Bruno Haible  <bruno@clisp.org>
25623         sqrtf: Avoid redefinition error on MSVC.
25624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
25625         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
25626         may be defined as an inline function.
25627         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
25628         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
25630 2016-12-17  Bruno Haible  <bruno@clisp.org>
25632         sinhf: Avoid redefinition error on MSVC.
25633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
25634         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
25635         may be defined as an inline function.
25636         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
25637         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
25639 2016-12-17  Bruno Haible  <bruno@clisp.org>
25641         sinf: Avoid redefinition error on MSVC.
25642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
25643         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
25644         may be defined as an inline function.
25645         * modules/math (Makefile.am): Substitute REPLACE_SINF.
25646         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
25648 2016-12-17  Bruno Haible  <bruno@clisp.org>
25650         logf: Avoid redefinition error on MSVC.
25651         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
25652         may be defined as an inline function.
25654 2016-12-17  Bruno Haible  <bruno@clisp.org>
25656         log10l: Avoid redefinition error on MSVC.
25657         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
25658         may be defined as an inline function.
25660 2016-12-17  Bruno Haible  <bruno@clisp.org>
25662         log10f: Avoid redefinition error on MSVC.
25663         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25664         may be defined as an inline function.
25666 2016-12-17  Bruno Haible  <bruno@clisp.org>
25668         hypotl: Avoid redefinition error on MSVC.
25669         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25670         may be defined as an inline function.
25672 2016-12-17  Bruno Haible  <bruno@clisp.org>
25674         hypotf: Avoid redefinition error on MSVC.
25675         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25676         may be defined as an inline function.
25678 2016-12-17  Bruno Haible  <bruno@clisp.org>
25680         fmodl: Avoid redefinition error on MSVC.
25681         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25682         may be defined as an inline function.
25684 2016-12-17  Bruno Haible  <bruno@clisp.org>
25686         fmodf: Avoid redefinition error on MSVC.
25687         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25688         may be defined as an inline function.
25690 2016-12-17  Bruno Haible  <bruno@clisp.org>
25692         expf: Avoid redefinition error on MSVC.
25693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25694         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25695         may be defined as an inline function.
25696         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25697         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25699 2016-12-17  Bruno Haible  <bruno@clisp.org>
25701         coshf: Avoid redefinition error on MSVC.
25702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25703         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25704         may be defined as an inline function.
25705         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25706         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25708 2016-12-17  Bruno Haible  <bruno@clisp.org>
25710         cosf: Avoid redefinition error on MSVC.
25711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25712         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25713         may be defined as an inline function.
25714         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25715         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25717 2016-12-17  Bruno Haible  <bruno@clisp.org>
25719         atan2f: Avoid redefinition error on MSVC.
25720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25721         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25722         may be defined as an inline function.
25723         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25724         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25726 2016-12-17  Bruno Haible  <bruno@clisp.org>
25728         atanf: Avoid redefinition error on MSVC.
25729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25730         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25731         may be defined as an inline function.
25732         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25733         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25735 2016-12-17  Bruno Haible  <bruno@clisp.org>
25737         asinf: Avoid redefinition error on MSVC.
25738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25739         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25740         may be defined as an inline function.
25741         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25742         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25744 2016-12-17  Bruno Haible  <bruno@clisp.org>
25746         acosf: Avoid redefinition error on MSVC.
25747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25748         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25749         may be defined as an inline function.
25750         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25751         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25753 2016-12-17  Bruno Haible  <bruno@clisp.org>
25755         Avoid redefinition errors on MSVC.
25756         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25757         the function may be defined as an inline function.
25758         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25759         the function may be defined as an inline function.
25761 2016-12-17  Bruno Haible  <bruno@clisp.org>
25763         Avoid redefinition errors on MSVC.
25764         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25765         * lib/unistd.in.h: Include <stdio.h> when necessary.
25767 2016-12-17  Bruno Haible  <bruno@clisp.org>
25769         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25770         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25771         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25772         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25773         WINT_MAX.
25775 2016-12-17  Bruno Haible  <bruno@clisp.org>
25777         Avoid autoconf warning.
25778         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25779         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25781 2016-12-17  Bruno Haible  <bruno@clisp.org>
25783         fpending: Revert workaround against Emacs bug.
25784         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25785         The Emacs bug is fixed by Eli Zaretskii in
25786         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25788 2016-12-17  Bruno Haible  <bruno@clisp.org>
25790         getlogin_r tests: Port to mingw.
25791         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25792         regression introduced on 2014-05-19.
25794 2016-12-17  Bruno Haible  <bruno@clisp.org>
25796         getlogin: Port to newer mingw.
25797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25798         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25799         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25800         HAVE_GETLOGIN.
25801         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25802         HAVE_GETLOGIN.
25803         * doc/posix-functions/getlogin.texi: Mention the issue.
25804         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25805         regression introduced on 2014-05-14.
25807 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25809         builtin-expect: improve port to IBM XL C
25810         Problem reported for z/OS by Daniel Richard G. in:
25811         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25812         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25813         Test for <builtins.h> directly.
25815         builtin-expect: port to IBM XL C
25816         Problem reported for z/OS by Daniel Richard G. in:
25817         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25818         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25819         Also allow __builtin_expect defined via a standard include file.
25821         regex: fix dependency
25822         Problem reported by Bruno Haible in:
25823         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25824         * modules/regex: Depend on builtin-expect.
25826         builtin-expect: new module
25827         Fix fnmatch to use it.
25828         Problem reported for z/OS by Daniel Richard G.
25829         * lib/fnmatch.c (__builtin_expect):
25830         * lib/glob.c (__builtin_expect):
25831         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25832         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25833         * lib/scandir.c (__builtin_expect):
25834         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25835         Remove macro; config.h now does this.
25836         * lib/gl_anytreehash_list1.h (add_to_bucket):
25837         * lib/regex_internal.h (BE):
25838         Assume __builtin_expect.
25839         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25840         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25841         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25842         * modules/scandir, modules/strstr-simple:
25843         Depend on builtin-expect.
25845 2016-12-15  Bruno Haible  <bruno@clisp.org>
25847         init.sh: Add possibility to not delete temporary files.
25848         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25849         to yes, don't erase the temporary directory.
25851 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25853         regex: fix integer-overflow bug in never-used code
25854         Problem reported by Clément Pit–Claudel in:
25855         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25856         * lib/regex_internal.h: Include intprops.h.
25857         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25858         behavior on integer overflow.
25859         * modules/regex (Depends-on): Add intprops.
25861         fpending: fix port to MinGW on Emacs
25862         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25863         Problem reported by Eli Zaretskii in:
25864         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25865         Is Plan 9 still a valid porting target, anyway?
25867 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25869         safe-alloc: use xalloc-oversized
25870         * lib/safe-alloc.c: Include xalloc-oversized.h.
25871         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25872         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25874         xalloc: do not exceed PTRDIFF_MAX
25875         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25876         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25877         bytes have pointer-subtraction problems.
25879         malloca: do not exceed PTRDIFF_MAX
25880         * lib/malloca.h: Include xalloc-oversized.
25881         (nmalloca): Use xalloc_oversized instead of rolling our own.
25882         * modules/malloca (Depends-on):
25883         * modules/relocatable-prog-wrapper (Depends-on):
25884         Add xalloc-oversized.
25886         quotearg: pacify GCC better
25887         * modules/quotearg (Depends-on): Add minmax, stdint.
25888         * lib/quotearg.c: Include minmax.h, stdint.h.
25889         (nslots): Now int, as there seems little point to going to extra
25890         work merely to support the INT_MAX slot, which nobody ever uses.
25891         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25892         and to catch (mostly-theoretical) ptrdiff_t problems too.
25893         This can be done via one comparison.
25895 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25897         xalloc-oversized: check for PTRDIFF_MAX too
25898         This avoids undefined behavior when subtracting pointers to
25899         objects containing more than PTRDIFF_MAX bytes.
25900         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25901         Also return 1 if the result would exceed PTRDIFF_MAX>
25902         * modules/xalloc-oversized (Depends-on):
25903         Add stdint.
25905         dfa: fix glitches in previous commit
25906         Sorry, I don't know how I managed to commit the wrong version.
25907         * lib/dfa.c (MIN): Move up.
25908         (xpalloc): Now static.
25910         dfa: fix some unlikely integer overflows
25911         I found these while reviewing the recent Coverity-related fix.
25912         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25913         size_t for object counts.  Using ptrdiff_t is the style typically
25914         used in Emacs; although it wastes a sign bit as sizes can never be
25915         negative, it makes -fsanitize=undefined more likely to catch
25916         integer overflows in index calculation, and nowadays the upside is
25917         typically more important than the downside.  Although perhaps the
25918         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25919         of dfa.c already does, since it uses state_num which is signed),
25920         that is a bigger change and is not needed to fix the bugs I found.
25921         * lib/dfa.c: Include stdint.h and intprops.h.
25922         (TOKEN_MAX): New macro.
25923         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25924         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25925         (realloc_trans_if_necessary, free_mbdata):
25926         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25927         This is safe because xpalloc checks that the sizes do not exceed
25928         either SIZE_MAX or PTRDIFF_MAX.
25929         (xpalloc): New function, mostly taken from Emacs.
25930         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25931         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25932         (charclass_index): Check for integer overflow in computing
25933         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25934         added to it later.
25935         (alloc_position_set): Check for integer overflow.  On typical
25936         platforms this check has zero overhead, since the constant
25937         expression is false.
25938         (realloc_trans_if_necessary):
25939         Remove assertion, which I hope Coverity no longer needs.
25941         * modules/dfa (Depends-on): Add intprops, stdint.
25943 2016-12-12  Jim Meyering  <meyering@fb.com>
25945         dfa: add an assertion to avoid coverity false positive
25946         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25947         warned that "newalloc1 - 2" could overflow.
25949 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25951         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25952         * dfa.h (DFA_CASE_FOLD): Remove.
25953         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25955 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25957         link: fix test to declare use of rename()
25958         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25959         -Werror=implicit-function-declaration
25961 2016-12-12  Bruno Haible  <bruno@clisp.org>
25963         fpending: Port to native Windows with MSVC.
25964         * lib/fpending.c: Include stdio-impl.h.
25965         (__fpending): Include all known implementations. Err out if it's not
25966         ported.
25967         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25968         * modules/fpending (Files): Add lib/stdio-impl.h.
25969         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25971 2016-12-12  Bruno Haible  <bruno@clisp.org>
25973         stdioext: Port to native Windows with MSVC.
25974         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25975         (struct _gl_real_FILE): New type.
25976         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25977         Windows.
25978         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25979         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25980         other SystemV derived implementations.
25981         * lib/fpurge.c (fpurge): Likewise.
25982         * lib/freadable.c (freadable): Likewise.
25983         * lib/freadahead.c (freadahead): Likewise.
25984         * lib/freading.c (freading): Likewise.
25985         * lib/freadptr.c (freadptr): Likewise.
25986         * lib/freadseek.c (freadptrinc): Likewise.
25987         * lib/fseeko.c (fseeko): Likewise.
25988         * lib/fseterr.c (fseterr): Likewise.
25989         * lib/fwritable.c (fwritable): Likewise.
25990         * lib/fwriting.c (fwriting): Likewise.
25991         Reported by Gisle Vanem <gvanem@yahoo.no>.
25993 2016-12-11  Jim Meyering  <meyering@fb.com>
25995         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25996         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25997         to work with most shells, but not with the one provided by many
25998         Solaris 10 systems, so running configure with such a /bin/sh evokes
25999         e.g., "./configure: syntax error at line 33602: `(' unexpected".
26000         Reported by Assaf Gordon in
26001         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
26003 2016-12-10  Bruno Haible  <bruno@clisp.org>
26005         threadlib: Optimize out runtime test on Solaris >= 10.
26006         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
26007         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
26008         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
26010 2016-12-10  Bruno Haible  <bruno@clisp.org>
26012         stdint: Update doc about Solaris 9.
26013         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
26015 2016-12-09  Bruno Haible  <bruno@clisp.org>
26017         c-ctype tests: Fix link error on Solaris 9.
26018         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
26019         Reported at <https://savannah.gnu.org/bugs/?46827>.
26021 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
26023         dfa: fix performance bug that recomputes trans
26024         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
26025         25 on-demand changes.  The bug caused build_state to reset all
26026         d->trans elements to -2 even when d->trans was already non-null.
26027         Use C99 style decls after statements in this function.
26029         same-inode: port to MinGW
26030         Here st_ino is always 0, so change the definition of SAME_INODE so
26031         that 1 means the two files are the same, 0 with st_ino != 0 means
26032         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
26033         reported by Bruno Haible (Bug#25146).
26034         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
26035         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
26037 2016-12-04  Bruno Haible  <bruno@clisp.org>
26039         javacomp-script: Support Java 7 and 8.
26040         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
26041         target-version 1.7, 1.8.
26043 2016-12-02  Daiki Ueno  <ueno@gnu.org>
26045         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
26046         GPLv2" rewriting.
26048 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
26050         * gnulib-tool (func_import): Adhere to the license guideline when
26051         rewriting the license text to "LGPLv3+ or GPLv2":
26052         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
26054 2016-12-02  Bruno Haible  <bruno@clisp.org>
26056         localcharset: Avoid theoretical buffer overrun.
26057         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
26058         return value from setlocale if it would lead to a buffer overrun.
26060 2016-12-01  Bruno Haible  <bruno@clisp.org>
26062         Relicense some modules under LGPLv2+.
26063         Kevin Cernekee's approval is in
26064         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
26065         * modules/fseterr (License): Change to LGPLv2+.
26066         * modules/mbchar (License): Likewise.
26067         * modules/mbiter (License): Likewise.
26068         * modules/mbsnlen (License): Likewise.
26069         * modules/wcwidth (License): Likewise.
26071 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26073         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
26074         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
26075         OS/2 kLIBC.
26077 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26079         alphasort, scandir: Port to OS/2 kLIBC
26080         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
26081         declaration.
26082         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
26084 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26086         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
26087         * lib/relocatable.c (relocate): Do not touch pathname if it is started
26088         with '/@unixroot'.
26090 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26092         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
26093         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
26094         OS/2 kLIBC unless TCPV40HDRS is defined.
26096 2016-11-29  Jim Meyering  <meyering@fb.com>
26098         dfa: avoid new infinite loop
26099         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
26100         * lib/dfa.c (dfastate): When constructing a new state table, we could
26101         initially declare that we had found a match, and later find that
26102         constraints eliminate that possibility, yet continue to use the
26103         now stale "matched" indicator.  That would lead to an infinite loop.
26104         The solution is to update "matched" when necessary.
26105         Introduced by commit v0.1-983-g403adf1.
26107 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26109         dfa: avoid match middle in multibyte character
26110         * lib/dfa.c (transit_state): If fails in matching single byte characters
26111         on a state including period expression in non-UTF8 multibyte locales,
26112         skip trailing bytes.
26113         (dfa_supported): Revert previous change.
26115 2016-11-27  Jim Meyering  <meyering@fb.com>
26117         dfa: avoid false match in non-UTF8 multibyte locales
26118         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
26119         as "not supported" so that callers will resort to using regex-based
26120         matcher.  This will surely hurt performance, but correctness trumps
26121         performance here, and the affected locales are less and less relevant,
26122         these days.  See grep's bug report https://bugs.gnu.org/24975.
26124 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
26126         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
26127         * lib/ptsname_r.c: Include the appropriate headers.
26128         [__sun]: Delete sys/sysmacros.h include.
26129         [_AIX || __osf__]: Likewise.
26130         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
26132 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26134         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
26135         * lib/md4.c (md4_process_bytes): The existing define is made internal
26136         in recent versions of glibc, so also use this new public define.
26137         * lib/md5.c (md5_process_bytes): Likewise.
26138         * lib/sha1.c (sha1_process_bytes): Likewise.
26139         * lib/sha256.c (sha256_process_bytes): Likewise.
26140         * lib/sha512.c (sha512_process_bytes): Likewise.
26142 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26144         maint: use a more standard return from mbrtowc test
26145         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
26146         from the test program as this often indicates an
26147         unhandled case in the test program.
26148         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
26149         (gl_MBRTOWC_SANITYCHECK): Likewise.
26150         (gl_MBRTOWC_NULL_ARG2): Likewise.
26151         (gl_MBRTOWC_NUL_RETVAL): Likewise.
26153 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26155         freopen: work around glibc bug with closed fd
26156         Work around glibc bug#15589, where freopen mishandles the case
26157         where stdin etc. are already closed.
26158         * doc/posix-functions/freopen.texi (freopen): Document the bug.
26159         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
26160         instead of __need_FILE, as the latter does not work with glibc.
26161         Include <fcntl.h>, for open flags.
26162         (rpl_freopen): Work around glibc bug.
26163         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
26164         * modules/freopen (Depends-on): Add fcntl-h.
26165         * tests/test-freopen.c (main): Test for bug.
26167 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26169         fnmatch: fix typo introduced on 2016-08-17
26170         This fixes the port to non-GCC compilers that lack __builtin_expect.
26171         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26173         dfa: simplify with new function fillset
26174         * lib/dfa.c (fillset): New function.
26175         Use it for clarity when applicable.
26177         dfa: fix glitches with on-demand states
26178         Also, adjust commentary to better match new code.
26179         Some of these glitches predate the recent change.
26180         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
26181         only non-initial states.
26182         (dfastate): Rename locals to better match new roles.
26183         Move them into nested scopes if this is easy.
26184         Omit unnecessary calls to zeroset.
26185         Simplify test for whether to throw in the positions of state 0.
26186         Omit C99-ism (decl after statement) since Gawk still wants C89.
26187         (build_state): Omit unnecessary test and assignment.
26188         Fix some confusion that counted transition tables inaccurately
26189         and could cause a memory leak.
26190         (dfaexec_main): Redo to make it clearer to the compiler that
26191         -1 and -2 are the only negative state numbers here.
26193 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26195         dfa: addition of new state on demand
26196         * src/dfa.c (dfastate): Add argument UC, the current input character.
26197         Fill only a group including the character in transition table.
26198         (realloc_trans_if_necessary): Add the dummy state which means that a
26199         transition table is assigned but the next state is not assigned.
26200         (build_state): Return the next state.  All callers updated.
26201         (transit_state_singlebyte): If we get the dummy state,
26202         fill the transition table.
26203         (dfaexec_main): Handle the dummy state.
26204         (free_mbdata, dfafree): Consider the dummy state.
26206 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26208         srclist: sync with released gettext
26209         * config/srclist.txt: Set "release" option to the files under
26210         $GETTEXT.
26212 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26214         srclist: add "release" option
26215         * config/srclist.txt: Change the format so that the first column
26216         of each line points to the top-level directory of the source
26217         archive.
26218         * config/srclist-update: Accept "release" option that checks files
26219         from the most recently tagged revision in the source archive.
26221 2016-11-21  Bruno Haible  <bruno@clisp.org>
26223         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
26224         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26225         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
26226         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
26227         Inline and remove member function 'rpl ()' of the wrapper struct.
26229 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26231         dfa: fix logic typo
26232         Problem reported by Stephane Chazelas (Bug#24973).
26233         * lib/dfa.c (using_simple_locale): Fix typo that caused some
26234         non-simple locales like fr_FR to be treated as simple.
26236 2016-11-20  Jim Meyering  <meyering@fb.com>
26238         fix test driver leaks: exclude, malloc, realloc
26239         * tests/test-exclude.c (main): Fix trivial leak.
26240         * tests/test-malloc-gnu.c (main): Likewise.
26241         * tests/test-realloc-gnu.c (main): Likewise.
26242         With these changes, grep's tests are now leak free.
26243         I.e., running them with ASAN elicits no failure:
26244           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
26245             AM_LDFLAGS='-fsanitize=address -static-libasan' check
26247 2016-11-11  Bruno Haible  <bruno@clisp.org>
26249         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
26250         * modules/libunistring: (License): Change from LGPL to
26251         "LGPLv3+ or GPLv2".
26252         * modules/libunistring-optional: Likewise.
26253         * modules/unicase/*: Likewise.
26254         * modules/uniconv/*: Likewise.
26255         * modules/unictype/*: Likewise.
26256         * modules/unigbrk/*: Likewise.
26257         * modules/unilbrk/*: Likewise.
26258         * modules/uniname/*: Likewise.
26259         * modules/uninorm/*: Likewise.
26260         * modules/unistdio/*: Likewise.
26261         * modules/unistr/*: Likewise.
26262         * modules/uniwbrk/*: Likewise.
26263         * modules/uniwidth/*: Likewise.
26265 2016-11-12  Bruno Haible  <bruno@clisp.org>
26267         Relicense some modules under LGPLv2+.
26268         Paul Eggert's approval is in
26269         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
26270         Eric Blake's approval is in
26271         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
26272         Ludovic Courtès's approval is in
26273         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
26274         * modules/isnand-nolibm (License): Change to LGPLv2+.
26275         * modules/isnanf-nolibm (License): Likewise.
26276         * modules/isnanl-nolibm (License): Likewise.
26278 2016-11-19  Bruno Haible  <bruno@clisp.org>
26280         Relicense some modules under LGPLv2+.
26281         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
26282         modules/vasnprintf.
26283         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
26284         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
26285         All other significant changes to the files in lib/ of these modules
26286         are from me.
26287         * modules/memcmp2 (License): Change to LGPLv2+.
26288         * modules/amemxfrm (License): Likewise.
26289         * modules/fpieee (License): Likewise.
26290         * modules/fpucw (License): Likewise.
26291         * modules/frexp-nolibm (License): Likewise.
26292         * modules/frexpl-nolibm (License): Likewise.
26293         * modules/printf-frexp (License): Likewise.
26294         * modules/printf-frexpl (License): Likewise.
26295         * modules/printf-safe (License): Likewise.
26296         * modules/signbit (License): Likewise.
26298 2016-11-17  Bruno Haible  <bruno@clisp.org>
26300         Enable Unicode decoder safety unconditionally.
26301         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
26302         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
26303         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26304         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26305         * lib/unistr/u8-prev.c (u8_prev): Likewise.
26306         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
26307         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
26308         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
26309         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
26310         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
26311         * lib/unistr/u16-prev.c (u16_prev): Likewise.
26312         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
26313         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
26314         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
26315         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
26316         * lib/unistr/u32-prev.c (u32_prev): Likewise.
26317         * lib/unistr/u32-next.c (u32_next): Likewise.
26318         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
26319         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
26320         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26321         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26322         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
26323         CONFIG_UNICODE_SAFETY tests unconditionally.
26324         * tests/unistr/test-u32-mblen.c (main): Likewise.
26325         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
26326         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
26327         * tests/unistr/test-u32-next.c (main): Likewise.
26328         * tests/unistr/test-u32-strmblen.c (main): Likewise.
26329         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
26330         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
26331         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
26332         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
26333         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26334         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
26335         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
26336         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
26337         * lib/unistr/u16-check.c (u16_check): Update comment.
26338         * NEWS: Mention the changes that callers should be aware of.
26340 2016-11-19  Bruno Haible  <bruno@clisp.org>
26342         relocatable-prog-wrapper: Fix breakage on Cygwin.
26343         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26344         (Depends-on): Remove intprops.
26345         * lib/relocwrapper.c: Update dependency tree.
26346         (strerror): Undefine.
26347         * build-aux/install-reloc (func_create_wrapper): Do not compile
26348         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26350 2016-11-19  Bruno Haible  <bruno@clisp.org>
26352         strerror: Make it compile in C++ mode.
26353         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26355 2016-11-15  Pedro Alves  <palves@redhat.com>
26357         sys_time: add gnulib::timeval for C++
26358         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26359         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26360         timeval macro.
26362 2016-11-14  Pedro Alves  <palves@redhat.com>
26364         snippet/c++defs: fix real-floating arg functions in C++ mode
26365         Also, define isfinite, isinf, isnan, signbit in the gnulib
26366         namespace instead of in the global namespace.
26367         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26368         (_GL_END_NAMESPACE): New.
26369         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26370         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26371         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26372         instead of in the global namespace.
26373         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26374         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26375         of in the global namespace.
26377 2016-11-13  Jim Meyering  <meyering@fb.com>
26379         strftime: don't use __THROW
26380         Each use of __THROW would provoke this from gcc-7-to-be:
26382           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26383             on unit local functions [-Wattributes]
26384           static int iso_week_days (int, int) __THROW;
26385           ^~~~~~
26386         * lib/strftime.c (__THROW): Don't define.
26387         Remove each use of __THROW.
26388         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26389         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26391 2016-11-14  Paul Eggert  <eggert@union>
26393         obstack: port to gcc -fcheck-pointer-bounds
26394         Problem found by 'make check' failure on bleeding-edge coreutils
26395         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26396         6.2.0-5ubuntu12), configured via "./configure
26397         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26398         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26399         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26400         New macro, copied from fts_.h.
26401         (struct _obstack_chunk.contents): Use it.
26403 2016-11-14  Eric Blake  <eblake@redhat.com>
26405         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26406         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26407         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26409 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26411         strptime: fix compile error in recent change
26412         * lib/strptime.c (__strptime_internal): Fix ported code.
26414 2016-11-11  Bruno Haible  <bruno@clisp.org>
26416         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26417         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26418         (func_import): Extend determination of license_incompatibilities.
26419         (func_create_testdir): Extend table of license compatibility. Handle
26420         also the licenses GPLv3+, GPL, LGPLv3+.
26422 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26424         strftime: tune %q
26425         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26427         Merge strftime.c changes from glibc
26428         This incorporates:
26429         2007-10-16 [BZ #5184] Add tzset_called argument
26430         2008-06-13 [BZ #6612] pass reference to tzset_called around
26431         2009-10-30 Implement Burmese language locale for Myanmar
26432         2010-01-09 Add support for XPG7 testing
26433         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26434         2015-10-20 Convert miscellaneous function definitions to prototype style
26435         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26436         it anyway and this lessens the difference between gnulib and glibc.
26437         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26438         (__THROW): Define if standard headers do not.
26439         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26440         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26441         Declare with __THROW.
26442         (__strftime_internal): Rename from strftime_case_. Add arg for
26443         whether tzset is called.  All uses changed.  Call tzset at most
26444         once.  Allow %OC, for Burmese.
26445         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26446         Don't assume values are in range.
26448 2016-11-12  Eric Blake  <eblake@redhat.com>
26450         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26451         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26452         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
26453         different value.
26455 2006-11-12  Pedro Alves  <palves@redhat.com>
26457         Fix gnulib C++ namespace support and std::frexp
26458         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
26459         _GL_CXXALIASWARN.
26461 2006-11-12  Pedro Alves  <palves@redhat.com>
26463         GNULIB_NAMESPACE::func need not pull in rpl_func
26464         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26465         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
26466         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
26467         struct instead of a function pointer.
26469 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
26471         manywarnings: fix -Wno-missing-field-initializers detection
26472         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
26473         to be independent of -Wunused-variable.  I.E. ensure the latter
26474         warning doesn't occur so that detection of the former is accurate.
26476 2016-11-05  Pádraig Brady  <pbrady@fb.com>
26478         strftime,strptime: support %q to represent the quarter
26479         * lib/strftime.c (strftime_case_): Add %q case.
26480         * lib/strptime.c (__strptime_internal): Likewise.
26481         * tests/test-strftime.c (quarter_test): A new test case.
26483 2016-11-03  Eric Blake  <eblake@redhat.com>
26485         bootstrap: Fix get_version() for AIX 5.3
26486         * build-aux/bootstrap (get_version): Factor out sed script, since
26487         indented comments choke AIX 5.3 sed.
26488         Reported-by: Michael Felt <aixtools@gmail.com>
26490 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26492         intprops: port to older XL C
26493         Problem reported by Alexander Samoilov in:
26494         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
26495         http://savannah.nongnu.org/bugs/?49448
26496         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
26497         Define to 1 only for XL C 12.1 or later, since this bug
26498         occurs in XL C for AIX 6.0 but not in 12.1.
26500 2016-11-02  Pádraig Brady  <P@draigBrady.com>
26502         backupfile: initialize default suffix within the implementation
26503         * lib/backupfile.c (find_backup_file_name): Initialize the
26504         global variable here, to simplify usage, and to only call
26505         getenv() when needed.
26507 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26509         futimens: remove FIXME for old Linux kernels
26510         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
26511         this in 2012" FIXME, like that for utimensat.
26513         utimensat: remove FIXME for old Linux kernels
26514         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
26515         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
26516         this in 2012" FIXME, by assuming the file system bug is absent
26517         unless demonstrated to be present.  We no longer need to worry
26518         about Linux kernel 2.6.32 when building with newer kernels.
26520 2016-10-16  Bruno Haible  <bruno@clisp.org>
26522         qsort_r: Fix macrology for platforms that lack the function.
26523         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
26524         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
26525         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
26526         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
26527         not exist.
26528         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
26529         the function exists.
26530         * modules/qsort_r: Add comments.
26532 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26534         sys_types: fix Texinfo typos
26535         * doc/glibc-functions/gnu_dev_major.texi:
26536         * doc/glibc-functions/gnu_dev_makedev.texi:
26537         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
26539 2016-10-26  John David Anglin  <dave.anglin@bell.net>
26541         getprogname: port to HP-UX
26542         See Bug#24805.
26543         * lib/getprogname.c (getprogname) [__hpux]: Port.
26544         * tests/test-getprogname.c (STREQ) [__hpux]:
26545         Special-case for HP-UX limitations on program name length.
26547 2016-10-20  Bruno Haible  <bruno@clisp.org>
26549         Update doc about target platforms.
26550         * doc/gnulib-intro.texi (Target Platforms): Update list.
26552 2016-10-15  Bruno Haible  <bruno@clisp.org>
26554         opendir, readdir, closedir: Relicense under LGPLv2+.
26555         * modules/opendir (License): Change to LGPLv2+.
26556         * modules/readdir (License): Likewise.
26557         * modules/closedir (License): Likewise.
26559 2016-10-16  Bruno Haible  <bruno@clisp.org>
26561         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
26562         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
26563         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
26564         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
26565         HAVE_DECL_STRERROR_R.
26567 2016-10-16  Bruno Haible  <bruno@clisp.org>
26569         Make the 'argp' module work without the 'error' module.
26570         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
26572 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26574         diffseq: restore TOO_EXPENSIVE heuristic
26575         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
26576         (Bug#24715).  The simplest solution is to restore the
26577         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
26578         using a higher threshold to avoid Bug#16848 on smaller files.
26579         * lib/diffseq.h (struct context): Restore member too_expensive.
26580         (struct partition): Restore members lo_minimal, hi_minimal.
26581         (diag, compareseq): Restore arg find_minimal.  All uses changed.
26582         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
26583         1993 to make 'diff' run faster (but not as well) on large inputs,
26584         but use a threshold of 4096 instead of the old 256.
26585         * lib/fstrcmp.c (strcmp_bounded):
26586         * lib/git-merge-changelog.c (compute_differences):
26587         Adjust to diffseq.h changes.
26589 2016-10-22  Bruno Haible  <bruno@clisp.org>
26591         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26592         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26593         declaration yet, define ICONV_CONST to empty.
26595 2016-10-15  Bruno Haible  <bruno@clisp.org>
26597         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
26598         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
26599         module.
26601 2016-10-16  Bruno Haible  <bruno@clisp.org>
26603         system-quote tests: Avoid compiler warning on AIX.
26604         * tests/test-system-quote-child.c (fopen): Redefine like the system's
26605         <stdio.h> does.
26607 2016-10-16  Bruno Haible  <bruno@clisp.org>
26609         Fix some "gcc -Wall" warnings.
26610         * tests/test-ffsl.c (main): Use variable x, not i.
26611         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
26612         freopen.
26613         * tests/test-sethostname1.c (main): Explicitly ignore the return value
26614         of sethostname.
26616 2016-10-16  Bruno Haible  <bruno@clisp.org>
26618         gnulib-tool: Make --create-testdir on all modules work again.
26619         * gnulib-tool (func_create_testdir): Don't include the
26620         non-recursive-gnulib-prefix-hack module.
26622 2016-10-21  Daiki Ueno  <ueno@gnu.org>
26624         libunistring: change the maintainer to 'all'
26625         * modules/gen-uni-tables, modules/libunistring:
26626         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
26627         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
26628         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
26629         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
26630         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
26631         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
26632         * modules/uniwidth/*: Change the maintainer to 'all'.
26634 2016-10-16  Bruno Haible  <bruno@clisp.org>
26636         Simplify "configure: checking ..." messages.
26637         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
26638         AC_MSG_NOTICE.
26639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26641 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26643         quotearg-tests: pacify gcc -Wall
26644         Problem reported by Bruno Haible in:
26645         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
26646         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
26647         * tests/test-quotearg.h: ... from here.
26649 2016-10-20  Pádraig Brady  <P@draigBrady.com>
26651         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
26652         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
26653         Needed on Centos <= 4.
26655 2016-10-20  Jim Meyering  <meyering@fb.com>
26657         printf.m4: fix a bug in detecting printf %j support
26658         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
26659         uintmax_t is defined in neither stdint.h nor inttypes.h.
26660         Before, this macro might have mistakenly set
26661         gl_cv_func_printf_sizes_c99=yes on such a system.
26662         Spotted by Zev Weiss.
26664 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26666         sched: substitute HAVE_SYS_CDEFS_H too
26667         Problem reported by Tom G. Christensen in:
26668         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26669         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26670         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26672 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26674         quotearg: never write beyond the returned length
26675         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26676         scan of the string when we initially encounter a single quote when
26677         shell quoting, so that if we then switch to a more concise quoting method
26678         we will not have written beyond that returned length.
26679         This is significant for sh-quote, which has separate routines
26680         to determine the length and do the actual quoting.
26681         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26682         now that we never write more than the returned length.
26684 2016-10-18  Bruno Haible  <bruno@clisp.org>
26686         getprogname tests: Avoid failure in packages that use libtool.
26687         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26688         Based on a patch by Jim Meyering.
26690 2016-10-16  Bruno Haible  <bruno@clisp.org>
26692         getprogname: Fix test failure on Cygwin. Comments.
26693         * lib/getprogname.h: Add comments.
26694         * lib/getprogname.c: Add comments. Fix #elif indentation.
26695         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26696         ".exe" suffix.
26698 2016-10-16  Bruno Haible  <bruno@clisp.org>
26700         Make sure the libunistring detection rejects older versions with a
26701         known bug.
26702         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26703         * modules/unistr/u16-strtok (configure.ac): Likewise.
26704         * modules/unistr/u32-strtok (configure.ac): Likewise.
26706 2016-10-18  Bruno Haible  <bruno@clisp.org>
26708         sh-quote, system-quote: revert regression of unit test.
26709         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26710         * tests/test-system-quote-main.c (check_one): Likewise.
26712 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26714         quotearg: fix stale tests
26715         * tests/test-quotearg.c [locale_results]: Add the missing str7
26716         entries to the expected results.
26717         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26718         don't write beyond the returned length, since that's no longer the
26719         case if we switch to a more concise quoting style.
26720         * tests/test-sh-quote.c (check_one): Likewise.
26721         (main): Adjust for the new more concise quoting style.
26722         Reported by Bruno Haible.
26724 2016-10-16  Jim Meyering  <meyering@fb.com>
26726         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26727         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26728         to "$1".  This macro is always invoked with $1 == lib.
26729         Spotted by Bruno Haible
26731 2016-10-16  Bruno Haible  <bruno@clisp.org>
26733         Fix a test crash.
26734         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26735         fails.
26737 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26739         test-limits-h: suppress -Woverlength-strings
26740         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26742 2016-10-15  Bruno Haible  <bruno@clisp.org>
26744         gettime, timespec, utimens: Relicense under LGPL.
26745         * modules/gettime (License): Change to LGPL.
26746         * modules/timespec (License): Likewise.
26747         * modules/utimens (License): Likewise.
26749 2016-10-14  Bruno Haible  <bruno@clisp.org>
26750             Pádraig Brady  <P@draigBrady.com>
26752         canonicalize-lgpl: Support the case path_max > INT_MAX.
26753         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26754         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26756 2016-10-13  Jim Meyering  <meyering@fb.com>
26758         getprogname: IBM z/OS: avoid NULL-dereference
26759         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26760         upon strdup failure.
26762 2016-10-12  Jim Meyering  <meyering@fb.com>
26764         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26765         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26766         and an abbreviated diagnostic rather than verify with the full one,
26767         because the full-length strings would evoke warnings from gcc with
26768         -Woverlength-strings.
26770 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26772         stdint: port SIZE_MAX to glibc s390
26773         Problem reported by Eric Blake in:
26774         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26775         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26776         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26777         correct type, if possible.
26779 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26781         getprogname: port to IBM z/OS
26782         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26784 2016-10-11  Jim Meyering  <meyering@fb.com>
26786         maint: remove stray space after "." in AC_DEFINE comment.
26787         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26788         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26790 2016-10-05  Jim Meyering  <meyering@fb.com>
26792         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26793         * lib/long-options.c (parse_long_options): Add a break statement
26794         to avoid this new warning/failure:
26795         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26796           --create-testdir --dir=/t/x --with-tests --test long-options
26797         ../../gllib/long-options.c: In function 'parse_long_options':
26798         ../../gllib/long-options.c:66:12: error: this statement may \
26799           fall through [-Werror=implicit-fallthrough]
26800                    (*usage_func) (EXIT_SUCCESS);
26801                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26803 2016-10-05  Jim Meyering  <meyering@fb.com>
26805         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26806         Testing this module would fail when using GCC 7 like this:
26807         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26808           --dir=/tmp/x --with-tests --test utimecmp
26809         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26810         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26811           [-Werror=bool-operation]
26812                          time_t s = src_s & ~ (res == 2 * BILLION);
26813                                             ^
26814         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26815           [-Werror=bool-operation]
26816                src_s &= ~ (res == 2 * BILLION);
26817                         ^
26818         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26819         Instead, make it explicit that we intend to apply it to 0 or 1.
26821 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26823         dfa: save memory for states
26824         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26825         states if dfa has a lot of caches.
26827 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26829         wchar, wctype-h: fix for MinGW 3.22.2
26830         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26831         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26832         when included from <string.h>.
26833         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26834         convention for MinGW 3.22.2, to solve issues with their
26835         wctype.h when included from <ctype.h>.
26837 2016-10-05  Jim Meyering  <meyering@fb.com>
26839         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26840         * lib/long-options.c (parse_long_options): Add a break statement
26841         to avoid this new warning/failure:
26842         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26843           --create-testdir --dir=/t/x --with-tests --test long-options
26844         ../../gllib/long-options.c: In function ‘parse_long_options’:
26845         ../../gllib/long-options.c:66:12: error: this statement may \
26846           fall through [-Werror=implicit-fallthrough]
26847                    (*usage_func) (EXIT_SUCCESS);
26848                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26850         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26851         Testing this module would fail when using GCC 7 like this:
26852         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26853           --dir=/tmp/x --with-tests --test utimecmp
26854         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26855         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26856           [-Werror=bool-operation]
26857                          time_t s = src_s & ~ (res == 2 * BILLION);
26858                                             ^
26859         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26860           [-Werror=bool-operation]
26861                src_s &= ~ (res == 2 * BILLION);
26862                         ^
26863         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26864         Instead, make it explicit that we intend to apply it to 0 or 1.
26866 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26868         quotearg: minimize shell quoting using double quotes
26869         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26870         quote in encountered then use double quotes (c style quoting)
26871         when possible, as it simplifies the quoting.
26872         * tests/test-quotearg-simple.c: Add test cases.
26873         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26874         for the fact we now may write beyond the returned length.
26876 2016-10-02  Jim Meyering  <meyering@fb.com>
26878         vasnprintf.c: avoid spurious warning from GCC 7
26879         The presence of cpp directives renders this "FALLTHROUGH" comment
26880         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26881         from GCC 7 built from git on 2016-10-02.
26882         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26883         directives, so that it takes effect once again.  This is clearly
26884         not a proper change, and I will revert it once this bug is fixed:
26885         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26887 2016-10-01  Jim Meyering  <meyering@fb.com>
26889         getprogname: correct the test for a __progname variable
26890         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26891         and AC_LINK_IFELSE to check for a global __progname.  If found,
26892         define HAVE_VAR___PROGNAME.
26893         * lib/getprogname.c (getprogname): Reflect the new name of the
26894         feature- checked preprocessor symbol:
26895         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26897 2016-09-28  Jim Meyering  <meyering@fb.com>
26899         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26900         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26901         fall-through case with a /* fallthrough */ comment.
26903         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26904         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26905         /* fallthrough */ comment.
26907         getprogname: avoid __progname vs program_invocation_short_name pitfall
26908         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26909         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26910         not with Fedora 24's glibc-2.23.1-10.
26911         * lib/getprogname.c (__progname): Move this declaration down...
26912         (getprogname): ... into the #elif block where used, and make it
26913         explicitly "extern".
26915         getprogname: port to OpenBSD 5.1
26916         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26917         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26918         * modules/getprogname (configure.ac): Move most of this code...
26919         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26920         increment serial number, and add a test for __progname.
26921         https://bugs.gnu.org/24562
26922         Reported by Nelson H. F. Beebe.
26924 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26926         sched: port to GCC 6.2.1 on macOS Sierra
26927         Problem reported by Denis Davydov in:
26928         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26929         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26930         Include <sys/cdefs.h> before <sched.h>.
26931         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26932         so that we needn’t worry about the sched.h include bug here.
26933         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26934         and include it before <sched.h> if it exists, when
26935         checking for <sched.h>.
26937         tests/init.sh: port Alpine fix to AIX 7.1
26938         * tests/init.sh (compare_): When attempting to use diff -U3,
26939         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26940         diff -u not outputting a space after leading '+', as the users
26941         of 'compare' should not be that picky about its output format.
26942         In the AIX 7.1 case, return with diff exit status (or with 2 if
26943         trouble), instead of some random nonzero exit status.
26944         * tests/test-init.sh (test_compare): Remove space after leading
26945         '+', so that AIX 7.1 'diff' passes the test.
26947 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26949         nl_langinfo: pacify GCC
26950         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26951         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26953         stdint: also set GL_GENERATE_LIMITS_H
26954         Problem reported by Jim Meyering in:
26955         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26956         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26958         limits-h, stdint: Don't assume extensions, fix typo
26959         * m4/limits-h.m4 (gl_LIMITS_H):
26960         * m4/stdint.m4 (gl_STDINT_H):
26961         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26962         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26963         reported by Jim Meyering in:
26964         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26966 2016-09-21  Jim Meyering  <meyering@fb.com>
26968         getprogname: port to AIX
26969         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26970         and strdup to obtain a short program name string.  Using code from
26971         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26972         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26973         Assaf Gordon reported that this new file would fail to compile on
26974         AIX-7.1 32bit.
26976 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26978         extensions: fix typo in comment
26979         * m4/extensions.m4: Sync from Autoconf master.
26981         stdint: support new _WIDTH macros
26982         * doc/posix-headers/stdint.texi: Document this.
26983         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26984         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26985         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26986         * modules/stdint (Depends-on): Add limits-h.
26987         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26988         * modules/stdint-tests (Depends-on): Add extensions, so that
26989         INTMAX_MAX etc. are defined.
26990         * tests/test-stdint.c: Verify the new macros.
26992         limits-h: new module
26993         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26994         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26995         * doc/posix-headers/limits.texi: Document new module.
26996         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26997         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26999         stdio: don't redefine __USE_MINGW_ANSI_STDIO
27000         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
27001         if it is already defined.  Apparently GNU Emacs relies on this.  See:
27002         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
27004 2016-09-15  Eric Blake  <eblake@redhat.com>
27006         sys_types: avoid glibc 2.25 warnings about major()
27007         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
27008         older autoconf.
27009         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
27010         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
27011         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
27012         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
27014         mountlist: include sysmacros.h for glibc
27015         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
27016         AC_HEADER_MAJOR.
27017         * lib/mountlist.c (includes): Use correct headers.
27019 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27021         extensions: port to more ISO C TSes
27022         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
27023         master, to add support for more recent ISO C TRs and TSes.
27025 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27027         intprops: new macro TYPE_WIDTH
27028         * lib/intprops.h (TYPE_WIDTH): New macro.
27029         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
27030         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
27031         * lib/parse-datetime.y (parse_datetime2):
27032         Use it.
27034         extensions: port to recent ISO C TRs
27035         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27036         Sync from Autoconf master, to add support for recent ISO C TRs.
27037         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
27038         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
27039         the MinGW option is not an extension.
27041 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27043         dfa: port to Solaris 9
27044         Problems reported by Tom G. Christensen in:
27045         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
27046         * modules/dfa (Depends-on): Add isblank.
27047         * modules/dfa-tests (dfa_match_aux_LDADD):
27048         Rename from test_stat_LDADD, to fix typo.
27049         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
27051 2016-09-10  Jim Meyering  <meyering@fb.com>
27053         strverscmp: avoid link failure on OS X
27054         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
27055         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
27057 2016-08-16  Jim Meyering  <meyering@fb.com>
27059         dfa: new module, importing grep's DFA matcher
27060         Since grep's DFA matcher is now being used by two gnulib-enabled
27061         projects, grep and sed, it makes sense to version-control its
27062         sources and unit tests in one place: here.
27063         * modules/dfa: New module.
27064         * modules/dfa-tests: New file.
27065         * lib/dfa.c: New file, from grep.
27066         * lib/dfa.h: Likewise.
27067         * lib/localeinfo.c: Likewise.
27068         * lib/localeinfo.h: Likewise.
27069         * tests/dfa-match-aux.c: Likewise.
27070         * tests/dfa-invalid-char-class.sh: Likewise.
27071         * tests/dfa-match.sh: Likewise, with minor changes.
27072         * MODULES.html.sh (Misc): Add "dfa" to this list.
27074 2016-09-09  Jim Meyering  <meyering@fb.com>
27076         getprogname-tests: don't depend on assert-h
27077         * modules/getprogname-tests (Depends-on): Remove assert-h.
27078         It was not needed, and in fact would cause build failure for
27079         coreutils on some systems.  Reported by Assaf Gordon in https:
27080         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
27082 2016-09-07  Jim Meyering  <meyering@fb.com>
27084         getprogname-tests: work also when EXEEXT is nonempty
27085         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
27086         * tests/test-getprogname.c (main): Use it.
27087         Suggested by Gisle Vanem.
27089 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
27091         getprogname: fix errors in previous change
27092         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
27093         s/program_invocation_name/base/
27094         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
27096 2016-09-08  Pádraig Brady  <P@draigBrady.com>
27098         parse-datetime: restrict debug output to input string
27099         * lib/parse-datetime.y (parse_datetime2): If we parse
27100         all of the input but determine it's invalid, ensure
27101         we don't output the now invalid input pointer.
27102         This issue was seen with `date -d 'now +1'`.
27104 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27106         flexmember: new macro FLEXALIGNOF
27107         * lib/flexmember.h: Include <stddef.h>, for offsetof.
27108         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
27109         this macro.  Update comments.
27111 2016-09-07  Jim Meyering  <meyering@fb.com>
27113         getprogname: port to systems with __argv (mingw, msvc)
27114         * lib/getprogname.c (getprogname): Include "dirname.h" and use
27115         last_component: more general than open coding it with hard-coded "/".
27116         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
27117         * modules/getprogname (Depends-on): Add dirname-lgpl.
27118         (configure.ac): Check for __argv in <stdlib.h>.
27119         * modules/getprogname-tests: New file.
27120         * tests/test-getprogname.c: New file.
27121         Suggested by Gisle Vanem in
27122         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
27124 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27126         flexmember: port better to GCC + valgrind
27127         With a char[] flexible array member in a struct with nontrivial
27128         alignment, GCC-generated code can access past the end of the
27129         array, because GCC assumes there are padding bytes to get the
27130         struct aligned.  So the common idiom of malloc (offsetof (struct
27131         s, m), n) does not properly allocate an n-byte trailing member, as
27132         malloc’s argument should be the next multiple of alignof (struct s).
27133         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27134         Although C11 apparently permits this GCC optimization (i.e., there
27135         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
27136         See the thread containing:
27137         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
27138         * lib/flexmember.h: New file.
27139         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
27140         * lib/localename.c, lib/time_rz.c:
27141         Include flexmember.h.
27142         * lib/fnmatch_loop.c (struct patternlist):
27143         * lib/localename.c (struct hash_node):
27144         Use FLEXIBLE_ARRAY_MEMBER.
27145         * lib/fnmatch_loop.c (EXT):
27146         * lib/fts.c (fts_alloc):
27147         * lib/glob.c (glob_in_dir):
27148         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27149         * lib/localename.c (gl_lock_define_initialized):
27150         * lib/time_rz.c (tzalloc):
27151         Use FLEXSIZEOF instead of offsetof.
27152         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27153         Check that the size of the struct can be taken.
27154         * modules/flexmember (Files): Add lib/flexmember.h.
27155         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
27156         Add flexmember.
27158 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27160         getprogname: port to Solaris 10
27161         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
27162         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
27163         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
27165         stdalign: correct mistake in alignof doc
27166         Problem reported by Joseph Myers in:
27167         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
27168         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
27169         alignof(S) where S is a structure containing a flexible array
27170         member.  The Gnulib substitute does not support this, but C11 does.
27172 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27174         main.mk: remove sc_program_name, since there is no more need to
27175         use set_program_name in tools (getprogname is enough for most
27176         of the cases).
27177         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
27178         * top/maint.mk (sc_program_name): Remove.
27180 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27182         Port tests away from progname, since modules that need the
27183         program name already depend on getprogname.
27184         * modules/acl-tests (Depends-on): Remove progname.
27185         * modules/argmatch (Depends-on): Likewise.
27186         * modules/argmatch-tests (Depends-on): Likewise.
27187         * modules/argp-tests (Depends-on): Likewise.
27188         * modules/argp-version-etc-tests (Depends-on): Likewise.
27189         * modules/array-list-tests (Depends-on): Likewise.
27190         * modules/array-oset-tests (Depends-on): Likewise.
27191         * modules/avltree-list-tests (Depends-on): Likewise.
27192         * modules/avltree-oset-tests (Depends-on): Likewise.
27193         * modules/avltreehash-list-tests (Depends-on): Likewise.
27194         * modules/carray-list-tests (Depends-on): Likewise.
27195         * modules/copy-file-tests (Depends-on): Likewise.
27196         * modules/exclude-tests (Depends-on): Likewise.
27197         * modules/fchownat-tests (Depends-on): Likewise.
27198         * modules/fdopendir-tests (Depends-on): Likewise.
27199         * modules/filenamecat-tests (Depends-on): Likewise.
27200         * modules/fstatat-tests (Depends-on): Likewise.
27201         * modules/fstrcmp-tests (Depends-on): Likewise.
27202         * modules/linked-list-tests (Depends-on): Likewise.
27203         * modules/linkedhash-list-tests (Depends-on): Likewise.
27204         * modules/mkdirat-tests (Depends-on): Likewise.
27205         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
27206         * modules/nonblocking-socket-tests (Depends-on): Likewise.
27207         * modules/obstack-printf-tests (Depends-on): Likewise.
27208         * modules/openat-tests (Depends-on): Likewise.
27209         * modules/parse-datetime-tests (Depends-on): Likewise.
27210         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
27211         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
27212         * modules/quotearg-simple-tests (Depends-on): Likewise.
27213         * modules/quotearg-tests (Depends-on): Likewise.
27214         * modules/rbtree-list-tests (Depends-on): Likewise.
27215         * modules/rbtree-oset-tests (Depends-on): Likewise.
27216         * modules/rbtreehash-list-tests (Depends-on): Likewise.
27217         * modules/spawn-pipe-tests (Depends-on): Likewise.
27218         * modules/system-quote-tests (Depends-on): Likewise.
27219         * modules/uniname/uniname-tests (Depends-on): Likewise.
27220         * modules/uninorm/nfc-tests (Depends-on): Likewise.
27221         * modules/uninorm/nfd-tests (Depends-on): Likewise.
27222         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
27223         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
27224         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
27225         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
27226         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
27227         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
27228         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
27229         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
27230         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
27231         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
27232         * modules/unlinkat-tests (Depends-on): Likewise.
27233         * modules/version-etc-tests (Depends-on): Likewise.
27234         * modules/xalloc-die-tests (Depends-on): Likewise.
27235         * modules/xmemdup0-tests (Depends-on): Likewise.
27236         * modules/xprintf-posix-tests (Depends-on): Likewise.
27237         * modules/xvasprintf-tests (Depends-on): Likewise.
27238         * tests/test-argmatch.c: Do not include progname.h.
27239         (main) Stop calling set_program_name.
27240         * tests/test-argp-version-etc.c: Likewise.
27241         * tests/test-argp.c: Likewise.
27242         * tests/test-argv-iter.c: Likewise.
27243         * tests/test-array_list.c: Likewise.
27244         * tests/test-array_oset.c: Likewise.
27245         * tests/test-avltree_list.c: Likewise.
27246         * tests/test-avltree_oset.c: Likewise.
27247         * tests/test-avltreehash_list.c: Likewise.
27248         * tests/test-carray_list.c: Likewise.
27249         * tests/test-copy-acl.c: Likewise.
27250         * tests/test-copy-file.c: Likewise.
27251         * tests/test-exclude.c: Likewise.
27252         * tests/test-fchownat.c: Likewise.
27253         * tests/test-fdopendir.c: Likewise.
27254         * tests/test-filenamecat.c: Likewise.
27255         * tests/test-fstatat.c: Likewise.
27256         * tests/test-fstrcmp.c: Likewise.
27257         * tests/test-linked_list.c: Likewise.
27258         * tests/test-linkedhash_list.c: Likewise.
27259         * tests/test-mkdirat.c: Likewise.
27260         * tests/test-nonblocking-pipe-main.c: Likewise.
27261         * tests/test-nonblocking-socket-main.c: Likewise.
27262         * tests/test-obstack-printf.c: Likewise.
27263         * tests/test-openat.c: Likewise.
27264         * tests/test-parse-datetime.c: Likewise.
27265         * tests/test-pipe-filter-gi1.c: Likewise.
27266         * tests/test-pipe-filter-gi2-main.c: Likewise.
27267         * tests/test-pipe-filter-ii1.c: Likewise.
27268         * tests/test-pipe-filter-ii2-main.c: Likewise.
27269         * tests/test-quotearg-simple.c: Likewise.
27270         * tests/test-quotearg.c: Likewise.
27271         * tests/test-rbtree_list.c: Likewise.
27272         * tests/test-rbtree_oset.c: Likewise.
27273         * tests/test-rbtreehash_list.c: Likewise.
27274         * tests/test-sameacls.c: Likewise.
27275         * tests/test-set-mode-acl.c: Likewise.
27276         * tests/test-spawn-pipe-main.c: Likewise.
27277         * tests/test-system-quote-main.c: Likewise.
27278         * tests/test-unlinkat.c: Likewise.
27279         * tests/test-version-etc.c: Likewise.
27280         * tests/test-xalloc-die.c: Likewise.
27281         * tests/test-xfprintf-posix.c: Likewise.
27282         * tests/test-xmemdup0.c: Likewise.
27283         * tests/test-xprintf-posix.c: Likewise.
27284         * tests/test-xvasprintf.c: Likewise.
27285         * tests/uniname/test-uninames.c: Likewise.
27286         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27287         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27288         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27289         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27290         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27291         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27292         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27293         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27294         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27295         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27296         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27297         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27298         * tests/test-c-stack.c: (program_name): Do not define.
27299         (main): Do not set program_name.
27300         * tests/test-closein.c: Likewise.
27301         * tests/test-xstrtol.c: Likewise.
27302         * tests/test-yesno.c: Likewise.
27304 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27306         Port modules to use getprogname explicitly, instead of requiring
27307         progname to be used (or program_name to be provided).
27308         * lib/argmatch.c: Do not include progname.h.
27309         [TEST] (program_name): Do not define.
27310         [TEST] (main): Call getprogname instead of using program_name.
27311         * lib/c-stack.c: Do not include progname.h.
27312         (program_name): Do not define.
27313         (die): Call getprogname instead of using program_name.
27314         * lib/chdir-long.c: Do not include progname.h.
27315         [TEST_CHDIR] (main): Do not set program_name.
27316         * lib/error.c [!_LIBC]: Include progname.h.
27317         [!_LIBC] (program_name): Define using getprogname.
27318         * lib/euidaccess.c: Do not include progname.h.
27319         [TEST] (main): Do not set program_name.
27320         * lib/git-merge-changelog.c: Include getprogname.h instead of
27321         progname.h.
27322         (usage): Call getprogname instead of using program_name.
27323         (main): Likewise.  Stop calling set_program_name.
27324         * lib/group-member.c: Do not include progname.h.
27325         [TEST] (main): Do not set program_name.
27326         * modules/argmatch (Depends-on): Add getprogname.
27327         * modules/c-stack (Depends-on): Likewise.
27328         * modules/error (Depends-on): Likewise.
27329         * modules/git-merge-changelog (Depends-on): Likewise.
27330         Also remove progname.
27332 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
27334         * NEWS: Document the deprecation of the 'progname' module.
27336 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27338         getprogname: new module
27339         This provides a LGPL module for getting the name of the current
27340         program, using the same API found on *BSD systems.
27341         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27342         * modules/getprogname: New files.
27343         * MODULES.html.sh (Misc): Add getprogname.
27345 2016-09-02  Jim Meyering  <meyering@fb.com>
27347         manywarnings: add -fno-common
27348         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27349         to the list.  Quoting the manual, "Compiling with -fno-common is
27350         useful on targets for which it provides better performance, or if
27351         you wish to verify that the program will work on other systems that
27352         always treat uninitialized variable declarations this way [putting
27353         it in the data section]."  If diffutils had been using this sooner,
27354         it would have prevented this duplicate declaration issue:
27355         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27357 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27359         parse-datetime: Fix typo.
27360         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27362 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27364         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27365         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27366         GCC 5 and 6 that have __builtin_sub_overflow but not
27367         __builtin_sub_overflow_p.  With the recent changes, these
27368         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27369         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27370         since the former needs just one runtime comparison whereas the
27371         latter needs two.
27373         strverscmp: sync with glibc
27374         Although this doesn't exactly synchronize with glibc
27375         byte-for-byte, it makes the code behave the same as glibc.
27376         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27377         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27378         difference shouldn't matter in practical use.  All uses changed
27379         back to isdigit.
27380         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27381         (next_state): Now unsigned char array; redo elements.
27382         (result_type): Now signed char array; redo elements.
27383         (__strverscmp): Fix glibc bug 9913 by using new states.
27384         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27386 2016-08-29  Jim Meyering  <meyering@fb.com>
27388         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27389         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27390         similarly to how it was done to intprops.h.
27392 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27394         intprops.h: port recent changes to GCC 6.2.0
27395         * lib/intprops.h (__has_builtin): Move earlier.
27396         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27397         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27398         the last argument can be null.  All uses changed.
27399         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27400         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27401         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27402         and it's not clear which GCC versions it works for.
27403         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27404         its definiens.
27406         intprops.h: use __typeof__ with GCC 7
27407         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27408         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27409         This avoids computing the expression's value (which might overflow!).
27411 2016-08-29  Jim Meyering  <meyering@fb.com>
27413         intprops.h, xalloc-oversized.h: work with gcc 7
27414         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27415         __builtin_mul_overflow each accept a NULL pointer as the third
27416         argument.  However in gcc 7, that is no longer accepted.
27417         Instead, one must use the "_p"-suffixed names, with which, the
27418         third parameter is no longer a pointer.
27419         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27420         the definition: not true for gcc 7 and subsequent.
27421         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27422         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27423         Provide new definitions for gcc 7 and subsequent.
27424         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27425         that works with gcc-7.
27427         intprops.h: fix missing-backslash problems
27428         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27429         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27431 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27433         intprops: fix paren typo on old platforms
27434         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27435         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27436         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27437         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27438         && !defined LLONG_MAX]:
27439         Remove stray paren.
27441         intprops: port to OpenVMS
27442         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27443         * doc/posix-headers/limits.texi: Document the problem.
27444         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27445         Define if not already defined.
27447 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27449         parse-datetime: improve debug implementation
27450         Follow-up to commit 12ad79069 ("add optional debug printing").
27451         Improve parse-datetime's debug implementation: remove macros,
27452         replace global debug flag variable with a function parameter,
27453         use nstrftime for formatting.
27454         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
27455         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
27456         (parse_datetime2): New function, accepts 'flags' parameter, supporting
27457         debug flag. Existing interface 'parse_datetime' left unmodified.
27458         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
27459         (struct parser_control): add 'parse_datetime_debug' member variable.
27460         (parse_datetime): Call new function 'parse_datetime2' without debug.
27461         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
27462         pc.parse_datetime_debug variable as needed.
27463         (to_year): Accept new flags parameter, instead of using global variable.
27464         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
27465         use struct 'debug' variable instead of global variable.
27466         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
27467         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
27468         correspnding functions directly instead of using macros.
27469         * modules/parse-datetime: Add gnulib's strftime module.
27471 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
27473         c-strcase-tests: port to EBCDIC
27474         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
27475         which assume ASCII encoding semantics to run only in ASCII
27476         mode, as they fail in EBCDIC.
27478         sigpipe-tests: fix typo
27479         * tests/test-sigpipe.sh: C, not B.
27481 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27483         canonicalize-lgpl: fix errno after malloca fails
27484         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
27485         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
27486         * lib/canonicalize-lgpl.c (__realpath):
27487         Don't assume malloca sets errno on failure.
27489 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27491         strtod: port errno handling to z/OS
27492         * lib/strtod.c (strtod): Save and restore errno more reliably.
27494 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27496         strtod: port to z/OS
27497         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27498         implementation.
27500 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27502         strtod: port to z/OS
27503         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27504         implementation.
27506         regex, string: rename to avoid '__string'
27507         * lib/regex.h, lib/string.in.h: Do not use the identifier
27508         '__string', as it is effectively reserved by string.h on z/OS.
27510         c-strcase-tests, wcwidth-tests: depend on c-ctype
27511         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
27512         Add c-ctype.
27514 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27516         thread: port to z/OS
27517         * lib/glthread/thread.c, lib/glthread/thread.h:
27518         Rudimentary gl_thread support for z/OS.
27520         maint: port tests to z/OS errno behavior
27521         * tests/test-nonblocking-reader.h:
27522         * tests/test-nonblocking-writer.h:
27523         Accommodate z/OS errno code preferences. (I believe this should
27524         still be within spec; IBM is good at following the letter if not
27525         the spirit of such things.)
27527         maint: preprocessor changes to support z/OS
27528         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
27529         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
27530         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
27531         * tests/test-nonblocking-pipe.h:
27533         fclose, strstr-simple, wchar: port to z/OS
27534         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
27535         Changes to the Autoconf M4 code to support z/OS.  Note that
27536         fclose() is broken in a different way on z/OS than it is on other
27537         systems, thus the special-case in fclose.m4.
27539         iconv_open-utf-tests, iconv-tests: port to EBCDIC
27540         * tests/test-iconv-utf.c, tests/test-iconv.c:
27541         Added appropriately conditional #pragmas so that the test strings
27542         in test-iconv-utf.c are correctly interpreted in ASCII instead of
27543         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
27544         addressed in a more portable way by simply rewriting all the ASCII
27545         literal characters as octal escapes, but then you would lose the
27546         partial readability that the strings have now. Also, iconv_open()
27547         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
27549         c-strcase-tests, wcwidth-tests: port to EBCDIC
27550         * tests/test-c-strcasecmp.c: Include c-ctype.h.
27551         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
27552         * tests/test-wcwidth.c: Likewise.
27554 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27556         stdbool: don't require _Bool for C++
27557         Problem reported by David Seifert in:
27558         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
27559         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
27560         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
27561         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
27562         stricter about checking that bool and _Bool are compatible in C.
27564 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27566         getdelim: remove dependency on realloc-posix
27567         * lib/canonicalize-lgpl.c (alloc_failed)
27568         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
27569         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
27570         Use __set_errno where needed, for consistency.
27571         * lib/getdelim.c (alloc_failed): New function.
27572         (getdelim): Use it.
27574 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
27576         parse-datetime: add optional debug printing
27577         Print parsing information, warnings, and errors to stderr.
27578         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
27579         * lib/parse-datetime.y:
27580         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
27581         (PROGRESS*): Same as DEBUG, for progress reporting.
27582         (dbg_printf): Print message to stderr, with 'date' prefix.
27583         (struct parser_control): Add 'debug_*_seen' variables.
27584         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
27585         (debug_print_current_time, debug_print_relateive_time): Prints the
27586         current/relative date/time value of parser_control.
27587         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
27588         (to_year): Warn about 2-digit year parsing.
27589         (yylex):   Warn about unrecognized words.
27590         (get_effective_timezone): Returns current timezone in minutes.
27591         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27592         clearly and unambigiously as possible.
27593         (debug_mktime_not_ok): Print detailed information about failed
27594         date/time values.
27595         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27596         PROGRESS messages for status messages.
27597         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
27599 2016-08-06  Jim Meyering  <meyering@fb.com>
27601         tests/init.sh: exclude dash with bad "local" semantics
27602         * tests/init.sh (gl_shell_test_script_): Add a function to
27603         eliminate a shell like "dash" (unlike bash, zsh) that has
27604         surprising/risky "local var='...'" semantics.  Inspired by
27605         the problem and discussion in https://bugs.gnu.org/24116#11.
27607 2016-08-02  Ján Tomko  <jtomko@redhat.com>
27609         maint.mk: expand the prohibit_doubled_word regex
27610         This check has a static list of words that are checked for
27611         repetitions.  Expand it before running the perl script to
27612         avoid using expensive captures.  This decreases the cost
27613         for libvirt from 1.66s to 0.66s.
27614         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
27615         (sc_prohibit_doubled_word): Use it.
27617 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27619         useless-if-before-free: skip non-matching lines early
27620         * build-aux/useless-if-before-free: First match each line with the
27621         simple/quick /\bif\b/ and reject if there is no match. This often
27622         saves the cost of the much more involved regular expression.
27623         For libvirt, this decreases the cost from 1.44s to 1.02s.
27625 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27627         maint.mk: speed up sc_po_check
27628         sc_po_check would skip files based on their names, or on the
27629         existence of files with derived names. Rewrite it to use perl
27630         instead of shell to make the check faster.
27631         * top/maint.mk (perl_translatable_files_list_): Define.
27632         (sc_po_check): Use it.
27634 2016-07-30  Ján Tomko  <jtomko@redhat.com>
27636         maint.mk: speed up require_config_h_first
27637         Instead of spawning three processes per file,
27638         rewrite the check in perl and run it once for all the files.
27639         * top/maint.mk (perl_config_h_first_): Define.
27640         (sc_require_config_h_first): Use it in place of shell code.
27642 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27644         maint.mk: speed up sc_po_check
27645         sc_po_check would skip files based on their names, or on the
27646         existence of files with derived names. Rewrite it to use perl
27647         instead of shell to make the check faster.
27648         * top/maint.mk (perl_translatable_files_list_): Define.
27649         (sc_po_check): Use it.
27651 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27653         obstack: pacify GCC 6 with -Wnull-dereference
27654         Problem reported by Assaf Gordon in:
27655         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
27656         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
27657         Declare with __attribute_noreturn__.
27658         * lib/obstack.h (__attribute_noreturn__): New macro.
27660 2016-07-13  Eric Blake  <eblake@redhat.com>
27662         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27663         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27664         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27666 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27668         doc: mention glibc SSIZE_MAX buglet
27669         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27671 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27673         printf-posix: Fix mingw build
27674         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27675         expression for detecting C symbol prefixes but forgot to qoute square
27676         brackets in the command line arguments for grep.  That way when
27677         building with mingw the condition was false although it ought to be
27678         true instead.  In particular scenarios this led to the following
27679         compile error:
27681             Cannot export rpl_printf: symbol not found
27682             Cannot export rpl_scanf: symbol not found
27683             collect2: error: ld returned 1 exit status
27685         Fix this by properly quoting square brackets.
27687 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27689         mktime: call tzset as per POSIX
27690         Problem reported by Ludovic Courtès in:
27691         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27692         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27693         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27695 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27697         fts: handle readdir() errors
27698         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27699         but also upon error when it will also set errno.  Therefore
27700         flag the error case from readdir().  We treat the case where
27701         no items are read the same as if the dir can't be accessed,
27702         i.e. by setting fts_errno to FTS_DNR.
27704 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27706         intprops: port better to GCC 7
27707         GCC 7 __builtin_add_overflow supports a new usage form, where the
27708         last argument is a null pointer, and which merely returns 1 if an
27709         overflow would occur.  This is a constant expression if all
27710         arguments are constants, and should generate faster code when code
27711         needs to be generated.
27712         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27713         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27714         Use builtin operations if available.
27715         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27716         operations are available, as it's almost surely faster.
27718 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27720         intprops-test: port to GCC 6
27721         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27722         since the bug is not fixed in GCC 6.1.
27724 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27726         xalloc-oversized: port to GCC 7; fewer warnings
27727         GCC 7 will have a better way to deal with integer overflow.
27728         Plus, fix a warnings problem reported by Tim Ruehsen in:
27729         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27730         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27731         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27732         For GCC 5, use __xalloc_oversized if both args are constants,
27733         or if pedantic.
27735 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27737         regex: port to Sun C
27738         Reported by Daiki Ueno.
27739         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27740         __restrict, in prototype.  This fixes a problem I introduced in
27741         the 2016-02-19 merge from glibc.
27743 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27745         stdbool: Restore __bool_true_false_are_defined check
27746         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27747         __bool_true_false_are_defined is still defined, even with C++11.
27749 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27751         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27752         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27754 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27756         Use GCC_LINT, not lint
27757         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27758         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27759         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27760         Document problem with lint and _Noreturn.
27761         * lib/diffseq.h (IF_LINT, IF_LINT2):
27762         * lib/fts.c (sccsid):
27763         * lib/getndelim2.c (IF_LINT):
27764         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27765         (gl_linked_iterator_from_to):
27766         * lib/gl_anytree_list2.h (gl_tree_iterator)
27767         (gl_tree_iterator_from_to):
27768         * lib/gl_anytree_oset.h (gl_tree_iterator):
27769         * lib/gl_array_list.c (gl_array_iterator)
27770         (gl_array_iterator_from_to):
27771         * lib/gl_array_oset.c (gl_array_iterator):
27772         * lib/gl_carray_list.c (gl_carray_iterator)
27773         (gl_carray_iterator_from_to):
27774         * lib/idcache.c:
27775         * lib/inet_ntop.c (IF_LINT):
27776         * lib/regcomp.c (build_charclass_op, create_tree):
27777         * lib/regex_internal.c (re_acquire_state)
27778         (re_acquire_state_context):
27779         * lib/trigl.c (rcsid):
27780         * lib/trim.c (IF_LINT):
27781         * lib/vasnprintf.c (IF_LINT):
27782         * lib/verify.h (assume):
27783         Treat GCC_LINT like lint.
27785 2016-05-29  Bruno Haible  <bruno@clisp.org>
27787         secure_getenv: Port to many more platforms.
27788         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27789         functions.
27790         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27791         for non-BSD Unix platforms and for native Windows.
27792         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27793         Prompted by a request from Nikos Mavrogiannopoulos.
27795 2016-05-27  Eric Blake  <eblake@redhat.com>
27797         canonicalize: Fix broken probe for realpath.
27798         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27799         in logic introduced in 54615b95.
27801 2016-05-26  Eric Blake  <eblake@redhat.com>
27803         unsetenv: relax to LGPLv2+
27804         * modules/unsetenv (License): Match setenv license.
27806 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27808         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27809         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27810         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27811         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27812         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27813         (generate_html, generate_info, generate_tex, outdir)
27814         (source_extra, split, srcfile, texarg): Move above 'version'.
27815         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27817 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27819         manywarnings: update for GCC 6.1
27820         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27821         Add GCC 6.1 options that apply to C.
27822         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27823         do not apply to C, are obsolescent, etc.
27825 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27827         glob: size_t overflow checks
27828         * lib/glob.c (__has_builtin): New macro.
27829         (size_add_wrapv, glob_use_alloca): New static functions.
27830         (glob, glob_in_dir): Check for size_t overflow in several places,
27831         and fix some size_t checks that were not quite right.
27833         glob: don't assume INT_MAX < SIZE_MAX
27834         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27835         latter is not portable to (probably theoretical) hosts where
27836         SIZE_MAX <= INT_MAX.
27838 2016-05-09  Bruno Haible  <bruno@clisp.org>
27840         Fix undefined behaviour in gettext.h.
27841         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27842         pointer's value after the storage it points to has been freed.
27843         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27844         Spotted by Coverity.
27846 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27848         git-version-gen: avoid undefined shift
27849         Problem reported by Mosè Giordano in:
27850         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27851         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27852         with --prefix or --fallback but without a later argument.  While
27853         we're at it, omit unnecessary quotes.
27855 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27857         glob: merge glibc changes into lib/glob.c
27858         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27859         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27860         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27861           struct dirent [BZ #19779]
27862         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27863           callback gl_readdir
27864         2015-10-20 Convert miscellaneous function definitions to prototype style
27865         2015-10-20 Convert 113 more function definitions to prototype style
27866           (files with assertions)
27867         2015-06-12 Fix getlogin_r namespace (bug 18527).
27868         2014-02-10 Use glibc_likely instead __builtin_expect.
27869         2013-10-20 When glob pattern contains a trailing slash match only
27870           directories. Fixes bug 10278.
27871         2013-09-04 glob: silence -Wattribute warnings
27872         2013-06-07 Avoid use of "register" as optimization hint.
27873         2012-09-25 Use size_t instead of int for internal variables in glob
27874           (bug 14621)
27875         2011-07-20 Check for overflows in expressions
27876         2011-05-28 Remove unused variable
27877         2011-05-22 Add a few more alloca size checks
27878         2010-03-27 Whitespace fixes
27879         2010-03-27 Fix one more issue with the glob patch
27880         2010-03-24 Fix glob with empty pattern
27881         2008-05-27 Remove useless more "if" tests before "free"
27882         * modules/glob (Depends-on): Add stdint.
27884 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27886         mktime: port to stricter signed overflow checking
27887         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27888         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27889         instead of merely for INT_MAX * 2.  In practice platforms that
27890         do the latter also do the former.
27891         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27892         (shr): New static function, replacing SHR.  All uses changed.
27893         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27894         and TIME_T_MAX.  All uses changed.
27895         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27896         Use long_int, not time_t.
27897         (long_int_avg): New static function, replacing time_t_avg.
27898         All uses changed.  Round toward positive infinity, as that
27899         generates slightly better code.
27900         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27901         by INT_ADD_WRAPV.
27902         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27903         (convert_time): New static function.
27904         (ranged_convert): Use it
27905         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27906         Use simpler test for loop exit.
27907         (__mktime_internal): Store negative of guessed offset, to simplify
27908         overflow checking.  Remove no-longer-needed test for small time_t
27909         overflows.
27911         mktime: speed up DEBUG_MKTIME benchmarks
27912         Call tzset just once, at the start, rather than for every test
27913         case.  This lets us measure the CPU cost of mktime as opposed to
27914         that of tzset.  This is relevant when TZ is not set and glibc is
27915         being used.  This speeds up tests by a factor of 40 on my Fedora
27916         23 x86-64 platform.
27917         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27918         to call tzset and as a sanity check.  Later on, use localtime_r
27919         instead of localtime.
27921         mktime: resurrect DEBUG_MKTIME testing
27922         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27923         Include <string.h>, for strcmp.
27925         mktime: simplify DEBUG_MKTIME
27926         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27927         Simplify later usage accordingly.
27929         Port mktime_internal offset to unsigned time_t
27930         This avoids some assumptions about wraparound arithmetic on
27931         signed integer overflow.
27932         * lib/mktime-internal.h (mktime_offset_t): New type.
27933         (mktime_internal): Use it in decl.
27934         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27936         * lib/mktime.c (__mktime_internal, localtime_offset):
27937         * lib/timegm.c (timegm): Use it.
27938         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27939         (gl_FUNC_MKTIME): Require it.
27941 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27943         xstrtol: prohibit monstrosities like "1bB"
27944         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27945         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27946         "B" only if the first suffix needs a base.
27947         * tests/test-xstrtol.sh: Test this.
27949 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27951         xstrtod: reinstate setting of *result upon ERANGE
27952         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27953         the returned limits upon ERANGE, so allow and document that.
27955 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27957         xstrtod: modify *result only if no errors
27958         * lib/xstrtod.c (XSTRTOD).
27960 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27962         btowc: document problems in C locale
27963         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27964         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27966 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27968         mktime: improve integer overflow checking
27969         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27970         (WRAPV): Remove; no longer needed.
27971         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27972         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27973         Remove.  Use intprops.h defns instead.
27974         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27975         Use bool for Boolean, for clarity.
27976         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27977         detect integer overflow.
27978         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27980         intprops: check two's complement assumption
27981         Suggested by Eric Blake in:
27982         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27983         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27984         short, int, long, and (if available) long long are two's complement.
27985         * modules/intprops (Depends-on): Add 'verify'.
27987         intprops, mktime, strtol: assume two's complement
27988         These macros were not portable to every conforming C11 ones'
27989         complement platform.  It's not worth the hassle of porting to some
27990         platforms that use ones' complement or signed magnitude, as such
27991         platforms are almost purely theoretical nowadays and porting even
27992         to some of them makes the code harder to review for little
27993         practical benefit.  Problem reported by Florian Weimer in:
27994         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27995         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27996         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27997         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27998         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27999         (TYPE_SIGNED_MAGNITUDE):
28000         Remove.  All uses rewritten to assume two's complement, which is
28001         all we can reasonably test nowadays anyway.
28002         * top/maint.mk (_intprops_names): Remove the removed macros.
28004 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
28006         stdint: port to strict C11 left shift
28007         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
28008         Pacify clang -Wshift-negative-value, which should be an issue only
28009         on clang setups where stdint.h does not conform to C11 or to C++11.
28010         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
28012 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28014         mbrtowc: work around glibc bug#19932
28015         Fix mbrtowc so that it never returns -1 in the C locale,
28016         as this conflicts with a future version of POSIX
28017         http://austingroupbugs.net/view.php?id=663#c2738
28018         and causes problems with GNU grep: http://bugs.gnu.org/23234
28019         See glibc bug 19932:
28020         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
28021         * doc/posix-functions/mbrlen.texi (mbrlen):
28022         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28023         Document the glibc bug.
28024         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
28025         Include hard-locale.h, locale.h.
28026         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
28027         if the bug is possible.
28028         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
28029         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
28030         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
28031         * modules/mbrtowc (Depends-on): Add hard-locale.
28032         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
28033         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
28034         * tests/test-mbrtowc5.sh: New file.
28036 2016-04-03  Pedro Alves  <palves@redhat.com>
28038         stdint: detect good enough pre-C++11 stdint.h in C++ mode
28039         When gnulib is configured in C++ mode for a system with a working C99
28040         implementation of stdint.h that predates C++11, gnulib ends up
28041         substituting stdint.h anyway.  This works on most targets, but on e.g.,
28042         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
28043         MinGW is LLP64.  Instead of trying to detect the right types, detect
28044         good-enough-pre-C++11 stdint.h and in such case define
28045         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
28046         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
28047         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
28048         conforms to C99.  If it does, check whether it hides symbols
28049         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
28050         does, define those macros in config.h.
28052 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28054         argp: merge changes from glibc
28055         Among other things, this should fix problems found by a Coverity
28056         scan and reported by Andrei Borzenkov:
28057         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
28058         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
28059         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
28060         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
28061         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
28062         * lib/argp.h:
28063         Merge changes from glibc.
28064         * tests/test-argp-2.sh: Adjust to match new behavior.
28066 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
28068         stddef: support configuring with g++
28069         Problem reported by Ángel González in:
28070         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
28071         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
28072         Do not define if _GCC_MAX_ALIGN_T is defined.
28074 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28076         test-framework-sh: minor cleanups
28077         * tests/init.sh (testdir_prefix_): Output a trailing newline,
28078         since strictly speaking POSIX requires this.
28079         (setup_): Do not use the variable 'fail', as that makes the
28080         trace output harder to read ('fail' is typically used by
28081         tests to mean the test failed).  Treat // portably.
28082         Check that new directory is not merely a sibling of the tmp dir.
28083         Avoid unnecessary invocation of tr.
28085         test-framework-sh: revert port to NetBSD 7.0
28086         It was a false alarm; I misinterpreted Assaf Gordon's report.
28087         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28088         Restore.
28089         (test_dir_): Adjust to mktempd_ change.
28090         (mktempd_): Restore 2nd arg.  Use -t again.
28091         (base_template_, template_, nx_): Resurrect old code.
28093         Port better to Alpine Linux
28094         Its diff implementation does not support -c, but does support -U3.
28095         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28096         * tests/init.sh (diff_opt_): New var.
28097         (compare_): Prefer diff -U3 to diff -c to plain diff.
28099 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
28101         test-framework-sh: port to NetBSD 7.0
28102         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28103         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28104         Remove.  All uses removed.
28105         (test_dir_): Adjust to mktempd_ change.
28106         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
28107         (base_template_, template_, nx_): Simplify by hardcoding.
28109 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28111         gitlog-to-changelog: suppress ignored chatter
28112         * build-aux/gitlog-to-changelog: Do not warn about skipping
28113         an SHA if it would have been ignored anyway.
28115 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
28117         setlocale: add "sv" to Windows language table
28118         * lib/setlocale.c (language_table) [W32]: Add "sv".
28119         Reported in <https://savannah.gnu.org/bugs/?44588>.
28121 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28123         sys_select: port to new Cygwin
28124         Problem reported by Ken Brown in:
28125         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
28126         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
28127         diagnostics.
28129 2016-03-17  Jim Meyering  <meyering@fb.com>
28131         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
28132         * tests/test-userspec.c (main): Remove unnecessary braces and fix
28133         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
28134           test-userspec.c:176:9: error: statement is indented as if it were \
28135             guarded by... [-Werror=misleading-indentation]
28136                    {
28137                    ^
28138           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
28139                  if (!diag && !T[i].result)
28140                  ^~
28142 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28144         time_rz: port to clang -Wunused-const-variable
28145         * lib/time_rz.c (TZ): Remove.  All uses removed.
28147         std-gnu11: improve clang support
28148         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
28149         2016-03-15 Also try clang
28150         2016-03-15 Port C11 and C++11 testing to clang
28152         select: port more to Intel 2016.1.150 compiler
28153         Problem reported by Balázs Hajgató in:
28154         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
28155         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
28157 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28159         select: try to port to 2016.1.150 compiler
28160         Problem reported by Balázs Hajgató in:
28161         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
28162         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
28163         POSIX specifies 'restrict'.
28165 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
28167         localename-tests: memory allocation fixes
28168         * tests/test-localename.c (test_locale_name)
28169         (test_locale_name_thread): Don't call freelocale on a locale
28170         that was the base of a successful newlocale, as that
28171         results in a double free.  Problem reported by Assaf Gordon.
28172         (test_locale_name_thread): Free saved names after use, to pacify
28173         gcc -fsanitize=address.
28175 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
28177         intprops: make .h file license match module
28178         * lib/intprops.h: Change the license wording to match glibc format.
28179         This is what is in modules/intprops anyway.  See:
28180         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
28182 2016-03-08  Eric Blake  <eblake@redhat.com>
28184         acl: fix missing return on Cygwin
28185         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
28186         fall off end of function. Fixes http://bugs.gnu.org/22949
28188 2016-03-05  Bruno Haible  <bruno@clisp.org>
28190         extern-inline: port to PGI CC
28191         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
28192         keyword 'inline'.
28193         Reported by Adam James Stewart in:
28194         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
28196 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28198         signbit: port back to pre-C++11 GCC
28199         * lib/math.in.h (signbit): Do previous change only if
28200         __cplusplus < 201103.  See Jonathan Wakely in:
28201         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
28203 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
28205         mountlist: recognize autofs-mounted remote file systems, too
28206         Originally reported at: https://bugzilla.redhat.com/1309247
28207         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
28208         "-hosts" because it is used by autofs to mount remote file systems.
28210 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
28212         signbit: port to C++ with GCC 6
28213         * lib/math.in.h (signbit) [__cplusplus]:
28214         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
28215         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
28217         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
28219         regex: make it closer to libc
28220         Make Idx a signed type, rather than possibly unsigned.
28221         The unsignedness was not really buying us anything, since the code
28222         overflows for other reasons before getting to PTRDIFF_MAX.  Making
28223         it signed allows us to use -1 and -2 with abandon, like libc does,
28224         thus lessening the number of differences between gnulib and libc.
28225         Also, it should help avoid gratuitous warnings like the one
28226         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
28227         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
28230         regex: merge patches from libc
28232         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
28233         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
28234         Convert miscellaneous function definitions to prototype style.
28235         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
28236         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
28237         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
28238         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
28239         (re_search_internal):
28240         Convert to prototype-style function definition.
28241         Use internal_function for internal functions.
28243 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
28245         stdalign: port to older HP and IBM cc
28246         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
28247         C compilers, by checking their version numbers.  These version
28248         numbers appear in MariaDB and in Qt code that dates way back and
28249         that conditiionally uses the 'aligned' attribute.
28251 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28253         stdalign: port to clang 3.7.0
28254         Problem reported by Herbert J. Skuhra in:
28255         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
28256         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
28257         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
28258         https://llvm.org/bugs/show_bug.cgi?id=26547
28260 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
28262         readdir_r: now obsolescent
28263         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
28264         * lib/mountlist.c (read_file_system_list): Add a FIXME.
28266 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
28268         misc: port better to gcc -fsanitize=address
28269         Without these patches, ./configure CFLAGS='-fsanitize=address'
28270         would compute incorrect values.  This patch fixes some (but not all)
28271         test failures with recent glibc, with this configuration.
28272         * m4/acl.m4 (gl_ACL_GET_FILE):
28273         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
28274         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
28275         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
28276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
28277         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28278         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28279         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
28280         * m4/getline.m4 (gl_FUNC_GETLINE):
28281         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
28282         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
28283         * m4/regex.m4 (gl_REGEX):
28284         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28285         * tests/test-calloc-gnu.c (main):
28286         * tests/test-duplocale.c (main):
28287         * tests/test-getgroups.c (main):
28288         * tests/test-getline.c (main):
28289         * tests/test-inttostr.c (main):
28290         * tests/test-localename.c (test_locale_name)
28291         (test_locale_name_thread, test_locale_name_environ)
28292         (test_locale_name_default):
28293         * tests/test-regex.c (main):
28294         * tests/test-setlocale1.c (main):
28295         * tests/test-stat.h (test_stat_func):
28296         Free heap-allocated storage before exiting.
28297         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
28298         Don't match *_foo symbols inserted by AddressSanitizer.
28299         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
28301 2016-02-02  Jim Meyering  <meyering@fb.com>
28303         verify-tests: also remove stray test-verify.Tpo
28304         * modules/verify-tests (Makefile.am): Arrange for "make clean"
28305         to remove the test-verify.Tpo file that is left behind by
28306         the automake-generated rule upon compilation failure.
28307         Otherwise, that .Tpo file would cause a failed "make distcheck"
28308         at least for grep.
28310 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28312         std-gnu11: new module
28313         This makes it easier for applications to prefer C11 and C++11
28314         to older variants, when compiling C and C++ code.
28315         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
28316         a nontrivial chunk of GPLed Autoconf source code.
28317         * COPYING: Mention the m4/*.m4 copyright situation.
28318         * MODULES.html.sh (std-gnu11): New module.
28319         * m4/std-gnu11.m4, modules/std-gnu11: New files.
28321 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28323         get-permissions, strftime: fix grammar in comments
28324         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
28325         some grammar fixes Alan Mackenzie made to GNU Emacs.
28327 2016-01-25  Daiki Ueno  <ueno@gnu.org>
28329         gettext: mark as obsolete
28330         Suggested by Paul Eggert in:
28331         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
28332         * modules/gettext (Status): Mark as obsolete.
28333         (Notice): Suggest to use 'gettext-h' instead.
28334         * modules/gettext-h (Description): Suggest GNU gettext, instead of
28335         the 'gettext' module.
28337 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28339         gnulib-tool: don't give up on ln -s so easily
28340         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
28341         because an earlier one failed.  The targets could be on different
28342         file systems.  Problem reported by KO Myung-Hun in:
28343         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28345         closedir: fix OS/2-related typos
28346         Problem reported by KO Myung-Hun in:
28347         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28348         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28349         in the last couple of changes.
28351 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28353         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28354         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28355         copying a directory.
28357 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28359         regex: treat [x] as x if x is a unibyte encoding error
28360         Problem reported by Aharon Robbins in:
28361         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28362         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28363         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28365         closedir, dirfd, opendir: port to OpenSolaris 5.10
28366         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28367         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28368         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28369         Don't use ${word##pat} substitution, as it doesn't work in
28370         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28371         http://bugs.gnu.org/22443#11
28373 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28375         bootstrap: use American spelling
28376         * build-aux/bootstrap: Honor American spelling.
28378 2016-01-22  Karl Berry  <karl@freefriends.org>
28380         * doc/posix-functions/localtime.texi,
28381         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28383 2016-01-21  Bruno Haible  <bruno@clisp.org>
28385         hash-pjw-bare: fix comment
28386         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28388         wcwidth: Replace also on OpenBSD 5.8
28389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28390         * doc/posix-functions/wcwidth.texi: Update.
28392 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28394         gnu-web-doc-update: fix addition of new files
28395         If there were already added (emnpty) dirs,
28396         then cvs aborts the add with the message:
28397           cvs [add aborted]: there is a version in <./dirname> already
28398         * build-aux/gnu-web-doc-update: Add directories separately
28399         to the addition of files, to avoid the above issue
28400         impacting the addition of files.
28402 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28404         utimens-tests: avoid pulling gettext .m4 files
28405         Although this is not the right fix to the original problem:
28406         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28407         it makes it possible again for consumer projects to use arbitrary
28408         version of gettext, through the steps described at:
28409         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28410         See here for details:
28411         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28412         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28413         'gettext'.
28414         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28415         'gettext'.
28417 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28419         regex: pacify static checkers
28420         Problem and draft fix reported by Aharon Robbins in:
28421         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28422         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28423         Clear memory to pacify static checkers.
28425         regex: fix [ diagnostic
28426         Problem and fix reported by Aharon Robbins in:
28427         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28428         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28430         regex: fix memory leaks
28431         Problem and draft fix reported by Aharon Robbins in:
28432         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28433         * lib/regcomp.c (build_range_exp, build_charclass_op)
28434         * lib/regex_internal.c (re_dfa_add_node):
28435         Fix memory leak on failure.
28437 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28439         fts: don't unconditionally use leaf optimization for NFS
28440         NFS st_nlink are not accurate on all implementations,
28441         leading to aborts() if that assumption is made.
28442         See <https://bugzilla.redhat.com/1299169>
28443         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28444         the white list, and document the issue.
28446 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28447             KO Myung-Hun  <komh@chollian.net>
28449         gnulib-tool: don't assume ln -s works
28450         * gnulib-tool (func_ln_s): New function.
28451         (func_ln): Use it.
28453 2016-01-15  KO Myung-Hun  <komh@chollian.net>
28455         utimes: detect utimes() correctly on OS/2 kLIBC
28456         utimes() of OS/2 kLIBC has some limitations.
28457         1. OS/2 itself supports a file date since 1980 year in local time.
28458         2. OS/2 itself supports only even seconds for a file time.
28459         3. utimes() of OS/2 kLIBC does not work on an opened file.
28460         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
28461         * doc/posix-functions/utimes.texi: Document the above limitations of
28462         utimes() on OS/2 kLIBC.
28464 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28465             KO Myung-Hun  <komh@chollian.net>
28467         openat_proc_name: port to OS/2 kLIBC
28468         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
28469         instead of /proc/self/fd.
28470         * lib/openat-proc.c (openat_proc_name):
28471         Don't assume file name length is less than INT_MAX.
28472         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
28474 2016-01-14  KO Myung-Hun  <komh@chollian.net>
28476         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
28477         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
28478         definitions of intptr_t and uintptr_t (which use int and unsigned)
28479         to avoid clashes with declarations of system functions like sbrk.
28480         * lib/stdint.in.h (intptr_t, uintptr_t): Check
28481         _INTPTR_T_DECLARED before defining them.
28483         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
28484         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
28485         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
28486         Declare on kLIBC.
28487         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
28488         fd associated with dirp.
28489         (_gl_register_dirp_fd): New. Register fd associated with dirp to
28490         dirp_fd_list.
28491         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
28492         (dirfd): Implemented for kLIBC.
28493         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
28494         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
28495         succeeds.
28496         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
28497         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28498         (REPLACE_DIRFD): Define to 1 if replaced.
28499         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
28500         * modules/closedir (Depends-on): Add dirfd.
28501         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
28502         condition.
28503         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
28504         * modules/opendir (Depends-on): Add dirfd.
28506         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
28507         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
28508         * lib/dup.c (dup_nothrow): New.
28509         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
28510         (klibc_dup2): New.
28511         * lib/fcntl.c (klibc_fcntl): New.
28512         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
28513         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
28514         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
28515         fd.
28517         pipe_filter_ii_execute: port to OS/2 kLIBC
28518         Pipes on kLIBC do not support O_NONBLOCK like Win32.
28519         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
28520         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
28521         Reuse Win32 code on OS/2 kLIBC.
28522         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
28523         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
28525         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
28526         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
28527         static inline function.  The implementation of wcwidth in wcwidth.c
28528         causes a "conflicting types" error.
28529         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
28531         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
28532         spawn() on OS/2 kLIBC is not silly like one on Windows
28533         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
28534         empty string on OS/2 kLIBC.
28536         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
28537         On OS/2 kLIBC, select() works only on sockets.
28538         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
28540         binary-io: don't put fd in binary mode if it is a console on EMX
28541         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
28542         a console on EMX.
28544 2016-01-15  Pádraig Brady  <P@draigBrady.com>
28546         doc: mention unfixed issues with unsupported localtime() values
28547         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
28548         returns nonsense for localtime(2^56).
28549         * doc/posix-functions/localtime_r.texi: Likewise.
28551 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28553         doc: mention setlocale() issues on OpenBSD
28554         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
28555         never fails, and the need to check categories individually.
28557 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28559         sig2str: list all signals on FreeBSD >= 7
28560         FreeBSD >= 7 is contravening POSIX by not defining NSIG
28561         to the maximal statically defined signal value.
28562         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
28563         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
28564         where available, even when NSIG is defined.
28566 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
28568         acl-permissions: port to USE_ACL==0 platforms
28569         I ran into this problem when building bleeding-edge GNU Emacs
28570         with gcc -fsanitize=address on Fedora 23.  On this platform
28571         the ACL library does not pass the 'configure' test and Emacs
28572         then does not build due in part to what appear to be typos in the
28573         ACL part of Gnulib.
28574         * lib/acl-internal.c (free_permission_context):
28575         * lib/acl-internal.h (struct permission_context):
28576         Test whether USE_ACL is nonzero, not whether it is defined.
28578 2016-01-12  Martin Sebor  <msebor@redhat.com>
28580         mktime: rename macro to avoid glibc clash
28581         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
28582         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
28584 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28586         Port "$@" to OpenIndiana ksh93
28587         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
28588         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28589         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28590         bug long-dead shells, so remove the workaround.
28591         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28592         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28593         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28594         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28595         Use "$@" instead of ${1+"$@"}.
28597         Port Universal Time settings to strict POSIX
28598         * build-aux/announce-gen, build-aux/bootstrap:
28599         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
28600         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28601         * build-aux/gnupload, build-aux/mkinstalldirs:
28602         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
28603         * build-aux/update-copyright, build-aux/useless-if-before-free:
28604         * build-aux/vc-list-files, tests/test-strftime.c:
28605         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
28606         but POSIX says the behavior of TZ="UTC" is undefined.
28608 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
28610         msvc-inval: fix problem with unset shell var
28611         Problem reported by Karl Berry in:
28612         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
28613         * modules/msvc-inval (Depends-on):
28614         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
28615         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
28617 2016-01-01  Pádraig Brady  <P@draigBrady.com>
28619         tests: for compare_(), use cmp -s where available
28620         * tests/init.sh (compare_): Only fall back to cmp without
28621         the POSIX defined -s option, where this is not available.
28623 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28625         version-etc: new year
28626         * build-aux/gendocs.sh (version):
28627         * doc/gendocs_template:
28628         * doc/gendocs_template_min:
28629         * doc/gnulib.texi:
28630         * lib/version-etc.c (COPYRIGHT_YEAR):
28631         Update copyright dates by hand in templates and the like.
28632         * all files: Run 'make update-copyright'.
28634 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28636         human: fix output buffer overrun by 1
28637         * lib/human.c (human_readable): Fix off-by-one typo in buffer
28638         calculation that could lead to a one-byte buffer overrun.
28640 2015-12-28  Daiki Ueno  <ueno@gnu.org>
28642         maint: fix operator precedence in mbrtowc test
28643         This is a fix for test breakage introduced by commit 45228d96; the
28644         equality expression must be parenthesized when negated with '!',
28645         otherwise we always get:
28647           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
28649         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
28650         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28652 2015-12-23  James Youngman  <jay@gnu.org>
28654         regexprops-generic: update from regex.h
28655         * doc/regexprops-generic.texi: update by running the regexprops binary
28656         from findutils (the command line is 'regexprops "Regular Expressions"
28657         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
28658         gnulib with GNU grep had made this document out-of-date.
28660 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28662         strftime-tests: avoid false failure on OS X
28663         * tests/test-strftime.c (struct localtime_rz_test): Add an
28664         ahistorical member which is used to warn rather than fail
28665         when tm_isdst isn't set for such entries.  This is the case for
28666         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28668 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28670         fts: ensure leaf optimization is used for NFS
28671         NFS provides usable dirent.d_type but not necessarily for all entries
28672         of large directories.  See <https://bugzilla.redhat.com/1252549>
28673         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28675 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28677         fts: enable leaf optimization for XFS
28678         XFS provides usable dirent.d_type only for DT_DIR,
28679         but the noleaf optimization still applies.
28680         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28682 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28684         intprops: comment fix
28685         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28686         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28688         intprops-test: work around GCC bug 68971
28689         Problem reported by Pádraig Brady in:
28690         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28691         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28692         (main): Add a case that better tests 64-bit long in this area.
28694 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28696         gnulib-tool: allow multiple --local-dir usage
28697         * gnulib-tool: Use --local-dir to construct compound
28698         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28699         PATH_SEPARATOR early.
28700         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28701         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28702         func_determine_path_separator because that needs to be detected
28703         earlier now.
28704         (func_determine_path_separator): New function.
28705         (func_path_foreach, func_path_foreach_inner): New functions.
28706         (func_path_prepend, func_path_append): Likewise.
28707         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28708         (func_lookup_file, func_all_modules): Use new functions to work
28709         with local_gnulib_path.
28710         (func_modules_in_dir, func_exists_module): New callbacks for
28711         func_path_foreach.
28712         (func_exists_module, func_get_tests_module): Likewise.
28713         (func_is_local_file, func_should_symlink): New helper methods.
28714         (func_add_file, func_update_file): Use new func_should_symlink
28715         instead, DRY.
28716         (func_reconstruct_cached_local_gnulib_path): New helper.
28717         (func_reconstruct_cached_dir): New callback.
28718         (func_import): The cached_local_gnulib_dir renamed to
28719         cached_local_gnulib_path similarly to local_gnulib_dir.
28720         Use new func_reconstruct_cached_local_gnulib_path.
28721         (func_count_relative_local_gnulib_path): New sub-method.
28722         (func_create_testdir): Use func_should_symlink, DRY.
28723         (func_create_megatestdir): Use new functions to work with
28724         local_gnulib_path correctly.
28725         (func_append_local_dir): New helper.
28727 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28729         fix freadptr to work with ungetc on all uClibc configs
28730         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28731         where GNU coreutils cut(1) generates invalid output on uClibc
28732         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28733         * lib/freadptr.c (freadptr): Return NULL if there are
28734         ungotten chars.  In this case freadseek() will iterate
28735         again to process the ungotten character.
28737 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28739         xalloc-oversized: improve performance with GCC 5
28740         * lib/xalloc-oversized.h (xalloc_oversized):
28741         Improve performance with GCC 5 by using __builtin_mul_overflow.
28743 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28745         intprops: new public macro EXPR_SIGNED
28746         Emacs can use this macro, so make it public.
28747         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28748         'Integer Type Determination', since some of these macros apply
28749         to non-integer types.  Clarify what kinds of constant expressions
28750         these macros return.  Say when the arguments can be non-integers.
28751         Mention newly published macro EXPR_SIGNED.
28752         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28753         make it public.  All uses changed.
28755         intprops: fix typo in clang port
28756         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28757         '__builtin_add_overflow' that is not caught by compiler.
28759 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28761         test-timespec: fix typo in previous change
28762         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28764         timespec-sub: fix overflow bug; add tests
28765         * lib/timespec-add.c (timespec_add):
28766         * lib/timespec-sub.c (timespec_sub):
28767         Work even if time_t is narrower than int (a theoretical
28768         possibility).  Redo code for a bit more clarity.
28769         * lib/timespec-sub.c (timespec_sub):
28770         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28771         * modules/timespec-tests, tests/test-timespec.c: New files.
28773         intprops-test: suppress -Woverlength-strings
28774         Problem reported by Pádraig Brady in:
28775         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28776         It is not worth the hassle to port this test to compilers that
28777         cannot handle long strings in diagnostics.
28778         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28780 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28782         quotearg: add quotearg_n_style_colon()
28783         This quotes with default options of the specified style,
28784         but with quoting enabled for instances of ':'.
28785         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28786         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28788 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28790         intprops: revise _WRAPV macros, revert _OVERFLOW
28791         The incompatible changes to the _OVERFLOW macros were too much of
28792         a hassle in practice, so revert them.  Instead, change the new
28793         _WRAPV macros to make them closer in behavior to GCC 5's new
28794         builtin_add_overflow etc. functions.  No other software was using
28795         these newly-added macros yet, so this should be OK.
28796         * NEWS: Revert previous change, since the incompatible change
28797         has been reverted, and nobody used the incompatible version.
28798         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28799         Document revised behavior.
28800         (Integer Range Overflow): Adjust example to match above revisions.
28801         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28802         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28803         these can be used in integer constant expressions again.
28804         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28805         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28806         needed.
28807         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28808         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28809         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28810         Remove, as they did not seem that useful.
28811         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28812         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28813         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28814         Support new semantics.
28815         (__has_builtin): New macro, if not alreay defined.
28816         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28817         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28818         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28819         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28820         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28821         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28822         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28823         New macros.
28824         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28826 2015-11-03  Jim Meyering  <meyering@fb.com>
28828         intprops: add parentheses for when OP has precedence lower than "-"
28829         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28830         "a OP b" must be parenthesized for when OP is like "<<", which has
28831         lower precedence than the following "-". Reported by Pádraig Brady.
28833 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28835         quotearg: constify get_quoting_style parameters
28836         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28837         * lib/quotearg.c (get_quoting_style): Likewise.
28839 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28841         quotearg: add support for $'' shell escaping
28842         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28843         items and descriptions.
28844         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28845         above types by quoting like "shell", but using $'...' syntax
28846         for non printable characters, which should provide unambiguous
28847         printable output for any input.
28848         * tests/test-quotearg-simple.c: Update accordingly.
28850 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28852         maint: use a more standard return from mbrtowc test
28853         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28854         from the test program as this is non standard and often
28855         indicates an unhandled case in the test program.
28856         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28858 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28860         intprops: add WRAPV and const flavors for GCC 5
28861         If available, use GCC 5's builtin functions for efficient integer
28862         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28863         and safely compute the low-order bits of the correct answer.
28864         A downside of these efficient functions is that they cannot be
28865         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28866         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28867         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28868         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28869         Document the changes.
28870         (Wraparound Arithmetic): New section.
28871         (Integer Range Overflow):
28872         Put this subsection last, since it's least useful.
28873         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28874         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28875         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28876         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28877         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28878         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28879         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28880         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28881         New macros.
28882         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28883         Generate calls to GCC builtins if available, for speed.
28884         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28885         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28886         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28887         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28888         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28889         (CHECK_QUOTIENT, CHECK_REMAINDER):
28890         Test WRAPV and CONST flavors (when available) too.
28892 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28894         doc: use extended timezone format in iso-8601 example
28895         * doc/parse-datetime.texi: The standard states that extended format
28896         is to be used consistently throughout.
28897         Note that lib/parse-datetime.y can handle either tz format.
28899 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28901         stdalign: port to Sun C 5.9
28902         * doc/posix-headers/stdalign.texi: Document this.
28903         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28904         __attribute__ ((__aligned__ (...))).
28906 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28908         time_rz: fix comment about tzalloc
28909         * lib/time_rz.c (tzalloc): Fix comment.
28911 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28913         stdalign: work around pre-4.9 GCC x86 bug
28914         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28915         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28916         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28918 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28920         maint.mk: sc_tight_scope: remove extraneous expressions
28921         * top/maint.mk (tight_scope): This is not really required since
28922         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28923         that matches all nm entries.  But it does remove extraneous entries
28924         that may be confusing or cause issue in future maintenance.
28926 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28928         time_rz: return NULL if localtime_r fails
28929         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28930         while still attempting to pacify bleeding-edge GCC.
28932         fts: port to C11 alignof
28933         * doc/posix-headers/stdalign.texi (stdalign.h):
28934         Document the C11 restriction.
28935         * lib/fts.c: Include stddef.h, for max_align_t.
28936         (fts_alloc): Align using max_align_t, not FTSENT.
28937         * modules/fts (Depends-on): Add stddef.
28939 2015-10-18  Jim Meyering  <meyering@fb.com>
28941         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28942         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28943         would see this:
28945         lib/time_rz.c: In function 'localtime_rz':
28946         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28947           [-Werror=nonnull]
28948                    if (tm && !save_abbr (tz, tm))
28949                        ^
28951         That was complaining about "tm" because it is a parameter that was
28952         declared with the __nonnull__ attribute.
28953         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28954         result of localtime_r.
28956 2015-10-17  Jim Meyering  <meyering@fb.com>
28958         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28959         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28960         name-extraction regexp mistakenly used \S+, and would mistakenly
28961         extract "*F" from "extern int *F()" rather than the desired "F".
28962         Use \w+ instead.
28964 2015-10-17  Jim Meyering  <meyering@fb.com>
28966         maint.mk: sc_tight_scope: factor and support OS X
28967         * top/maint.mk (_gl_tight_scope): Address three issues:
28968         - factor out four instances of code that wraps a string in "^...$"
28969         - allow nm-reported symbol names to have an optional leading "_"
28970         - add "main" to the list of ignored variable names, because on os x,
28971         "main" has nm-reported type "S" in the variable-checking section.
28973 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28975         safe-alloc-tests: fix typo in license header
28976         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28978 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28980         copy-file: fix mem leak in error case
28981         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28982         upon error opening or performing I/O to the src and dest files.
28984 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28986         localename: control langinfo.h inclusion
28987         This header is only used to work around buggy behavior in old
28988         versions of glibc, so do not include it all the time.  Otherwise
28989         we get build failures on systems that do not provide langinfo.h.
28990         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28991         in the source later on.
28992         The patch was originally submitted to gettext as:
28993         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28995 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28997         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28998         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28999         * lib/u64.c, lib/unistd.c:
29000         Append 'typedef int dummy;', to pacify compilers that are picky
29001         about empty translation units.
29003 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
29005         accept4-tests: fix to avoid non portable flags
29006         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
29007         as they are the only documented ones, and passing others may trigger
29008         EINVAL (seen on FreeBSD 10.1-RELEASE).
29009         * doc/glibc-functions/accept4.texi: Mention that we don't provide
29010         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
29012 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
29014         gnulib-tool: fix tests of 'extensions' module
29015         This complements f8fe25fab60e3c687a124 commit.
29016         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
29017         emitting of initial gl_EARLY macros.
29018         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
29019         replaced with func_emit_pre_early_macros call.
29021 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29023         unicase/locale-language: fix typo in utf-8 cookie
29024         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
29025         Problem reported by Zbigniew Jędrzejewski-Szmek.
29027 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29029         xalloc: do not worry about GCC 5 warning on 32 bit
29030         * lib/xalloc.h: Revert previous change.
29031         I found a better way to fix this in coreutils.
29033 2015-10-02  Pádraig Brady  <P@draigBrady.com>
29035         xalloc: avoid GCC 5.1 warning on 32 bit
29036         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
29037         xalloc_oversized(), which was seen to give this warning
29038         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
29039         when simplifying conditional".
29041 2015-10-02  Daiki Ueno  <ueno@gnu.org>
29043         uniname/uniname-tests: avoid compiler warnings
29044         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
29045         unused local variables.
29046         (test_alias_lookup): Fix alias name display in failure cases.
29048 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29050         c-ctype: do not worry about EBCDIC + char signed
29051         Drop support for EBCDIC with char being signed, as this breaks too
29052         many programs.  Problem reported by Ben Pfaff in:
29053         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
29054         * lib/c-ctype.h: Verify that we are not using EBCDIC with
29055         char being signed.
29056         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
29057         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
29058         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
29059         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
29060         * tests/test-c-ctype.c (test_all):
29061         Simplify by assuming standard char values cannot be negative.
29062         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
29064 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29066         c-ctype: port better to z/OS EBCDIC
29067         Problems reported by Daniel Richard G. in:
29068         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
29069         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
29070         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
29071         (_C_CTYPE_OTHER_CNTRL): New macro.
29072         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
29073         from SCHAR_MIN, as the functions are defined only from values
29074         promoted from char or from unsigned char, not necessarily from
29075         signed char.
29077 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
29079         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
29081         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
29082         and ARFLAGS variables.  Doing this unconditionally could break
29083         later Automake's AM_PROG_AR invocation (at least it's
29084         AC_CHECK_TOOLS call to detect correct 'ar' binary).
29086         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
29087         Amsterdam Compiler Kit, so make the previous code to have effects
29088         only on ACK, and rather automatically call the Automake's
29089         AM_PROG_AR as soon as possible to decide other cases.
29091         References:
29092         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
29094         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
29095         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
29096         is possible, keep setting AR/ARFLAGS to reasonable defaults.
29097         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
29098         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
29099         'extensions' module is used.
29100         * modules/extensions (configure.ac-early): Remove as this snippet
29101         is added to gnulib-comp.m4 earlier anyway.
29103 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29105         sockets: MS Windows initalization fixes
29106         Problem reported by Test User in:
29107         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
29108         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
29109         Correct the endianness.
29110         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
29111         number mismatch, not just on <.  Cleanup before any such failure.
29113 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29115         gc: fix detection of installed libgcrypt version
29116         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
29117         at least as recent as 1.4.4.  The previously used macro is not
29118         available now, since modules were removed in version 1.6.0.
29120 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29122         c-ctype: rewrite to use inline functions
29123         This simplifies maintenance, since it makes for just one
29124         implementation of each function, letting the compiler have the fun
29125         of optimization.  In practice this works well nowadays with GCC.
29126         E.g., c_isascii might need only three instructions even though the
29127         source code lists every ASCII character individually in a large
29128         switch statement.
29129         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
29130         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
29131         * NEWS: Document the API change.
29132         * lib/c-ctype.c: Drastically simplify, since this now just expands
29133         inline functions.
29134         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29135         (C_CTYPE_INLINE): New macro.
29136         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
29137         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
29138         Verify that either ASCII or EBCDIC is being used.
29139         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
29140         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
29141         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
29142         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
29143         New private macros.
29144         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
29145         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
29146         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
29147         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
29148         (c_tolower, c_toupper): When converting, return the unsigned char,
29149         as that is what z/OS does.
29150         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
29151         of some c-ctype.h macros.
29152         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
29153         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
29154         c_tolower promotion to be compatible with z/OS.
29156 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
29158         gitlog-to-changelog: trim only trailing whitespaces
29159         This is fix for --format regression introduced by commit
29160         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
29161         doubled %n string) had no effect anymore.  This format
29162         specification has been used e.g. by GNU paxuitils (commit
29163         edfd8bcc3).
29165         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
29166         newlines in commmit messages.
29168 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29170         Test that c_iscntrl agrees with iscntrl, etc.
29171         Suggested by Daniel Richard G. in:
29172         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29173         * modules/c-ctype-tests (Depends-on): Add ctype.
29174         * tests/test-c-ctype.c: Include <ctype.h>.
29175         (NCHARS): New constant.
29176         (test_agree_with_C_locale): New function.
29177         (main): Use it.
29178         (test_all): Use named constants.
29180         c-ctype: improve c_isascii testing
29181         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
29182         Add a test to count the number of ASCII characters.
29184 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29186         savewd: remove SAVEWD_CHDIR_READABLE
29187         It was problematic in the light of file systems that ignore umask.
29188         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
29189         * NEWS: Document this.
29190         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
29191         successful, -1 (setting errno) on failure, rather than something
29192         more complicated than that.
29193         * lib/mkdir-p.c (make_dir_parents):
29194         Do not use SAVEWD_CHDIR_READABLE.
29195         * lib/savewd.c (savewd_chdir):
29196         Remove support for SAVEWD_CHDIR_READABLE.
29197         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
29199         c-ctype: port better to EBCDIC
29200         Problems reported by Daniel Richard G. in
29201         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
29202         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
29203         Include "verify.h".
29204         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
29205         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
29206         Define as enum constants with value false, if not defined, so that
29207         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
29208         code more portable, as both branches of the 'if' are compiled on
29209         all platforms.
29210         (C_CTYPE_EBCDIC): New constant.
29211         Verify that the character set is either ASCII or EBCDIC.
29212         (to_char): New static function.
29213         (c_isascii, c_iscntrl):
29214         Assume standard control-character assignments for EBCDIC.
29215         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
29216         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
29217         Rewrite to use 'if' instead of 'ifdef'.
29218         Use to_char if non-ASCII.  Prefer <= to >=.
29219         Prefer true and false to 1 and 0, for booleans.
29220         (c_iscntrl): Use 'if', not 'ifdef'.
29221         * modules/c-ctype (Depends-on): Add verify.
29222         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
29223         (to_char): New function.
29224         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
29226 2015-09-21  Pádraig Brady  <P@draigBrady.com>
29228         nanosleep: fix return code for interrupted replacement
29229         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
29230         that we return -1 in the case the call is interrupted by a signal,
29231         rather than the current value of 1.
29232         Diagnosed and tested by Daniel Richard G.
29234 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
29236         Diagnose ERE '()|\1'
29237         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
29238         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
29239         track of the set of previously-completed subexpressions available
29240         before the first alternative, and restore this set just before
29241         parsing each subsequent alternative.  This lets us diagnose the
29242         invalid back-reference in the ERE '()|\1'.
29244         regex: merge patches from libc
29246         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29247         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
29248         * lib/regex_internal.h:
29249         Include <libc-lock.h> instead of <bits/libc-lock.h>.
29251         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29252         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
29253         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
29254         wcscoll.
29255         * lib/regexec.c (check_node_accept_bytes): Likewise.
29257         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29258         Fix regex wcrtomb namespace (bug 18496).
29259         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29260         instead of wcrtomb.
29262         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29263         Fix regex wctype namespace (bug 18495).
29264         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
29265         instead of towlower.
29266         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29267         instead of iswlower.  Call __towupper instead of towupper.
29268         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29269         instead of iswalnum.
29271         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
29272         * lib/regcomp.c (parse_bracket_exp): Initialize type to
29273         COLL_SYM in a couple of places to avoid uninitialized variable
29274         wanings on tilegx gcc 4.8.2.
29276         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29277         * lib/regex_internal.h: Remove NOT_IN_libc.
29279         2014-11-17  Andreas Schwab  <schwab@suse.de>
29280         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
29282         2014-09-11  Roland McGrath  <roland@hack.frob.com>
29283         Move findidx nested functions to top-level.
29284         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
29285         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
29286         Pass new arguments to findidx.
29287         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
29288         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
29289         Don't #include it inside the function.  Pass new arguments to findidx.
29290         * lib/regex_internal.h:
29291         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
29292         (re_string_elem_size_at): Don't #include it inside the function.
29293         Pass new arguments to findidx.
29295         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29296         Check if DEBUG is defined in regex_internal.c
29297         * lib/regex_internal.c: Check if DEBUG is defined and is set.
29299 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
29301         ceill: detect buggy OpenBSD implementation
29302         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
29303         which returns zero for small values.  Discussed here:
29304         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
29306 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
29308         mountlist: add me_mntroot field on Linux machines
29309         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
29310         mount_entry so Linux machines based on /proc/self/mountinfo can
29311         distinguish between bind mounts and original mounts.  In reality bind
29312         mounts aren't treated differently than mountroot=/ mounts by the
29313         kernel, but the user often wants these bind mounts distinguished.
29314         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
29315         More details at https://pad.lv/1432871
29317 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
29319         doc: Describe to use multiple instances of gnulib
29320         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
29321         instances of gnulib with different modules can be used, for example one
29322         for a lib and another one for associated tools.
29324 2015-09-01  Pádraig Brady  <P@draigBrady.com>
29326         base32: mark function as __attribute__ const
29327         * lib/base32.h (isbase32): Mark __attribute__ const as
29328         suggested by GCC, and consistent with the base64 module.
29330 2015-08-20  Daiki Ueno  <ueno@gnu.org>
29332         gnulib-tool: don't transform binary files with sed
29333         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
29334         .mo and .class files.
29335         Reported by Denis Denisov.
29337 2015-08-10  Daiki Ueno  <ueno@gnu.org>
29339         gperf: respect silent rules
29340         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
29341         V_GPERF_0 for silent rules.
29342         * modules/iconv_open (Makefile.am): Use V_GPERF.
29343         * modules/unicase/locale-language (Makefile.am): Likewise.
29344         * modules/unicase/special-casing (Makefile.am): Likewise.
29345         * modules/unictype/category-byname (Makefile.am): Likewise.
29346         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29347         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29348         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29349         * modules/unictype/property-byname (Makefile.am): Likewise.
29350         * modules/unictype/scripts (Makefile.am): Likewise.
29351         * modules/uninorm/composition (Makefile.am): Likewise.
29353 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29355         Improve port of stdalign to C++11
29356         Problem reported by Sundaram in:
29357         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29358         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29359         (__alignas_is_defined): Define if C++11 or newer.
29361 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29363         pmccabe2html: fix gawk regex escaping
29364         * build-aux/pmccabe2html: Add one more backslash to properly
29365         escape the gsub replacement value.  Fixes this error:
29366         gawk: ./build-aux/pmccabe2html:425: \
29367         warning: escape sequence `\&' treated as plain `&'
29369 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29371         time_rz: port to pedantic memcpy
29372         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29373         that reject memcpy (..., NULL, 0).
29375 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29377         time_rz: port better to MinGW
29378         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29379         Instead, store the tzname copy in the struct tm_zone object.
29380         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29381         * lib/strftime.c [!_LIBC]:
29382         * lib/time_rz.c: Include time-internal.h.
29383         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29384         name from *TZ rather than from TZNAME, doable because *TZ now has
29385         a tzname_copy member.
29386         * lib/time-internal.h: New file, with contents taken from
29387         lib/time_rz.c.  It's separate because strftime.c now accesses
29388         struct tm_zone members.
29389         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29390         New member tzname_copy.
29391         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29392         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29393         Initialize tzname_copy member.
29394         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29395         in tzname_copy member.
29396         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29397         (restore_tzname): Remove; no longer needed.  All calls removed.
29398         * modules/time_rz (Files): Add lib/time-internal.h.
29400         time: port __need_time_t to MinGW
29401         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29402         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29404 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29406         strftime: fix newly-introduced bug on Solaris
29407         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29408         consistently at the start, rather than doing some of the setup at
29409         the start and some in the %Z format spec.  This is cleaner, and
29410         works better with time_rz on platforms like Solaris where struct
29411         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29412         mktime_z and localtime_rz can mess up the tzname cache.
29414         test-strftime: test for Solaris bug
29415         * modules/strftime-tests (Depends-on): Add strerror.
29416         * tests/test-strftime.c: Include <errno.h>.
29417         (posixtm_test): New function, containing the old 'main'.
29418         (struct tzalloc_test, struct localtime_rz_test): New types.
29419         (TZ, LT): New static vars.
29420         (tzalloc_test): New function.
29421         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29423         time_rz: port to Solaris etc.
29424         Works around a tzname problem on platforms like Solaris that have
29425         tzname but not tm_zone, by setting tzname at the appropriate time
29426         and restoring it later.
29427         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29428         New static vars.
29429         (save_abbr) [HAVE_TZNAME]: Set them.
29430         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29431         (restore_tzname): New function.
29432         (localtime_rz, mktime_z): Use it.
29434         time_rz: now LGPL
29435         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29437         time_rz: make a constant 'const'
29438         * lib/time_rz.c (local_tz): Now const.
29440         time_rz: fix off-by-one typo
29441         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29443 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29445         fprintftime, strftime: use timezone_t args
29446         * NEWS: Document the change.
29447         * lib/fprintftime.h (fprintftime):
29448         * lib/strftime.c (extra_args) [my_strftime]:
29449         * lib/strftime.h (nstrftime):
29450         Time zone arg is now of type timezone_t, not int.
29451         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29452         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
29453         (my_strftime) [emacs && !my_strftime]:
29454         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
29455         Remove; Emacs doesn't need this any more.
29456         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
29457         fprintftime and nstrftime to call tzset.
29458         (ut) [!my_strftime]: Remove, replacing with ...
29459         (tz) [!my_stftime]: ... this new macro.  All uses changed.
29460         (strftime_case_): Use localtime_rz and mktime_z instead
29461         of localtime_r and mktime.
29462         * modules/fprintftime (Depends-on): Add time_rz.
29463         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
29464         * tests/test-strftime.c (main): Adjust to new nstrftime API.
29466         time_rz: new module
29467         * MODULES.html.sh: Add time_rz.
29468         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
29469         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
29470         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
29471         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
29472         New var HAVE_TIMEZONE_T (default 0).
29473         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29474         New var GNULIB_TIME_RZ (default 0).
29475         * modules/time (time.h): Substitute the new vars.
29477         flexmember: license is now unlimited
29478         * modules/flexmember (License): Change to unlimited,
29479         since its only source file gives an unlimited license.
29481 2015-07-15  Eric Blake  <eblake@redhat.com>
29483         maint: update copyright paper procedures
29484         * config/srclist.txt: Drop outdated files.
29485         * doc/Copyright/conditions.txt: Update to latest.
29486         * doc/Copyright/assign.changes.manual: Delete.
29487         * doc/Copyright/assign.future.manual: Likewise.
29488         * doc/Copyright/assign.manual: Likewise.
29489         * doc/Copyright/assign.translation.manual: Likewise.
29490         * doc/Copyright/disclaim.changes.manual: Likewise.
29491         * doc/Copyright/disclaim.manual: Likewise.
29492         * doc/Copyright/disclaim.program: Likewise.
29494 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29496         localename: fix link error on Illumos
29497         Illumos defines __sun, but does not have getlocalename_l nor the
29498         equivalent.  This partially reverts commit 387c214.
29499         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
29500         available, as well as uselocale.
29501         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
29502         use getlocalename_l if it is not available.
29504 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29506         unistr/uN-strtok-tests: avoid a trivial leak
29507         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
29508         input and delim after the multibyte delimiter tests.
29510 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29512         file-has-acl, acl-permissions: fix HP-UX typos
29513         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
29514         * lib/file-has-acl.c (file_has_acl):
29515         * lib/set-permissions.c (context_acl_from_mode)
29516         (context_aclv_from_mode, set_acls):
29517         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
29518         They were introduced by the recent ACL changes.
29520         regex: match current GNU grep behavior
29521         These symbols have not matched GNU grep behavior for quite some time.
29522         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
29523         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
29524         Change to match current GNU behavior.
29525         Simplify by expressing it as differences from POSIX BREs and EREs.
29526         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
29528 2015-07-03  Jim Meyering  <meyering@fb.com>
29530         set-permissions.c: adjust acl_from_mode's cpp guard
29531         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
29532         directives identical to those guarding the sole use.
29533         Otherwise, on some systems, we'd get a warning about
29534         the function being defined but not used.
29535         Also, filter through cppi to correct misleading indentation
29536         of cpp directives.
29538 2015-07-03  Pádraig Brady  <P@draigBrady.com>
29540         tests: restrict shells to those that support 'local'
29541         The local keyword is very widely supported and used
29542         in tests in coreutils and grep at least.  Therefore
29543         restrict to testing with shells that support it.
29544         This mainly excludes /bin/sh on Solaris.
29545         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
29547 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
29548         and Daiki Ueno  <ueno@gnu.org>
29550         unistr/uN-strtok: handle multibyte delimiters
29551         Previously, uN_strtok moved PTR to the next unit to the token end.
29552         When DELIM contained a multibyte character, the new position could
29553         be a middle of a multibyte character.
29554         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
29555         after the token.
29556         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
29557         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
29558         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
29559         * modules/unistr/u8-strtok (Depends-on): Depend on
29560         unistr/u8-strmblen.
29561         * modules/unistr/u16-strtok (Depends-on): Depend on
29562         unistr/u16-strmblen.
29563         * modules/unistr/u32-strtok (Depends-on): Depend on
29564         unistr/u32-strmblen.
29565         * tests/unistr/test-u-strtok.h: New file.
29566         * tests/unistr/test-u8-strtok.c: New file.
29567         * tests/unistr/test-u16-strtok.c: New file.
29568         * tests/unistr/test-u32-strtok.c: New file.
29569         * modules/unistr/u8-strtok-tests: New file.
29570         * modules/unistr/u32-strtok-tests: New file.
29571         * modules/unistr/u16-strtok-tests: New file.
29573 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
29575         update-copyright: fix test failure with perl >= 5.22 (trivial)
29576         * build-aux/update-copyright: Escape a literal left curly bracket,
29577         required with perl >= 5.22
29579 2015-07-02  Daiki Ueno  <ueno@gnu.org>
29581         u{16,32}-strstr-tests: relax timeout condition
29582         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
29583         tests can take longer than 5 seconds to complete.
29584         Reported by Dagobert Michelsen in:
29585         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
29586         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
29587         seconds to 10 seconds.
29588         * tests/unistr/test-u32-strstr.c (main): Likewise.
29590 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29592         gnulib-common.m4: change the ARFLAGS default to 'cr'
29593         In some GNU/Linux distributions people started to compile 'ar'
29594         binary with --enable-deterministic-archives (binutils project).
29595         That, however, in combination with previous autotools long time
29596         working default AR{_,}FLAGS=cru causes warnings on such
29597         installations:
29598         ar: `u' modifier ignored since `D' is the default (see `U')
29599         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
29600         set already.
29602 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29604         selinux-h: avoid double free after *getfilecon()
29605         Originally reported by Ben Shelton on bug-tar:
29606         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
29607         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
29608         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
29609         param should be freed by freecon(3) (regardless the return value).
29611 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
29613         fix pty related tests issues on Windows (trivial)
29614         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
29615         however it's still present in tests/ subdirectory of the final project.
29616         Therefore avoid it to pass `make check`.
29617         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
29618         will just return -ENOSYS, so avoid this non applicable test allowing
29619         the build to proceed.
29621 2015-07-01  Pádraig Brady  <P@draigBrady.com>
29623         acl: fix definition of acl_from_mode on FreeBSD
29624         This was causing basic coreutils copy operations to fail
29625         with ENOTSUP or ENOENT error messages.
29626         * lib/acl-internal.h (acl_from_mode): Only define when
29627         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
29628         of acl_from_mode() defined in lib/set-permissions.c to
29629         be used on FreeBSD at least.
29630         * lib/set-permissions.c: Fix up comment spelling,
29631         and a redundant variable assignment; noticed in passing.
29633 2015-06-30  Pádraig Brady  <P@draigBrady.com>
29635         readutmp: port to FreeBSD >= 9
29636         * lib/readutmp.h: Map utmpxname() to setutxdb().
29637         With that coreutils who(1) and pinky(1) tests pass.
29639 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29641         mgetgroups: port to strict OS X
29642         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
29643         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
29644         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
29645         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
29647 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
29649         mgetgroups: port to strict OS X
29650         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
29651         Document the getgrouplist problem.
29652         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
29653         New macro.
29654         (mgetgroups): Use it.
29655         * m4/mgetgroups.m4 (gl_MGETGROUPS):
29656         Check for OS X signature for getgrouplist.
29658 2015-06-29  Jim Meyering  <meyering@fb.com>
29660         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29661         It started like this when building coreutils' latest on OS X,
29662         invoking ./configure with a nonempty --cache=.cache:
29664           lib/linkat.c:46:42: error: operator '||' has no right operand
29665           lib/linkat.c: In function 'rpl_linkat':
29666           lib/linkat.c:330:27: error: #if with no expression
29668         Here's linkat.c's line 46:
29670           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29672         Here's some context:
29674           $ grep linkat_nofoll .cache
29675           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29676           $ grep LINKAT_SYM lib/config.h
29677           #define LINKAT_SYMLINK_NOTSUP
29679         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29680         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29681         but that violates a tenet of AC_CACHE_CHECK: it must
29682         have no side effect other than setting its cache variable.
29684         What happens is that when the cache is set, we'd skip the
29685         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29686         defined to whatever value it happened to have in configure's
29687         environment.  In my case, it was not defined, so this later code:
29689           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29690             [Define to 1 if linkat can create hardlinks to symlinks])
29692         would emit code with an empty RHS.
29694         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29695         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29697 2015-06-28  Jim Meyering  <meyering@fb.com>
29699         mountlist: avoid an unused-label warning on OS X
29700         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29701         Building on OS X, I saw a warning about the "free_then_fail" label
29702         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29704         error.c: correct printf-style format: %d -> %u
29705         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29706         rather than %d, to match the type of "line_number", unsigned int.
29708 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29710         fts: avoid reading beyond the heap allocation
29711         GCC 5.1.1 with -O2 and -fsanitize=address reports
29712         a read of size 4 from a heap object of size 3 is indeed invalid,
29713         though this may be due to incorrect padding assumptions by GCC, see:
29714         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29715         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29716         * modules/fts: Depend on stdalign.
29718 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29720         savedir: avoid undefined behavior in qsort call
29721         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29722         "runtime error: null pointer passed as argument 1,
29723          which is declared to never be null"
29724         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29726 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29728         userspec: avoid undefined behavior in gettext call
29729         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29730         "runtime error: null pointer passed as argument 2,
29731          which is declared to never be null"
29732         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29734 2015-06-20  Glenn Morris  <rgm@gnu.org>
29736         gitlog-to-changelog: improve gitmerge.el commits
29737         Let the Emacs ChangeLog generation process exclude "skipped"
29738         messages from merge commits (Bug#20717).
29739         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29741 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29743         wchar: fix MinGW compilation warnings
29744         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29745         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29746         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29748 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29750         uniname/uniname-tests: use pristine data files
29751         For copyright and maintenance reasons, use the data files from UCD
29752         without modification.
29753         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29754         (getfield): Remove.
29755         (aliases_count): New global variable.
29756         (fill_names): Skip comments and empty lines in the input.  Don't
29757         use getfield.
29758         (fill_aliases): Likewise.
29759         (main): Change the expected command line arguments to:
29760         NAMES... ["--" ALIASES...].
29761         * tests/uniname/test-uninames.sh: Adjust to the change in
29762         test-uninames.c.
29763         * tests/uniname/UnicodeDataNames.txt: Remove.
29764         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29765         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29766         file from Unicode 8.0.0.
29768 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29770         linked-list, linkedhash-list: avoid compiler warnings
29771         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29772         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29774 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29776         libunistring: bump minimum version to 0.9.6
29777         * all modules depending on updated Unicode data: Regenerate.
29778         The modules are listed by a script that does:
29779         - for each file listed by: git show --oneline --name-only 705f4efc
29780           - deduce the containing modules, based on "Files:"
29781         - deduce the modules which depend on the containing modules, based
29782           on "Depends-on:"
29784 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29786         uniname/uniname: update to Unicode 8.0.0
29787         * lib/uniname/uninames.h: Regenerate.
29788         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29789         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29791 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29793         libunistring: update to Unicode 8.0.0
29794         * lib/gen-uni-tables.c (SIZEOF): New macro.
29795         (output_numeric): Increase the maximum number of fractions from
29796         128 to 160.  Increase the level3 value width from 7 bits to 8
29797         bits.  Use SIZEOF instead of a hard-coded integer.
29798         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29799         0x28000.
29800         (fill_blocks): Increase the maximum number of blocks from 256 to
29801         384.  Use SIZEOF instead of a hard-coded integer.
29802         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29803         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29804         value width.
29805         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29806         a new case added to LBP22.
29807         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29808         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29809         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29810         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29811         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29812         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29813         lib/uniwidth/width.c.
29814         * all generated files under lib/uni* and tests/uni*: Regenerate.
29816 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29818         gnu-web-doc-update: add --mirror to remove stale files
29819         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29820         out of date files from the CVS server.  Since this is usually
29821         appropriate, a prompt is given when the option is not specified,
29822         along with the `cvs remove` command that would be run.
29824 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29826         acl-permissions: pacify -Wsuggest-attribute=const
29827         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29828         * lib/acl-internal.h (free_permission_context):
29829         Declare with attribute const if ! (defined USE_ACL &&
29830         (HAVE_ACL_GET_FILE || defined GETACL)).
29832         fsync: document AIX misbehavior
29833         * doc/posix-functions/fsync.texi (fsync):
29834         Document failure on AIX with read-only file descriptor.
29836 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29838         stdio: Don't redefine gets when using C++
29839         * lib/stdio.in.h (gets): Disable warning on C++.
29841 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29843         acl-permissions: port to AIX, C89 HP-UX
29844         Problems reported by Michael Felt.
29845         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29846         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29847         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29848         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29849         Add cast for AIX, whose system calls are declared to accept
29850         char * even though the arguments are really char const *.
29851         * lib/get-permissions.c (get_permissions):
29852         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29853         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29854         that broke a build.
29855         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29856         Rework types to pacify xlc.
29858 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29860         vasprintf-posix: avoid compiling vasnprintf where possible
29861         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29862         module where not required.  For example on a GNU/Linux system
29863         when gnulib-tool is run with the --conditional-dependencies option.
29865 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29867         file-has-acl: fix build on Mac OS X 10
29868         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29869         which has an incompatible 6 parameter getxattr() call.
29870         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29871         call on Mac OS X >= 10.4.
29872         * doc/glibc-functions/fgetxattr.texi: Likewise.
29873         * lib/file-has-acl.c: Revert to more complete combined check.
29874         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29875         Reported by Jack Howarth.
29877 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29879         prefix-gnulib-mk: remove no longer needed special case
29880         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29881         continued lib_SOURCES lines are no longer present,
29882         so special case handling of such entries is not required.
29884 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29886         acl: don't depend on the deprecated qacl module
29887         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29889 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29891         gnulib-tool: concatenate lib_SOURCES to a single line
29892         * gnulib-tool: Refactor the line merging sed logic,
29893         and use that to output a single lib_SOURCES line for each module.
29894         gnulib using projects often postprocess this output to prepend
29895         subdir paths to each item, and having a single line simplifies this
29896         processing allowing better decoupling from the gnulib-tool output.
29898 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29900         pthread_sigmask: discount system version if a simple macro (trivial)
29901         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29902         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29903         function to ensure it's available.
29905 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29907         readlinkat: avoid OS X 10.10 trailing slash bug
29908         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29909         has this bug.
29910         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29911         that OS X 10.10 has this function.
29912         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29913         as done for readlink().
29914         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29915         trailing slash bug, and assume readlinkat() has the same issue.
29916         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29917         rather than the correct $gl_cv_decl_readlinkat_works.
29919 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29921         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29922         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29923         module rewrite.
29925         acl-permissions: Fix build on Solaris and Cygwin
29926         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29927         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29928         ace_entries variables have moved into struct permission_context but
29929         they were still accessed as local variables here.
29931 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29933         linkat: avoid OS X 10.10 trailing slash with symlink bug
29934         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29935         causes the symlink to be dereferenced, and if it points
29936         to a non existent file, that file will be created as
29937         a hard link to "path1".
29938         This fixes a test failure in test-linkat.c.
29939         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29940         this case.  The existing workaround in linkat.c for
29941         trailing slash issues, suffices for this case.
29942         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29943         the list of platforms with trailing slash issues.
29945 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29947         unlinkat: handle ignoring of ".." on Darwin 14
29948         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29949         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29950         so handle in the same manner.
29951         * m4/unlinkat.m4: Comment on this Darwin issue.
29952         * doc/posix-functions/unlink.texi: Update the latest version
29953         where the issue was seen.
29954         * doc/posix-functions/unlinkat.texi: Mention this issue.
29955         Fixes a test failure in test-unlinkat.c.
29957 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29959         qacl: split into qcopy-acl and qset-acl
29960         Emacs needs the former, but not the latter.
29961         * modules/acl-permissions: New file, containing most of the old qacl.
29962         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29963         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29964         * modules/qcopy-acl, modules/qset-acl: New files.
29965         * MODULES.html.sh (File system functions):
29966         Mention the new modules, and mention qacl while we're at it.
29968 2015-05-27  Glenn Morris  <rgm@gnu.org>
29970         gitlog-to-changelog: new option --ignore-line
29971         (This patch is imported from the GNU Emacs master.)
29972         This option ignores individual commit lines matching a pattern.
29973         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29975 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29977         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29978         Implement get_permissions and set_permissions primitives for getting all
29979         the permissions of a file, storing them, and later setting them. (In the
29980         minimal case, the permissions consist only of a file mode.) Reimplement
29981         qset_acl and qcopy_acl based on these new primitives: this avoids code
29982         duplication and makes error handling more consistent.
29983         The Solaris and Cygwin code still uses duplicate code paths for setting
29984         a file mode while making sure that no acls exist and setting an explicit
29985         acl; this is no worse than before, but could be cleaned up.  The AIX
29986         code still doesn't read ACLs, it only makes sure that acls don't get in
29987         the way when setting a file mode.
29988         * lib/acl-internal.h (struct permission_context): New data structure.
29989         (get_permissions, set_permissions, free_permission_context): Declare.
29990         * lib/acl-internal.c (free_permission_context): New helper function.
29991         * lib/get-permissions.c (get_permissions): New helper function split off
29992         from qcopy_acl.
29993         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29994         AIX, set a file's permissions based only on a file mode.
29995         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29996         other platforms construct a temporary acl from the file mode and set
29997         that acl in the same way as setting an acl read from the source file.
29998         This should help avoid code duplication and inconsistent / buggy
29999         behavior.
30000         (set_acls): New helper function Split off from qcopy_acl.
30001         (chmod_or_fchmod): Moved here from qset-acl.c.
30002         (set_permissions): New helper function.
30003         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
30004         set_permissions.
30005         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
30006         * modules/qacl: Add get-permissions.c and set-permissions.c.
30008         file-has-acl: Split feature tests again (Bug#20667)
30009         * lib/file-has-acl.c: Instead of testing for
30010         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
30011         define them when needed.
30012         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
30013         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
30015 2015-05-27  Pádraig Brady  <P@draigBrady.com>
30017         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
30018         This avoids a conflict with "FORTIFY_SOURCE" variants
30019         of the string functions when they're replaced on NetBSD-6.0.1
30020         and Darwin-14.3.0 at least.
30021         * lib/string.in.h: Avoid including our "lib/string.h" while
30022         including the system <string.h>.
30024 2015-05-26  Eric Blake  <eblake@redhat.com>
30026         stdio: limit __gnu_printf__ witness to gcc 4.4+
30027         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
30028         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
30030         error: use correct printf attributes on mingw
30031         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
30033         inttypes: force correct mingw PRIdMAX even without <stdio.h>
30034         * modules/inttypes (Depends-on): Require extensions, so that mingw
30035         always uses GNU style inttypes.
30036         * lib/inttypes.in.h: On mingw, include <stdio.h>.
30038         stdio: fix probe on mingw under gcc 5.1
30039         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
30040         around new gcc preprocessor rules.
30042 2015-05-07  Glenn Morris  <rgm@gnu.org>
30044         gitlog-to-changelog: parse "Tiny-change"
30045         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
30046         "Copyright-paperwork-exempt".  (Bug#20324)
30048 2015-05-06  Pádraig Brady  <P@draigBrady.com>
30050         doc: document glibc posix_fallocate() issues
30051         * doc/posix-functions/posix_fallocate.texi: Mention the
30052         glibc efficiency problems and issues with NFS.
30054 2015-05-05  Karl Berry  <karl@freefriends.org>
30056         * build-aux/gendocs.sh (usage): document new css default
30057         for HTML (--htmlarg).
30059 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30061         extern-inline: no need for workaround in GCC 5.1
30062         * doc/extern-inline.texi (extern inline):
30063         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30064         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
30065         around these bugs in GCC 5.1 and later.  Maybe in a decade or
30066         two we can remove these workarounds.
30068 2015-04-28  Pádraig Brady  <P@draigBrady.com>
30070         eealloc, pagealign_alloc, xalloc: avoid clang warnings
30071         Avoid [-Wunknown-attributes] warnings like:
30072         warning: unknown attribute '__alloc_size__' ignored
30073         * lib/xalloc.h: Don't use the __alloc_size__  attribute
30074         with clang, as support has been fully removed as of clang 3.5:
30075         https://github.com/llvm-mirror/clang/commit/c047507a
30076         * lib/eealloc.h: Likewise.
30077         * lib/pagealign_alloc.h: Likewise.
30079 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30081         tests: pacify GCC 5.1's stricter printf checking
30082         * tests/test-dirname.c (main):
30083         * tests/test-getaddrinfo.c (simple):
30084         * tests/test-getlogin.c (main):
30085         * tests/test-getndelim2.c (main):
30086         * tests/test-inttostr.c (CK):
30087         * tests/test-md5.c (main):
30088         * tests/test-read-file.c (main):
30089         * tests/test-sha1.c (main):
30090         Fix mismatches between printf format and value signedness.
30091         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
30092         Remove, as CAST_VAL always returned a value of type uintmax_t.
30094         fts: port to GCC 5.1 with --enable-gcc-warnings
30095         Without this fix, GCC 5.1 (correctly) warns about a subscript
30096         error on the fts_name component of FTSENT.  It's actually a
30097         flexible member, so define it that way on C99 or later hosts.
30098         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
30099         structure that now has a flexible array member.
30100         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
30101         (FTSENT): fts_name is now flexible on C99-or-later platforms.
30102         * modules/fts (Depends-on): Add flexmember.
30104 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
30106         file-has-acl: port to CentOS 6
30107         Problem reported by Tom G. Christensen in:
30108         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
30109         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
30110         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
30111         HAVE_GETXATTR.
30112         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
30113         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
30114         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
30115         file-has-acl.c actually needs.
30117 2015-04-26  Pádraig Brady  <P@draigBrady.com>
30119         file-has-acl: always return false when ACLs aren't supported
30120         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
30121         change the GNU/Linux getxattr path, to transform "not supported"
30122         errors to a false return rather than an error.  This is handled
30123         within file_has_acl() due to the platform specific tests to
30124         determine if ACLs are not supported.
30126 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
30128         gettext: propagate po/Makefile.in.in too
30129         * build-aux/po/Makefile.in.in: Copy from latest gettext.
30130         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
30131         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
30132         between Makefile.in.in and the gettext-runtime m4 files.
30134 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
30136         file-has-acl: new module, split from acl
30137         And add a new module file-has-acl-tests to match.
30138         I ran into a problem with the recent changes to the acl module,
30139         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
30140         When using the fixed version with Emacs, I discovered that
30141         file-has-acl wasn't separated out well enough for Emacs (e.g., it
30142         had multiple libraries, but needed only one), so I fixed that too.
30143         * NEWS: Document this incompatible change.
30144         * modules/file-has-acl, modules/file-has-acl-tests: New files.
30145         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
30146         Initialize gl_need_lib_has_acl.
30147         (gl_FUNC_ACL): Require it.
30148         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
30149         Move the file-has-acl.c-relevant stuff to ...
30150         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
30151         use_xattrs = 0' typo, and omit some needless work.  Set
30152         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
30153         when gl_FUNC_ACL is called.
30154         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
30155         (Link): Remove $(LIB_HAS_ACL).
30156         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
30157         (check_PROGRAMS): Move stuff relevant to file-has-acl to
30158         modules/file-has-acl-tests.
30159         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
30161         manywarnings: add GCC 5.1 warnings
30162         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
30163         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
30164         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
30165         -Wsuggest-override, -Wuse-without-only.  Change
30166         -Wnormalized=... operands to match 5.1.
30167         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
30168         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
30169         -Wdiscarded-qualifiers, -Wformat-signedness,
30170         -Wincompatible-pointer-types, -Wint-conversion,
30171         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30172         -Wshift-count-negative, -Wshift-count-overflow,
30173         -Wsizeof-array-argument, -Wsuggest-final-methods,
30174         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30175         and add -Warray-bounds=2 as a special case.
30177 2015-04-21  Simon Josefsson  <simon@josefsson.org>
30179         doc: update FDL template to match FDL examples.
30180         * doc/alloca-opt.texi:
30181         * doc/alloca.texi:
30182         * doc/c-ctype.texi:
30183         * doc/c-strcase.texi:
30184         * doc/c-strcaseeq.texi:
30185         * doc/c-strcasestr.texi:
30186         * doc/c-strstr.texi:
30187         * doc/c-strtod.texi:
30188         * doc/c-strtold.texi:
30189         * doc/ctime.texi:
30190         * doc/error.texi:
30191         * doc/gcd.texi:
30192         * doc/gnulib-tool.texi:
30193         * doc/inet_ntoa.texi:
30194         * doc/intprops.texi:
30195         * doc/lib-symbol-visibility.texi:
30196         * doc/maintain.texi:
30197         * doc/parse-datetime.texi:
30198         * doc/quote.texi:
30199         * doc/regexprops-generic.texi:
30200         * doc/standards.texi: Remove spurious 'with' in FDL license
30201         template.
30203 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
30205         lstat: fix cross-compilation 'ln -s' problem
30206         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
30207         Have the test program call 'symlink' rather than a separate
30208         script run 'ln -s'; this is more likely to work in
30209         cross-compilation environments.  Reported by Pavel Fedin in:
30210         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
30212 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
30214         gendocs.sh: default to a common CSS style sheet for HTML output
30215         * build-aux/gendocs.sh (htmlarg): Change default value.
30217 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
30219         gnulib-tool: output bold attribute more portably
30220         * gnulib-tool (func_show_module_list): Change hexadecimal
30221         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
30222         encoded numbers as arguments to `printf' is not portable,
30223         and is not claimed by POSIX.  This is the case with FreeBSD.
30225 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30227         qacl: Simplify HP-UX acl_nontrivial check
30228         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
30229         acl_nontrivial. Check if the acl has at most three entries instead (it must
30230         have exactly three entries according to the HP-UX documentation). Ignore
30231         uids and gids as long as an entry is either for a user (i.e., the owner),
30232         a group (i.e., the owning group), or others.
30233         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
30234         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
30236 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
30238         acl: On Linux, check for acls without libacl
30239         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
30240         library function to check for the presence of acls, avoiding a library.
30241         * lib/file-has-acl.c: Include xattr headers if we have them.
30242         (file_has_acl): On Linux, use getxattr().
30243         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
30244         file_has_acl(). Check for xattr headers and getxattr().
30246 2015-04-14  Ángel González  <keisial@gmail.com>
30248         tempname: avoid unused parameter warnings (trivial)
30249         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
30250         (try_nocreate): Likewise.
30252 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
30254         fseeko: fix build failure on NetBSD >= 6 (trivial)
30255         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
30256         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
30258 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30260         gitlog-to-changelog: port to MS-Windows
30261         * build-aux/gitlog-to-changelog (git_dir_option):
30262         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
30263         MS-Windows Perl.  Reported by Eli Zaretskii in:
30264         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
30266 2015-04-07  Karl Berry  <karl@gnu.org>
30268         gendocs: new option --tex for passing args to texi2dvi.
30269         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
30270         (TEXI2DVI): cut to just command name.
30271         (usage): mention new option, and update copyright.
30272         <generate_tex>: use it.
30274 2015-04-07  Karl Berry  <karl@gnu.org>
30276         * config/srclistvars.sh (GETTEXT): new definition.
30277         * config/srclist.txt: use it for gettext .m4 files.
30278         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
30279         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
30280         and continuing into April.
30282 2015-04-07  Daiki Ueno  <ueno@gnu.org>
30284         uniname/uniname-tests: fix failure due to alias
30285         Reported by Jack Howarth in:
30286         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
30287         * tests/uniname/test-uninames.c (name_has_alias): New function.
30288         (test_inverse_lookup): Exclude character name with valid alias,
30289         from randomly generated character names.
30290         (main): Fill unicode_aliases before calling test functions.
30292 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
30294         hash: remove deprecated hash_insert0 function
30295         * lib/hash.h (hash_insert0): Remove deprecated function.
30296         * lib/hash.c (hash_insert0): Likewise.
30298 2015-04-02  Pádraig Brady  <P@draigBrady.com>
30300         mountlist: remove dependency on libmount
30301         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
30302         directly, rather than depending on libmount, which has many
30303         dependencies due to its dependence on libselinux, as detailed at:
30304         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
30305         Note we restrict this to __linux__ as that's probably where this
30306         interface will remain.  If ever porting, it would be best
30307         to first pull the makedev() wrapper from coreutils to a gnulib module.
30308         Note also we don't add a getline dependency to the mountlist module,
30309         as all Linux versions are sufficient.
30311 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
30313         stddef: port to pre-C11 GCC on x86
30314         On this platform, max_align_t should have an alignment of 8 even
30315         though the storage alignments of double, long, etc. max out at 4.
30316         Inspired by a comment of Andreas Schwab's here:
30317         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
30318         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
30319         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
30320         * tests/test-stddef.c: Test __alignof__ too, if available.
30322 2015-03-24  Pádraig Brady  <P@draigBrady.com>
30324         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
30325         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
30327 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
30329         yesno: make EOL optional in ENABLE_NLS case also (trival)
30330         * lib/yesno.c (yesno): Check for EOL before replacing.
30331         * tests/test-yesno.sh: Add a test case (test along with gettext).
30333 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
30335         fdopendir-tests: test it does not close its arg
30336         * tests/test-fdopendir.c (main): Test that fdopendir does not
30337         close its argument.  From a suggestion by David Grayson in:
30338         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
30340 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30342         gitlog-to-changelog: trim trailing white space
30343         * build-aux/gitlog-to-changelog (main):
30344         Trim trailing white space from commit message lines.
30345         This is helpful for processing the GNU Emacs repository,
30346         which dates back to 1985 and contains a lot of such lines.
30348         gitlog-to-changelog: new option --ignore-matching
30349         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30350         Support new option --ignore-matching=PAT, which ignores all
30351         commit messages whose first line matches PAT.
30353 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30355         fdopendir: port better to MinGW
30356         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30357         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30358         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30359         * modules/fdopendir (Depends-on): Add dirfd.
30361 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30363         fdopendir: fix typo in comment
30364         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30366 2015-03-09  Eric Blake  <eblake@redhat.com>
30368         error: document all entry points provided
30369         * doc/glibc-functions/error_print_progname.texi
30370         (error_print_progname): Mention the error module.
30371         * doc/glibc-functions/error_at_line.texi (error_at_line):
30372         Likewise.
30373         * doc/glibc-functions/error_message_count.texi
30374         (error_message_count): Likewise.
30375         * doc/glibc-functions/error_one_per_line.texi
30376         (error_one_per_line): Likewise.
30378 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30380         vasnprintf: pacify clang 3.5.0
30381         Problem reported by Werner Lemberg in:
30382         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30383         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30384         The casts aren't needed, since the characters in question are ASCII.
30386 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30388         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30389         * lib/dirent--.h (GNULIB_defined_opendir):
30390         * lib/dirent.in.h (GNULIB_defined_opendir)
30391         (GNULIB_defined_closedir):
30392         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30393         #undef only if Gnulib defined it.
30395         poll: port to MSVC v18 on MS-Windows 8.1
30396         Problem reported by Gisle Vanem in:
30397         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30398         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30399         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30400         Add sys_socket.
30402 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30404         tests: support stderr verification with returns_()
30405         * tests/init.sh (returns_): Disable tracing for this wrapper
30406         function, so that stderr of the wrapped command is unchanged,
30407         allowing for verification of the contents.
30409 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30411         passfd: avoid valgrind uninitalised data warning
30412         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30413         to include just the fd we've initialized, rather than including
30414         the extra space used for alignment.
30416 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30418         uniwbrk/u32-wordbreaks-tests: fix copyright
30419         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30421         dup2: doc and test for Android bug
30422         Reported by Kevin Cernekee in:
30423         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30424         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30425         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30427 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30429         Replace dup2() on Android
30430         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30431         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30432         fails.  Using rpl_dup2() fixes this because it has an explicit test
30433         for this condition.
30435 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30437         Android doesn't define RLIM_SAVED_*
30438         Portability problem reported by Kevin Cernekee in:
30439         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30440         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30441         Mention the portability problem.
30442         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30443         Define if not defined.
30444         * m4/dup2.m4 (gl_FUNC_DUP2):
30445         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30446         Likewise.
30448 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30450         vasnprintf-posix-tests: use consistent test
30451         * tests/test-vasnprintf-posix.c (test_function):
30452         Use "<" in assert instead of "<=", for consistency with other tests.
30454 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30456         printf, isinf, etc.: noncanonical != NaN
30457         Do not require that isinf, printf, etc. treat noncanonical
30458         values as NaNs.  Instead, require only that they do not crash.
30459         Problem reported by Joseph Myers in:
30460         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
30461         * doc/posix-functions/dprintf.texi (dprintf):
30462         * doc/posix-functions/fprintf.texi (fprintf):
30463         * doc/posix-functions/isfinite.texi (isfinite):
30464         * doc/posix-functions/isinf.texi (isinf):
30465         * doc/posix-functions/isnan.texi (isnan):
30466         * doc/posix-functions/printf.texi (printf):
30467         * doc/posix-functions/snprintf.texi (snprintf):
30468         * doc/posix-functions/sprintf.texi (sprintf):
30469         * doc/posix-functions/vdprintf.texi (vdprintf):
30470         * doc/posix-functions/vfprintf.texi (vfprintf):
30471         * doc/posix-functions/vprintf.texi (vprintf):
30472         * doc/posix-functions/vsnprintf.texi (vsnprintf):
30473         * doc/posix-functions/vsprintf.texi (vsprintf):
30474         Document this.
30475         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
30476         * m4/isinf.m4 (gl_ISINFL_WORKS):
30477         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
30478         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
30479         * tests/test-isfinite.c (test_isfinitel):
30480         * tests/test-isinf.c (test_isinfl):
30481         * tests/test-isnan.c (test_long_double):
30482         * tests/test-isnanl.h (main):
30483         * tests/test-snprintf-posix.h (test_function):
30484         * tests/test-sprintf-posix.h (test_function):
30485         * tests/test-vasnprintf-posix.c (test_function):
30486         * tests/test-vasprintf-posix.c (test_function):
30487         Test only that noncanonical values do not cause crashes, not that
30488         they are treated as NaNs.  In some cases this means a larger
30489         output buffer is needed.
30491 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
30493         fts: remove redundant close() (trivial)
30494         * lib/fts.c (fts_read): Remove redundant call to close().
30495         Spotted by coverity.
30497 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30499         getdtablesize: port better for Android
30500         Problem reported by Kevin Cernekee in:
30501         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
30502         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
30503         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
30504         Instead, just use getrlimit, taking care to avoid Cygwin bug.
30506         poll: fixes for large fds
30507         * lib/poll.c (poll): Don't check directly for NFD too large.
30508         Don't rely on undefined behavior in FD_SET when an arg exceeds
30509         FD_SETSIZE.  Always set revents afterwards, even if to zero.
30510         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
30511         as that makes the test a bit stricter.
30513 2015-02-19  Kevin Cernekee  <cernekee@google.com>
30515         fcntl: Fix cross compiling
30516         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
30517         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
30519 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
30521         dup2, fcntl: cross-compile better for Android
30522         Problem reported by Kevin Cernekee in:
30523         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
30524         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
30525         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
30526         there's little need to cross-compile for older kernels nowadays.
30527         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
30528         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
30530 2015-02-18  Pádraig Brady  <P@draigBrady.com>
30532         getopt: don't crash on memory exhaustion
30533         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
30534         memory exhaustion.  In the _LIBC case we use alloca() as is
30535         already done in glibc, so we don't need to consider the separate
30536         error path in that awkward case.  Also fix a memory leak when
30537         ambiguous options are present.
30538         Reported by Tobias Stoeckmann
30540 2015-02-17  Mike Miller  <mtmiller@ieee.org>
30542         tempname: allow compilation with C++ (trivial)
30543         * lib/tempname.h [C++]: Specify extern "C" linkage.
30544         * lib/tempname.h (try_tempname):
30545         * lib/tempname.c (__try_tempname, __gen_tempname):
30546         Rename 'try' to 'tryfunc'.
30548 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
30550         dup2, fcntl: port to AIX
30551         * m4/dup2.m4 (gl_FUNC_DUP2):
30552         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30553         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
30554         The former works on AIX 7.1 but the latter does not.
30555         Also, this may work better with Android; see:
30556         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
30558 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
30560         getdtablesize, dup2, fcntl: port to Android
30561         Problem reported by Kevin Cernekee in:
30562         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
30563         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
30564         Mention that getdtablesize doesn't work on Android.
30565         * lib/getdtablesize.c: Use getrlimit substitute only if
30566         getdtablesize is declared.  This should suffice for Cygwin
30567         while not breaking Android.
30568         * m4/dup2.m4 (gl_FUNC_DUP2):
30569         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30570         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
30571         standardized but the latter is not, and sysconf works on Android.
30572         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
30573         Also check that getdtablesize is declared.
30574         This removes the need for a special case for Android.
30576 2015-02-16  Kevin Cernekee  <cernekee@google.com>
30578         localename: Implement gl_locale_name_thread_unsafe for Android
30579         * lib/localename.c: Android API level >= 21 supports two hardcoded
30580         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
30581         the internal __locale_t struct.
30583 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
30585         fts: avoid crash when a cycle is added while traversing
30586         This could be triggered by auto-mounting a recursive bind mount.
30587         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
30588         * lib/fts.c (fts_read): Avoid removing the original hash table item
30589         when leaving a directory that caused a cycle, and preserve the FTS_DC
30590         flag.
30592 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30594         uniname/uniname: support character alias
30595         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30596         Generate one-way mapping from aliases to codepoints in the
30597         generated tables.  Special case variation selectors to reduce
30598         table size.
30599         * lib/uniname/uniname.c (unicode_character_name): Special case
30600         variation selectors.
30601         (unicode_name_character): Special case variation selectors and
30602         their aliases.
30603         * lib/uniname/uninames.h: Regenerate.
30604         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
30605         * modules/uniname/uniname-tests (Files): Add
30606         tests/uniname/NameAliases.txt.
30607         * tests/uniname/test-uninames.c: Mark as static.
30608         (ALIASLEN): Define.
30609         (struct unicode_alias): New struct.
30610         (unicode_aliases): New variable.
30611         (fill_aliases): New function.
30612         (test_alias_lookup): New test function.
30613         (main): Run the 'test_alias_lookup' test if the second argument is
30614         given.
30615         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
30616         second argument.
30618 2015-02-11  Kevin Cernekee  <cernekee@google.com>
30620         Fix FILE struct compatibility with Android API level >= 21
30621         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
30622         __sferror.  Recent versions of Bionic's stdio.h no longer define
30623         __sferror.
30624         * lib/fbufmode.c: Likewise.
30625         * lib/fflush.c: Likewise.
30626         * lib/fpurge.c: Likewise.
30627         * lib/freadable.c: Likewise.
30628         * lib/freadahead.c: Likewise.
30629         * lib/freading.c: Likewise.
30630         * lib/freadptr.c: Likewise.
30631         * lib/freadseek.c: Likewise.
30632         * lib/fseeko.c: Likewise.
30633         * lib/fseterr.c: Likewise.
30634         * lib/fwritable.c: Likewise.
30636         Assume unbroken ungetc() on Android
30637         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
30638         test case passed when running on an Android host, and the code
30639         hasn't really changed since 2009.
30641         getdtablesize: Fix Android build
30642         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
30643         versions have this symbol in the .so library (at least 32-bit
30644         platforms) but are missing the declaration in the header file,
30645         causing the m4 logic to guess incorrectly.
30647         localename: Fix Android build
30648         * modules/localename (Depends-on): Add langinfo.
30650         getugroups: Fix Android build
30651         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
30652         functions.
30654         euidaccess: Fix Android build
30655         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
30656         AT_EACCESS gets declared.
30658         linkat_nofollow: Add fallback case for cross compiling
30659         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30661         net_if: Handle content-free <net/if.h> system headers
30662         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30663         struct if_nameindex.  If not, enable the replacement header.
30665         signal_h: Fix Android build
30666         * lib/signal.in.h: Add Android to the list of platforms that declare
30667         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30669         duplocale: Fix Android build of duplocale-tests
30670         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30671         is included by test-duplocale.c (but not by duplocale.c).
30672         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30673         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30674         * doc/posix-headers/monetary.texi: Add Android to the list of
30675         platforms missing monetary.h.
30677 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30679         tests: avoid recent -Werror=unused-variable regression in test-locale
30680         * tests/test-locale.c (main): Reference the variable to avoid the
30681         "unused variable" warning.
30683 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30685         maint: various whitespace cleanups in tempname
30686         * lib/tempname.c: Normalize spacing and line length.
30687         * lib/tempname.h: Likewise.
30688         * modules/tempname: Likewise.
30690 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30692         tests: provide returns_() to simplify exit status checking
30693         * tests/init.sh (returns_): A new function for use in tests,
30694         to allow for easier checking of return values, where you expect
30695         a command to exit with failure status.  By checking for a particular
30696         exit code, you don't hide any crashes for example.
30698 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30700         mountlist: only use libmount when specified
30701         There are currently many shared libs dependencies introduced by
30702         libmount with associated runtime and virt mem overhead.
30703         Therefore don't enable by default.
30704         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30706 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30708         uniname/unimame-tests: don't link with -lunistring
30709         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30710         $(LIBUNISTRING).  Document the rationale why we need to
30711         conditionalize the test.
30713 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30715         fstrcmp: don't assume strlen < INT_MAX
30716         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30717         (uintptr_t): Remove, as we're now assuming stdint.
30718         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30719         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30720         if the input string is long.
30721         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30722         uintptr_t to size_t when the underlying value is a pointer casted
30723         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30724         * modules/fstrcmp (Depends-on): Add stdint.
30726         diffseq: prefer ptrdiff_t to ssize_t
30727         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30728         ptrdiff_t is the natural type for signed indexes.
30729         On a few older platforms, ssize_t is narrower than size_t.
30731         xalloc: fix typo that suppressed warnings
30732         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30733         This typo, introduced a couple of years ago, mistakenly suppressed
30734         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30735         -Wmissing-declarations warnings.
30737         full-read: fix license notice typo
30738         * lib/full-read.h: Remove a stray line in the license notice.
30739         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30741         crypto/gc: fix a -Wswitch warning
30742         Reported by Bruce Korb in:
30743         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30744         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30746 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30748         gnulib-tool: fix handling of patch(1) diagnostics
30749         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30750         as otherwise gnulib-tool will reparse that output and attempt
30751         to lookup modules.
30753 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30755         bootstrap: exit immediately upon gnulib-tool failure
30756         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30757         This was noticed when gnulib-tool exited early due to failure
30758         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30759         but various confusing errors were then given as the build proceeded.
30761 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30763         symlinkat: include all required header files
30764         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30765         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30766         Reported at https://savannah.gnu.org/bugs/index.php?44151
30767         and by Jack Howarth.
30769 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30771         localename: support Solaris 12 and illumos
30772         * lib/localename.c (gl_locale_name_thread_unsafe): call
30773         getlocalename_l() on newer __sun platforms.
30774         Reported by Alexander Pyhalov.
30775         Fix suggested by Rich Burridge.
30777 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30779         locale: fix tests on illumos (trivial)
30780         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30781         so move from global scope to main().
30783 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30785         unictype: avoid undefined left-shift behavior
30786         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30787         gcc's -fsanitize=shift and running its tests triggered:
30788           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30789             places cannot be represented in type 'int'
30790         Cast LHS to 'unsigned int' after integer promotion.
30791         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30792         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30794 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30796         libunistring: bump version of unitypes dependants
30797         Due to the header file search order, all the headers which depend
30798         on unitypes.h need to be generated, when the preinstalled
30799         libunistring is older.
30800         * modules/unicase/base (configure.ac): Bump minimum version to
30801         0.9.4.
30802         * modules/uniconv/base (configure.ac): Likewise.
30803         * modules/unilbrk/base (configure.ac): Likewise.
30804         * modules/uninorm/base (configure.ac): Likewise.
30805         * modules/unistdio/base (configure.ac): Likewise.
30806         * modules/unistr/base (configure.ac): Likewise.
30807         * modules/uniwbrk/base (configure.ac): Likewise.
30808         * modules/uniwidth/base (configure.ac): Likewise.
30810 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30812         unictype/category-none: fix link with libunistring
30813         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30814         prefixed with "libstring_" when compiled as part of libunistring.
30815         To avoid undefined symbol at link time, increase the minimum
30816         version when the dependant modules are updated.
30817         * modules/unictype/category-none (configure.ac): Bump minimum
30818         version to 0.9.5.
30820 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30822         unitypes: fix build with installed libunistring
30823         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30824         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30825         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30827 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30829         time: port to MinGW32 3.21
30830         Problem reported by Eli Zaretskii in:
30831         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30832         * lib/time.in.h:
30833         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30834         * modules/time (Depends-on):
30835         Fall back on unistd.h if the other include files don't define
30836         struct timespec.
30838         update-copyright: apply to self
30839         * build-aux/update-copyright: Fix copyright date.  How ironic!
30841 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30843         libunistring: update to Unicode 7.0.0
30844         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30845         Manichaean names.
30846         * lib/unictype/joininggroup_name.h: Likewise.
30847         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30848         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30849         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30850         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30851         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30852         enum values.
30853         (is_property_alphabetic): Accept newly added characters to
30854         cuneiform numeric signs.
30855         (is_property_default_ignorable_code_point): Reject U+0605.
30856         (FIELDLEN): Increase from 120 to 160.
30857         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30858         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30859         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30860         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30861         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30862         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30863         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30864         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30865         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30866         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30867         U+1E8D0..U+1E8D6.
30868         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30869         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30870         lib/uniwidth/width.c.
30871         * all generated files under lib/uni* and tests/uni*: Regenerate.
30873 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30875         libunistring: update to Unicode 6.3.0
30876         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30877         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30878         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30879         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30880         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30881         Update WB5, WB9, WB10, WB13a, and WB13b.
30882         * tests/uniwbrk/test-uc-wordbreaks.c
30883         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30884         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30885         (UC_BIDI_PDI): New enumeration values.
30886         (bidi_category_byname): Support those enum values.
30887         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30888         dedicated property assigned.
30889         (is_property_case_ignorable): Check 0x0027.
30890         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30891         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30892         (output_wbp): Support those enum values.
30893         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30894         (UC_BIDI_PDI): New enumeration values.
30895         * lib/unictype/bidi_byname.gperf: Add those property names.
30896         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30897         U+180E, U+1A1B, and U+2066..U+2069.
30898         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30899         lib/uniwidth/width.c.
30900         * all generated files under lib/uni* and tests/uni*: Regenerate.
30902 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30904         libunistring: update to Unicode 6.2.0
30905         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30906         (unilbrk_table): Adjust table size.
30907         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30908         for LBP_RI.
30909         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30910         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30911         Normalize table index skipping ignored properties.
30912         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30913         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30914         the table.
30915         * lib/uniwbrk/wbrktable.h: Adjust table size.
30916         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30917         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30918         Support rule GB8a.
30919         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30920         * tests/unigbrk/test-uc-is-grapheme-break.c
30921         (graphemebreakproperty_to_string): Support GBP_RI.
30922         * tests/uniwbrk/test-uc-wordbreaks.c
30923         (wordbreakproperty_to_string): Support WBP_RI.
30924         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30925         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30926         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30927         LBP_AL to LBP_ID.
30928         (output_lbp): Support LBP_RI.
30929         (WBP_RI): New enumeration value.
30930         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30931         (output_wbp): Support WBP_RI.
30932         (GBP_RI): New enumeration value.
30933         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30934         * all generated files under lib/uni* and tests/uni*: Regenerate.
30936 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30938         libunistring: update to Unicode 6.1.0
30939         * lib/gen-uni-tables.c (output_joining_group): Switch to
30940         3-level table to accommodate joining groups defined with higher
30941         codepoint value.  Since there are only 88 groups defined in
30942         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30943         (get_lbp): Update for Unicode 6.1.0.
30944         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30945         3-level table.
30946         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30947         joining group name.
30948         * lib/unictype/joininggroup_name.h: Likewise.
30949         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30950         (unilbrk_table): Adjust table size.
30951         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30952         for LBP_HL.
30953         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30954         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30955         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30956         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30957         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30958         U+302E..U+302F.
30959         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30960         lib/uniwidth/width.c.
30961         * all generated files under lib/uni* and tests/uni*: Regenerate.
30962         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30964 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30966         uniwbrk/u32-wordbreaks-tests: add conformance test
30967         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30968         tests/uniwbrk/test-uc-wordbreaks.c,
30969         tests/uniwbrk/test-uc-wordbreaks.sh, and
30970         tests/uniwbrk/WordBreakTest.txt.
30971         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30972         test-uc-wordbreaks to $(check_PROGRAMS), and define
30973         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30974         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30975         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30977 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30979         uniwbrk: ignore Extended/Format characters at BOL not BOS
30980         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30981         characters if the previous character property is one of
30982         WBP_NEWLINE, WBP_CR, and WBP_LF.
30984 2015-01-11  Jim Meyering  <meyering@fb.com>
30986         test-strstr.c: avoid a trivial leak
30987         * tests/test-strstr.c (main): Free haystack.
30989         update-copyright: recognize groff's \(co marker
30990         * build-aux/update-copyright (circle_c_re): Also accept
30991         uses of \(co, as found in gzip.1.
30993 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30995         maint.mk: fix compatibility with OS X nm
30996         * top/maint.mk (_gl_tight_scope): Use the -g option to
30997         show exported items rather than the -e option which is
30998         ignored on all platforms except OS X where it gives an error.
30999         Reported by Assaf Gordon.
31001 2015-01-07  KO Myung-Hun  <komh@chollian.net>
31003         localcharset: improve charset detection on OS/2
31004         Use system codepage when appropriate.  Map OS/2 codepages to
31005         GNU canonical charset names if possible.
31006         * lib/config.charset: Don't output aliases if "$os" is os2*.
31007         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
31008         result for OS/2.
31009         (locale_charset) [OS2]: Use system codepage if codeset is omitted
31010         from the locale name which is neither "C" nor "POSIX".
31012 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31014         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
31015         This reverts the last patch but one, as it shouldn't be needed now
31016         that the typo is fixed.
31017         * lib/count-leading-zeros.h (count_leading_zeros_ll):
31018         * lib/count-trailing-zeros.h:
31019         * lib/count-one-bits.h:
31020         Go back to using 64-bit intrinsics.
31022         count-leading-zeros: fix pragma typos
31023         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
31024         Fix typos in declaration of intrinsics when _MSC_VER.
31026 2015-01-06  Pádraig Brady  <P@draigBrady.com>
31028         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
31029         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
31030         intrinsics in this case.
31031         * lib/count-trailing-zeros.h: Likewise.
31032         * lib/count-one-bits.h: Likewise.
31034 2015-01-06  Daiki Ueno  <ueno@gnu.org>
31036         uniname/uniname: update to Unicode 7.0.0
31037         To accommodate new characters added since Unicode 5.1.0, this
31038         changes the internal representation of codepoint ranges.
31039         Previously, we grouped codepoint ranges by manually assigned 4-bit
31040         tag, which only allowed 16 groups.  This removes the limitation by
31041         switching to binary search on a table.  For the detail rationale
31042         and the benchmark results, see:
31043         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
31044         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
31045         to INDEX, as it no longer represents a codepoint.
31046         (range): New struct.
31047         (main): Switch to intervals list from a bit-pattern based
31048         classification.
31049         * lib/uniname/uninames.h: Regenerate.
31050         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
31051         * modules/uniname/base (configure.ac): Bump minimum version to
31052         0.9.5.
31053         * modules/uniname/uniname (configure.ac): Bump minimum version to
31054         0.9.5.
31056 2015-01-05  Eric Blake  <eblake@redhat.com>
31058         doc: update INSTALL from autoconf
31059         * doc/install.texi: Resync from autoconf.
31060         * doc/INSTALL: Reflect recent autoconf update.
31061         * doc/INSTALL.ISO: Likewise.
31062         * doc/INSTALL.UTF-8: Likewise.
31064         stdio: fix use of PRIdMAX on modern mingw
31065         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
31066         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
31067         to work with modern mingw.
31069 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
31071         pthread: detect git mingw builds with only partial pollution
31072         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
31073         pollution, as seen temporarily in Fedora 21.
31075 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31077         lib-symbol-versions: cache script check
31078         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
31079         Cache the check for linker version scripts.
31080         From a suggestion by Christophe Curis in:
31081         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
31083 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
31085         maint: fix grammar nits in propername (trivial change)
31086         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
31087         and use an adequate verb and tense.
31089 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
31091         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31092         * module/gendocs: Add 'doc/gendocs_template_min'.
31094         * build-aux/gendocs.sh: Change email addresses and upstream URLs
31095         from to Gnulib's.
31096         (scripturl, templateurl): Adjust accordingly.
31098 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31100         gendocs: copyright date and version fix
31101         Reported by Karl Berry in:
31102         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
31103         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
31104         Fix copyright date.
31105         * build-aux/gendocs.sh (scriptversion): Update.
31107 2015-01-01  Karl Berry  <karl@gnu.org>
31109         * doc/install.texi,
31110         * build-aux/mdate-sh,
31111         * build-aux/depcomp,
31112         * build-aux/config.guess,
31113         * build-aux/config.sub,
31114         * build-aux/ar-lib,
31115         * build-aux/compile: revert copyright updates (some from last
31116         year) in slaved files.
31118 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31120         version-etc: new year
31121         * doc/gnulib.texi:
31122         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
31123         * all files: Run 'make update-copyright'.
31125 2014-12-30  Pádraig Brady  <P@draigBrady.com>
31127         xstrtol: ensure errno is reset
31128         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
31129         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
31131         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
31133 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31135         utimens: fix dependency typo
31136         * modules/utimens (Depends-on): Remove 'assure'.
31137         This bug was introduced in the recent 'assure' patch.
31139 2014-12-22  Eric Blake  <eblake@redhat.com>
31141         docs: mention why libgen.h is bad
31142         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
31144 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31146         assure: new module
31147         This works better than 'assert' when compiling with -DNDEBUG,
31148         as it avoids some compiler diagnostics in that case.
31149         Reported by Norihiro Tanaka in:
31150         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
31151         * MODULES.html.sh (func_all_modules): Add 'assure'.
31152         * lib/assure.h, modules/assure: New files.
31153         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
31154         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
31155         Prefer 'assure' to 'assert'.
31156         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
31157         * modules/chdir-long, modules/cycle-check, modules/fchdir:
31158         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
31159         Depend on 'assure'.
31161 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
31163         stdalign: port better to HP compilers
31164         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
31165         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
31167         stdalign: work around Apple GCC 4.0 bug
31168         Reported by David Fang in:
31169         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
31170         * lib/stdalign.in.h (_Alignas):
31171         * m4/stdalign.m4 (gl_STDALIGN_H):
31172         Do not use aligned attribute with GCC 4.0 on Apple.
31174 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31176         getcwd: fix test failure on OS X 10.9
31177         * m4/getcwd-path-max.m4: Avoid the replacement if it
31178         won't be effective due to the PATH_MAX limitation of lstat().
31179         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
31180         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
31181         for this case for use in tests, and also exclude this
31182         case when setting REPLACE_GETCWD.
31183         * tests/test-getcwd.c (test_long_name): Restrict the
31184         tested path length so that lstat() will not be passed
31185         a path greater than PATH_MAX.
31186         Also key a test condition on HAVE_OPENAT_SUPPORT rather
31187         than AT_FDCWD, since the latter is set unconditionally
31188         since Sep 2009 in commit 52c658e9.
31190 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
31192         parse-datetime: avoid a compiler warning with byacc (trivial)
31193         * lib/parse-datetime.y (yylex): Use the same prototype in the
31194         function definition as the declaration, to avoid a -Wstrict-prototypes
31195         warning seen when using byacc.
31197 2014-12-12  Daiki Ueno  <ueno@gnu.org>
31199         unicase/locale-language-tests: fix LOCALE_FR test
31200         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
31201         a French locale with traditional encoding.
31202         Reported by umerqayam in:
31203         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
31205 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31207         stddef: support C11's max_align_t
31208         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
31209         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
31210         Do not undef, as that might cause max_align_t to be defined twice.
31211         Instead, change use to check for _GL_STDDEF_WINT_T too.
31212         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
31213         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
31214         Check for max_align_t.
31215         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
31216         * modules/stddef-tests (Depends-on): Add stdalign.
31217         * tests/test-stddef.c: Test max_align_t.
31219 2014-12-11  Daiki Ueno  <ueno@gnu.org>
31221         unistd: fix iOS check conditional
31222         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
31223         as 0 or 1 in <TargetConditionals.h>, and the previous check always
31224         yielded true on non-iOS environment.
31225         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
31226         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
31227         they are defined.
31229 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
31231         posixtm: avoid compiler warning in a better way
31232         * lib/posixtm.c (IF_LINT): Remove.
31233         (year, posix_time_parse):
31234         Return true (not 0) if successful.  All callers changed.
31235         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
31237 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31239         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
31240         started with '/' on EMX.
31242 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31244         freopen: workaround freopen() on OS/2 kLIBC
31245         * lib/freopen.c (rpl_freopen): Workaround.
31246         * m4/freopen.m4: Add os2* case.
31248         get_shared_library_fullname: port to EMX
31249         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
31250         on EMX, respectively.
31251         (_DLL_InitTerm): New on EMX.
31252         (get_shared_library_fullname): Implement on EMX.
31254         find_executable: port to EMX
31255         * lib/progreloc.c (find_executable): Implement on EMX.
31257         sched: check struct sched_param in spawn.h as well
31258         * lib/sched.in.h: Include spawn.h on kLIBC.
31259         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
31261 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
31263         bootstrap: Allow perl modules in $buildreq
31264         * build-aux/bootstrap: Add case for perl modules.
31266 2014-12-08  Pádraig Brady  <P@draigBrady.com>
31268         apply _GL_ATTRIBUTE_PURE to some inline functions
31269         clang 3.4.2 flagged these inline functions as pure
31270         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
31271         * lib/sig-handler.h (get_handler): Likewise.
31272         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
31273         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
31275 2014-12-06  Pádraig Brady  <P@draigBrady.com>
31277         vasnprintf: fix potential use after free
31278         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
31279         flagged by clang-analyzer 3.4.2.
31281 2014-12-05  Pádraig Brady  <P@draigBrady.com>
31283         filevercmp, posixtm: avoid compiler warnings with -O3
31284         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
31285         * lib/posixtm.c: (IF_LINT): Define.
31286         (posix_time_parse): Use it to void a "may be used uninitialized"
31287         warning, seen only with -O3.
31289 2014-12-05  Bruno Haible  <bruno@clisp.org>
31291         Fix LDBL80_WORDS macro on big endian platforms.
31292         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
31293         LDBL80_WORDS macro.
31294         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31295         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31296         * tests/test-isfinite.c (test_isfinitel): Likewise.
31297         * tests/test-isinf.c (test_isinfl): Likewise.
31298         * tests/test-isnan.c (test_long_double): Likewise.
31299         * tests/test-isnanl.h (main): Likewise.
31300         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
31301         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
31302         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
31303         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
31304         Reported by Pádraig Brady.
31306 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
31308         git-version-gen: do not print new line characters
31309         * build-aux/git-version-gen: Use printf instead of echo and tr.
31311         gnulib-tool: recognize x:* as an absolute path
31312         * gnulib-tool (func_gnulib_dir): Add ?:* case.
31313         (func_relconcat): Likewise.
31315 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
31317         argp: avoid extraneous translation and mem leak with empty pre doc
31318         * lib/argp-help.c (argp_doc): Never translate the empty string,
31319         when "\v" is the first or last character of the string, as that
31320         has a reserved meaning to return the header info from a po file.
31321         This also fixes a small memory leak in the !post case.
31322         The issue can be seen with this command for example:
31323         LC_MESSAGES=en_US grub2-mknetdir --help
31325 2014-11-27  Daiki Ueno  <ueno@gnu.org>
31327         uniname/uniname-tests: skip if system's libunistring is used
31328         * modules/uniname/uniname-tests (Makefile.am): Skip test if
31329         uniname/uniname module is not compiled.
31331 2014-11-27  Pádraig Brady  <P@draigBrady.com>
31333         printf: fix configure check on big endian systems
31334         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
31336 2014-11-22  Daiki Ueno  <ueno@gnu.org>
31338         pipe-filter-gi, pipe-filter-ii: port to AIX
31339         On AIX 7.1, 'select' is defined as static and cannot be referred
31340         to from inline function.
31341         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31342         the definition...
31343         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31344         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31346 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31348         gitlog-to-changelog: add --until
31349         * build-aux/gitlog-to-changelog: Support new --until option.
31350         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31352 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31354         extern-inline: update commentary about GCC bugs
31355         * m4/extern-inline.m4: Add another GCC bug number to comments.
31357 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31359         gen-uni-tables: untabify
31360         * lib/gen-uni-tables.c: Untabify.
31362 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31364         gen-uni-tables: check out-of-range values added to 3-level tables
31365         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31366         (output_joining_type, output_ident_category): Check out-of-range
31367         values added to 3-level tables.
31369 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31371         gen-uni-tables: utilize 'assert'
31372         * lib/gen-uni-tables.c: Include <assert.h>.
31373         (output_category, output_combclass, output_decimal_digit_test)
31374         (output_decimal_digit, output_digit_test, output_digit)
31375         (output_numeric, get_mirror_value, fill_properties)
31376         (fill_property30, is_property_alphabetic)
31377         (is_property_default_ignorable_code_point)
31378         (is_property_uppercase, is_property_lowercase)
31379         (is_property_cased, is_property_case_ignorable)
31380         (is_property_changes_when_lowercased, is_property_iso_control)
31381         (is_property_math, fill_arabicshaping, output_joining_group)
31382         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31383         (output_wbp, fill_org_gbp, get_decomposition)
31384         (output_decomposition, fill_composition_exclusions)
31385         (debug_output_composition_tables, output_composition_tables)
31386         (redistribute_casefolding_rules, output_casing_rules): Use
31387         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31388         reporting.
31390 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31392         gen-uni-tables: cosmetic improvements
31393         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31394         variables specification.
31395         (is_outdigit): Remove unused function.
31397 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31399         fcntl-h-tests: port to PA-RISC GNU/Linux
31400         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31402 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31404         fts: port to C89
31405         Problem reported for MSVC 16 by Gisle Vanem in:
31406         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31407         * lib/fts.c (fts_build): Avoid declaration before statement.
31409 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31411         unistd: port to iOS
31412         Problem reported by André Klitzing in:
31413         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31414         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31416 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31418         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31419         Problem reported by Alan Modra in:
31420         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31421         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31422         Always cast the function arg, reverting this part of the previous
31423         change.
31425 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31427         obstack: avoid potentially-nonportable function casts
31428         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31429         Remove, replacing with ...
31430         (call_chunkfun, call_freefun): New static functions.
31431         All uses changed.  Avoid potentially-nonportable casts.
31432         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31433         (_obstack_begin_worker): Omit last two args, since they
31434         rely on potentially-nonportable casts.  All callers changed.
31435         * lib/obstack.h (_OBSTACK_CAST): New macro.
31436         Use it everywhere the old API used a potentially-nonportable cast.
31437         The new API doesn't cast.
31438         (struct obstack): Use unions rather than requiring
31439         potentially-nonportable casts.
31440         (obstack_chunkfun, obstack_freefun): Return void.
31442 2014-11-03  Alan Modra  <amodra@gmail.com>
31444         obstack: fix macro return values
31445         * lib/obstack.h (obstack_next_free): Return void *.
31446         (obstack_1grow_fast, obstack_blank_fast): Return void.
31447         For __GNUC__ macros:
31448         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31449         For !__GNUC__ macros:
31450         (obstack_make_room, obstack_grow, obstack_grow0)
31451         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
31453 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31455         obstack: do not assume system-supplied obstack is size_t safe
31456         * m4/obstack.m4: New file.
31457         * modules/obstack (Files): Add it.
31459         obstack: port to platforms that #define __alignof__
31460         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
31461         not if !_LIBC.  We don't know of any platforms that #define
31462         __alignof__, but it might be useful in tests.  Conversely,
31463         glibc assumes GCC.
31465 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31467         linkat: don't unconditionally replace on GNU/Linux
31468         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
31469         was redundant for a few reasons.  It was present to support compiling
31470         on new systems but running on the old narrow window of Linux 2.6.1[67].
31471         It setup and cleaned up test files which weren't actually used.
31472         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
31473         implicit in the following check.
31475 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31477         linkat: wrap to handle symlinks on OS X 10.10
31478         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
31479         but not usable because it doesn't support creating hardlinks
31480         to symlinks.  Therefore add a generic test for this capability
31481         and fallback to our emulation if linkat() fails with ENOTSUP.
31483 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31485         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
31486         * doc/posix-functions/open.texi (open):
31487         * doc/posix-functions/openat.texi (openat):
31488         Document that these functions do not set errno to ELOOP when
31489         a symlink is opened with O_NOFOLLOW.
31491 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31493         obstack: add NEWS entry for recent incompatible changes
31494         * NEWS: Describe recent changes.
31496 2014-10-30  Pádraig Brady  <P@draigBrady.com>
31498         mountlist: don't use libmount to decide on dummy/remote
31499         * lib/mountlist.c (read_file_system_list): Don't use the libmount
31500         routines to determine whether a file system is dummy or remote,
31501         as they're not currently compatible.  For example the remoteness
31502         is determined on file system type (for which the list seems incomplete),
31503         rather than simply checking for a ':' in the device name.
31504         Also libmount currently determines that 'tmpfs' is a dummy file system
31505         even though it has associated storage.
31507 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31509         obstack: prefer __alignof__ to alignof
31510         This is for portability to pre-4.7 GCC when compiling glibc.
31511         See Joseph S. Myers in:
31512         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
31513         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
31514         New macro, defined by including and using <alignof.h>.
31515         (MAX): New macro.
31516         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
31517         Do not use enums as they are not portable to some broken compilers.
31518         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
31520         obstack: prefer alignof to calculating alignments by hand
31521         * lib/obstack.c: Include <stdalign.h>.
31522         (struct fooalign): Remove.
31523         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
31524         * modules/obstack (Depends-on): Add stdalign.
31526 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31528         obstack: use size_t alignments and check for overflow
31529         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
31530         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
31531         * lib/obstack.h (struct obstack.alignment_mask):
31532         Use _OBSTACK_SIZE_T, not int, for alignments.
31533         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
31534         overflows, e.g., when adding the alignment.
31536 2014-10-29  Alan Modra  <amodra@gmail.com>
31538         obstack: 64-bit obstack support, part 3
31539         This finally enables full 64-bit obstack support.  The glibc
31540         shared library specific code is removed from obstack.c too, and
31541         the error handling code conditionally compiled under control of
31542         another macro, _OBSTACK_NO_ERROR_HANDLER.
31543         * lib/obstack.h: Include string.h earlier.
31544         (_OBSTACK_INTERFACE_VERSION): Define.
31545         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
31546         * lib/obstack.c: Don't include shlib-compat.h.
31547         (OBSTACK_INTERFACE_VERSION): Delete.
31548         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
31549         glibc code is compatible with version 2.  Don't include stdio.h for
31550         __GNU_LIBRARY.
31551         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
31552         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
31553         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
31554         glibc shared library specific source.
31556         obstack: 64-bit obstack support, part 2
31557         This gets us 4G obstack support, without changing ABI
31558         compatibility, apart from possibly introducing some
31559         signed/unsigned comparison warnings in code that uses obstack.h.
31560         a) Replace "int" size parameters, return values, and macro local vars
31561            with _OBSTACK_SIZE_T, an "unsigned int" for now.
31562         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
31563         c) Make all obstack macros checking available room use obstack_room.
31564            "next_free + desired > chunk_limit" may wrap the lhs for chunks
31565            allocated near the top of memory.
31566         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
31567         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
31568         in place of "int" size parameters, return values and local vars.
31569         (_CHUNK_SIZE_T): Define.
31570         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
31571         union use an _OBSTACK_SIZE_T integer type.
31572         For __GNUC__ versions of the following macros...
31573         (obstack_room): Rename local var.
31574         (obstack_make_room): Use obstack_room.
31575         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31576         obstack_int_grow, obstack_blank): Likewise.
31577         (obstack_finish): Use unsigned comparison when comparing aligned
31578         next_free against chunk_limit.
31579         (obstack_free): Cast OBJ to remove possible const qualifier.
31580         For !__GNUC__ versions of the following macros...
31581         (obstack_make_room): Use obstack_room.
31582         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31583         obstack_int_grow, obstack_blank): Likewise.
31584         (obstack_finish): Use unsigned comparision when comparing aligned
31585         next_free against chunk_limit.
31586         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
31587         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
31588         _OBSTACK_SIZE_T.
31589         (_obstack_begin, _obstack_begin_1): Likewise.
31590         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31591         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31593         obstack: 64-bit obstack support, part 1
31594         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31595            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31596            and "size_t" 64 bits.
31597         b) Consolidate _obstack_begin and _obstack_begin1 code.
31598         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
31599         use "size_t" rather than "long".
31600         (_obstack_begin, _obstack_begin1): Likewise.
31601         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
31602         obstack_chunkfun): Update alloc function casts.
31603         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
31604         (chunkfun_type, freefun_type): New typdefs.
31605         (_obstack_begin_worker): Split out from ..
31606         (_obstack_begin, _obstack_begin_1): ..here.
31608         obstack: tidy part 2
31609         a) Don't be concerned about "not polluting the namespace with stddef.h
31610            symbols" in obstack.h, since gnulib string.h includes stddef.h
31611            anyway, and it seems unlikely that anyone would care.
31612         b) Don't roll our own slow memcpy in _obstack_newchunk.
31613         c) Rename obstack_free to _obstack_free.  This makes the naming
31614            consistent with other obstack functions and obviates the need for
31615            __obstack_free.  Ancient obstack.c defined both obstack_free and
31616            _obstack_free.  We continue to do that for _LIBC via an alias.
31617         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
31618            is clever, but nowadays gcc warns on undefined macros.  You'll get
31619            an undefined macro warning if simulating an old gcc with -U__GNUC__
31620            -U__GNUC_MINOR__ -D__GNUC__=1.
31621         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
31622         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
31623         (__obstack_free): Delete, update refs.
31624         (_obstack_free): Rename from obstack_free.
31625         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
31626         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
31627         * lib/obstack.c: Don't include stddef.h.
31628         (COPYING_UNIT): Delete.
31629         (_obstack_begin): Formatting fix.
31630         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
31631         (_obstack_free): Rename from __obstack_free, update alias.  Move
31632         undef of obstack_free to where it is needed.
31634         obstack: tidy part 1
31635         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
31636            to me, and result in overlong lines after later patches.
31637         b) Move error handling code, to avoid a forward declaration and to
31638            simplify later patches in this series.
31639         * lib/obstack.h (struct obstack <temp>): Rename fields of union
31640         and update all uses.
31641         * lib/obstack.c: Include stdlib.h earlier.
31642         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
31643         in file.
31644         (print_and_abort): Remove now redundant forward declaration.
31646 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31648         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
31649         Without this change, in bleeding-edge fileutils Autoconf complains
31650         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
31651         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
31652         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
31653         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
31655 2014-10-24  Daiki Ueno  <ueno@gnu.org>
31657         iconv: avoid false detection of non-working iconv
31658         The INBUF arguments of iconv can be either 'const char **'
31659         or 'char **'.  If CC is g++, the difference causes a compile error
31660         and thus leads to a false detection of non-working iconv.
31661         Reported by Eli Zaretskii and Werner LEMBERG in:
31662         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31663         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31664         iconv.  Bump serial number.
31666 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31668         bootstrap: print more diagnostics for missing programs
31669         * build-aux/bootstrap: only suppress stderr when checking for
31670         alternative program names.  This supports programs issuing non
31671         standard error messages.
31673 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31675         bootstrap: only update the gnulib submodule
31676         * build-aux/bootstrap: Restrict the "submodule update" command
31677         to the gnulib path.
31679 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31681         symlinkat: port to AIX 7.1
31682         * doc/posix-functions/symlinkat.texi (symlinkat):
31683         Mention AIX porting problem.
31684         * lib/symlinkat.c: Always include errno.h.
31685         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31686         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31687         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31689         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31690         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31691         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31693         readlinkat: port to AIX 7.1
31694         * doc/posix-functions/readlink.texi (readlink):
31695         * doc/posix-functions/readlinkat.texi (readlinkat):
31696         Mention AIX porting problem.
31697         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31698         New function.
31699         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31700         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31702         * modules/readlinkat (configure.ac): Also compile replacement
31703         if REPLACE_READLINKAT.
31704         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31706 2014-10-12  Karl Berry  <karl@gnu.org>
31708         * doc/posix-functions/dirname.texi: remove spurious {.
31710 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31712         basename, dirname: Improve documentation.
31713         * doc/posix-functions/basename.texi: Mention dirname module and
31714         base_name() function.
31715         * doc/posix-functions/dirname.texi: Mention dir_name() and
31716         mdir_name() functions.
31717         Suggested by Werner LEMBERG <wl@gnu.org>.
31719 2014-09-24  Jim Meyering  <meyering@fb.com>
31721         exclude: declare exclude_patopts static
31722         * lib/exclude.c (exclude_patopts): Declare static,
31723         to avoid triggering a -Wmissing-prototypes warning.
31724         The alternative (declaring it in the .h file) would
31725         require publicizing the private "struct patopts".
31727 2014-09-21  Werner Lemberg  <wl@gnu.org>
31729         dirname: support compilation with C++
31730         * lib/dirname.h: Add necessary C linkage declarations.
31732 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31734         qsort_r: include <config.h>
31735         Problem reported by Tom G. Christensen in:
31736         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31737         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31739 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31741         avltree-list: avoid compiler warnings (trivial)
31742         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31743         -Werror=suggest-attribute=pure.
31744         * lib/gl_array_list.c: Likewise.
31745         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31746         declaration to avoid -Werror=missing-prototypes.  This is not added
31747         to a header as only exported for tests.  Add (void) to the
31748         check_invariants() call to indicate we're discarding the result
31749         in this context which avoids -Werror=unused-value.  Note we don't
31750         use ignore_value here to avoid a dependency as we know we'll not
31751         be adding __attribute__((warn_unused_result)) to check_invariants().
31752         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31754 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31756         qsort_r: new module, for GNU-style qsort_r
31757         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31759 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31761         strerror_r-posix: support compilation with C++
31762         * lib/strerror_r.c: Add necessary C linkage declarations.
31764 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31766         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31767         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31769 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31771         mountlist: use /proc/self/mountinfo when available
31772         Use libmount to propagate device IDs provided by Linux in
31773         /proc/self/mountinfo.  This will give more accurate output when
31774         using df in chroot'ed environments as the device IDs are not
31775         determined by stat() which may be inaccurate within the chroot.
31776         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31777         from util-linux to parse "/proc/self/mountinfo" or fall back to
31778         standard getmntent() processing.
31779         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31780         getmntent() is used, as is the case on GNU/Linux.
31782 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31784         users.txt: add cmogstored
31785         cmogstored has used gnulib since the beginning in 2012 to support
31786         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31788 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31790         Trivial change.
31791         * gnulib-tool: Use same options as build-aux/bootstrap to download
31792         PO files.
31794 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31796         Trivial change.
31797         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31799 2014-09-04  Eric Blake  <eblake@redhat.com>
31801         maintainer-makefile: add syntax check for useless ';;'
31802         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31804 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31806         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31807         Problem reported by Assaf Gordon in:
31808         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31809         Apparently Ubuntu is doing some fancy link-time optimization
31810         that doesn't work with -lpthread but does work with -pthread.
31811         Work around the bug by preferring -pthread to -lpthread.
31812         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31813         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31814         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31815         Treat -pthread like -lpthread.
31817 2014-09-04  Eric Blake  <eblake@redhat.com>
31819         error: drop spurious semicolon
31820         * lib/error.c (__error_at_line): Fix ';;'.
31822 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31824         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31825         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31826         Override AC_C_RESTRICT unconditionally.
31827         Update from autoconf, incorporating:
31828         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31829         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31831 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31833         manywarnings: add GCC 4.9 warnings
31834         Also, make it easier to maintain this in the future.
31835         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31836         -Wconditionally-supported, -Wdelete-incomplete,
31837         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31838         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31839         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31840         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31841         only for older GCC versions that need them.  Handle
31842         -Wnormalized=nfc specially, so that the 'comm' command used
31843         for maintenance doesn't get confused.
31845 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31847         vasnprintf: fix bugs in width computation
31848         * lib/vasnprintf.c (VASNPRINTF):
31849         Rework previous change, which introduced a bug,
31850         to avoid the warning in a different way.
31851         Avoid undefined behavior if the width arg is less than -INT_MAX.
31852         Avoid unnecessary use of HAS_WIDTH local.
31854 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31856         vasnprintf: Avoid signed/unsigned comparison warning.
31857         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31858         compare end addr of generated string w/ maximum end addr.
31860 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31862         parse-datetime: Avoid pointer difference.
31863         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31864         instead of calculating difference of pointers.  This removes an
31865         annoying warning, devoid of any use.
31867 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31869         qsort_r: new module, for GNU-style qsort_r
31870         This works even on FreeBSD, which has an incompatible qsort_r API.
31871         * MODULES.html.sh: Add it.
31872         * doc/glibc-functions/qsort_r.texi: It's now supported.
31873         * lib/qsort.c: New file, taken from glibc with minor changes
31874         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31875         removed.
31876         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31877         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31879         * modules/qsort_r, modules/qsort_r-tests: New files.
31880         * modules/stdlib (Makefile): Set up its defaults.
31881         * tests/test-qsort_r.c: New file.
31883 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31885         vla: new module
31886         GNU RCS can use this, mostly for documentation I expect.  See:
31887         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31888         * MODULES.html.sh: Add vla.
31889         * lib/vla.h, modules/vla: New files.
31891 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31893         localename: make gl_locale_name_thread really thread-safe on Windows
31894         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31895         "glthread/lock.h".
31896         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31897         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31899 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31901         getpass: don't assume struct termios
31902         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31903         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31904         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31906         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31907         Problem reported by Jonas 'Sortie' Termansen in:
31908         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31909         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31910         Implement via sysconf for platforms that lack getdtablesize.
31912         vararrays: modernize AC_C_VARARRAYS for C11
31913         This backports a change I recently made to Autoconf.
31914         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31915         VLAs are not supported, as this is what C11 does.  The old macro
31916         HAVE_C_VARARRAYS is still defined if they are supported, but is
31917         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31919 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31921         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31922         * build-aux/install-reloc (func_create_wrapper): Also wrap
31923         strerror-override, stat, stat.
31925 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31927         sys_select: fix FD_ZERO problem on Solaris 10
31928         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31929         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31930         to expand to an expression that invoked memset without necessarily
31931         including <string.h>.  The problem was that the first include
31932         defined _SYS_TIME_H, causing the second include to short-circuit.
31933         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31934         Also, fix what appears to be a cut-and-paste typo, by replacing
31935         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31936         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31938         accept: document Solaris 10 type glitch
31939         * doc/posix-functions/accept.texi (accept): Mention that
31940         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31942 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31944         extern-inline: port to FreeBSD, DragonFly
31945         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31946         is present if either __DragonFly__ or __FreeBSD__ is defined.
31947         FreeBSD problem reported by Andrey Borzenkov in:
31948         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31949         Also, worry about __APPLE__ only if __MACH__ is also defined,
31950         as this is more consistent with the rest of gnulib.
31951         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31952         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31954 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31956         regex: Make #if/#ifdef usage consistent for DEBUG
31957         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31958         of the inconsistent usage of #if and #ifdef as that works with
31959         both Glibc and Gnulib's style.
31961 2014-07-31  Eric Blake  <eblake@redhat.com>
31963         openat-die: use _Noreturn markup
31964         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31965         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31966         _Noreturn.
31968 2014-07-30  Eric Blake  <eblake@redhat.com>
31970         test-open: port to cygwin, which lacks Fortify
31971         * tests/test-open.h (ALWAYS_INLINE): New macro.
31972         (__always_inline): Don't abuse internal symbol on non-glibc.
31974 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31976         localename: Enforce declarations before statements.
31977         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31978         first statement.
31980 2014-07-18  Jim Meyering  <meyering@fb.com>
31982         test-userspec: don't look up numeric user names
31983         * tests/test-userspec.c: I found a system for which getpwnam("0")
31984         returned a pointer to a non-root user's entry, and that made the
31985         test fail.
31986         (T): Prefix each numeric input with "+", to inhibit lookup.
31988 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31990         localcharset, localename: MS-Windows support for non-default locales
31991         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31992         falling back on the default system codepage, try extracting
31993         the codepage from what 'setlocale' returns.  This allows to
31994         take into account changes of the codeset due to non-default
31995         locale set by a previous call to 'setlocale'.
31996         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31997         Define if not already defined.
31998         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31999         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
32000         current locale by calling 'setlocale', then converting the
32001         locale name into LCID by calling 'get_lcid'.  This allows to
32002         take into account changes in the current locale from the
32003         default one, in contrast to GetThreadLocale.
32005 2014-07-14  Daiki Ueno  <ueno@gnu.org>
32007         announce-gen: avoid failure when Digest::SHA is installed
32008         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
32009         Digest::SHA1->new in print_checksums fails.
32010         * build-aux/announce-gen (digest_classes): New associative array
32011         for available message digest implementations.
32012         (print_locations): Use it.
32014 2014-07-13  Pádraig Brady  <P@draigBrady.com>
32016         gettext: revert "update macros to version 0.19"
32017         This reverts commit 9b9370ca, as it currently requires that
32018         developers of any project that explicitly uses the gettext module
32019         or implicitly uses it through the utimens-tests or
32020         futimens-tests modules, use gettext >= 0.19.
32021         However there are some stability and availablity issues with
32022         that version at present.  We can reinstate this soon, when stability
32023         is addressed and packages are more readily available.
32025 2014-07-12  Jim Meyering  <meyering@fb.com>
32027         regex: don't deref NULL upon heap allocation failure
32028         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
32029         failure in one more place.
32030         To trigger the segfault, configure grep -with-included-regex,
32031         build it, and run these commands:
32032         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
32033         I discovered this while replying to a private report from
32034         Jens Schleusener about excessive memory consumption by grep
32035         when using a regular expression like the one above.
32037 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32039         regex: fix memory leak in compiler
32040         Fix by Andreas Schwab in:
32041         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
32042         * lib/regcomp.c (parse_reg_exp): Deallocate partially
32043         constructed tree before returning error.
32045 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32047         announce-gen: avoid perl warnings
32048         * build-aux/announce-gen: add two minor checks to avoid
32049         "use of uninitialized value" warnings when command-line parameters are
32050         missing.
32052 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32054         localename: avoid -Wsuggest-attribute={const,pure} warnings
32055         * lib/localename.c (string_has): Tag internal function as pure.
32056         * lib/localename.h (gl_locale_name_default): Tag extern declaration
32057         as const when appropriate.
32059 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
32061         nl_langinfo: Fix last change.
32062         * lib/nl_langinfo.c (includes): Drop redundant include.
32064 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32066         error: Fix -Wundef warnings in glibc
32067         * lib/error.c [_LIBC]: Define default macros for
32068         glibc.
32069         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
32070         Check _LIBC before STRERROR_R_CHAR_P.
32072         error: Sync from glibc master
32073         * lib/error.c [_LIBC]: Remove INTUSE usage.
32074         (error_tail): Remove unused macro ALLOCA_LIMIT.
32075         Fix potential buffer overflow.  Fix potential NULL dereference
32076         in strcmp.
32078 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
32080         nl_langinfo: fix build under mingw
32081         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
32083 2014-07-09  Andrew D Warshall  <warshall@99main.com>
32085         mountlist: do not classify a bind-mounted dir entry as "dummy"
32086         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
32087         1-argument getmntent() (instead of assuming absence).
32089 2014-07-08  Eric Blake  <eblake@redhat.com>
32091         maint.mk: less syntax-check noise when SIGPIPE is ignored
32092         * top/maint.mk (_sc_header_without_use)
32093         (sc_require_config_h_first): Parse full list.
32095 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
32096             Paul Eggert  <eggert@cs.ucla.edu>
32098         nl_langinfo: CODESET on MS-Windows and more items from localeconv
32099         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
32100         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
32101         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
32102         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
32103         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
32104         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
32105         Include <stdio.h> if Microsoft Windows.
32106         Include <time.h> if !REPLACE_NL_LANGINFO.
32107         (ctype_codeset): New function, taken from rpl_nl_langinfo,
32108         and with improvements for Microsoft Windows.
32109         (rpl_nl_langinfo): Use it.
32110         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
32111         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
32112         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
32113         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
32114         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
32115         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
32116         corresponding values returned by 'localeconv'.  Compute the values
32117         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
32118         'strftime' with a suitable struct tm value.
32120 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32122         Bruno Haible has stepped down as maintainer.
32123         See Karl Berry in:
32124         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
32125         Daiki Ueno has volunteered to maintain libunistring; see:
32126         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
32127         * modules/gen-uni-tables, modules/libunistring:
32128         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
32129         * modules/unicase/base, modules/unicase/cased:
32130         * modules/unicase/empty-prefix-context:
32131         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
32132         * modules/unicase/locale-language, modules/unicase/special-casing:
32133         * modules/unicase/tocasefold, modules/unicase/tolower:
32134         * modules/unicase/totitle, modules/unicase/toupper:
32135         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
32136         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
32137         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
32138         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
32139         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
32140         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
32141         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
32142         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
32143         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
32144         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
32145         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
32146         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
32147         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
32148         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
32149         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
32150         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
32151         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
32152         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
32153         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
32154         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
32155         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
32156         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
32157         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
32158         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
32159         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
32160         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
32161         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
32162         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
32163         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
32164         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
32165         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
32166         * modules/unicase/ulc-casexfrm, modules/unicodeio:
32167         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
32168         * modules/uniconv/u16-conv-to-enc:
32169         * modules/uniconv/u16-strconv-from-enc:
32170         * modules/uniconv/u16-strconv-from-locale:
32171         * modules/uniconv/u16-strconv-to-enc:
32172         * modules/uniconv/u16-strconv-to-locale:
32173         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32174         * modules/uniconv/u32-strconv-from-enc:
32175         * modules/uniconv/u32-strconv-from-locale:
32176         * modules/uniconv/u32-strconv-to-enc:
32177         * modules/uniconv/u32-strconv-to-locale:
32178         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
32179         * modules/uniconv/u8-strconv-from-enc:
32180         * modules/uniconv/u8-strconv-from-locale:
32181         * modules/uniconv/u8-strconv-to-enc:
32182         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
32183         * modules/unictype/bidicategory-all:
32184         * modules/unictype/bidicategory-byname:
32185         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
32186         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
32187         * modules/unictype/bidiclass-byname:
32188         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
32189         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
32190         * modules/unictype/block-all, modules/unictype/block-list:
32191         * modules/unictype/block-of, modules/unictype/block-test:
32192         * modules/unictype/category-C, modules/unictype/category-Cc:
32193         * modules/unictype/category-Cf, modules/unictype/category-Cn:
32194         * modules/unictype/category-Co, modules/unictype/category-Cs:
32195         * modules/unictype/category-L, modules/unictype/category-LC:
32196         * modules/unictype/category-Ll, modules/unictype/category-Lm:
32197         * modules/unictype/category-Lo, modules/unictype/category-Lt:
32198         * modules/unictype/category-Lu, modules/unictype/category-M:
32199         * modules/unictype/category-Mc, modules/unictype/category-Me:
32200         * modules/unictype/category-Mn, modules/unictype/category-N:
32201         * modules/unictype/category-Nd, modules/unictype/category-Nl:
32202         * modules/unictype/category-No, modules/unictype/category-P:
32203         * modules/unictype/category-Pc, modules/unictype/category-Pd:
32204         * modules/unictype/category-Pe, modules/unictype/category-Pf:
32205         * modules/unictype/category-Pi, modules/unictype/category-Po:
32206         * modules/unictype/category-Ps, modules/unictype/category-S:
32207         * modules/unictype/category-Sc, modules/unictype/category-Sk:
32208         * modules/unictype/category-Sm, modules/unictype/category-So:
32209         * modules/unictype/category-Z, modules/unictype/category-Zl:
32210         * modules/unictype/category-Zp, modules/unictype/category-Zs:
32211         * modules/unictype/category-all, modules/unictype/category-and:
32212         * modules/unictype/category-and-not, modules/unictype/category-byname:
32213         * modules/unictype/category-longname, modules/unictype/category-name:
32214         * modules/unictype/category-none, modules/unictype/category-of:
32215         * modules/unictype/category-or, modules/unictype/category-test:
32216         * modules/unictype/category-test-withtable:
32217         * modules/unictype/combining-class:
32218         * modules/unictype/combining-class-all:
32219         * modules/unictype/combining-class-byname:
32220         * modules/unictype/combining-class-longname:
32221         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
32222         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
32223         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
32224         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
32225         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
32226         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
32227         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
32228         * modules/unictype/digit, modules/unictype/joininggroup-all:
32229         * modules/unictype/joininggroup-byname:
32230         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
32231         * modules/unictype/joiningtype-all:
32232         * modules/unictype/joiningtype-byname:
32233         * modules/unictype/joiningtype-longname:
32234         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
32235         * modules/unictype/mirror, modules/unictype/numeric:
32236         * modules/unictype/property-all, modules/unictype/property-alphabetic:
32237         * modules/unictype/property-ascii-hex-digit:
32238         * modules/unictype/property-bidi-arabic-digit:
32239         * modules/unictype/property-bidi-arabic-right-to-left:
32240         * modules/unictype/property-bidi-block-separator:
32241         * modules/unictype/property-bidi-boundary-neutral:
32242         * modules/unictype/property-bidi-common-separator:
32243         * modules/unictype/property-bidi-control:
32244         * modules/unictype/property-bidi-embedding-or-override:
32245         * modules/unictype/property-bidi-eur-num-separator:
32246         * modules/unictype/property-bidi-eur-num-terminator:
32247         * modules/unictype/property-bidi-european-digit:
32248         * modules/unictype/property-bidi-hebrew-right-to-left:
32249         * modules/unictype/property-bidi-left-to-right:
32250         * modules/unictype/property-bidi-non-spacing-mark:
32251         * modules/unictype/property-bidi-other-neutral:
32252         * modules/unictype/property-bidi-pdf:
32253         * modules/unictype/property-bidi-segment-separator:
32254         * modules/unictype/property-bidi-whitespace:
32255         * modules/unictype/property-byname:
32256         * modules/unictype/property-case-ignorable:
32257         * modules/unictype/property-cased:
32258         * modules/unictype/property-changes-when-casefolded:
32259         * modules/unictype/property-changes-when-casemapped:
32260         * modules/unictype/property-changes-when-lowercased:
32261         * modules/unictype/property-changes-when-titlecased:
32262         * modules/unictype/property-changes-when-uppercased:
32263         * modules/unictype/property-combining:
32264         * modules/unictype/property-composite:
32265         * modules/unictype/property-currency-symbol:
32266         * modules/unictype/property-dash:
32267         * modules/unictype/property-decimal-digit:
32268         * modules/unictype/property-default-ignorable-code-point:
32269         * modules/unictype/property-deprecated:
32270         * modules/unictype/property-diacritic:
32271         * modules/unictype/property-extender:
32272         * modules/unictype/property-format-control:
32273         * modules/unictype/property-grapheme-base:
32274         * modules/unictype/property-grapheme-extend:
32275         * modules/unictype/property-grapheme-link:
32276         * modules/unictype/property-hex-digit:
32277         * modules/unictype/property-hyphen:
32278         * modules/unictype/property-id-continue:
32279         * modules/unictype/property-id-start:
32280         * modules/unictype/property-ideographic:
32281         * modules/unictype/property-ids-binary-operator:
32282         * modules/unictype/property-ids-trinary-operator:
32283         * modules/unictype/property-ignorable-control:
32284         * modules/unictype/property-iso-control:
32285         * modules/unictype/property-join-control:
32286         * modules/unictype/property-left-of-pair:
32287         * modules/unictype/property-line-separator:
32288         * modules/unictype/property-logical-order-exception:
32289         * modules/unictype/property-lowercase, modules/unictype/property-math:
32290         * modules/unictype/property-non-break:
32291         * modules/unictype/property-not-a-character:
32292         * modules/unictype/property-numeric:
32293         * modules/unictype/property-other-alphabetic:
32294         * modules/unictype/property-other-default-ignorable-code-point:
32295         * modules/unictype/property-other-grapheme-extend:
32296         * modules/unictype/property-other-id-continue:
32297         * modules/unictype/property-other-id-start:
32298         * modules/unictype/property-other-lowercase:
32299         * modules/unictype/property-other-math:
32300         * modules/unictype/property-other-uppercase:
32301         * modules/unictype/property-paired-punctuation:
32302         * modules/unictype/property-paragraph-separator:
32303         * modules/unictype/property-pattern-syntax:
32304         * modules/unictype/property-pattern-white-space:
32305         * modules/unictype/property-private-use:
32306         * modules/unictype/property-punctuation:
32307         * modules/unictype/property-quotation-mark:
32308         * modules/unictype/property-radical:
32309         * modules/unictype/property-sentence-terminal:
32310         * modules/unictype/property-soft-dotted:
32311         * modules/unictype/property-space:
32312         * modules/unictype/property-terminal-punctuation:
32313         * modules/unictype/property-test, modules/unictype/property-titlecase:
32314         * modules/unictype/property-unassigned-code-value:
32315         * modules/unictype/property-unified-ideograph:
32316         * modules/unictype/property-uppercase:
32317         * modules/unictype/property-variation-selector:
32318         * modules/unictype/property-white-space:
32319         * modules/unictype/property-xid-continue:
32320         * modules/unictype/property-xid-start:
32321         * modules/unictype/property-zero-width, modules/unictype/scripts:
32322         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
32323         * modules/unictype/syntax-c-whitespace:
32324         * modules/unictype/syntax-java-ident:
32325         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
32326         * modules/unigbrk/u16-grapheme-breaks:
32327         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
32328         * modules/unigbrk/u32-grapheme-breaks:
32329         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
32330         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
32331         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
32332         * modules/unigbrk/uc-is-grapheme-break:
32333         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
32334         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
32335         * modules/unilbrk/u16-width-linebreaks:
32336         * modules/unilbrk/u32-possible-linebreaks:
32337         * modules/unilbrk/u32-width-linebreaks:
32338         * modules/unilbrk/u8-possible-linebreaks:
32339         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
32340         * modules/unilbrk/ulc-possible-linebreaks:
32341         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32342         * modules/uniname/uniname, modules/uninorm/base:
32343         * modules/uninorm/canonical-decomposition:
32344         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32345         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32346         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32347         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32348         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32349         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32350         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32351         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32352         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32353         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32354         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32355         * modules/unistdio/base, modules/unistdio/u-printf-args:
32356         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32357         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32358         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32359         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32360         * modules/unistdio/u16-u16-sprintf:
32361         * modules/unistdio/u16-u16-vasnprintf:
32362         * modules/unistdio/u16-u16-vasprintf:
32363         * modules/unistdio/u16-u16-vsnprintf:
32364         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32365         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32366         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32367         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32368         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32369         * modules/unistdio/u32-u32-asnprintf:
32370         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32371         * modules/unistdio/u32-u32-sprintf:
32372         * modules/unistdio/u32-u32-vasnprintf:
32373         * modules/unistdio/u32-u32-vasprintf:
32374         * modules/unistdio/u32-u32-vsnprintf:
32375         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32376         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32377         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32378         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32379         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32380         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32381         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32382         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32383         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32384         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32385         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32386         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32387         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32388         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32389         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32390         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32391         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32392         * modules/unistr/u16-check, modules/unistr/u16-chr:
32393         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32394         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32395         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32396         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32397         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32398         * modules/unistr/u16-move, modules/unistr/u16-next:
32399         * modules/unistr/u16-prev, modules/unistr/u16-set:
32400         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32401         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32402         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32403         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32404         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32405         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32406         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32407         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32408         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32409         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32410         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32411         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32412         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32413         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32414         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32415         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32416         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32417         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32418         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32419         * modules/unistr/u32-next, modules/unistr/u32-prev:
32420         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32421         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32422         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32423         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32424         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32425         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32426         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32427         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32428         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32429         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32430         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32431         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32432         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32433         * modules/unistr/u8-check, modules/unistr/u8-chr:
32434         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32435         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32436         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32437         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32438         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32439         * modules/unistr/u8-next, modules/unistr/u8-prev:
32440         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32441         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32442         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32443         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32444         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32445         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32446         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32447         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32448         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32449         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32450         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32451         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32452         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
32453         * modules/uniwbrk/base, modules/uniwbrk/table:
32454         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
32455         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
32456         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
32457         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
32458         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
32459         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
32460         * modules/uniwidth/width, modules/utf16-ucs4:
32461         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
32462         * modules/utf8-ucs4-unsafe:
32463         Change maintainer from Bruno Haible to Daiki Ueno.
32464         This is my guess at the libunistring modules; please feel free
32465         to fix if I guessed incorrectly.
32466         * modules/accept4, modules/acl, modules/acos, modules/acosf:
32467         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
32468         * modules/areadlink, modules/array-list, modules/array-mergesort:
32469         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
32470         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
32471         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
32472         * modules/binary-io, modules/bison-i18n, modules/btowc:
32473         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
32474         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
32475         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
32476         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
32477         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
32478         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
32479         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
32480         * modules/closedir, modules/concat-filename, modules/copy-file:
32481         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
32482         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
32483         * modules/csharpcomp-script, modules/csharpexec:
32484         * modules/csharpexec-script, modules/ctype, modules/diffseq:
32485         * modules/dprintf, modules/dprintf-posix, modules/dup:
32486         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
32487         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
32488         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
32489         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
32490         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
32491         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
32492         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
32493         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
32494         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
32495         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
32496         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
32497         * modules/findprog, modules/findprog-lgpl, modules/floor:
32498         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
32499         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
32500         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
32501         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
32502         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
32503         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
32504         * modules/freadable, modules/freadahead, modules/freadptr:
32505         * modules/freadseek, modules/freopen, modules/frexp:
32506         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
32507         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
32508         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
32509         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
32510         * modules/ftello, modules/full-read, modules/full-write:
32511         * modules/fwritable, modules/fwriteerror, modules/gcd:
32512         * modules/get-rusage-as, modules/get-rusage-data:
32513         * modules/getdtablesize, modules/getrusage, modules/gettext:
32514         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
32515         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
32516         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
32517         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
32518         * modules/iconv, modules/iconv-h, modules/iconv_open:
32519         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
32520         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
32521         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
32522         * modules/integer_length_ll, modules/ioctl, modules/isatty:
32523         * modules/isblank, modules/isnand, modules/isnand-nolibm:
32524         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
32525         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
32526         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
32527         * modules/javaexec, modules/javaexec-script, modules/javaversion:
32528         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
32529         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
32530         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
32531         * modules/lib-symbol-visibility, modules/libsigsegv:
32532         * modules/linked-list, modules/linkedhash-list, modules/list:
32533         * modules/localcharset, modules/locale, modules/localeconv:
32534         * modules/localename, modules/lock, modules/log, modules/log-ieee:
32535         * modules/log10, modules/log10-ieee, modules/log10f:
32536         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
32537         * modules/log1p, modules/log1p-ieee, modules/log1pf:
32538         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
32539         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
32540         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
32541         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
32542         * modules/logf, modules/logf-ieee, modules/login_tty:
32543         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
32544         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
32545         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
32546         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
32547         * modules/mbscspn, modules/mbsinit, modules/mbslen:
32548         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
32549         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
32550         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
32551         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
32552         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
32553         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
32554         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
32555         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
32556         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
32557         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
32558         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
32559         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
32560         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
32561         * modules/posix_spawn, modules/posix_spawn-internal:
32562         * modules/posix_spawn_file_actions_addclose:
32563         * modules/posix_spawn_file_actions_adddup2:
32564         * modules/posix_spawn_file_actions_addopen:
32565         * modules/posix_spawn_file_actions_destroy:
32566         * modules/posix_spawn_file_actions_init:
32567         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
32568         * modules/posix_spawnattr_getpgroup:
32569         * modules/posix_spawnattr_getschedparam:
32570         * modules/posix_spawnattr_getschedpolicy:
32571         * modules/posix_spawnattr_getsigdefault:
32572         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
32573         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
32574         * modules/posix_spawnattr_setschedparam:
32575         * modules/posix_spawnattr_setschedpolicy:
32576         * modules/posix_spawnattr_setsigdefault:
32577         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
32578         * modules/pow, modules/powf, modules/printf-frexp:
32579         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
32580         * modules/progname, modules/propername, modules/pselect:
32581         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
32582         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
32583         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
32584         * modules/read, modules/readdir, modules/readlink:
32585         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
32586         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
32587         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
32588         * modules/relocatable-script, modules/remainder:
32589         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32590         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32591         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32592         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32593         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32594         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32595         * modules/setlocale, modules/sh-quote, modules/shutdown:
32596         * modules/signal, modules/signbit, modules/sigpipe:
32597         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
32598         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
32599         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
32600         * modules/snippet/link-warning, modules/snippet/unused-parameter:
32601         * modules/snprintf, modules/snprintf-posix, modules/spawn:
32602         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
32603         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
32604         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
32605         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
32606         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
32607         * modules/streq, modules/strerror_r-posix, modules/striconv:
32608         * modules/striconveh, modules/striconveha, modules/strncat:
32609         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
32610         * modules/sublist, modules/sys_resource, modules/sys_utsname:
32611         * modules/sys_wait, modules/system-posix, modules/system-quote:
32612         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
32613         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
32614         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
32615         * modules/truncf, modules/truncf-ieee, modules/truncl:
32616         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
32617         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
32618         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
32619         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
32620         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
32621         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
32622         * modules/wait-process, modules/waitpid, modules/wcpcpy:
32623         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
32624         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
32625         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
32626         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
32627         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
32628         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
32629         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
32630         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
32631         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
32632         * modules/write, modules/xconcat-filename, modules/xlist:
32633         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
32634         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
32635         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
32636         * modules/y0, modules/y1, modules/yn:
32637         Remove Bruno Haible as maintainer; if he's the sole maintainer,
32638         change the maintainer to 'all'.  Let's hope someone volunteers.
32640 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
32642         mktime: merge #if/#ifdef usage from glibc
32643         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32644         as that works with both Glibc's and Gnulib's style.
32645         See thread starting at Siddhesh Poyarekar's bug report at:
32646         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
32648 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
32650         git-version-gen: improve option descriptions
32651         * build-aux/git-version-gen: Mention that --prefix and --fallback
32652         have a mandatory argument.
32654 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32656         regex: fix memory leak in compiler
32657         Fix by Andreas Schwab in:
32658         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
32659         * lib/regcomp.c (parse_expression): Deallocate partially
32660         constructed tree before returning error.
32662         regex: merge patch from libc
32663         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32664         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32665         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32667 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32669         acl: port to gcc -Wredundant-decls
32670         From a request by Dmitry Antipov in:
32671         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32672         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32673         "#ifndef _GL_ACL_H".
32675 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32676         Jim Meyering  <meyering@fb.com>
32678         parse-duration: eliminate 68-year duration limit
32679         * lib/parse-duration.c: Include "intprops.h".
32680         (TIME_MAX): Rename to MAX_DURATION and define to
32681         TYPE_MAXIMUM(time_t).
32682         * modules/parse-duration (Depends-on): Add intprops.
32683         Reported by Jonas 'Sortie' Termansen.
32685 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32687         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32688         * modules/pthread (Depends-on): Add 'extensions', as it defines
32689         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32690         (configure.ac-early): New section.
32691         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32692         it is no longer needed.
32694 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32696         pthread: define thread-safe macros on some platforms
32697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32698         for thread-safe operation on some platforms.
32700 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32702         regex: don't be multithreaded if USE_UNLOCKED_IO.
32703         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32704         * lib/regex_internal.h: Do not use multithreaded version if
32705         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32706         around a porting bug with coreutils 8.22 on AIX 7.1.
32708 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32710         gettext: update macros to version 0.19
32711         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32712         depend on gl_EXTERN_INLINE and drop support for older Bison
32713         versions.
32715 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32717         select,poll: fix console handle check on windows 8
32718         lib/poll.c (IsConsoleHandle): Change from testing the lower
32719         2 bits of the handle to the more expensive but accurate syscall.
32720         lib/select.c: Likewise.
32722 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32724         select: fix waiting on anonymous pipes on MS-Windows
32725         * lib/select.c (rpl_select): Fall back to polling when select()
32726         indicates there is nothing to check, while due to the timeout not
32727         expiring, activity is indicated on one of the handles.
32728         Also clear the TIMEOUT argument if the timer does expire.
32730 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32732         times: fix to return non constant value on MS-Windows
32733         * lib/times.c (times): Don't use the process creation time,
32734         rather clock() which on windows returns the number of
32735         clock ticks since the process started.
32737 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32739         isatty: fix to work on windows 8
32740         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32741         2 bits of the handle to the more expensive but accurate syscall.
32743 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32745         maint: fix typo in fdl.texi
32746         * doc/fdl.texi: Fix typo (missing '@').
32747         Somehow this was in fdl.texi but not fdl-1.3.texi.
32749 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32751         mountlist: avoid hasmntopt const type warning on solaris
32752         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32753         with char * instead of const char *.  Passing the constant string
32754         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32755         to avoid the warning.
32757 2014-06-04  Eric Blake  <eblake@redhat.com>
32759         maintainer-makefile: delete obsolete code
32760         * top/maint.mk (build_aux): Drop old code, as threatened.
32762         maintainer-makefile: avoid spurious error messages
32763         * top/maint.mk (syntax-check): Guard definition and use of
32764         $(shell) by whether Makefile is present.
32766 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32768         rename: avoid unused-but-set-variable compiler warning
32769         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32770         it is possible that dst_exists may be set but not used.  Mark it with
32771         the unused attribute to avoid compiler warnings.
32773 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32775         rename: mark a label as potentially unused
32776         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32777         by marking the out label as potentially unused.
32778         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32780 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32782         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32783         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32785 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32787         acl: apply pure attribute to two functions
32788         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32789         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32791 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32793         gnulib-common.m4: add _GL_UNUSED_LABEL
32794         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32795         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32797 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32799         dup2, fcntl, fcntl-h: port to AIX 7.1
32800         This fixes some porting problems discovered when testing the latest
32801         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32802         in grep but it could be important for other applications.
32803         * doc/posix-functions/dup2.texi:
32804         * doc/posix-functions/fcntl.texi:
32805         * doc/posix-headers/fcntl.texi:
32806         Document AIX bugs.
32807         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32808         Define to 0 if outside 'int' range.
32809         * m4/dup2.m4 (gl_FUNC_DUP2):
32810         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32811         Check for getdtablesize.  If it's available, test a value just
32812         outside its range instead of testing 1000000.  When cross-compiling,
32813         guess that AIX will fail this improved test.
32815 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32817         printf, config.rpath: Port to FreeBSD 10.
32818         Problem reported by Tijl Coosemans in:
32819         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32820         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32821         (hardcode_direct): Simplify FreeBSD configuration.
32822         (library_names_spec): Don't mishandle FreeBSD 10+.
32823         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32824         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32825         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32826         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32827         Don't mishandle FreeBSD 10+ when cross-compiling.
32829         ftoastr: work around compiler bug in IBM xlc 12.1
32830         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32831         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32832         around a compiler bug in IBM xlc 12.1.0.0: it complains
32833         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32834         _GL_FLT_PREC_BOUND.'
32836 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32838         valgrind-tests: fixed misleading help message
32839         * m4/valgrind-tests.m4: The help message generated by configure
32840         implied that valgrind was disabled by default, which it wasn't.
32841         Adjusted the help message using s/enable/disable/ to clarify.
32843 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32845         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32846         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32847         first double of a PowerPC "double double" pair.
32848         * tests/test-isinf.c (test_isinfl): Likewise.
32849         * tests/test-isnan.c (test_long_double): Likewise.
32850         * tests/test-isnanl.h (main): Likewise.
32851         * tests/test-signbit.c (test_signbitl): Likewise.
32853 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32855         exclude-tests: port to AIX 7.1
32856         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32857         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32858         the regex code uses locks.
32860 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32862         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32863         Without this fix, Emacs would sometimes call sigprocmask instead
32864         of pthread_sigmask, which is a no-no in multithreaded applications.
32865         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32866         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32867         Suppress check for pthread_sigmask working without -lpthread if
32868         the application always links with -lpthread.  Do not link with
32869         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32870         * m4/timer_time.m4 (gl_TIMER_TIME):
32871         Require gl_THREADLIB only if it is defined.  Do not append
32872         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32874 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32876         gnulib-tool: wget translations using --no-verbose rather than --quiet
32877         This allows the user to see error messages if any (--quiet hides them)
32878         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32880 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32882         gnulib-tool: adjust translation wget to avoid a https redirection
32883         Context: http://translationproject.org/latest/gnulib redirects to
32884            https://translationproject.org/latest/gnulib/
32885         Rationale: if the user falls back to wget, she doesn't have rsync and
32886         is probably in a minimal build environment, where packages such as
32887         'ca-certificates' are missing as well, resulting in a failed (and
32888         difficult to detect since ignored) translation initial fetch.
32889         Consequently let's avoid https if possible, and add the missing
32890         trailing slash.  This also avoids an unnecessary 302 redirection.
32891         * gnulib-tool: Add trailing slash to gnulib URL.
32893 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32895         getlogin_r-tests: check return value rather than errno
32896         * tests/test-getlogin_r.c (main): As per POSIX we should be
32897         verifying the return value from getlogin_r() rather than errno.
32899 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32901         getlogin_r-tests: fix various issues in recent change
32902         * tests/test-getlogin_r.c: Include required headers that were
32903         missed in recent commit eec20b4e.
32904         Also consistently check the errno rather than the return value from
32905         getlogin_r as POSIX only specifies that non zero is returned on error.
32906         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32908 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32910         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32911         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32912         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32913         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32914         * lib/spawn-pipe.c:
32915         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32916         and then 'int open64(const char *, int, ...);', which means the
32917         declaration for 'open' gets lost if we later '#undef open'.
32918         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32919         where the compilation reported the non-fatal error "In function
32920         'openat_proc_name' ... warning: implicit declaration of function
32921         'open'".  In this case the error is relatively harmless, but in
32922         other cases it might not be so minor.
32924 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32926         xalloc: don't potentially generate invalid code for xmemdup calls
32927         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32928         this function can initialize the newly-allocated storage with new
32929         pointers, which means this function is not malloc-like.  See:
32930         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32932 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32934         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32935         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32936         changes from commit 97249cf29 to not depend on environment variables.
32938 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32940         getlogin-tests: avoid false failure under cron
32941         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32942         since that's not what's under test.  Centos 6 was seen to return
32943         EINVAL for ttyname() when run from cron.
32945 2014-05-16  Jim Meyering  <meyering@fb.com>
32947         mbrtowc.m4: fix a comment typo
32948         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32949         emitted documentation string.
32951 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32953         mbrlen, mbrtowc: fix bug with empty input
32954         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32955         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32956         so this is mainly for documentation.
32957         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32958         (gl_FUNC_MBRTOWC): Use it.
32959         * tests/test-mbrtowc.c (main): Test for the bug.
32961 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32963         doc: document mbrtowc and mbrlen problem with empty input
32964         * doc/posix-functions/mbrlen.texi (mbrlen):
32965         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32966         Document portability problem when the input string is empty.  See:
32967         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32969         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32970         Problem reported by Eli Zaretskii in:
32971         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32972         * doc/posix-functions/execl.texi (execl):
32973         * doc/posix-functions/execle.texi (execle):
32974         * doc/posix-functions/execlp.texi (execlp):
32975         * doc/posix-functions/execv.texi (execv):
32976         * doc/posix-functions/execve.texi (execve):
32977         * doc/posix-functions/execvp.texi (execvp):
32978         Mention spawn+exit problem on non-Cygwin Windows platforms.
32980 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32982         getlogin-tests: avoid false failure under sudo/ssh etc.
32983         * modules/getlogin-tests (configure.ac): Check for ttyname().
32984         * tests/test-getlogin.c (main): Don't depend on environment variables
32985         to correlate with getlogin(), since sudo and ssh etc. can tamper
32986         with the LOGNAME and USER env vars.  Instead lookup the name from
32987         the uid associated with the stdin tty.
32989 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32991         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32992         These were found when building the latest grep snapshot on IRIX 6.5.
32993         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32994         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32995         never used later.
32996         * lib/quotearg.c (quoting_options_from_style):
32997         * lib/xstrtol.c (__xstrtol):
32998         Use enum instead of 0, to pacify IRIX 6.5 cc.
33000 2014-04-18  Pádraig Brady  <P@draigBrady.com>
33002         gitlog-to-changelog: revert inclusion of git-log-fix file
33003         * build-aux/git-log-fix: Delete dummy file.
33004         * modules/gitlog-to-changelog: Don't reference (overwrite)
33005         the project specific git-log-fix file.
33007 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
33009         maint.mk: Relax the copyright check to cater for non FSF projects
33010         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
33011         to not require the "Free" suffix after the copyright years.
33013 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
33015         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
33016         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
33017         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
33018         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
33019         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
33021 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
33023         exclude: port to strict C99
33024         Strict C does not allow converting a function pointer to void *
33025         and vice versa.  Pass a pointer to a function pointer instead.
33026         * lib/exclude.c (add_exclude_file):
33027         Pass the address of the function pointer.
33028         (call_addfn): And deference the address here, to match.
33030 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33032         regex: do not depend on malloc-gnu
33033         * modules/regex (Depends-on): Remove malloc-gnu.
33034         It's no longer needed, because of the 2012-12-29 patch
33035         "regex: port to hosts where malloc (0) == NULL".
33036         Reported by Nathan Kennedy in:
33037         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
33039 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
33041         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
33042         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
33043         * doc/posix-functions/expl.texi: Mention the workaround.
33045 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33047         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
33048         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
33049         size to be zero even when the pointer is nonnull.  This
33050         accommodates the use case where P is malloc (0) and *PN is 0 on a
33051         host where malloc (0) yields nonnull.
33053 2014-04-09  Eric Blake  <eblake@redhat.com>
33055         fts: avoid unnecessary strlen calls
33056         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
33058 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33060         fts: avoid unnecessary strlen calls
33061         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
33062         when that can be faster than strlen.
33064 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33066         fts: avoid unnecessary strlen calls
33067         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
33068         (fts_build): Store the length of the dp->d_name entry in a local variable
33069         instead of calling strlen() several times via the above, removed macro.
33070         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
33071         run by ~4%, yet this reduces the execution time by about a third if run
33072         via "ltrace -c rm -rf some-dir".
33074 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33076         obstack: Remove ancient NeXTSTEP gcc support conditional
33077         This change will ease merging with glibc.  The "#if ... __NEXT__"
33078         causes a warning with -Wundef which glibc now enables by default.
33079         Problem reported by Will Newton in
33080         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
33081         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
33082         so go with that.
33083         * lib/obstack.h (__extension__):
33085 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33087         obstack: merge with glibc changes
33088         * lib/obstack.c, lib/obstack.h: Merge from glibc.
33089         This is mostly indenting and commentary changes.
33090         Instances of 'register' have been removed.
33092 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33094         strftime: wrap macros in "do {...} while(0)"
33095         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
33096         this macro in "do {...} while(0)" to prevent false use as a
33097         single statement, e.g., in an un-braced "{}" else-block.
33098         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
33099         (strftime_case_): Remove 'else' after 'goto' - which was the
33100         only non-fatal, un-braced use of one of the above macros.
33101         Spotted by coverity (NESTING_INDENT_MISMATCH).
33103 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33105         modechange: avoid memory leaks for invalid octal modes
33106         * lib/modechange.c (mode_compile): During the parsing of
33107         notations like +40, free the 'mc' buffer for invalid mode
33108         strings like +17777 (greater than the maximum octal mode),
33109         =18 (bad octal mode characters) or u=1 ('affected' with
33110         octal modes).
33111         Reproducer, e.g.:
33112             $ valgrind --leak-check=full chmod +17777 file
33113         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
33114         add notations +40, 00440, etc.".
33115         Spotted by coverity (RESOURCE_LEAK).
33117 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33119         gitlog-to-changelog: include a dummy git-log-fix file
33120         Problem reported by Nathan Stratton Treadway in:
33121         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
33122         * build-aux/git-log-fix: New file.
33124 2014-03-13  Jim Meyering  <meyering@fb.com>
33126         gitlog-to-changelog: also include the file, git-log-fix
33127         * modules/gitlog-to-changelog (Files): Add git-log-fix.
33128         Reported by Assaf Gordon.
33130 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33132         regex: port to OS X 10.8.5 en_US.UTF-8 locale
33133         This fixes a bug when ignoring case and when comparing the
33134         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
33135         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
33136         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
33137         titlecase letter is neither lowercase nor uppercase, but
33138         uppercasing the titlecase letter (via towupper) yields the
33139         uppercase letter, so the two letters should match when ignoring case.
33140         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
33141         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
33142         Don't test whether a character is lowercase before uppercasing it.
33144 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
33146         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
33147         This is basically one of the options Bruno Haible proposed in:
33148         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
33149         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
33150         * lib/stdint.in.h: Use it.
33151         * modules/stdint (Depends-on): Add sys_types.
33153 2014-02-26  Pádraig Brady  <P@draigBrady.com>
33155         parse-datetime: fix crash or infloop in TZ="" parsing
33156         * lib/parse-datetime.y (parse_datetime): Break out of the
33157         TZ="" parsing loop once the second significant " is found.
33158         Also skip over any subsequent whitespace to be consistent
33159         with the non TZ= case.
33160         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
33162 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33164         savedir: new symbol for fast-read version
33165         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
33166         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
33167         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
33168         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
33170 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33172         unistd: port readlink to Mac OS X 10.3.9
33173         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33174         around self-include problem in Mac OS X 10.3.9 when combined with
33175         readlink module.  Problem reported by Klaus Zietler in
33176         <http://bugs.gnu.org/16825>.
33178 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
33180         diffseq: remove TOO_EXPENSIVE heuristic
33181         Problem with diffutils reported by Vincent Lefevre in
33182         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
33183         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
33184         Although appropriate for circa-1993 hardware, these days the heuristic
33185         seems to be more trouble than it's worth.
33186         * lib/diffseq.h: Modernize citations.
33187         (struct context): Remove member too_expensive.
33188         All uses changed.
33189         (struct partition): Remove members lo_minimal, hi_minimal.
33190         All uses changed.
33191         (diag, compareseq): Remove arg find_minimal.  All uses changed.
33192         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
33193         1993 to make 'diff' run faster (but not as well) on large inputs.
33194         These days, computers are fast enough that it's typically better
33195         to run slower but more accurately.
33196         * lib/fstrcmp.c: Remove duplicate comment.
33197         * lib/fstrcmp.c (strcmp_bounded):
33198         * lib/git-merge-changelog.c (compute_differences):
33199         Adjust to diffseq.h changes.
33200         * NEWS: Document the change.
33202         savedir: simplify by using stpcpy
33203         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
33204         (streamsavedir): Use stpcpy instead.
33205         * modules/savedir (Depends-on): Add stpcpy.
33207 2014-02-21  Pádraig Brady  <P@draigBrady.com>
33209         spawn: fix link error on uclibc
33210         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
33211         to incorporate -lrt if needed (on uclibc for example).
33212         * modules/posix_spawn: Reference the substituted LIB.
33214 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
33215         timer: fix uClibc detection of threading
33216         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
33217         enabled in uClibc.
33219 2014-02-21  Eric Blake  <eblake@redhat.com>
33221         maintainer-makefiles: provide AC_PROG_SED for older autoconf
33222         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
33224 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33226         exclude: add support for posix regexps
33228         This commit adds support for POSIX extended regular expressions
33229         and fixes a long-standing memory leak (pattern buffer was never
33230         freed).  It also implements a new interface function to read
33231         exclude patterns from a FILE, which passes an additional parameter
33232         to its callback function, thereby allowing to preserve its state
33233         between invocations.
33235         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
33236         (pattern_buffer): New struct.
33237         (exclude): New member patbuf.
33238         (exclude_add_pattern_buffer): New function.
33239         (free_exclude_segment): Free regexps.
33240         (free_exclude): Free allocated pattern buffers.
33241         (exclude_patopts): New function.
33242         (file_pattern_matches): Use exclude_patopts.
33243         (add_exclude): support regexps.
33244         (add_exclude_fp): New function.
33245         (add_exclude_file): Rewrite using add_exclude_fp.
33246         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33247         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33248         (add_exclude_fp)
33249         (add_exclude_file): Rewrite using add_exclude_fp.
33250         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33251         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33252         (add_exclude_fp)
33253         (exclude_add_pattern_buffer): New prototypes.
33254         * modules/exclude: Depends on regex and filename.
33256 2014-02-20  Eric Blake  <eblake@redhat.com>
33258         maintainer-makefiles: use $(SED) for syntax check
33259         * modules/maintainer-makefile (configure.ac): Check for sane sed.
33260         * top/maint.mk: Change sed to $(SED).
33262 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
33263             Paul Eggert  <eggert@cs.ucla.edu>
33265         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
33266         Patch based on an idea by Dick Streefland in
33267         <https://savannah.gnu.org/patch/?7892>.
33268         * NEWS: Document this.
33269         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
33270         (direntry_t, comparison_function): New types.
33271         (direntry_cmp_name): New function.
33272         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
33273         (streamsavedir, savedir): New arg OPTION.
33274         (streamsavedir): Simplify memory allocation.
33275         (fdsavedir): Remove.
33276         * lib/savedir.h (enum savedir_option): New type.
33277         (streamsavedir, savedir): New arg OPTION.
33278         (fdsavedir): Remove.
33280 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33282         file-type: add support for doors and other less-common file types
33283         Problem with S_ISDOOR reported by Rich Burridge.
33284         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
33285         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
33286         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
33288 2014-01-23  Eric Blake  <eblake@redhat.com>
33290         pthread: work around winpthread header pollution on mingw
33291         * lib/time.in.h: Move pthread workarounds...
33292         * lib/pthread.in.h: ...here.
33293         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
33294         detect macro pollution on mingw.
33295         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
33297 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33299         qacl: check for fchmod
33300         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
33301         and qset-acl.c both use HAVE_FCHMOD.
33303 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33305         fdopen-tests: port to Tru64
33306         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
33307         descriptor that is not open, as POSIX doesn't specify the
33308         resulting behavior and the test does not work on Tru64.
33309         Problem reported by Steven M. Schweda in:
33310         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
33312         stdalign: port to HP-UX compilers
33313         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
33314         if __HP_cc or __HP_aCC are nonzero.
33316 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33318         strtoimax: port to platforms lacking 'long long'
33319         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33320         check whether strtoll is declared, which causes the C file to
33321         wrongly report an error.  Problem reported by Steven M. Schweda in:
33322         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
33323         * lib/strtoimax.c (strtoull):
33324         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
33325         (strtoll): Declare only if HAVE_LONG_LONG_INT.
33327 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
33329         relocatable-perl: fix texi syntax
33330         * doc/relocatable-maint.texi: Escape braces.
33332 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
33334         relocatable-perl: like relocatable-script, but for Perl scripts
33335         * build-aux/relocatable.pl.in: Add.
33336         * doc/relocatable-maint.texi: Add documentation.
33337         * modules/relocatable-perl: Add.
33339 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
33341         tests: fix export bug in previous patch
33342         Problem reported by Jim Meyering.
33343         * tests/init.sh (re_shell): New var, which is exported instead of
33344         re_shell_.
33346         tests: simplify porting to Solaris 10 /bin/sh
33347         Some test cases in 'grep' need a shell that groks '$(';
33348         export re_shell_ for their benefit.  Problem reported for 'grep'
33349         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33350         * tests/init.sh (re_shell_): Export if it's used.
33352 2014-01-06  Eric Blake  <eblake@redhat.com>
33354         md5, sha1, sha256, sha512: support older autoconf
33355         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33356         for autoconf < 2.63b.
33358         include_next: port to autoconf 2.63
33359         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33361 2014-01-04  Jim Meyering  <meyering@fb.com>
33363         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33364         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33365         so that "make sc_maint" will ding anyone who puts non-ascii
33366         in any of gnulib's .texi files.
33368 2014-01-03  Jim Meyering  <meyering@fb.com>
33370         freadable, fwritable, fwriting: declare with the "pure" attribute
33371         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33372         * lib/fwritable.h (fwritable): Likewise.
33373         * lib/fwriting.h (fwriting): Likewise.
33374         Suggested by Bruno Haible.
33376         maint.mk: adapt openat.h-include-without-use test
33377         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33378         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33379         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33380         With this change, running "make sc_maint" in gnulib's top-level
33381         directory now passes for me.
33383 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33385         doc: use ASCII in .texi files where UTF-8 isn't needed
33386         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33387         * doc/posix-functions/setkey.texi, doc/regex.texi:
33388         Use ASCII input, not UTF-8.
33390 2014-01-02  Jim Meyering  <meyering@fb.com>
33392         freading: declare with the "pure" attribute
33393         * lib/freading.h (freading): Declare with the "pure" attribute.
33395         manywarnings: remove -Wmudflap
33396         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33397         it is no longer supported in gcc-4.9-to-be.
33399 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33401         relocatable-script: remove unused code
33402         Problem reported by Reuben Thomas in:
33403         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33404         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33406 2014-01-01  Jim Meyering  <meyering@fb.com>
33408         maint: fix public-submodule-commit to work with newer git
33409         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33410         We were over-quoting the test arguments, and somewhere prior to
33411         version 1.8.5.2.229, git stopped removing those excess quotes,
33412         which made the test fail, since the unexpanded strings would
33413         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33414         command wasn't even being run.
33416 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33418         doc: update main copyright year
33419         * doc/gnulib.texi: Update copyright date.
33421 2014-01-01  Eric Blake  <eblake@redhat.com>
33423         version-etc: new year
33424         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33425         * all files: run 'make update-copyright'
33427 2013-12-24  Eric Blake  <eblake@redhat.com>
33429         passfd: give nicer error for recvfd at eof
33430         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33431         * tests/test-passfd.c (main): Enhance test to cover this.
33433 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33435         gettimeofday: port recent C++ fix to Emacs
33436         Without this further patch, Emacs won't build due to
33437         the portcheck failing.  Also, this simplifies the patch a bit.
33438         * lib/time.in.h (localtime, gmtime): Don't replace unless
33439         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33440         * lib/time.in.h (localtime, gmtime):
33441         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33442         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33443         * modules/time (time.h):
33444         Don't worry about the possibility of localtime and gmtime
33445         being absent; they're present in all C libraries we know about.
33446         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33447         Don't assume sys_time is present and has been initialized.
33448         Instead, use a hack that should work even if it hasn't been.
33449         Don't use a portcheck for gmtime or localtime; this supports
33450         the hack.
33451         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
33453 2013-12-17  John W. Eaton  <jwe@gnu.org>
33455         gettimeofday: fix C++ crosscompilation
33457         Never replace gmtime and localtime by macros when compiling with
33458         C++, this prevents <ctime> from being included.
33460         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
33461         define gmtime and localtime as preprocessor macros.  Instead
33462         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
33463         REPLACE_LOCALTIME substitutions.
33464         * lib/time.in.h: Declare gmtime and localtime when needed.
33465         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
33466         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
33467         * modules/time: Depend on gettimeofday, and substitute the above
33468         variables in time.h.
33470 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33472         qacl: port to Windows better
33473         See Eli Zaretskii in
33474         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
33475         * lib/file-has-acl.c (acl_access_nontrivial):
33476         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
33477         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
33479 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
33481         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
33482         * lib/gl_openssl.h: Cast void pointers to a specific type.
33484 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33486         open-tests: fix build failure with -Werror=old-style-declaration
33487         * tests/test-open.h: Reorder the inline to avoid the issue.
33489 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33491         md5, sha1, sha256, sha512: fix link error with partial libcrypto
33492         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
33493         init time, so that if early checks find crypto routines,
33494         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
33495         avoiding link failures.
33497 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33499         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
33500         This provides a new way to specify the default for
33501         gl_CRYPTO_CHECK, one that is reflected in the --help message.
33502         Emacs uses this, as well as the old way.
33503         This attempts to implement a suggestion by Pádraig Brady in
33504         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
33505         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
33506         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
33508         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
33509         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
33510         Add support for a new option, --with-openssl=auto, which causes
33511         the library to be used if available and silently ignored if not.
33512         Add support to allow configure.ac to specify its own
33513         default, by setting with_openssl_default before invoking gl_INIT.
33515 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33517         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
33518         Problem reported by Daiki Ueno in:
33519         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
33520         * tests/test-open.h (__always_inline):
33521         New macro, if not already defined.
33522         (test_open): Use it.
33524 2013-12-04  Eric Blake  <eblake@redhat.com>
33526         include_next: minimize code duplication
33527         * modules/include_next (Depends-on): Add absolute-header.
33528         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
33529         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
33531 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33533         getcwd: fix compile error in configure check
33534         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
33536 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33538         regex: suppress core dumps from detection code
33539         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
33540         to suppress core dumps that may well occur on glibc systems.
33541         These core dumps might not be cleaned up automatically, or could
33542         trigger some system core dump handling logic.
33544 2013-12-03  Pádraig Brady  <P@draigBrady.com>
33546         md5, sha1, sha256, sha512: support mandating use of openssl
33547         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
33548         description, to list the now 3 separate options.  also don't
33549         mention the default=no, since this is implicit given the option
33550         is described as --with-openssl rather than --without-openssl.
33551         If projects change the default they're free to document that.
33552         with --with-openssl[=yes] we now error out when the specified
33553         hash algorithm is not available in libcrypto.
33555 2013-12-03  Ivailo  <xakepa10@gmail.com>
33557         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
33558         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
33559         -Wformat-nonliteral checks, as these edge cases are part of the test.
33561 2013-12-03  Eric Blake  <eblake@redhat.com>
33563         regex: avoid glibc deadlock during configure
33564         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
33565         glibc bug 15078 in turn triggers bug 16159.
33566         Reported by Michal Privoznik.
33568 2013-12-02  Pádraig Brady  <P@draigBrady.com>
33570         md5, sha1, sha256, sha512: use openssl routines if available.
33571         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
33572         routines will be used if available, requiring apps to link @LIB_CRYPTO@
33573         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
33574         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
33575         in the standard system location.
33576         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
33577         * m4/sha256.m4: Likewise with SHA256.
33578         * m4/sha512.m4: Likewise with SHA512.
33579         * m4/md5.m4: Likewise with MD5.
33580         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
33581         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
33582         * lib/sha256.h: Likewise with SHA256.
33583         * lib/sha512.h: Likewise with SHA512.
33584         * lib/md5.h: Likewise with MD5.
33585         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
33586         * lib/sha256.c: Likewise with SHA256.
33587         * lib/sha512.c: Likewise with SHA512.
33588         * lib/md5.c: Likewise with MD5.
33589         * modules/crypto/sha1 (Link:): Add the new optional lib.
33590         (Depends-on:): Add dependency on extern-inline.
33591         * modules/crypto/sha256: Likewise.
33592         * modules/crypto/sha512: Likewise.
33593         * modules/crypto/md5: Likewise.
33594         * modules/crypto/sha1-tests: Reference the lib here too.
33595         * modules/crypto/md5-tests: Likewise.
33596         * modules/crypto/gc-des-tests: Likewise.
33597         * modules/crypto/gc-hmac-md5-tests: Likewise.
33598         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33599         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33600         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33601         * modules/crypto/gc-md5-tests: Likewise.
33602         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33603         * modules/crypto/gc-sha1-tests: Likewise.
33604         * modules/crypto/gc-tests: Likewise.
33605         * modules/crypto/hmac-md5-tests: Likewise.
33606         * modules/crypto/hmac-sha1-tests: Likewise.
33607         * modules/crypto/hmac-sha256-tests: Likewise.
33608         * modules/crypto/hmac-sha512-tests: Likewise.
33610 2013-11-29  RV1971  <rv1971@web.de>
33612         base64: (trivial) fix compilation regression on some compilers
33613         * lib/base64.c: Don't return the void function,
33614         instead split to a separate return statement.
33616 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33618         ignore-value: revert previous code change
33619         * lib/ignore-value.h (ignore_value): Use __extension__ and
33620         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
33621         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
33622         Change the comment to try to explain this better.
33624 2013-11-27  Pádraig Brady  <P@draigBrady.com>
33626         selinux-h: improve stub types and add more stub functions
33628         * lib/se-selinux.in.h: Change security_context_t to a typedef
33629         rather than a define, as it's a pointer type and so is better
33630         as a typedef to avoid issues declaring multiple variables
33631         with the comma operator.  Also add stub for string_to_security_class().
33632         * lib/se-context.in.h: Add stub functions for
33633         context_{type,range,role,user}_get().
33635 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33637         ignore-value: prefer GCC version back through 2.0
33638         The code didn't match the comments, so I did a bit of software
33639         archaeology.  GCC 2.0 seems to support __extension__ and
33640         __typeof__, so fix both code and comments to use 2.0.
33641         * lib/ignore-value.h (ignore_value): Use __extension__ and
33642         __typeof__ for GCC 2.0 through 3.3, too.
33644 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
33646         pty: Activate the signature wrapper of forkpty.
33647         The intended preprocessor macro HAVE_FORKPTY is
33648         never defined, yet `lib/forkpty.c' depends on it.
33650         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
33651         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
33652         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
33654 2013-11-18  Jim Meyering  <meyering@fb.com>
33655         and Paul Eggert  <eggert@cs.ucla.edu>
33657         quotearg: don't attempt to store 1 << 31 into an "int"
33658         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
33659         gcc's new -fsanitize=undefined and running its tests triggered some
33660         new test failures due to undefined behavior, all with this diagnostic:
33661           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33662             cannot be represented in type int
33663         Rather than shifting "1" left to form a mask, shift the bits right and
33664         simply use "1" as the mask.
33666 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33668         error: depend on stdio
33669         Problem reported by Nikos Mavrogiannopoulos in
33670         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33671         * modules/error (Depends-on): Add stdio.
33673 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33675         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33676         wording.
33677         Reported by Reuben Thomas <rrt@sc3d.org>.
33679 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33681         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33682         New function and macro, to work around _DARWIN_C_SOURCE problem.
33683         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33685 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33687         base64: provide a fast path for encoding well sized buffers
33688         Avoid conditionals in the base64 encoding loop,
33689         which was seen to give 60% better throughput.
33690         * lib/base64.c (base64_encode_fast): A new function to be called
33691         when we don't want to NUL terminate, and we have enough space
33692         in the output to encode the given input.
33693         (base64_encode): Call the _fast() version when appropriate.
33694         Also remove a redundant mask with 0x3F on the first encoded byte.
33696 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33698         extern-inline: port better to OS X 10.9
33699         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33700         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33701         OS X 10.9, except for g++ where the bug is still present.
33702         See <http://trac.macports.org/ticket/41033>.
33704 2013-11-08  Eric Blake  <eblake@redhat.com>
33706         fpending: fix regression on DragonFly BSD
33707         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33708         * lib/fpending.h (__fpending): Don't declare twice.
33709         Reported by GW in
33710         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33712 2013-11-05  Jim Meyering  <meyering@fb.com>
33714         hash: relax license to LGPLv2+, for libguestfs
33715         * modules/hash (License): Change from GPL to LGPLv2+.
33717 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33719         intprops: port to Oracle Studio c99
33720         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33721         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33723 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33725         obstack: pacify HP C
33726         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33727         warning "conversion from pointer to smaller integer" from HP
33728         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33729         C89 or later nowadays, so cast to void instead of int.  Privately
33730         reported by H.Merijn Brand.  Also, change header to match glibc's,
33731         to make checking against glibc easier.
33733 2013-10-29  Jim Meyering  <meyering@fb.com>
33735         maint.mk: prefer gpgv2 over gpgv
33736         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33737         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33738         Reported by Gary Vaughan.
33740 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33742         isnan: port to VAX
33743         Reported by John Klos for NetBSD-5/VAX in
33744         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33745         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33746         (FUNC): Use it.
33748 2013-10-28  Jim Meyering  <meyering@fb.com>
33750         gnulib-tool: protect against CDPATH
33751         * gnulib-tool: Many "cd" built-in functions print a directory name
33752         to stdout when CDPATH is set, e.g.,
33753           $ bash -c 'CDPATH=/; cd tmp'
33754           /tmp
33755         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33757         maint.mk: restore functionality removed by recent change...
33758         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33759         the context of a shallow-cloned gnulib repository: "git describe"
33760         would fail in such a directory.  However, that change made it so
33761         the reported gnulib revision no longer includes the version number
33762         or a commit count, even when run from a full clone.
33763         * top/maint.mk (gnulib-version): Use the full "git describe"
33764         output when possible, e.g., the form above, rather than the
33765         abbreviated, no-tag, no-commit-count string, and fall back to
33766         using a 10-byte hash, rather than the default minimal-length
33767         hash prefix, since while the minimal-length one may be fine today,
33768         it is likely not to be unique for very long.
33770 2013-10-26  Jim Meyering  <meyering@fb.com>
33772         maint.mk: fix "release" target to build _version
33773         This fixes a bug in README-release whereby following the outlined
33774         steps, one would publish a tarball whose programs would report
33775         --version output not consistent with the package version number.
33776         This bug caused grep-2.15 to produce a grep program whose
33777         --version option made it print 2.14.56-1e3d rather than 2.15.
33778         * top/maint.mk (release): Making this target build "_version"
33779         ensures that the new version number is reflected in configure.
33781 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33783         install-reloc: Support multi-binary installation.
33784         * build-aux/install-reloc: Support installing multiple programs in
33785         one invocation, as done by Automake starting with commit
33786         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33787         Haible <bruno@clisp.org>, archived at
33788         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33789         Reported by Sylvain <beuc@gnu.org>.
33791 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33793         selinux-h: Really build without selinux when library is missing.
33794         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33795         continue without selinux, as already told in the warning message.
33797 2013-10-21  Jim Meyering  <meyering@fb.com>
33799         regex: also remove dependency on HAVE_WCSCOLL
33800         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33802 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33804         xfreopen: Fix typo. s/frepoen/freopen/
33805         * lib/xfreopen.c: Fix description.
33806         * modules/xfreopen: Likewise.
33808 2013-10-21  Jim Meyering  <meyering@fb.com>
33810         regex: don't depend on wcscoll
33811         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33812         It is no longer used.
33814 2013-10-20  Jim Meyering  <meyering@fb.com>
33816         error: add the printf attribute to a static function
33817         * lib/error.c (error_tail): Add the printf attribute, to placate
33818         gcc's -Werror=suggest-attribute=format option.
33820 2013-09-30  Jim Meyering  <meyering@fb.com>
33822         fpending, obstack, strerror-override: use pure+const function attrs
33823         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33824         * lib/obstack.c (_obstack_allocated_p): Likewise.
33825         * lib/obstack.h (_obstack_memory_used): Likewise.
33826         (_obstack_memory_used): Likewise.
33827         * lib/strerror-override.h (strerror_override): Declare with
33828         the "const" attribute.
33830 2013-10-18  Eric Blake  <eblake@redhat.com>
33832         extern-inline: make safe for -Wundef usage
33833         Reported by Vladimir 'phcoder' Serbinenko in
33834         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33835         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33837 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33839         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33840         Problem reported by Daniel Richard G. in
33841         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33842         * doc/posix-functions/mkfifo.texi (mkfifo):
33843         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33844         * doc/posix-functions/mknod.texi (mknod):
33845         * doc/posix-functions/mknodat.texi (mknodat):
33846         Document the HP-UX 11.11 bug.
33847         * tests/test-mkfifo.h (test_mkfifo):
33848         Allow the HP-UX 11.11 bug.
33850 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33852         acl: allow cross-compilation to Gentoo
33853         Problem reported by Gabriel Marcano in
33854         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33855         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33856         test only whether it links.
33858 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33860         mgetgroups: remove dependency on realloc-gnu
33861         The dependency violates the comment in realloc-gnu, which
33862         says that tests can't depend on realloc-gnu; some tests depend
33863         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33864         Problem reported by Daniel Richard G. in
33865         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33866         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33867         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33868         not realloc-gnu.
33870 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33872         regex-tests: port to HP-UX 11.11
33873         Problem reported by Daniel Richard G. in
33874         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33875         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33877 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33879         verify: document some 'assume' pitfalls
33880         * doc/verify.texi (Compile-time Assertions):
33881         Mention that 'assume (E)' can sometimes slow things down.
33882         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33884 2013-10-10  Eric Blake  <eblake@redhat.com>
33886         strtoumax: fix typo in previous commit.
33887         * modules/strtoumax (Depends-on): Fix typo.
33888         * modules/strtoimax (Depends-on): Likewise.
33890 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33892         strtoumax: port to Solaris 8
33893         This problem was introduced in the recent HP-UX patch.
33894         Reported by Tom G. Christensen in
33895         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33896         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33897         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33899 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33901         strtoimax, strtoumax: port to HP-UX 11.11
33902         Problem reported by Daniel Richard G. in
33903         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33904         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33905         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33906         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33907         REPLACE_STRTOUMAX.
33908         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33909         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33910         Replace the function if defined as a macro but not as a function.
33911         * modules/inttypes-incomplete (inttypes.h): Substitute
33912         REPLACE_STRTOUMAX.
33913         * modules/strtoumax (configure.ac): Replace strtoumax if
33914         REPLACE_STRTOUMAX.
33916 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33918         strtoimax: port to HP-UX 11.11
33919         Problem reported by Daniel Richard G.
33920         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33921         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33922         they might clash with inttypes.h.
33924 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33926         New module 'count-trailing-zeros'.
33927         * MODULES.html.sh: Mention it.
33928         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33929         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33930         * modules/count-trailing-zeros-tests:
33931         * tests/test-count-trailing-zeros.c:
33932         New files.
33934         count-leading-zeros: port to MSC; support types wider than 64 bits
33935         The ideas behind the MSC port are stolen from Emacs.
33936         * lib/count-leading-zeros.h:
33937         Don't include verify.h: it's no longer needed, as types wider than
33938         64 bits are now supported.
33939         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33940         performance with MSC.  All uses changed.  Do not assume that TYPE
33941         has at most 64 bits.
33942         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33943         All uses changed.  Fold the subtraction from 31 into the table.
33945         count-one-bits: port to MSC; support types wider than 64 bits
33946         The ideas behind the MSC port are stolen from Emacs.
33947         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33948         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33949         Don't include verify.h: it's no longer needed, as types wider than
33950         64 bits are now supported.
33951         (COUNT_ONE_BITS_GENERIC): New macro.
33952         (popcount_supported) [_MSC_VER]: New inline function.
33953         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33954         performance with MSC.  All uses changed.  Do not assume that TYPE
33955         has at most 64 bits.
33956         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33958 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33960         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33961         * lib/mountlist.c (read_file_system_list): fix leak of directory
33962         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33964 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33966         tests: improve diagnostic when an assertion fails
33967         * tests/macros.h (ASSERT): Report the assertion that failed.
33969 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33971         verify: new macro 'assume'
33972         This is taken from Emacs, and should be generally useful.
33973         * doc/verify.texi (assume): Document it.
33974         * lib/verify.h (assume): New macro.
33975         (__has_builtin): Expand to 0 if not defined.
33977 2013-09-26  Eric Blake  <eblake@redhat.com>
33979         dup2, dup3: work around another cygwin crasher
33980         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33981         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33982         * tests/test-dup2.c (main): Likewise.
33983         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33984         * lib/dup3.c (dup3): Likewise.
33985         * doc/posix-functions/dup2.texi (dup2): Document it.
33986         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33988         getdtablesize: work around cygwin issue
33989         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33990         * modules/getdtablesize (configure.ac): Build replacement.
33991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33992         * modules/unistd (Makefile.am): Expose the witness.
33993         * lib/unistd.in.h (getdtablesize): Declare replacement.
33994         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33995         * tests/test-getdtablesize.c (main): Test it.
33996         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33998 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
34000         pmccabe2html: escaping of special characters
34001         Escape all '<', '>', and '&' in HTML output.
34002         * build-aux/pmccabe2html (html_fnc): Call gsub()
34003         instead of sub() to capture all '<', '>', and '&'.
34004         Neither of '<' and '>' is special in a regexp,
34005         so first arguments to gsub() are corrected. Also,
34006         in replacement strings, ampersand must be escaped.
34007         Finally, '&' must be handled first, then '<' and '>'.
34009 2013-09-24  Eric Blake  <eblake@redhat.com>
34011         manywarnings: enable nicer gcc warning messages
34012         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
34013         some -f options for optimal warnings.
34015 2013-09-21  Jim Meyering  <meyering@fb.com>
34017         timespec: use the new TIMESPEC_RESOLUTION in a few more places
34018         * lib/timespec-add.c (timespec_add): Also replace 999999999
34019         with TIMESPEC_RESOLUTION - 1.
34020         * lib/timespec-sub.c (timespec_sub): Likewise.
34022 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34024         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
34025         Problem reported by Dagobert Michelsen via Eric Blake in
34026         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
34027         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
34028         not AC_COMPILE_IFELSE.
34030 2013-09-23  Eric Blake  <eblake@redhat.com>
34032         configmake: support new --runstatedir option
34033         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
34034         even if autoconf was too old to provide the command line option.
34035         * modules/configmake (Makefile.am): Propagate it to .h file.
34037 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34039         ctype, string: depend on extern-inline
34040         This is needed to complete the recent OS X fixes.
34041         Also, fix related documentation as suggested by Eric Blake.
34042         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34043         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
34044         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
34045         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
34046         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
34047         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
34048         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
34049         * doc/posix-functions/toupper.texi:
34050         List the 'ctype' gnulib module.
34051         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
34052         * doc/posix-functions/strncpy.texi:
34053         List the 'string' gnulib module.
34054         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
34055         Add string.
34056         * modules/ctype, modules/string (Depends-on): Add extern-inline.
34058 2013-09-19  Pádraig Brady  <P@draigBrady.com>
34060         userspec: support optional parameters to parse_user_spec()
34061         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
34062         then avoid group processing and treat the full spec as a user.
34063         (parse_with_separator): Allow the USERNAME and GROUPNAME to
34064         be optional params (NULL), in which case they're ignored.
34066 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
34068         timespec: new function make_timespec, and new constants
34069         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
34070         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
34071         (make_timespec): New function.
34072         * lib/dtotimespec.c (dtotimespec):
34073         * lib/timespec-add.c (timespec_add):
34074         * lib/timespec-sub.c (timespec_sub):
34075         * lib/utimens.c (validate_timespec):
34076         * lib/utimensat.c (rpl_utimensat):
34077         Use these new constants and functions.
34079         stdio: OS X port of putc_unlocked + extern inline
34080         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
34081         * doc/posix-functions/putc_unlocked.texi:
34082         * doc/posix-functions/putchar_unlocked.texi:
34083         Document this portability problem.
34085         signal: OS X port of sigaddset etc. + extern inline
34086         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
34087         (sigismember): #undef on problematic Apple platforms.
34088         * doc/posix-functions/sigaddset.texi:
34089         * doc/posix-functions/sigdelset.texi:
34090         * doc/posix-functions/sigemptyset.texi:
34091         * doc/posix-functions/sigfillset.texi:
34092         * doc/posix-functions/sigismember.texi:
34093         Document this portability problem.
34095         extern-inline: do not always suppress extern inline on OS X
34096         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
34097         extern inline on Apple only if the particular compile-time
34098         configuration is known to have the problem.
34099         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
34100         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
34101         other Gnulib modules.
34103         extern-inline: document fixes for ctype and wctype macros
34104         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34105         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
34106         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
34107         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
34108         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
34109         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
34110         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
34111         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
34112         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
34113         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
34114         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
34115         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
34116         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
34117         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
34118         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
34119         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
34120         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
34121         * doc/posix-functions/strncpy.texi:
34122         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
34123         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
34124         Document that Gnulib fixes portability problems with these
34125         functions on OS X 10.8 and earlier when called from plain inline
34126         or extern inline functions.
34128 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
34130         fflush, freadahead, fseeko: Fix for Android
34131         Suggested by Bruno Haible in:
34132         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
34133         * lib/stdio-impl.h: Use local __sfileext definition.
34135 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
34137         pmccabe2html: Portability to other awk versions.
34138         The functions systime() and strftime() are available
34139         in Gawk only.  Properly close two HTML-tags 'style'
34140         and 'span'.
34141         * build-aux/pmccabe2html (BEGIN): Store timing
34142         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
34143         systime() in HTML_COMMENT.
34144         (html_header): Correctly close tag 'style'.
34145         (END): Replace strftime() by CHRONOS_TIME.  Close
34146         tag 'span' correctly, not as 'div'.
34148 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34150         getgroups: statement without effect
34151         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
34152         Change equality conditional to expected assignment.
34154 2013-09-09  Eric Blake  <eblake@redhat.com>
34156         glob: fix compilation
34157         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
34159 2013-09-07  Eric Blake  <eblake@redhat.com>
34161         glob: fix build for platforms without __THROW
34162         * lib/glob.in.h (__THROW): Add definition again.
34164 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
34166         regex-quote: fix buffer access out of bounds
34167         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
34168         * lib/regex-quote.c (regex_quote_spec_pcre):
34169         Fix typo that resulted in an out-of-bounds read.
34171 2013-09-04  Eric Blake  <eblake@redhat.com>
34173         glob: avoid -Wattribute warnings on glibc
34174         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34175         __THROWNL, not __THROW, on static functions.
34176         * lib/glob.in.h (__THROW): Adjust...
34177         (__THROWNL): ...accordingly.
34179 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34181         headers: check that _GL_INLINE_HEADER_BEGIN is defined
34182         Suggested by Bruce Korb in:
34183         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
34184         * doc/extern-inline.texi (extern inline):
34185         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
34186         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
34187         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
34188         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
34189         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
34190         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
34191         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34192         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
34193         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
34194         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
34195         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
34196         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
34197         * lib/xtime.h:
34198         Check that _GL_INLINE_HEADER_BEGIN is defined.
34200 2013-08-29  Pádraig Brady  <P@draigBrady.com>
34202         bootstrap: remove the --version requirement from ancillary tools
34203         * build-aux/bootstrap (check_exists): A new refactored function to
34204         determine if a command exists.
34205         (find_tool): Use the new function which does not require the
34206         --version option to be supported.
34207         (check_versions): Use the new function.
34209 2013-08-26  Simon Josefsson  <simon@josefsson.org>
34211         gc: support HMAC-SHA256 and HMAC-SHA512.
34212         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
34213         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
34214         functions.
34215         (gc_hmac_md5): Use symbolic constant.
34216         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
34217         (gc_hmac_sha256, gc_hmac_sha512): New functions.
34218         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
34219         * m4/sha256.m4: Protect against empty expansion.
34220         * m4/sha512.m4: Likewise.
34221         * lib/hmac-sha256.c: New file.
34222         * lib/hmac-sha512.c: Likewise.
34223         * m4/gc-hmac-sha256.m4: Likewise.
34224         * m4/gc-hmac-sha512.m4: Likewise.
34225         * m4/gc-sha256.m4: Likewise.
34226         * m4/gc-sha512.m4: Likewise.
34227         * modules/crypto/gc-hmac-sha256: Likewise.
34228         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34229         * modules/crypto/gc-hmac-sha512: Likewise.
34230         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34231         * modules/crypto/hmac-sha256: Likewise.
34232         * modules/crypto/hmac-sha256-tests: Likewise.
34233         * modules/crypto/hmac-sha512: Likewise.
34234         * modules/crypto/hmac-sha512-tests: Likewise.
34235         * tests/test-gc-hmac-sha256.c: Likewise.
34236         * tests/test-gc-hmac-sha512.c: Likewise
34237         * tests/test-hmac-sha256.c: Likewise.
34238         * tests/test-hmac-sha512.c: Likewise
34240 2013-08-24  Daiki Ueno  <ueno@gnu.org>
34242         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
34243         of AC_CHECK_DECLS.
34245 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34247         selinux-at: omit unnecessary include
34248         * lib/selinux-at.c: Don't include dosname.h; not needed, since
34249         this source file doesn't use its macros, and subsidiary files that
34250         use the macros already include it.
34252 2013-08-21  Eric Blake  <eblake@redhat.com>
34254         d-ino: avoid false negative on symlink
34255         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
34256         Reported by Stephane Chazelas.
34258 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
34260         bootstrap: port to OpenBSD sed
34261         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
34262         does not interpret `-' as a file argument to mean stdin.
34264 2013-08-15  Eric Blake  <eblake@redhat.com>
34266         warnings: minor optimization
34267         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
34269         warnings: check -Wfoo rather than -Wno-foo
34270         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
34271         -Wno-, test if the compiler recognizes the positive form instead.
34273 2013-08-15  Karl Berry  <karl@gnu.org>
34275         * config/srclist-update: add option "doclicense" to placate
34276         pulling *.texi files from Emacs.  Write terse usage
34277         documentation at the top.
34279 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
34281         xvasprintf-tests: port to GCC with hardening flags
34282         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
34283         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
34284         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
34286 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34288         fpending: port to recent Cygwin change to stdio_ext.h
34289         Reported by LRN in
34290         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
34291         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
34292         just declare __fpending unless it's a macro.
34293         A duplicate decl shouldn't hurt.
34294         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
34295         call compiles and links, instead of separately checking for
34296         decl and lib function.
34297         * modules/fpending (configure-ac):
34298         Adjust to fpending.m4's renaming of shell variable.
34300 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34302         sys_time: port to OpenBSD
34303         * lib/sys_time.in.h: Simply delegate to the system's header
34304         in the BSDish cases as well.  Problem reported by Mike Miller in
34305         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
34306         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
34307         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
34308         wider than time_t.
34310 2013-08-09  Pádraig Brady  <P@draigBrady.com>
34312         bootstrap: support checksum utils having -c but not --status
34313         * build-aux/bootstrap: Only look for sha1sum if updating po files.
34314         Add sha1 to the list of supported checksum utils since it's now
34315         supported through adjustments below.
34316         (update_po_files): Remove the use of --status
34317         in a way that will suppress all error messages, but since this is
34318         only used to minimize updates, it shouldn't cause an issue.
34319         Exit early if there is a problem updating the po file checksums.
34320         (find_tool): Remove the check for --version support as this
34321         is optional as per commit 86186b17.  Don't even check for the
34322         presence of the command as if that is needed, it's supported
34323         through configuring prerequisites in bootstrap.conf.
34324         Prompt that when a tool isn't found, one can define an environment
34325         variable to add to the hardcoded search list.
34327 2013-08-05  Jim Meyering  <meyering@fb.com>
34329         regex: port to non-glibc/lock-using systems
34330         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
34331         system with GNULIB_LOCK would fail due to absence of the
34332         included "glthread/lock.h".  This would affect any package
34333         for which the "lock" module is used only by the regex module,
34334         and not explicitly used.
34335         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
34336         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
34337         Add a dependency on the "lock" module.
34339 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34341         localecharset: make locale_charset thread-safe on Mac OS X
34342         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34343         instead of MB_CUR_MAX.
34345 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34347         gettext: update to version 0.18.3
34348         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34349         require AC_PROG_SED to allow user to specify custom sed command when
34350         generating en@quot PO file.
34352 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34354         bootstrap: use correct source when copying build-aux files
34355         * build-aux/bootstrap (gnulib_extra_files): This variable is
34356         relative to upstream gnulib layout, not downstream.
34358 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34360         tmpdir: fix bug in VMS port
34361         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34362         See Steven M. Schweda in
34363         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34365 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34367         tmpdir: port to VMS, to // != /, and to long dirs
34368         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34369         __secure_getenv, so that we're more like the glibc version.
34370         All uses changed.
34371         (path_search): Don't put slash after directory if __VMS.
34372         Problem reported by Steven M. Schweda in
34373         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34374         Simplify code to add slash; no need for a loop.
34375         Do not remove trailing slash from "//".
34376         Do not assume dlen <= INT_MAX.
34378 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34380         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34381         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34382         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34383         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34385         accept4, dup3, pipe2: port to Cygwin
34386         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34387         * lib/accept4.c (accept4) [O_BINARY]:
34388         * lib/dup3.c (dup3) [O_BINARY]:
34389         * lib/pipe2.c (pipe2) [O_BINARY]:
34390         Use set_binary_mode, not setmode.
34391         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34392         * modules/binary-io (Depends-on): Remove module indicator.
34393         These last two bits undo the previous change to pipe2 and binary-io.
34395 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34397         mountlist: add support for deallocating returned list entries
34398         * lib/mountlist.c (free_mount_entry): A new exported function
34399         to deallocate a mount list entry.
34400         (read_file_system_list): Refactor to use the new deallocation function.
34401         Suggested by Anton Ovchinnikov.
34403 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34405         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34406         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34407         * lib/stdalign.in.h (_Alignas, _Alignof):
34408         Port to FreeBSD 9.1, and to C11 and C++11.
34409         (_Alignas): Also support ICC.
34410         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34411         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34413 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34415         fnmatch: don't goto over declaration
34416         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34417         undefined behavior for goto over a declaration.
34418         Problem reported by Charlie Brown in
34419         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34421         pipe2: decouple from binary-io a bit
34422         This is for Emacs, which needs pipe2 but not binary-io.
34423         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34424         * modules/binary-io (Depends-on): Add module indicator.
34426 2013-07-03  Eric Blake  <eblake@redhat.com>
34428         mgetgroups: relax license to LGPLv2+
34429         * modules/getugroups (License): Change from GPLv3+.
34430         * modules/mgetgroups (License): Likewise.
34431         * modules/getgroups (License): Change from LGPLv3+.
34433         xalloc-oversized: relax license to LGPLv2+
34434         * modules/xalloc-oversized (License): Change from GPLv3+.
34436         nproc: relax license to LGPLv2+
34437         * modules/nproc (License): Change from LGPLv3+.
34439         bootstrap: honor --no-git
34440         * build-aux/bootstrap: Don't even try to use git when user is
34441         pointing to a static checkout.
34443 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34445         ignore-value: port to gcc -pedantic
34446         * lib/ignore-value.h (ignore_value):
34447         Port to gcc -pedantic, by using __extension__.
34448         Reindent as per usual gnulib style nowadays.
34449         Simplify GCC version check.
34451 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34453         extern-inline: port to gcc -std=c89
34454         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34455         Do not use __gnu_inline__ if pedantic and pre-C99.
34457 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34459         doc: document extern-inline
34460         * doc/extern-inline.texi: New file.
34461         * doc/gnulib.texi (alloca-opt): Include it.
34462         * m4/extern-inline.m4: Move some comments to documentation,
34463         and others closer to what they describe.
34465         doc: chatter less
34466         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
34467         (updated-stamp): Use it.  This causes 'make' to output just
34468         one file name rather than zillions.
34470         fflush, fseeko: port to musl cross-compiles
34471         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
34472         on some implementation that (1) is not known to be buggy,
34473         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
34474         cross-compiled to so we can't easily check for lack of
34475         conformance.  This is for cross-compiling to musl.
34476         Reported by Rich Felker in
34477         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
34478         * m4/fclose.m4 (gl_FUNC_FCLOSE):
34479         * m4/fflush.m4 (gl_FUNC_FFLUSH):
34480         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
34481         Adjust to above change.
34482         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
34483         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
34484         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
34485         known not to work, or unknown.
34487 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34489         msvc-inval: port to mingw-w64
34490         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
34491         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
34492         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
34494 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34496         getcwd-lgpl: port to Tru64
34497         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
34498         Problem reported by Steven M. Schweda in
34499         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
34501         tests: port large-fd POSIX spawn tests to OS X
34502         Problem reported by Daiki Ueno in
34503         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
34504         * tests/test-posix_spawn_file_actions_addclose.c:
34505         * tests/test-posix_spawn_file_actions_adddup2.c:
34506         * tests/test-posix_spawn_file_actions_addopen.c:
34507         Include <limits.h>, for OPEN_MAX, if available.
34508         (big_fd): New static function.
34509         (main): Use it.
34511 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
34513         tests/nap.h: use an adaptive delay to avoid ctime update issues
34514         The recent change in nap.h (5191133e) decreased the probability of lost
34515         races to about a third, however such problems could still be observed
34516         in virtual machines and openSUSE's OBS.
34517         Before, nap() detected the needed time once empirically and then used
34518         that delay (together with a small correction multiplier) in further
34519         calls.  This problem has been reported and discussed several times,
34520         including guesses about possible kernel issues:
34521         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
34522         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
34523         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
34524         http://bugs.gnu.org/12820
34525         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
34526         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
34527         Now, nap() avoids the race alltogether by verifying on a reference
34528         file whether a timestamp difference has happened.
34529         * tests/nap.h (nap_fd): Define file descriptor variable for the
34530         witness file.
34531         (nap_works): Change return value to bool.  Change passing
34532         the old file's status by value instead of by reference as this function
34533         does no longer update that timestamp; rename the function argument from
34534         st to old_st.  Remove the local variables cdiff and mdiff because that
34535         function now returns true/false instead of the precise delay.
34536         (guess_delay): Remove function.
34537         (clear_tmp_file): Add new function to close and unlink the witness file.
34538         (nap): Instead of re-using the delay which has been calculated during
34539         the first call, avoid the race by actually verifying that a timestamp
34540         difference can be observed on the current file system.  Use an adaptive
34541         approach for the delay to minimize execution time.  Assert that the
34542         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
34543         = 2^31 - 1 = 2.1s.
34544         Use atexit to call clear_tmp_file when the process terminates.
34546 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34548         sig2str: port to C++
34549         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
34550         Reported by Daniel J Sebald in
34551         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
34553 2013-05-30  Eric Blake  <eblake@redhat.com>
34555         docs: mention cygwin shortcoming in <sys/un.h>
34556         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
34558         vasnprintf: silence mingw compiler warning
34559         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
34561 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34563         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
34564         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
34565         This fixes a porting bug I recently reintroduced in regex, and
34566         some other instances that I discovered while testing the fix.
34567         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
34568         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
34569         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
34570         with an empty argument if this is a pedantic pre-C99 GCC.
34571         * lib/verify.h: Do not use _Static_assert if this is a pedantic
34572         pre-C11 GCC.
34574         regex: adapt to locking regime instead of depending on pthread
34575         Instead of depending on pthread, adapt to whatever thread
34576         modules are in use.  Problem reported by Ludovic Courtès in
34577         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
34578         and by Mats Erik Andersson in
34579         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
34580         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34581         Support either the 'lock' module, or the 'pthread' module, or
34582         no module.
34583         (lock_lock, lock_unlock): New macros.
34584         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
34585         * modules/lock, modules/pthread (configure.ac): Add module indicator.
34586         * modules/regex (Depends-on): Remove pthread.
34588 2013-05-22  Eric Blake  <eblake@redhat.com>
34590         getgroups: document portability issues
34591         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34592         multithread safety.
34593         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34594         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34595         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34596         getugroups.
34597         * doc/posix-functions/getgroups.texi (getgroups): Mention
34598         multithread safety and mgetgroups.
34600 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
34602         test-lchown, test-chown: also skip test if chown fails with EPERM
34603         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
34604         skip this test, to handle FAT file systems.
34605         * tests/test-chown.h (test_chown): Likewise.
34607 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34609         regex: fix dfa race in multithreaded uses
34610         Problem reported by Ludovic Courtès in
34611         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
34612         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34613         New macros.  All uses of __libc_lock_define, __libc_lock_init
34614         changed to use the first two of these.
34615         (__libc_lock_lock, __libc_lock_unlock): New macros, for
34616         non-glibc platforms.
34617         (struct re_dfa_t): Define the lock unconditionally.
34618         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
34619         '#ifdef _LIBC"s.
34620         * modules/regex (Depends-on): Add pthread, if we use the
34621         included regex.
34623         * lib/regcomp.c: Do actions that are not needed for glibc,
34624         but may be needed elsewhere.
34625         (regfree, re_compile_internal): Destroy the lock.
34626         (re_compile_internal): Check for lock-initialization failure.
34628         malloca: port to compilers that reject size-zero arrays
34629         This fixes a bug introduced in my previous patch.
34630         * lib/malloca.c (struct preliminary_header): Use an int
34631         rather than a character array of size int; that's simpler.
34632         (struct header): Remove, replacing with ...
34633         (union header): New type.  This avoids the need for declaring a
34634         character array of size zero, which is not allowed on some platforms.
34635         All uses changed.
34637 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34639         parse-datetime, tests: don't use "string" + int
34640         Recent versions of 'clang' complain about C source code that
34641         uses expressions of the form '"string literal" + integer',
34642         I guess on the theory that it's confusing for readers who are
34643         used to C++.  On those grounds I suppose it's OK to make this
34644         minor style change.
34645         * lib/parse-datetime.y (parse_datetime):
34646         * tests/test-fchdir.c (main):
34647         * tests/test-snprintf-posix.h (test_function):
34648         * tests/test-snprintf.c (main):
34649         * tests/test-vasnprintf-posix.c (test_function):
34650         * tests/test-vasnprintf.c (test_function):
34651         * tests/test-vsnprintf.c (main):
34652         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
34653         Rewrite '"str" + E' to '&"str"[E]'.
34655 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34657         argmatch: port to C++
34658         * lib/argmatch.h [__cplusplus]: Add extern "C".
34660         argp: typo fix
34661         * lib/argp-help.c: Typo in comment.
34663 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34665         manywarnings: update for GCC 4.8.0
34666         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34667         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34668         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34669         -Wmissing-noreturn, as they are duplicates of other warnings.
34670         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34671         was documented to be flaky in earlier versions of GCC.
34673         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34674         * tests/test-spawn.c (main):
34675         * tests/test-sys_socket.c (main):
34676         * tests/test-sys_wait.c (main):
34677         Don't have a switch value that isn't covered by a case.
34679         getaddrinfo-tests: port --enable-gcc-warnings to clang
34680         * tests/test-getaddrinfo.c (simple):
34681         Avoid casts from looser to stricter-aligned pointers.
34683         thread: port --enable-gcc-warnings to clang
34684         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34685         Include <signal.h>, to pacify a warning about pthread_sigmask.
34687         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34688         * lib/stdio.in.h (fwrite):
34689         When working around bug 11959, use __REDIRECT rather than '#define
34690         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34691         fix the -Wunused-value issue with clang, and it works with GCC too.
34692         Problem with targeting reported by Eric Blake in
34693         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34694         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34695         debugging the fwrite issue.
34697         stdio: port --enable-gcc-warnings to clang
34698         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34699         since the GCC workaround for fwrite does not pacify clang.
34701         sig2str: port --enable-gcc-warnings to clang
34702         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34704         obstack: port --enable-gcc-warnings to clang
34705         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34706         Avoid casts from looser to stricter-aligned pointers.
34708         memchr2: port --enable-gcc-warnings to clang
34709         * lib/memchr2.c (memchr2):
34710         Avoid casts from looser to stricter-aligned pointers.
34712         mbsstr: port --enable-gcc-warnings to clang
34713         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34714         Avoid casts from looser to stricter-aligned pointers.
34716         malloca: port --enable-gcc-warnings to clang
34717         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34718         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34720         inttostr: port --enable-gcc-warnings to clang
34721         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34723         warnings: port to clang
34724         Problem reported by Daniel P. Berrange via Eric Blake in
34725         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34726         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34727         (gl_WARN_ADD): Use it.
34729 2013-05-11  Jim Meyering  <meyering@fb.com>
34731         quotearg: do not read beyond end of buffer
34732         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34733         end of an ARG for which no length was specified.  With an N-byte
34734         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34735         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34736         via coreutils' misc/sort-debug-keys.sh test and detected by running
34737         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34738         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34739         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34740         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34741         characters correctly."
34743 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34745         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34746         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34747         compilation target is Mac OS X 10.6.
34748         Problem reported by parafin and Andoni Morales in
34749         <http://savannah.gnu.org/bugs/?37844> and
34750         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34752 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34754         mkdir-p: remove assumptions about umask and mode
34755         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34756         umask is 0, or that MODE is a subset of MODE_BITS.
34758 2013-05-10  Eric Blake  <eblake@redhat.com>
34760         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34761         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34763 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34765         deps: require Automake >= 1.9.6 in generated Makefile fragments
34767         That is the same minimal version required in the DEPENDENCIES file.
34768         Moreover, the old code generated a requirement of Automake >= 1.5,
34769         and that is an insanely outdated version.
34771         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34772         * tests/havelib/rpathlx/Makefile.am: Likewise.
34773         * tests/havelib/rpathly/Makefile.am: Likewise.
34774         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34775         * tests/havelib/rpathlz/Makefile.am: Likewise.
34776         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34777         * tests/havelib/rpathx/Makefile.am: Likewise.
34778         * tests/havelib/rpathy/Makefile.am: Likewise.
34779         * tests/havelib/rpathz/Makefile.am: Likewise.
34781 2013-05-08  Eric Blake  <eblake@redhat.com>
34783         bootstrap: AC_INIT may have more than four parameters
34784         * build-aux/bootstrap (extract_package_name): Correctly extract
34785         non-empty tarname field.  Avoid range in regex.
34786         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34788 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34790         qacl: port to MS-Windows port of GNU Emacs
34791         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34792         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34793         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34794         <http://bugs.gnu.org/14295#14>.
34796 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34798         acl: include quote.h
34799         * lib/copy-acl.c: Include quote.h.
34800         * lib/set-acl.c: Likewise.
34802 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34804         fchownat, renameat, unlinkat: update statat dependencies
34805         These modules use statat and lstatat, not fstatat; so depend on
34806         the statat module, which was split out recently from fstatat.
34807         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34808         * modules/renameat: Likewise.  Also delete fstat.
34809         URL: http://bugs.gentoo.org/468790
34811 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34813         Assume gnulib is checked out from Git, not CVS
34815         In fact, access to the gnulib repository through CVS has been
34816         disabled, or more precisely, got broken and was never restored; see:
34817         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34819         Note that support for CVS is not removed completely and unthinkingly
34820         by this change: only support for CVS checkouts of gnulib itself is
34821         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34822         files and CVS directories, for the benefit of those poor gnulib clients
34823         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34825         * gnulib-tool: Simplify accordingly.
34826         * posix-modules: Likewise.
34827         * MODULES.html.sh: Likewise.
34828         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34829         repository.
34830         * doc/gnulib-intro.texi: Likewise.
34831         * doc/gnulib-readme.texi: Likewise.
34832         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34833         sample '.gitignore' file rather than a sample '.cvsignore'.
34834         * NEWS: Update.
34835         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34836         to "CVS Autoconf" rather than "git Autoconf".
34838 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34840         utimensat-tests, etc.: try to fix some races
34841         Problem reported by Bernhard Voelker in
34842         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34843         I don't know whether this patch fixes that race condition, but it
34844         fixes *some* race conditions, so it should be a win.
34845         * modules/chown-tests (Depends-on):
34846         * modules/fchownat-tests (Depends-on):
34847         * modules/fdutimensat-tests (Depends-on):
34848         * modules/futimens-tests (Depends-on):
34849         * modules/lchown-tests (Depends-on):
34850         * modules/stat-time-tests (Depends-on):
34851         * modules/utimens-tests (Depends-on):
34852         * modules/utimensat-tests (Depends-on):
34853         Depend on nanosleep, not usleep.
34854         * modules/chown-tests (test_chown_LDADD):
34855         * modules/lchown-tests (test_lchown_LDADD):
34856         * modules/stat-time-tests (test_stat_time_LDADD):
34857         New macro.
34858         * modules/fchownat-tests (test_fchownat_LDADD):
34859         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34860         * modules/futimens-tests (test_futimens_LDADD):
34861         * modules/utimens-tests (test_utimens_LDADD):
34862         * modules/utimensat-tests (test_utimensat_LDADD):
34863         Add $(LIB_NANOSLEEP).
34864         * modules/stat-time-tests (Files): Add tests/nap.h.
34865         * tests/nap.h: Include <limits.h>, for INT_MAX.
34866         (lt_mtime): Remove.
34867         (diff_timespec): New function.
34868         (get_stat): Rename from get_mtime.  All callers changed.
34869         (nap_works): Determine the needed delay by inspecting the
34870         file system's timestamp jumps; this should be more reliable.
34871         Look at both mtime and ctime, and take the maximum of the two jumps.
34872         (nap_works, guess_delay):
34873         Return a nanosecond count, not a microsecond count.
34874         All callers changed.
34875         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34876         failure.
34877         (nap): Multiply the guess by 1.125, to accommodate the case where
34878         the file system's clock is a bit slower than nanosleep's clock.
34879         * tests/test-stat-time.c (BASE): New macro.
34880         Include nap.h.
34881         (nap): Remove; nap.h now defines this.  This removes a duplicate
34882         implementation of 'nap'.
34884         utimens, utimensat: work around Solaris UTIME_OMIT bug
34885         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34886         Linux kernel 2.6.32 does.  Work around it in the same way.
34887         * doc/posix-functions/futimens.texi (futimens):
34888         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34889         * lib/utimens.c (fdutimens, lutimens):
34890         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34892         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34893         Formerly, it was your responsibility to do this for all Makefile.ams
34894         other than Gnulib's.  Now it's your responsibility to do it for
34895         Gnulib's Makefile.am, too.
34896         * NEWS: Document this.
34897         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34899         acl: include errno.h to get errno
34900         Reported by Daiki Ueno in
34901         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34902         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34904 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34906         tests: don't assume getdtablesize () <= 10000000
34907         * modules/cloexec-tests:
34908         * modules/dup2-tests:
34909         * modules/dup3-tests:
34910         * modules/nonblocking-tests:
34911         * modules/posix_spawn_file_actions_addclose-tests:
34912         * modules/posix_spawn_file_actions_adddup2-tests:
34913         * modules/posix_spawn_file_actions_addopen-tests:
34914         * modules/unistd-safer-tests:
34915         Depend on the getdtablesize module.
34916         * tests/test-cloexec.c:
34917         * tests/test-dup-safer.c:
34918         * tests/test-dup2.c:
34919         * tests/test-dup3.c:
34920         * tests/test-fcntl.c:
34921         * tests/test-nonblocking.c:
34922         * tests/test-posix_spawn_file_actions_addclose.c:
34923         * tests/test-posix_spawn_file_actions_adddup2.c:
34924         * tests/test-posix_spawn_file_actions_addopen.c:
34925         Don't assume getdtablesize () <= 10000000.
34927 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34929         extern-inline: work around bug in Sun c99
34930         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34931         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34933 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34935         qacl: new module, broken out from the acl module
34936         This is for GNU Emacs, which wants the acl functions but does
34937         not want 'error' invoked when they fail.
34938         * lib/acl-internal.h: Do not include error.h, quote.h.
34939         (ENOSYS, ENOTSUP): Remove; no longer needed.
34940         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34941         * lib/acl.h: Include <stdbool.h>.
34942         (acl_errno_valid): New function.
34943         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34944         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34945         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34946         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34947         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34948         * lib/file-has-acl.c (file_has_acl):
34949         * lib/qcopy-acl.c (qcopy_acl):
34950         * lib/qset-acl.c (qset_acl):
34951         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34952         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34953         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34954         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34955         Add lib/set-acl.c.
34956         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34957         Add qacl.
34958         (configure.ac): Move gl_FUNC_ACL to qacl module.
34959         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34960         Rename set-mode-acl.c to set-acl.c.
34961         * lib/acl-errno-valid.c: New file.
34962         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34963         copy_acl function remains in copy-acl.c.
34964         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34965         (_): Remove; not needed.
34966         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34967         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34968         * modules/qacl: New file, moved from the old modules/acl.
34969         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34970         Remove set-mode-acl.c, copy-acl.c.
34971         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34973         alignof, intprops, malloca: port better to IBM's C compiler
34974         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34975         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34976         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34978 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34980         wctype-h: fix gettext link error on mingw
34981         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34982         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34983         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34984         rpl_towupper and rpl_towupper.
34986 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34988         regex-tests, regex: allow glibc re_search behavior
34989         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34990         re_search input data to make the multi-character collating element
34991         in it clearly visible, and treat re_search return code 0 as valid.
34992         * m4/regex.m4 (gl_REGEX): Likewise.
34994 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34996         stdalign: doc fix
34997         * doc/posix-headers/stdalign.texi (stdalign.h):
34998         Gnulib doesn't support '_Alignof expr'.
35000 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35002         stdalign: port to stricter ISO C11
35003         ISO C11 says that _Alignof's operand must be a parenthesized type.
35004         Problem reported by Eli Zaretskii in
35005         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
35006         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35007         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
35009 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35011         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
35012         Problem reported by Marco Atzeri in
35013         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
35014         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
35015         Simply delegate to the system <sys/select.h> in this case too.
35016         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
35017         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
35018         be needed on Solaris either.
35019         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
35020         Simply delegate to the system <sys/time.h> in this case.
35022 2013-03-19  Karl Berry  <karl@gnu.org>
35024         * build-aux/gnupload: check for erroneous (with gnupload) use of
35025         ftp-upload.gnu.org, tweak help.
35027 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35029         copy-file, rpmatch: fix problems found by cppcheck
35030         Reported by Arno Onken in
35031         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
35032         * lib/rpmatch.c (try): Fix memory leak.
35033         * lib/copy-file.c: Include "ignore-value.h".
35034         (qcopy_file_preserving): Ignore chown value.
35035         * modules/copy-file (Depends-on): Add ignore-value.
35037 2013-01-27  Jim Meyering  <jim@meyering.net>
35039         prefix-gnulib-mk: give better diagnostics
35040         * build-aux/prefix-gnulib-mk: Don't just "die".
35041         Give better diagnostics upon failure.
35043 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
35045         putenv: port to Solaris 10
35046         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
35047         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
35048         is not what is wanted here.
35049         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
35050         declaration, not for its existence.
35052 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
35054         mktime: fix configure typo
35055         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
35057 2013-03-12  Eric Blake  <eblake@redhat.com>
35059         regex-tests: skip UTF-8 test on mingw
35060         * modules/regex-tests (Depends-on): Add localcharset.
35061         * tests/test-regex.c (main): Use it to skip test on mingw.
35063 2013-03-11  Eric Blake  <eblake@redhat.com>
35065         tests: make it easier to bypass alarm time in debugger
35066         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
35067         * tests/test-memmem.c (main): Likewise.
35068         * tests/test-passfd.c (main): Likewise.
35069         * tests/test-ptsname.c (main): Likewise.
35070         * tests/test-ptsname_r.c (main): Likewise.
35071         * tests/test-strcasestr.c (main): Likewise.
35072         * tests/test-strstr.c (main): Likewise.
35074         regex: port to mingw's recent addition of undeclared alarm
35075         * doc/posix-functions/alarm.texi (alarm): Document that alarm
35076         exists but still doesn't work in newer mingw.
35077         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
35078         not existence.  Ensure SIGALRM is not trapped.
35079         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
35080         * m4/regex.m4 (gl_REGEX): Likewise.
35081         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
35082         * tests/test-regex.c (main): Use correct probe for alarm.
35084         putenv: avoid compilation warning on mingw
35085         * lib/putenv.c (_unsetenv): Protect variable declaration.
35086         (putenv): Fix indentation.
35088 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
35090         unistd: don't prevent Tru64 Unix from using gnulib strtod.
35091         * lib/unistd.in.h: be careful not to include un-needed system
35092         stdlib.h from here, because that prevents gnulib stdlib.h from
35093         defining rpl_strtod correctly.
35095 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
35097         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
35098         changesets, but for the 'precision 0' test.
35099         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35100         round-to-even, since POSIX says rounding is implementation-defined
35101         and OS X 10.8.2 rounds 1.51 to 1 here.
35103         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
35104         changeset.
35105         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35106         round-to-even, since POSIX says rounding is implementation-defined
35107         and OS X 10.8.2 rounds 1.5 to 1 here.
35109 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35111         vasnprintf-posix-tests: allow rounding 1.5 to 1
35112         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
35113         round-to-even, since POSIX says rounding is implementation-defined
35114         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
35115         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
35117         bootstrap: port to FreeBSD
35118         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
35119         that treat '--' differently.  Reported by Mats Erik Andersson in
35120         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
35122 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
35124         regex: rename remaining __attribute calls to __attribute__.
35125         2012-02-25 changed definition of __attribute, but left some uses
35126         unchanged, preventing compilation of regex module on most non-gcc
35127         environments.
35128         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
35129         (lookup_collation_sequence_value, build_range_exp)
35130         (build_collating_symbol): Set attributes with newly renamed
35131         __attribute__ decorator.
35132         * lib/regex_internal.c (re_string_peek_byte_case)
35133         (re_node_set_compare, re_node_set_contains): Likewise.
35134         * lib/regexec.c (acquire_init_state_context): Likewise.
35136 2013-03-06  Bruno Haible  <bruno@clisp.org>
35138         execute: Revert last change, but use a different condition.
35139         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
35140         on Windows.
35142 2013-03-05  Eric Blake  <eblake@redhat.com>
35144         execute: drop dead code
35145         * lib/execute.c (nonintr_close, nonintr_open): Delete.
35147 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
35149         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
35150         * m4/non-recursive-gnulib-prefix-hack.m4
35151         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
35152         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
35153         <http://bugs.gnu.org/10305#237>.
35155 2013-03-04  Eric Blake  <eblake@redhat.com>
35157         test-getsockopt: avoid compiler warning
35158         * tests/test-getsockopt.c (includes): Ensure close is declared.
35160 2013-03-02  Bruno Haible  <bruno@clisp.org>
35162         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
35163         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
35165 2013-03-02  Bruno Haible  <bruno@clisp.org>
35167         gettext: Update to version 0.18.2.
35168         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
35169         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35170                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35172 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35174         regex: merge patches from libc
35176         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35177         * lib/regex_internal.h (__attribute__): Rename from __attribute.
35178         All uses changed.
35179         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
35180         (re_string_wchar_at, re_string_elem_size_at):
35181         Mark function as possibly unused.
35183         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
35184         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
35185         elements compare against the byte sequence of it, not its name.
35187 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35189         putenv: port better to native Windows
35190         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35191         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
35192         (_unsetenv): Use _putenv if available.
35193         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
35194         a bit less likely to cause damage.
35195         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35196         Fix the wrong value with SetEnvironmentVariable.
35197         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
35198         code better.
35200 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35202         regex: ignore old-style-definition warnings
35203         * lib/regex.c: Add pragma to ignore these warnings.
35204         Problem reported for GNU tar by Pavel Raiskup.
35206 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35208         getcwd: support coreutils better
35209         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
35210         but this might not be correct in coreutils, which disables
35211         the raw decl checks.  Problem reported by Nagendra in
35212         <http://bugs.gnu.org/10305#192>.
35213         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
35214         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35215         Test the getcwd function, not any macro, since getcwd.c wants the
35216         function.
35217         * m4/getcwd.m4 (gl_FUNC_GETCWD):
35218         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
35219         compile, as might happen if there's a macro but no function.
35221         strtod: support coreutils better
35222         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
35223         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
35224         disables the raw decl checks.  This assumes there is an underlying
35225         strtod, but that's a safe assumption these days.
35226         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
35228         mountlist: port to HP NonStop
35229         Reported by Joachim Schmitz in
35230         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
35231         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
35232         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
35234 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35236         extern-inline: avoid compilation error with HP-UX cc
35237         Reported by Richard Lloyd in
35238         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
35239         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35240         Suppress extern inline with HP-UX cc.  This should be safe,
35241         though it may hurt performance.  Perhaps someone with some HP-UX
35242         experience can come up with a higher-performance fix.
35244 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35246         putenv: fix heap corruption with mixed putenv/_putenv
35247         Problem reported by Michael Goffioul in
35248         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
35249         * lib/putenv.c (putenv) [HAVE__PUTENV]:
35250         Rely on _putenv to allocate the new environment.
35251         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35252         * modules/putenv (configure.ac): Use it.
35254 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
35256         unsetenv etc.: port to Solaris 11 + GNU Emacs
35257         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
35258         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
35259         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
35260         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
35261         idea but is too painful to fix right now), and without this gnulib
35262         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
35263         compiling unsetenv.c on Solaris 11.  Fix the problem for
35264         unsetenv.c, and fix other similar occurrences.
35266 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35268         secure_getenv: fix C++ declaration typo
35269         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
35270         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
35271         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
35273 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35275         careadlinkat: stop exporting careadlinkatcwd
35276         Only Emacs used it directly, and Emacs no longer needs it.
35277         * NEWS: Document this simplification.
35278         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
35279         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
35280         for readlink.
35281         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
35282         Don't include stdlib.h; no longer needed.
35283         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
35284         * lib/relocwrapper.c: Adjust comment to match new dependencies.
35285         * modules/areadlink (Depends-on): Add readlink.
35286         (Maintainer): Add self.
35287         * modules/careadlinkat (Depends-on): Remove readlink.
35289         extensions: port better to HP-UX
35290         This is merged from git Autoconf.
35291         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35292         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
35293         so that it's compatible with the value used when compiling.
35295         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
35296         Problem reported by Mats Erik Andersson in
35297         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
35298         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35299         openpty function exists, not merely when we intend to replace it.
35300         This corrects the 2013-01-31 patch, which mistakenly defined
35301         HAVE_OPENPTY even on hosts that lacked it.
35303 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35305         secure_getenv: fix include typo
35306         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
35308         secure_getenv: port better to FreeBSD and Solaris
35309         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
35310         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
35311         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
35312         This works better on BSDish platforms.
35313         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
35314         Test for issetugid if __secure_getenv is missing.
35316 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35318         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
35319         Some of these changes are merged in from git Autoconf.
35320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35321         When deciding whether to define _XOPEN_SOURCE, inspect the
35322         preprocessor macro __hpux instead of the more-heavyweight
35323         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
35324         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
35325         as the key for __EXTENSIONS__.
35327         unistd: avoid namespace pollution on non-glibc systems
35328         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
35329         This avoids namespace pollution on non-glibc systems, by causing
35330         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
35331         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
35332         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
35334 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35336         tmpdir: use secure_getenv
35337         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
35338         Define to secure_getenv, not getenv.
35339         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
35340         as that's now secure_getenv's job.
35341         * modules/tmpdir (Depends-on): Add secure_getenv.
35343         tempname: use secure_getenv
35344         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35345         Define to secure_getenv, not getenv.
35346         * modules/tempname (Depends-on):
35347         Add secure_getenv.
35349         secure_getenv: new module
35350         * MODULES.html.sh (Extra functions based on ANSI C 89):
35351         Add secure_getenv.
35352         * doc/glibc-functions/secure_getenv.texi: New file.
35353         * doc/gnulib.texi: Include it.
35354         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35355         New files.
35356         * lib/stdlib.in.h (secure_getenv): New decl.
35357         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35358         * modules/stdlib (stdlib.h):
35359         Add secure_getenv checks.
35361 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35363         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35364         Reported for OS X 10.8.2 by Assaf Gordon in
35365         <http://bugs.gnu.org/13516>.
35366         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35367         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35368         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35369         so that they can be kept in sync more easily.  Avoid PATH_MAX
35370         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35371         mkdir or chdir failure.
35372         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35373         lib/getcwd.c.
35374         (test_abort_bug): Do not test for the deep directory bug unless we
35375         have openat support.  Avoid PATH_MAX test on the Hurd.
35377         regex-tests, regex: fix bug: memset undeclared
35378         * tests/test-regex.c: Don't include regex.h twice.  Include
35379         string.h, to declare memset.  Christensen's report also mentioned
35380         this issue.
35381         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35382         test-regex.c, to avoid future problems like this.  Remove
35383         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35384         twice.
35386         regex-tests: fix link errors on older Solaris
35387         These need to link with @LIBINTL@ to get libintl_gettext.
35388         Problem reported by Tom G. Christensen in
35389         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35390         * modules/regex-tests (test_regex_LDADD): New macro.
35392 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35394         regex-tests: new module
35395         * modules/regex-tests, tests/test-regex.c: New files.
35397         regex: fix off-by-one error in configure test
35398         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35400 2013-01-31  Eric Blake  <eblake@redhat.com>
35402         regex: avoid infinite configure test
35403         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35405 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35407         openpty: fix bug where HAVE_OPENPTY wasn't defined
35408         See the thread starting at:
35409         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35410         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35411         openpty function exists, not merely when we intend to replace it.
35413 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35415         sys_time: port to Solaris 2.6
35416         There is a circularity problem on Solaris 2.6, where <time.h> includes
35417         <sys/time.h> for struct timespec.  The include nesting is gnulib
35418         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35419         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35420         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35421         <sys/siginfo.h>; the last, innermost file needs struct
35422         timestruc_t, which is defined in <sys/time.h>, which has not been
35423         fully parsed.  Problem reported by Tom G. Christensen in
35424         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35425         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35426         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35427         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35428         uses split double-inclusion guards.
35430 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35432         regex: test for buffer overrun
35433         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35434         for the just-fixed regex bug.
35436 2013-01-29  Andreas Schwab  <schwab@suse.de>
35438         regex: fix buffer overrun in regexp matcher [BZ #15078]
35439         * lib/regexec.c (extend_buffers): Add parameter min_len.
35440         (check_matching): Pass minimum needed length.
35441         (clean_state_log_if_needed): Likewise.
35442         (get_subexp): Likewise.
35444 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35446         mountlist: don't consider "devtmpfs" as dummy
35447         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35448         as there is storage associcated with it.
35450 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35452         futimens-tests, utimens-tests: Depend on gettext.
35453         This works around a problem introduced in my 2013-01-12 patch,
35454         which added @LIBINTL@ to these modules.
35455         * modules/futimens-tests (Depends-on):
35456         * modules/utimens-tests (Depends-on): Add gettext.
35458 2013-01-26  Eric Blake  <eblake@redhat.com>
35460         test-getpeername: fix typo
35461         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
35463 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
35465         bootstrap: remove the need for a sorted .gitignore file
35466         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
35467         rename to insert_if_absent(), so that we don't need or generate
35468         a sorted .gitignore file.  We do require a .gitignore with no
35469         existing duplicate entries and enforce that.
35470         (sort_patterns): Remove this function as we now use the simpler
35471         technigue of inserting blacklist entries at the top of the file,
35472         assuming gnulib won't be inserting !whitelist entries.
35474 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35476         readlinkat: don't depend on gl_FUNC_OPENAT
35477         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
35478         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
35479         renameat.m4, symlinkat.m4; but one thing at a time.
35481         statat: new module, split out from fstatat
35482         GNU Emacs needs the POSIX-specified fstatat, but not the
35483         gnulib-specified statat and lstat.  Split the latter two into a
35484         new module 'statat'.
35485         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
35486         * lib/openat.h, lib/statat.c (STATAT_INLINE):
35487         Rename from FSTATAT_INLINE. All uses changed.
35488         * modules/fstatat (Files): Remove lib/statat.c.
35489         (gl_MODULE_INDICATOR([fstatat])): Remove.
35490         (lib_SOURCES): Remove.
35491         (Maintainer): Add self.
35492         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
35493         * tests/test-fstatat.c (BASE): Don't define if already defined.
35494         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
35496 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35498         tests: don't assume fd 99 is closed
35499         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
35500         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
35501         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
35502         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
35503         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
35504         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
35505         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
35506         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
35507         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35508         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
35509         * tests/test-fwrite.c, tests/test-getpeername.c:
35510         * tests/test-getsockname.c, tests/test-getsockopt.c:
35511         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
35512         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
35513         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
35514         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
35515         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
35516         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
35517         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
35518         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
35519         * tests/test-unlinkat.c, tests/test-unlockpt.c:
35520         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
35521         Close file descriptor 99, instead of assuming it's already closed.
35523 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35525         stpncpy: port to OS X 10.8
35526         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
35527         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
35529 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35531         unistd: port to recent mingw
35532         * lib/unistd.in.h: Remove special invocation convention for mingw,
35533         which breaks for the latest mingw version.  See John W. Eaton in
35534         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
35536         largefile: port better to Mac OS X 10.5
35537         This patch is backported from Autoconf git.
35538         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
35539         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
35540         with ino_t size being different for configuration time versus
35541         build/run time.  Problem reported by PHO in
35542         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
35544 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35546         doc: clarify -Werror
35547         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
35548         clarify that it's intended for developers, not for ordinary builds,
35549         and mention --enable-gcc-warnings as one possible use.
35551 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
35553         stdint: fix build with Android's Bionic fox x86
35554         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
35555         was already included as _SSIZE_T_DEFINED_ might also be defined
35556         in include/machine/_types.h, which is included by stdio.h
35558 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
35560         net_if-tests: port to Solaris 7 + GCC 3.4.6
35561         Problem reported by Tom G. Christensen in
35562         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
35563         * tests/test-net_if.c (ni): Move to next the code that uses it,
35564         so that it's declared only if needed.
35566 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35568         net_if-tests: port to older Solaris
35569         Problem reported by Tom G. Christensen in
35570         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35571         * modules/net_if-tests (NET_IF_LIB): New substitution.
35572         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
35573         (HAVE_IF_NAMEINDEX): New C macro.
35574         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
35576         system-quote-tests: port to older Solaris
35577         Problem reported by Tom G. Christensen in
35578         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35579         * tests/test-system-quote-child.c (fopen, fread): Undef.
35581         c-xvasprintf etc.: fix link errors on older Solaris
35582         These need to link with @LIBINTL@ to get libintl_gettext.
35583         Problem reported by Tom G. Christensen in
35584         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35585         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
35586         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
35587         * modules/futimens-tests (test_futimens_LDADD):
35588         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35590 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35592         locale: port to Solaris 2.6 and 7 + GNU gettext
35593         * lib/locale.in.h: Just include_next <locale.h> when
35594         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35595         when combining the localename module with GNU gettext 0.18.2.
35596         Problem reported by Tom G. Christensen in
35597         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
35599 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35601         stdlib: port to Solaris 2.6
35602         Also, the code worked on Solaris 7 through 9 only by accident.
35603         Problem reported by Tom G. Christensen in
35604         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
35605         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
35606         simply include the system stdlib.h.
35607         * lib/getopt.in.h (__need_system_stdlib_h):
35608         * lib/pthread.in.h (__need_system_stdlib_h):
35609         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
35610         Define when including <stdlib.h>, to avoid problems at least for
35611         the pthread case on Solaris 2.6 and 7.  These .h files can get by
35612         with the system stdlib.h.
35614 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35616         doc: update main copyright year
35617         * doc/gnulib.texi: Update copyright date.
35619         doc: improve ISO 8601 discussion
35620         * doc/parse-datetime.texi (Combined date and time of day items):
35621         Specify more carefully what formats are supported and what is
35622         done with excess precision.
35624 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35626         doc: avoid small caps
35627         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
35628         they're more trouble than they're worth.  Suggested by Karl Berry
35629         in <http://bugs.gnu.org/13360>.
35631         regex: conform to strict C
35632         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35633         From Aharon Robbins.
35635         gnulib-tool: fix incompatibility with autopoint 0.18.2
35636         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
35637         Problem reported by Tom G. Christensen in
35638         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
35640 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35642         fprintftime: bring back and reword fwrite comment
35643         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
35645         stdio: remove now-unnecessary stdio.c
35646         Since stdio.in.h no longer uses inline functions, we no longer
35647         need to compile the extern versions.
35648         * lib/stdio.c: Remove.
35649         * modules/stdio (Files): Remove lib/stdio.c.
35650         (lib_SOURCES): Remove.
35652         unicodeio: depend on stdio, not ignore-value
35653         * lib/unicodeio.c: Do not include ignore-value.h.
35654         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
35655         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
35657         fprintftime: depend on stdio, not ignore-value
35658         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
35659         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
35660         since the stdio module arranges to silence that warning now.
35661         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35663 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35665         stdint-tests: Fix expanded-before-required-warning.
35666         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35668 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35670         fwrite: silence __wur only for older glibc versions
35671         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35672         This will help us remove this workaround some time in the far future.
35674 2013-01-03  Eric Blake  <eblake@redhat.com>
35676         fwrite: silence __wur without using inline
35677         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35678         just gcc, and in a way that avoids inline issues.
35679         * modules/stdio (Depends-on): Drop extern-inline.
35681 2013-01-03  Jim Meyering  <jim@meyering.net>
35683         update-copyright: avoid copyright notice date corruption
35684         Given a sequence of copyright year numbers in which the final
35685         one was a two-digit number that happened to be a substring of
35686         a preceding four-digit year number, we would mistakenly update
35687         the substring (from two- to four-digit) rather than the two-digit
35688         number at the end, which, combined with the addition of the current
35689         4-digit year number would yield two 5-digit year numbers, e.g.,
35690         here, it would convert the first "99" to "1999, 2013" rather than
35691         the final one:
35692           1991, 99
35693           11999, 20131, 1999
35694         * build-aux/update-copyright: Tighten a regexp.
35695         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35696         Reported by Joseph Myers in
35697         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35699 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35701         regex: omit needless signed-pointer casts
35702         * lib/regcomp.c (build_charclass, build_charclass_op):
35703         Use char *, not unsigned char *, for class name and extra.
35704         The char values are always nonnegative so there's no need to
35705         insist on unsigned char * here, and using char * removes the need
35706         for casts.  Reported by Aharon Robbins in
35707         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35709         regex: support Gawk, which never uses alloca
35710         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35711         Do not include in this case.  Gawk doesn't supply a substitute
35712         alloca.h and doesn't need one.
35714         regex: port __libc_lock_define usage to C89
35715         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35716         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35717         does not conform to C89, as it has an empty macro argument.
35718         Reported by Aharon Robbins in
35719         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35721 2013-01-01  Eric Blake  <eblake@redhat.com>
35723         maint: update all copyright year number ranges
35724         Run "make update-copyright".
35726         version-etc: bump copyright year reported in --version
35727         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35729 2012-12-31  Eric Blake  <eblake@redhat.com>
35731         sigprocmask-tests: skip test if pid is unexpectedly large
35732         * tests/test-sigprocmask.c (main): Add range check.
35734         git-version-gen: avoid test -z portability glitch
35735         * build-aux/git-version-gen: Prefer portable test spelling, since
35736         git-version-gen is run on more than just developer machines.
35738 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35740         git-version-gen: add --fallback option to use if git is not present
35741         * build-aux/git-version-gen: Add support for the new option --fallback,
35742         which comes into play when there is no $tarball_version_file and
35743         git is not working.
35744         (scriptversion): Update.
35746         maint.mk: handle missing git with more grace
35747         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35748         Quietly proceed if git is not present.
35750 2012-12-31  Eric Blake  <eblake@redhat.com>
35752         dup2: work around cygwin bug
35753         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35754         * lib/dup2.c (rpl_dup2): Work around it.
35755         * doc/posix-functions/dup2.texi (dup2): Document it.
35757 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35759         regex: remove unnecessary dependency on localcharset.h
35760         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35761         hasn't been needed for years.
35762         * modules/regex (Depends-on): Remove localcharset.
35764         regex: revert single-byte change
35765         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35766         to this function.  This was alredy fixed in a different way, at
35767         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35768         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35769         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35771         regex: simplify based on Gawk version
35772         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35773         Reported by Aharon Robbins in
35774         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35776 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35778         regex: check that pattern char is single-byte
35779         Reported by Aharon Robbins in
35780         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35781         * lib/regexec.c (check_node_accept_bytes):
35782         Return 0 if the pattern string has a multibyte character here.
35784         regex: implement rational ranges
35785         Reported by Aharon Robbins in
35786         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35787         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35788         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35789         Implement rational ranges.
35791         regex: avoid redefining __wctype
35792         Reported by Aharon Robbins in
35793         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35794         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35795         #undef before defining.
35797         regex: port to hosts where malloc (0) == NULL
35798         Reported by Aharon Robbins in
35799         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35800         * lib/regex_internal.c (re_node_set_alloc):
35801         Don't assume that malloc (0) yields nonnull.
35802         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35803         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35804         * modules/regex (Files): Add m4/eealloc.m4.
35806         regex: port to C89
35807         Reported by Aharon Robbins in
35808         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35809         * lib/regcomp.c (init_word_char): Declaration before statement.
35811         regex: merge glibc changes
35812         Also, copy the license wording from glibc.  This simplifies
35813         merging changes.  gnulib-tool will change the wording to GPL as
35814         appropriate, when importing it to other packages.  The only
35815         glibc change made since the last merge, which needs merging, is:
35816         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35817         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35819         * users.txt: Add Emacs.
35821         doc: omit mention of version when not needed
35822         * doc/gnulib-intro.texi (Portability and Application Code):
35823         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35824         Don't mention particular dates or versions when not necessary, so
35825         that the documentation won't go out of date so quickly.
35827         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35829 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35831         bootstrap: pass --force to autoreconf.
35832         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35833         Add "--force" so that Automake's ylwrap and other such tools
35834         be updated at each bootstrap invocation.
35835         Use it.
35837 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35839         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35840         The earlier patch forgot to update one of the #if conditions, causing
35841         a problem on Debian testing i386 reported by Mats Erik Andersson
35842         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35843         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35844         (__argp_fmtstream_puts, argp_fmtstream_puts)
35845         (__argp_fmtstream_write, argp_fmtstream_write)
35846         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35848         * doc/gnulib-readme.texi: Minor fixups.
35849         (Portability guidelines): Modernize URLs.  Remove some repetition.
35850         (Indent with spaces not TABs): Reword to avoid too-long lines.
35851         Remove some '@ifset standalone' stuff that isn't used.
35853         * doc/gnulib-readme.texi (Portability guidelines):
35854         ctype.h, not ctime.h.
35856         Correct name of POSIX.1-2001.
35857         * doc/posix-functions/fgetc.texi (fgetc):
35858         * doc/posix-functions/fgets.texi (fgets):
35859         * doc/posix-functions/fread.texi (fread):
35860         * doc/posix-functions/fscanf.texi (fscanf):
35861         * doc/posix-functions/getc.texi (getc):
35862         * doc/posix-functions/getchar.texi (getchar):
35863         * doc/posix-functions/scanf.texi (scanf):
35864         POSIX.1-2001, not POSIX-2001.
35866         doc: move README into manual
35867         * README: Move contents to new file doc/gnulib-readme.texi.
35868         Replace with a one-line summary.
35869         * doc/gnulib.texi (Brief Overview): New section,
35870         with old intro preface.  Include gnulib-readme.texi for contents.
35871         (Philosophy): Rename from "Introduction", since this
35872         section no longer introduces the rest.  Write a new preface.
35873         * doc/gnulib-readme.texi: New file, with the old contents of
35874         README texinfo-ized.  This way, the README info appears
35875         in the online and printed manual.
35877 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35879         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35880         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35881         c_vasprintf() prototype.
35883 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35885         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35886         * lib/c-vasprintf.h: Remove stray semicolon.
35888 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35890         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35891         It is obsolete and is planned to be removed from Automake 1.14; see
35892         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35893         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35894         (installdirs-data, installdirs-data-yes):
35895         Use $(MKDIR_P), not $(mkdir_p).
35896         * m4/intl.m4 (AM_INTL_SUBDIR):
35897         * m4/po.m4 (AM_PO_SUBDIRS):
35898         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35900 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35902         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35903         On this platform, we are not optimizing but we are using
35904         the substitute for extern inlines, so compile as if
35905         C99-style extern inline, or a substitute, is available.
35906         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35907         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35908         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35909         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35910         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35911         Declare as ARGP_FS_EI, not as extern.
35912         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35913         (__option_is_short, _option_is_end, __option_is_end)
35914         [!_LIBC && __USE_EXTERN_INLINES]:
35915         Declare as ARGP_EI, not as extern.
35917 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35919         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35920         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35921         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35922         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35923         ...), as the latter is fatal with older Autoconfs.
35924         Problem reported and fix suggested by Eric Blake in thread starting at
35925         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35927 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35929         AC_PROG_MKDIR_P: don't workaround if not buggy
35930         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35931         Define only for Autoconf versions before 2.62.
35932         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35933         undocumented m4_PACKAGE_VERSION, for consistency with the
35934         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35935         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35936         was introduced in 2.62.
35938 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35940         New 'c-*printf' modules for formatted output in C locale.
35942         New module 'c-vasnprintf'.
35943         * modules/c-vasnprintf: New file.
35944         * lib/c-vasnprintf.c: New file.
35945         * lib/c-vasnprintf.h: New file.
35947         New module 'c-snprintf'.
35948         * modules/c-snprintf: New file.
35949         * modules/c-snprintf-tests: New file.
35950         * lib/c-snprintf.c: New file.
35951         * lib/c-snprintf.h: New file.
35952         * tests/test-c-snprintf.c: New file.
35953         * tests/test-c-snprintf.sh: New file.
35955         New module 'c-vsnprintf'.
35956         * modules/c-vsnprintf: New file.
35957         * modules/c-vsnprintf-tests: New file.
35958         * lib/c-vsnprintf.c: New file.
35959         * lib/c-vsnprintf.h: New file.
35960         * tests/test-c-vsnprintf.c: New file.
35961         * tests/test-c-vsnprintf.sh: New file.
35963         New module 'c-vasprintf'.
35964         * modules/c-vasprintf: New file.
35965         * modules/c-vasprintf-tests: New file.
35966         * lib/c-asprintf.c: New file.
35967         * lib/c-vasprintf.c: New file.
35968         * lib/c-vasprintf.h: New file.
35969         * tests/test-c-vasprintf.c  +: New file.
35970         * tests/test-c-vasprintf.sh: New file.
35972         New module 'c-xvasprintf'.
35973         * modules/c-xvasprintf: New file.
35974         * modules/c-xvasprintf-tests: New file.
35975         * lib/c-xasprintf.c: New file.
35976         * lib/c-xvasprintf.c: New file.
35977         * lib/c-xvasprintf.h: New file.
35978         * tests/test-c-xvasprintf.c: New file.
35979         * tests/test-c-xvasprintf.sh: New file.
35981 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35983         argp: better 'inline'
35984         Use extern-inline module to declare extern inline functions.
35985         This avoids some bogus warning diagnostics.  Problem discovered
35986         when modifying GNU tar to use the manywarnings module.
35987         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35988         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35989         Define based on extern-inline.
35990         * modules/argp (Depends-on): Add extern-inline.
35992 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35994         filemode, sys_stat: Handle MPX files a la AIX.
35995         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35996         * lib/sys_stat.in.h (S_ISMPX): New macro.
35997         * tests/test-sys_stat.c: Add tests for MPX files.
35999 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36001         x-to-1: honor $PERL
36002         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
36003         a chance to use his preferred version of Perl.  This is typically
36004         required by Darwin users whose default /usr/bin/perl does not have all
36005         the libraries required by help2man, and who need to use their MacPorts
36006         installation of Perl instead.
36008 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36010         gnu-web-doc-update: add all the new files, even in new directories
36011         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
36012         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
36013         Use it.
36014         (main): Don't use cvsutils to get the list of unknown files,
36015         just add all the existing files and directories.
36017 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36019         gnu-web-doc-update: improve --help
36020         * build-aux/gnu-web-doc-update: Move comments into --help.
36022 2012-12-07  Eric Wong  <normalperson@yhbt.net>
36024         mountlist: recognize more "dummy" file systems
36025         * lib/mountlist.c (ME_DUMMY_0):
36026         Add these dummy FS names to the list:
36027         - "debugfs" virtual filesystem for kernel debugging
36028         - "devpts" PTY slave filesystem
36029         - "devtmpfs" device filesystem on top of tmpfs/ramfs
36030         - "fusectl" control filesystem for FUSE
36031         - "mqueue" enumerates POSIX message queues
36032         - "rpc_pipefs" kernel <-> userspace bridge for NFS
36033         - "sysfs" is for exporting kernel objects
36034         - "devfs" device filesystem for Linux 2.4 and FreeBSD
36036 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36038         extern-inline: avoid incompatibility with Darwin Libc
36039         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
36040         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
36041         Problem reported by Akim Demaille in
36042         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
36044 2012-12-11  Simon Josefsson  <simon@josefsson.org>
36046         gnupload: Work with GnuPG using gpg-agent (for smartcards).
36047         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
36048         let it handle password prompting.
36050 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
36052         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
36053         * lib/canonicalize.c (canonicalize_filename_mode):
36054         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
36055         fetching the current directory.  Don't overrun the beginning of
36056         rpath if there's no slashes after the MS-Windows drive letter.
36058 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
36060         maint.mk: avoid extra forks
36061         * top/maint.mk (_cfg_mk): The GNU make manual documents that
36062         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
36063         So use that instead of "$(shell test -f FILE && echo FILE)".
36065 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36067         vasnprintf: fix ASCII_ONLY typo
36068         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36069         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36070         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36071         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
36072         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
36074 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36076         list, oset, xlist, xoset: fix extern inline issue with C99
36077         This was introduced by my recent changes for 'inline'.
36078         Problem reported for gettext by Daiki Ueno in
36079         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
36080         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
36081         (gl_list_nx_create, gl_list_size, gl_list_node_value)
36082         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
36083         (gl_list_previous_node, gl_list_get_at)
36084         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
36085         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
36086         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
36087         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
36088         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
36089         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
36090         (gl_list_iterator_free, gl_sortedlist_search)
36091         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
36092         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36093         (gl_sortedlist_remove):
36094         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
36095         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
36096         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
36097         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
36098         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
36099         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
36100         (gl_list_add_at, gl_sortedlist_add):
36101         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
36102         Wrap these extern decls inside "#if 0", because they are implemented
36103         as inline functions, and extern inline is not what's wanted here.
36104         It would simplify these .h files to remove the extern decls entirely,
36105         although a downside would be less-clear separation between
36106         specification and implementation.
36108 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36110         sys_stat: no 'static inline'
36111         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
36112         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
36114         extern-inline: no 'static inline'
36115         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
36116         Do not require AC_C_INLINE.
36117         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
36118         'static inline', for older compilers.
36120         snippet/warn-on-use: no 'static inline'
36121         * build-aux/snippet/warn-on-use.h:
36122         Remove unnecessary 'inline' in comment.
36124         rbtree-list, rbtreehash-list: no 'static inline'
36125         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
36126         * lib/gl_anytree_list2.h (node_at):
36127         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
36128         (gl_oset_first, add_nodes_to_buckets):
36129         Now static, not static inline.
36131         regex: no 'static inline'
36132         * lib/regex_internal.c (calc_state_hash):
36133         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
36134         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
36135         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
36136         Now static, not static inline.
36137         (inline) [__GNUC__ < 3 && _LIBC]:
36138         Remove macro; no longer needed.
36140         xvasprintf: no 'static inline'
36141         * lib/xvasprintf.c (xstrcat):
36142         Now static, not static inline.
36143         * m4/xvasprintf.m4 (gl_XVASPRINTF):
36144         Do not require AC_C_INLINE.
36146         parse-datetime, parse-duration: no 'static inline'
36147         * lib/parse-datetime.y (to_uchar):
36148         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
36149         (scale_n_add):
36150         Now static, not static inline.
36151         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
36152         * modules/parse-duration (configure.ac):
36153         Do not require AC_C_INLINE.
36155         getaddrinfo: no 'static inline'
36156         * lib/getaddrinfo.c (validate_family):
36157         Now static, not static inline.
36158         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
36159         Do not require AC_C_INLINE.
36161         ftruncate, fts, lstat, openat, raise: no 'static inline'
36162         * lib/ftruncate.c (chsize_nothrow):
36163         * lib/fts.c (opendirat, diropen):
36164         * lib/lstat.c (orig_lstat):
36165         * lib/openat.c (orig_openat):
36166         * lib/raise.c (raise_nothrow):
36167         Now static, not static inline.
36168         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
36169         * m4/fts.m4 (gl_FUNC_FTS_CORE):
36170         * m4/lstat.m4 (gl_PREREQ_LSTAT):
36171         * m4/openat.m4 (gl_PREREQ_OPENAT):
36172         * m4/raise.m4 (gl_PREREQ_RAISE):
36173         Do not require AC_C_INLINE.
36175         fflush, stat: no 'static inline'
36176         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36177         (clear_ungetc_buffer, disable_seek_optimization)
36178         (restore_seek_optimization, update_fpos_cache):
36179         * lib/stat.c (orig_stat):
36180         Now static, not static inline.
36181         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
36182         (update_fpos_cache):
36183         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
36184         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
36185         * m4/stat.m4 (gl_PREREQ_STAT):
36186         Do not require AC_C_INLINE.
36188         error, filevercmp: no 'static inline'
36189         * lib/error.c (is_open, flush_stdout):
36190         * lib/filevercmp.c (order):
36191         Now static, not static inline.
36192         * m4/error.m4 (gl_PREREQ_ERROR):
36193         * modules/filevercmp (configure.ac):
36194         Do not require AC_C_INLINE.
36196         dup, execute, fatal-signal, etc.: no 'static inline'
36197         * lib/dup.c (dup_nothrow):
36198         * lib/execute.c (nonintr_close, nonintr_open):
36199         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
36200         * lib/fopen.c (orig_fopen):
36201         * lib/freadseek.c (freadptrinc):
36202         * lib/freopen.c (orig_freopen):
36203         * lib/fstat.c (orig_fstat, fstat_nothrow):
36204         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
36205         (get_rusage_as_via_iterator):
36206         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
36207         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36208         * lib/isatty.c (_isatty_nothrow):
36209         * lib/open.c (orig_open):
36210         * lib/read.c (read_nothrow):
36211         * lib/sigprocmask.c (signal_nothrow):
36212         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
36213         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
36214         * lib/wait-process.c (unregister_slave_subprocess):
36215         * lib/write.c (write_nothrow):
36216         Now static, not static inline.
36217         * lib/spawn-pipe.c (nonintr_open): Define only if
36218         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
36219         * m4/dup.m4 (gl_PREREQ_DUP):
36220         * m4/execute.m4 (gl_EXECUTE):
36221         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
36222         * m4/fopen.m4 (gl_PREREQ_FOPEN):
36223         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
36224         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
36225         * m4/fstat.m4 (gl_PREREQ_FSTAT):
36226         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
36227         * m4/isatty.m4 (gl_PREREQ_ISATTY):
36228         * m4/open.m4 (gl_PREREQ_OPEN):
36229         * m4/read.m4 (gl_PREREQ_READ):
36230         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
36231         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
36232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
36233         * m4/wait-process.m4 (gl_WAIT_PROCESS):
36234         * m4/write.m4 (gl_PREREQ_WRITE):
36235         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
36236         Do not require AC_C_INLINE.
36238         c-strtod, memcoll, readutmp: no 'static inline'
36239         * lib/c-strtod.c (c_locale):
36240         * lib/memcoll.c (strcoll_loop):
36241         * lib/readutmp.c (desirable_utmp_entry):
36242         Now static, not static inline.
36243         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
36244         * m4/memcoll.m4 (gl_MEMCOLL):
36245         * m4/readutmp.m4 (gl_READUTMP):
36246         Do not require AC_C_INLINE.
36248         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
36249         * lib/arctwo.c (to_uchar):
36250         * lib/md4.c (set_uint32):
36251         * lib/md5.c (set_uint32):
36252         * lib/sha1.c (set_uint32):
36253         * lib/sha256.c (set_uint32):
36254         * lib/sha512.c (set_uint64):
36255         Now static, not static inline.  This is a bit simpler, and doesn't
36256         affect performance with GCC and default optimization.
36257         * m4/arctwo.m4 (gl_ARCTWO):
36258         * m4/md4.m4 (gl_MD4):
36259         * m4/md5.m4 (gl_MD5):
36260         * m4/sha1.m4 (gl_SHA1):
36261         * m4/sha256.m4 (gl_SHA256):
36262         * m4/sha512.m4 (gl_SHA512):
36263         Do not require AC_C_INLINE.
36265         cond, lock, thread: better 'inline'
36266         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
36267         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
36268         New macros.  Use them instead of static inline, for header functions.
36269         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
36270         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36271         * lib/glthread/lock.c (gl_waitqueue_init)
36272         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36273         * lib/glthread/thread.c (get_current_thread_handle):
36274         Change 'static inline' to 'inline'.
36275         * lib/glthread/cond.h, lib/glthread/thread.h:
36276         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36277         * m4/cond.m4 (gl_COND):
36278         * m4/lock.m4 (gl_PREREQ_LOCK):
36279         * m4/thread.m4 (gl_THREAD):
36280         Do not require AC_C_INLINE.
36281         * modules/cond, modules/thread (Depends-on): Add extern-inline.
36283         chdir-long, cycle-check, savewd: better 'inline'
36284         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
36285         (find_non_slash):
36286         * lib/cycle-check.c (is_zero_or_power_of_two):
36287         * lib/savewd.c (savewd_delegating):
36288         Change 'static inline' to 'inline'.
36289         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
36290         Replace all remaining uses of 'static inline' with it.
36291         * lib/savewd.h:
36292         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36293         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
36294         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
36295         * m4/savewd.m4 (gl_SAVEWD):
36296         Do not require AC_C_INLINE.
36297         * modules/savewd (Depends-on): Add extern-inline.
36299         base32, base64: no need for 'inline'
36300         * lib/base32.c (to_uchar, get_8, decode_8):
36301         * lib/base64.c (to_uchar, get_4, decode_4):
36302         Change 'static inline' to 'inline'.
36303         * m4/base32.m4 (gl_PREREQ_BASE32):
36304         * m4/base64.m4 (gl_PREREQ_BASE64):
36305         Do not require AC_C_INLINE.
36307         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
36308         * lib/gl_array_oset.c (gl_array_nx_add_at):
36309         (gl_array_remove_at):
36310         * lib/gl_linkedhash_list.c (hash_resize_after_add)
36311         (add_to_bucket, remove_from_bucket):
36312         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
36313         Change 'static inline' to 'static', as it's simpler to omit
36314         'inline' unless there's a significant performance advantage.
36316         list, oset, xlist, xoset, xsublist: simplify via extern inline
36317         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
36318         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
36319         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
36320         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
36321         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
36322         New macro.  Replace all uses of 'static inline' with it.
36323         [HAVE_INLINE]: Implement functions as *_INLINE functions,
36324         instead of as macros FOO that are defined to static inline
36325         functions FOO_inline.
36326         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
36327         * lib/gl_xsublist.c:
36328         Reimplement from scratch, by defining the corresponding *_INLINE
36329         macro and including the corresponding .h file.  This is simpler.
36330         * modules/list, modules/oset, modules/xlist, modules/xoset:
36331         (Files): Remove m4/gl_list.m4.
36332         (configure.ac): Remove gl_LIST.
36333         * m4/gl_list.m4: Remove.
36334         * modules/list, modules/oset, modules/xlist, modules/xoset:
36335         * modules/xsublist:
36336         (Depends-on): Depend on extern-inline, not inline.
36338         xalloc: better 'inline'
36339         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
36340         New macro.  Replace all uses of 'static inline' with it.
36341         (static_inline): Remove.
36342         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36343         Let 'extern inline' do the work automatically, instead of doing
36344         it by hand.
36345         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36346         Remove.  All uses removed.
36347         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36349         gethrxtime: better 'inline'
36350         * lib/xtime.c: New file.
36351         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36352         * lib/xtime.h (XTIME_INCLUDE):
36353         New macros.  Replace all uses of 'static inline' with them.
36354         * lib/gethrxtime.c (gethrxtime): Define only if
36355         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36356         this source file is now always compiled, because of the extern inline.
36357         * lib/gethrxtime.h, lib/xtime.h:
36358         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36359         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36360         if gethrtime works, as they're not needed in that case.
36361         (gl_XTIME): Do not require AC_C_INLINE.
36362         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36363         compiled now.  Move the check into gl_GETHRXTIME.
36364         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36365         (Depends-on): Add extern-inline.
36366         (configure.ac): gethrxtime is always compiled now.
36367         (lib_SOURCES): Add gethrxtime.c.
36369         wctype-h: better 'inline'
36370         * lib/wctype-h.c: New file.
36371         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36372         New macro.  Replace all uses of 'static inline' with it.
36373         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36374         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36375         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36376         (Depends-on): Add extern-inline.
36378         unistd: better 'inline'
36379         * lib/unistd.c: New file.
36380         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36381         New macro.  Replace all uses of 'static inline' with it.
36382         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36383         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36384         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36385         (Depends-on): Add extern-inline.
36387         sys_socket: better 'inline'
36388         * lib/sys_socket.c: New file.
36389         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36390         New macro.  Replace all uses of 'static inline' with it.
36391         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36392         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36393         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36394         (Depends-on): Add extern-inline.
36396         stdio: better 'inline'
36397         * lib/stdio.c: New file.
36398         * lib/stdio.in.h (_GL_STDIO_INLINE):
36399         New macro.  Replace all uses of 'static inline' with it.
36400         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36401         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36402         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36403         (Depends-on): Add extern-inline.
36405         sigaction: better 'inline'
36406         * lib/sig-handler.c: New file.
36407         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36408         New macro.  Replace all uses of 'static inline' with it.
36409         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36410         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36411         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36412         (Depends-on): Add extern-inline.
36414         selinux-h: better 'inline'
36415         * lib/se-context.c, lib/se-selinux.c: New files.
36416         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36417         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36418         New macro.  Replace all uses of 'static inline' with it.
36419         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36420         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36421         New macro.  Replace all uses of 'static inline' with it.
36422         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36423         * modules/selinux-h (Files, lib_SOURCES):
36424         Add lib/se-context.c, lib/se-selinux.c.
36425         (Depends-on): Add extern-inline.
36426         (configure.ac): Do not require AC_C_INLINE.
36428         pthread: better 'inline'
36429         * lib/pthread.c: New file.
36430         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36431         New macro.  Replace all uses of 'static inline' with it.
36432         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36433         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36434         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36435         * modules/pthread (Files): Add lib/pthread.c.
36436         (Depends-on): Add extern-inline.
36438         math: better 'inline'
36439         * lib/math.c: New file.
36440         * lib/math.in.h (_GL_MATH_INLINE):
36441         New macro.  Replace all uses of 'static inline' with it.
36442         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36443         * m4/math_h.m4 (gl_MATH_H):
36444         Do not require AC_C_INLINE.
36445         * modules/math (Files, lib_SOURCES):
36446         Add lib/math.c.
36447         (Depends-on): Add extern-inline.
36449         count-one-bits: better 'inline'
36450         * lib/count-one-bits.c: New file.
36451         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36452         New macro.  Replace all uses of 'static inline' with it.
36453         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36454         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
36455         Do not require AC_C_INLINE.
36456         * modules/count-one-bits (Files, lib_SOURCES):
36457         Add lib/count-one-bits.c.
36458         (Depends-on): Add extern-inline.
36460         count-leading-zeros: better 'inline'
36461         * lib/count-leading-zeros.c: New file.
36462         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
36463         New macro.  Replace all uses of 'static inline' with it.
36464         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36465         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
36466         Do not require AC_C_INLINE.
36467         * modules/count-leading-zeros (Files, lib_SOURCES):
36468         Add lib/count-leading-zeros.c.
36469         (Depends-on): Add extern-inline.
36471         bitrotate: better 'inline'
36472         * lib/bitrotate.c: New file.
36473         * lib/bitrotate.h (BITROTATE_INLINE):
36474         New macros.
36475         Replace all uses of 'static inline' with them.
36476         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36477         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
36478         (Depends-on): Add extern-inline.
36479         (configure.ac): Do not require AC_C_INLINE.
36481 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
36483         maint.mk: avoid gratuitous failure
36484         Reported by Stefano Lattarini in
36485         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
36486         * top/maint.mk (public-submodule-commit): Quote more safely.
36488 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
36490         canonicalize, canonicalize-lgpl: support MS-Windows file names
36491         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
36492         for test cases, which it'd be nice to add at some point.
36493         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
36494         * lib/canonicalize.c (canonicalize_filename_mode):
36495         * lib/canonicalize-lgpl.c (__realpath):
36496         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
36497         slash is at the beginning of the file name.  Use ISSLASH, instead
36498         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
36499         the first character with '/'.  Test for
36500         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
36501         with a drive letter.
36502         * lib/canonicalize.c (SLASHES): New macro.
36503         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
36505 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
36507         fts: introduce FTS_VERBATIM
36508         * lib/fts_.h (FTS_VERBATIM): New bit flag.
36509         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
36510         * lib/fts.c (fts_open): Honor it.
36512 2012-11-09  Pádraig Brady  <P@draigBrady.com>
36514         getlogin-tests: allow errno == ENXIO
36515         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36516         with errno == ENXIO (No controlling tty).
36517         getlogin_r-tests: Likewise. Also allow errno == ENOENT
36518         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
36519         with errno == ENOENT.  This was reported to happen in various
36520         situations on GNU/Linux.
36522 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36524         getlogin-tests: allow errno == ENOENT
36525         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36526         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
36527         when running a test in an Emacs shell buffer.
36529 2012-11-08  Jim Meyering  <jim@meyering.net>
36531         tests/nap.h: avoid warning about unused variable
36532         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
36534         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
36535         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
36536         white space before each of the special-cased file names, to avoid
36537         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
36538         in http://bugs.gnu.org/12830.
36540 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36542         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
36543         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
36544         fails with errno == EBADF when fd is opened with O_PATH.
36545         Reported by Jim Meyering in
36546         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
36547         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36548         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
36550 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36552         test-utimens: speed up by taking shorter naps
36553         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
36554         New functions.
36555         (nap): Use them, to do a better job of guessing the delay.
36556         On Fedora 17 with ext4 atop md atop hard disks, this made
36557         test-utimens run 10x faster, because the test napped for
36558         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
36559         <http://bugs.gnu.org/12820#11>.
36561 2012-11-07  Jim Meyering  <jim@meyering.net>
36563         mountlist.c: fix a compilation failure
36564         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
36565         I introduced while transforming commit v0.0-7683-g613bcb6
36567 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36569         errno: port to LynxOS 178 2.2.2
36570         Problem reported by Joel Brobecker in
36571         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
36572         * doc/posix-headers/errno.texi (errno.h): Document this.
36573         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
36574         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36575         Supply a string for EILSEQ.
36576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
36578 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36580         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
36581         Linux kernel 2.6.39 introduced O_PATH (see
36582         <http://lwn.net/Articles/433854/>) and this is a better fallback
36583         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
36584         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36585         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
36586         * lib/fcntl.in.h (O_ACCMODE):
36587         * tests/test-fcntl-h.c (main):
36588         Do not reject O_ACCMODE merely because it has more than the
36589         minimal number of bits, as POSIX allows extensions here.
36591 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36593         mountlist: do not classify a bind-mounted dir entry as "dummy"
36594         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36595         the "none"-testing clause.
36596         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
36597         exception for bind-mounted directories.
36599 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
36601         quote: provide a means to escape strings with nul characters
36602         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
36603         (quote, quote_n): Rename formal arguments for consistency with
36604         quotearg.
36606 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36608         test-raise: don't assume 199 is an invalid signal
36609         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
36611         sh-quote-tests: port to Solaris 9
36612         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
36613         Problem reported by Dagobert Michelsen in
36614         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
36616 2012-10-28  Jim Meyering  <jim@meyering.net>
36618         maint.mk: rename a new configurable variable
36619         * top/maint.mk (_gl_translatable_string_re): Rename from
36620         translation-markers: _gl_ prefix to insulate from user Makefile code,
36621         and the _re suffix to inform that it's a regular expression.
36623 2012-10-26  Eric Blake  <eblake@redhat.com>
36625         maint.mk: let packages tweak sc_po_check pattern
36626         * top/maint.mk (sc_po_check): Add translation-markers, to allow
36627         finding files with other translation markers.
36629 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36631         euidaccess: speed up 'configure' on GNU hosts
36632         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
36633         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
36634         it's needed only in this case.  Use AC_CHECK_DECLS, not
36635         AC_CHECK_DECLS_ONCE.
36636         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
36637         or AC_REQUIRE for AC_FUNC_GETGROUPS.
36639         * lib/regexec.c (re_search_internal): Fix grammar in comment.
36641 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36643         fchmodat, fchownat, fstatat: port to non-inlining compilers
36644         Problem reported for FreeBSD 9 by Jim Meyering in
36645         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
36646         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
36647         New files, which define FCHMODAT_INLINE etc.
36648         * lib/fchmodat.c (FCHMODAT_INLINE):
36649         * lib/fchownat.c (FCHOWNAT_INLINE):
36650         * lib/fstatat.c (FSTATAT_INLINE):
36651         Remove, as chmodat.c etc. now do this.
36652         * modules/fchmodat (Files): Add lib/chmodat.c.
36653         * modules/fchownat (Files): Add lib/chownat.c.
36654         * modules/fstatat (Files): Add lib/statat.c.
36656 2012-10-15  Jim Meyering  <jim@meyering.net>
36658         fchmodat.c, fchownat.c: compile-impeding typos
36659         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
36660         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36661         Introduced in commit v0.0-7636-gd202279.
36663 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36665         fcntl-h: support GNU flags like O_IGNORE_CTTY
36666         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36667         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36668         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36669         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36670         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36671         Define to 0 if not already defined.
36672         * tests/test-fcntl-h.c: Test these new flags.
36674 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36676         faccessat, etc.: support AT_FDCWD-only use
36677         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36678         this function only if its first argument is AT_FDCWD.
36679         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36680         values other than AT_FDCWD, so it doesn't want all the openat
36681         machinery with fchdir etc.
36682         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36683         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36684         * modules/unlinkat (Files):
36685         Remove lib/openat-priv.h, as at-internal supplies this file.
36686         Removing this file here allows us to support programs like Emacs
36687         that avoid at-internal.
36689         faccessat: speed up 'configure' on mainstream hosts
36690         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36691         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36692         since it's only on unusual platforms that we need to check for
36693         'access', and it's better not to slow 'configure' down on all
36694         platforms.
36696         faccessat: port to Solaris 10
36697         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36698         Needed on Solaris 10, which doesn't have AT_EACCESS,
36699         so we need the Gnulib fcntl.h, which defines it.
36701 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36702         canonicalize: fix C89 compilation
36703         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36704         declarations so C89 is supported.  Also remove the comment
36705         referencing memorty allocation as the suggested feature could
36706         not be implemented as suggested.
36707         Reported by Michael Goffioul.
36709 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36711         group-member: omit unnecessary dependencies
36712         This is for Emacs, which has its own allocator and where we
36713         don't want to use xalloc.
36714         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36715         since we no longer use xmalloc.  Do not include stdbool.h, since
36716         the changes below happen to remove the only use of bool.
36717         (GROUPBUF_SIZE): New constant.
36718         (struct group_info): Remove n_groups member.  Add groupbuf member.
36719         This lets us get the groups without using malloc, usually.
36720         (free_group_info, get_group_info): Adjust to this.
36721         (get_group_info): Return the number of groups found, or -1 on error.
36722         Use plain malloc not xmalloc, and treat its failure as if there
36723         are no groups, as the user already loses in case of error.
36724         (group_member): Simplify, based on changes to get_group_info.
36725         * modules/group-member (Depends-on): Remove dependencies on
36726         xalloc and stdbool.  Add dependency on xalloc-oversized.
36728 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36730         gethrxtime: port to C++
36731         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36733 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36735         ptsname: fix macro-name typo
36736         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36738 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36740         inttostr: Relax license.
36741         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36743 2012-10-03  Eric Blake  <eblake@redhat.com>
36745         ptsname_r: support ptys returned by FreeBSD posix_openpt
36746         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36747         lives in /dev/pts/.
36749 2012-10-02  Eric Blake  <eblake@redhat.com>
36751         pselect: reject invalid file descriptors
36752         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36753         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36754         * modules/pselect (Depends-on): Add dup2.
36755         * doc/posix-functions/pselect.texi (pselect): Document this.
36757         select: reject invalid file descriptors
36758         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36759         * lib/select.c (rpl_select) [!win32]: Work around it.
36760         * modules/select (Depends-on): Add dup2.
36761         * doc/posix-functions/select.texi (select): Document this.
36763         select: enhance test
36764         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36765         New functions.
36766         (test_function): Enhance test.
36767         (do_select_bad_fd): Avoid any stale errno values.
36769         ptsname: reject invalid file descriptors
36770         http://www.austingroupbugs.net/view.php?id=503
36771         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36773         * modules/stdlib (Makefile.am): Replace witness.
36774         * lib/stdlib.in.h (ptsname): Allow for replacement.
36775         * modules/ptsname (configure.ac): Trigger replacement.
36776         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36778 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36780         hash-pjw-bare: new module
36781         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36782         * lib/hash-pjw-bare.h: Likewise.
36783         * modules/hash-pjw-bare: New file.
36784         * MODULES.html.sh (Misc): Add it.
36786 2012-10-02  Eric Blake  <eblake@redhat.com>
36788         manywarnings: cater to more gcc infelicities
36789         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36790         -Wuninitialized without -O.
36792 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36794         select, poll tests: Make setsockopt invocation effective.
36795         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36796         the bind() call.
36797         * tests/test-select.h (open_server_socket): Likewise.
36799 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36801         sockets, sys_stat: restore AC_C_INLINE
36802         This undoes the 2012-09-22 patch.
36803         * m4/sockets.m4 (gl_SOCKETS):
36804         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36805         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36806         and does not support plain 'inline'.  Reported by Bruno Haible in
36807         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36809 2012-09-30  Bruno Haible  <bruno@clisp.org>
36811         localeconv tests: Avoid test failure on OpenIndiana.
36812         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36813         skip the 'grouping' and 'mon_grouping' tests.
36814         Reported by Jim Meyering.
36816 2012-09-30  Bruno Haible  <bruno@clisp.org>
36818         havelib: Follow libtool developments.
36819         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36820         Suggested by Simon Josefsson.
36822 2012-09-29  Jim Meyering  <meyering@redhat.com>
36824         fstatat.c: fix a compile-impeding typo
36825         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36826         Introduced in commit v0.0-7636-gd202279.
36827         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36829 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36831         extern-inline: provide a -Wundef safe config.h
36832         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36833         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36834         to produce a -Wundef warning free config.h.
36836 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36838         hash-pjw: relax license to LGPLv2+
36839         * modules/hash-pjw (License): Relax, with consent of author.
36841 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36843         maint.mk: fix strict vs. lazy variable issues with RELEASE
36844         * top/maint.mk (_equal): New function.
36845         (member_check): Strip the result to avoid spurious spaces.
36846         (url_dir_list): Do not use ifeq, which is strict, as it will
36847         require RELEASE_TYPE to be defined.
36848         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36849         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36850         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36851         (announcement_Cc_beta,announcement_mail_headers_beta)
36852         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36853         (release): Do not depend on $(release-type), as it forces its
36854         evaluation.  Bounce to it.
36856 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36858         maint.mk: formatting changes
36859         * top/maint.mk: Indent bodies of if's.
36861 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36863         maint.mk: factor the validation of RELEASE_TYPE
36864         With help from Jim Meyering.
36865         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36866         * top/maint.mk (_empty, _sp): Move their definition earlier.
36867         (member-check, release-type): New.
36868         Use the latter instead of $(RELEASE_TYPE).
36869         Remove now useless local checks.
36871 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36873         maint.mk: provide "make upload" to ease uploading
36874         See
36875         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36876         Do not depend simply on the current $(VERSION), as there may have been
36877         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36878         as "make release-commit" already does.
36880         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36881         "make TYPE".
36883         * top/maint.mk (upload_command, upload, release): New.
36884         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36885         (VERSION): first word of $(RELEASE) is always right.
36886         (emit_upload_commands): Adjust.
36887         * top/README-release: Update.
36889 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36891         maint.mk: silent rules
36892         With help from Stefano Lattarini.
36893         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36894         (announcement): Use $(AM_V_at).
36896 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36898         localename: port gl_locale_name_thread_unsafe to FreeBSD
36899         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36900         and use the simpler FreeBSD implementation on Mac OS X as well.
36901         Original idea suggested by Ed Maste in
36902         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36904 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36906         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36907         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36908         * lib/mbuiter.c, lib/xsize.c: New files.
36909         * lib/binary-io.h (BINARY_IO_INLINE):
36910         * lib/eealloc.h (EEALLOC_INLINE):
36911         * lib/mbfile.h (MBFILE_INLINE):
36912         * lib/mbiter.h (MBITER_INLINE):
36913         * lib/mbuiter.h (MBUITER_INLINE):
36914         * lib/xsize.h (XSIZE_INLINE):
36915         New macros.
36916         Replace all uses of 'static inline' with them.
36917         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36918         * m4/eealloc.m4 (gl_EEALLOC):
36919         * m4/mbfile.m4 (gl_MBFILE):
36920         * m4/mbiter.m4 (gl_MBITER):
36921         * m4/xsize.m4 (gl_XSIZE):
36922         Do not require AC_C_INLINE.
36923         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36924         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36925         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36926         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36927         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36928         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36929         * modules/binary-io, modules/eealloc, modules/mbfile:
36930         * modules/mbiter, modules/mbuiter:
36931         (Depends-on): Add extern-inline.
36933         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36934         * lib/pipe-filter-aux.c: New file.
36935         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36936         Replace all uses of 'static inline' with it.
36937         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36938         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36939         (filter_retcode): No real need for inline here.
36940         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36941         (Files): Add lib/pipe-filter-aux.c.
36942         (Depends-on): Add extern-inline.
36943         (configure.ac): Do not require AC_C_INLINE.
36944         (lib_SOURCES): Add pipe-filter-aux.c.
36946         fdutimensat: omit unnecessary AC_C_INLINE
36947         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36949         fchmodat, fchownat, fstatat: use extern-inline
36950         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36951         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36952         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36953         New macros.
36954         * lib/openat.h:
36955         Replace all uses of 'static inline' with them.
36956         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36957         * modules/fchmodat, modules/fchownat, modules/fstatat:
36958         * modules/openat-h:
36959         (Depends-on):
36960         Add extern-inline.
36961         (configure.ac): Remove AC_C_INLINE.
36963         acl, mbchar, priv-set: use extern-inline
36964         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36965         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36966         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36967         New macros.
36968         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36969         Replace all uses of 'static inline' with it.
36970         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36971         * m4/acl.m4 (gl_FUNC_ACL):
36972         * m4/mbchar.m4 (gl_MBCHAR):
36973         * m4/priv-set.m4 (gl_PRIV_SET):
36974         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36975         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36976         Add extern-inline.
36978         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36979         * m4/sockets.m4 (gl_SOCKETS):
36980         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36981         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36982         environments where it's already guaranteed to work, so we needn't
36983         check for it at 'configure'-time.
36985         tls-tests: omit unnecessary 'inline'
36986         * tests/test-tls.c (perhaps_yield): No longer inline.
36987         Simplicity and portability trump efficiency in test cases.
36989         utimens-tests: avoid unnecessary 'inline'
36990         * modules/fdutimensat-tests (configure.ac):
36991         * modules/futimens-tests (configure.ac):
36992         * modules/utimens-tests (configure.ac):
36993         * modules/utimensat-tests (configure.ac):
36994         Remove AC_C_INLINE.
36995         * tests/test-utimens-common.h (ctime_compare):
36996         No longer inline.  Simplicity and portability trump efficiency here.
36998         misc: don't limit commentary to inline functions
36999         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
37000         * lib/xalloc-oversized.h, lib/xsize.h:
37001         Contrast macros to functions in general, not just to inline functions,
37002         when the commentary does not apply only to inline functions.
37004 2012-09-20  Jim Meyering  <meyering@redhat.com>
37006         non-recursive-gnulib-prefix-hack: new module
37007         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
37008         the file that originated in Bison.
37009         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
37010         largely copied from a snippet that resided in bison's configure.ac.
37011         * modules/non-recursive-gnulib-prefix-hack: New file.
37012         * MODULES.html.sh (Support for maintaining and releasing projects):
37013         Add it.
37015 2012-09-18  Jim Meyering  <meyering@redhat.com>
37017         maint.mk: generalize _gl_tight_scope for non-recursive make
37018         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
37019         that *.h would describe additional .h files in the directory
37020         specified by $(_gl_TS_dir).  I.e., add this...
37021         (_gl_TS_other_headers): New variable.
37023         maint.mk: exempt trailing blanks found in "binary" files
37024         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
37025         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
37026         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37028 2012-09-17  Jim Meyering  <meyering@redhat.com>
37030         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
37031         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
37032         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
37033         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37035 2012-09-17  Jim Meyering  <meyering@redhat.com>
37037         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
37038         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
37039         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
37040         It is not in the same category as "exit (0)" or "exit (1)", and
37041         besides, I know of no symbolic name for that 77.  Reported by
37042         Richard W.M. Jones in
37043         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37045 2012-09-17  Jim Meyering  <meyering@redhat.com>
37047         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
37048         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
37049         all uses of #define, not just those that start in column 1.
37050         Richard W.M. Jones reported a false positive in
37051         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37053 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37055         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
37056         * lib/localcharset.c (locale_charset) [DARWIN7]:
37057         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
37058         as these two values are incompatible.  Problem reported by Max Horn.
37059         For more discussion, please see
37060         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
37062         doc: document sticky-EOF issue
37063         * doc/posix-functions/fgetc.texi (fgetc):
37064         * doc/posix-functions/fgets.texi (fgets):
37065         * doc/posix-functions/fread.texi (fread):
37066         * doc/posix-functions/fscanf.texi (fscanf):
37067         * doc/posix-functions/getc.texi (getc):
37068         * doc/posix-functions/getchar.texi (getchar):
37069         * doc/posix-functions/scanf.texi (scanf):
37070         Mention that glibc and default Solaris do not conform to
37071         C99 and POSIX-2001 or later, with respect to how getchar
37072         etc. behave when feof reports nonzero.
37074 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37076         poll: fix poll(0, NULL, msec)
37077         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
37078         but nfd is 0.  In that case poll should behave like select.
37080 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37081             Paolo Bonzini  <bonzini@gnu.org>
37083         poll: fix for systems that can't recv() on a non-socket
37084         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
37085         is readable.  In this case POLLHUP will not be supported.
37086         * doc/posix-functions/poll.texi: Document this.
37088 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
37090         poll/select: document portability problems not fixed by Gnulib.
37091         * doc/posix-functions/poll.texi: poll does not work well on
37092         pipes under Windows.  It has the same limitations as select on
37093         BeOS.
37094         * doc/posix-functions/select.texi: select does not work well
37095         on pipes under Windows.
37097 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
37099         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
37100         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
37101         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
37102         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
37104 2012-09-06  Eric Blake  <eblake@redhat.com>
37106         net_if: give more details about the bug being fixed
37107         * doc/posix-headers/net_if.texi: Add clarification.
37109 2012-09-05  Eric Blake  <eblake@redhat.com>
37111         net_if: new module
37112         * modules/net_if: New module, borrowing ideas from netinet_in.
37113         * m4/net_if_h.m4: New file.
37114         * lib/net_if.in.h: Likewise.
37115         * doc/posix-headers/net_if.texi (net/if.h): Document it.
37116         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37117         * tests/test-net_if.c: Make function checks conditional.
37118         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
37120 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
37122         readutmp: fix non-portable UT_PID use
37123         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
37124         Use `UT_PID (u) > 0' as absolute condition.
37126 2012-09-04  Jim Meyering  <meyering@redhat.com>
37128         fts: reduce two or more trailing spaces to just one, usually
37129         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
37130         or more slashes, trim all but the final one.  But if a name consists
37131         solely of two slashes, don't modify it.  If it consists solely of
37132         three or more slashes, strip all but one.
37134         This is part of the solution to a minor problem with rm:
37135         it would print a bogus ELOOP diagnostic when failing to remove
37136         the slash-decorated name of a symlink-to-directory:
37138             $ mkdir d && ln -s d s && env rm -r s/
37139             rm: cannot remove 's': Too many levels of symbolic links
37141         With the change below and a trivial don't-trim-trailing-slashes
37142         adjustment to remove.c, it does this:
37144             $ env rm -r s/
37145             rm: cannot remove 's/': Not a directory
37147         Improved by: Eric Blake
37149         fts: when there is no risk of overlap, use memcpy, not memmove
37150         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
37152 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37154         stdbool: be more compatible with mixed C/C++ compiles
37155         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
37156         Define to bool, true, false, respectively, as GCC's builtin
37157         stdbool.h does.  Problem reported by Michael Goffioul in
37158         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
37160 2012-08-28  Jim Meyering  <meyering@redhat.com>
37162         revert last change: it was not needed
37163         * tests/test-vc-list-files-git.sh: There's already a test for
37164         a working git, just below.
37166 2012-08-28  Jim Meyering  <meyering@redhat.com>
37168         tests: test-vc-list-files-git.sh: skip if git is not available
37169         * tests/test-vc-list-files-git.sh: Skip this test when git is
37170         not available.
37172 2012-08-26  Bruno Haible  <bruno@clisp.org>
37174         gnulib-tool: Remove no-op option --no-changelog.
37175         * gnulib-tool (func_usage): Don't mention --no-changelog.
37176         (do_changelog): Remove variable.
37177         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37179 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37181         doc: remove fdl-1.2.texi
37182         It is no longer used or maintained, and its use of @acronym
37183         is problematic.  See the thread containing
37184         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
37185         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
37186         * doc/old-licenses/fdl-1.2.texi: Remove.
37188         execinfo: port to FreeBSD
37189         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
37190         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
37191         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
37192         * modules/execinfo (Link): Add $(LIB_EXECINFO).
37194 2012-08-23  Jim Meyering  <meyering@redhat.com>
37196         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
37197         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
37198         to placate gcc's -Wold-style-declaration.
37200 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37202         doc: do not use @acronym
37203         * doc/inet_ntoa.texi (inet_ntoa):
37204         * doc/parse-datetime.texi (Seconds since the Epoch)
37205         (Specifying time zone rules):
37206         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
37207         Don't use @acronym.  Problem reported by John Darlington in
37208         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
37210 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37212         stdnoreturn: port to newer GCCs
37213         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
37214         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
37215         Problem reported by Jim Meyering in
37216         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
37217         Also, rename the 'test' function to a void a clash with the
37218         already-supplied 'main' function; this fixes a bug that incorrectly
37219         rejected GCC 4.7.1's <stdnoreturn.h>.
37220         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
37221         Document GCC problem.
37223 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
37225         pipe-filter: fix comment typo
37226         * lib/pipe-filter.h: Mention correct function.
37228 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37230         execinfo: new module
37231         This is for Emacs.  Currently, it provides a no-effect stub
37232         on all platforms where it does not already work.
37233         It already works on glibc-based systems, and on Solaris 11.
37234         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
37235         New files.
37236         * doc/glibc-headers/execinfo.texi (execinfo.h):
37237         * MODULES.html.sh (Misc): Document it.
37239 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37241         extern-inline: support old GCC 'inline'
37242         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
37243         if available.  This applies to GCC versions 2.7 through 4.2, or
37244         when newer GCC is using -fgnu89-inline.  The goal is to address
37245         some of the performance issues mentioned by Bruno Haible in
37246         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
37248 2012-08-20  Eric Blake  <eblake@redhat.com>
37250         maint.mk: avoid redundant file name in message
37251         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37252         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
37253         (sc_makefile_path_separator_check): Remove bogus $(ME).
37255 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
37257         timer-time: fix link order when static linking on glibc
37258         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37259         _after_ -lrt so that it's significant.
37261 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37263         timespec: omit unnecessary AC_C_INLINE
37264         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
37266         stat-time: omit unnecessary AC_C_INLINE
37267         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37268         Do not require AC_C_INLINE.
37270         ignore-value: omit unnecessary AC_C_INLINE
37271         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
37273         sys_select: avoid 'static inline'
37274         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
37276         mktime: avoid 'static inline'
37277         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
37278         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
37280 2012-08-19  Bruno Haible  <bruno@clisp.org>
37282         gnulib-tool: Improve coding style.
37283         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37284         func_emit_lib_Makefile_am.
37285         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37287 2012-08-19  Bruno Haible  <bruno@clisp.org>
37289         gnulib-tool: Fix indentation.
37290         * gnulib-tool (func_import): Fix indentation.
37292 2012-08-19  Bruno Haible  <bruno@clisp.org>
37294         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
37295         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
37296         on the list of removed files.
37298 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37300         test-parse-datetime: avoid glibc leap-second glitch
37301         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
37302         with the 2012 rules.  Problem reported by Bruce Dubbs in
37303         <http://bugs.gnu.org/12206>.
37305 2012-08-14  Bruno Haible  <bruno@clisp.org>
37307         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
37308         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
37309         from argument.
37310         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37312 2012-08-14  Eric Blake  <eblake@redhat.com>
37314         ldexp: relax license
37315         * modules/ldexp (License): Trivial relax, since the module only
37316         provides a permissively licensed m4 file.
37318 2012-08-13  Bruno Haible  <bruno@clisp.org>
37320         gnulib-tool: Fix persistence of --witness-c-macro option.
37321         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
37322         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37324 2012-08-11  Eric Blake  <eblake@redhat.com>
37326         count-leading-zeros: use a lookup table on non-gcc compilers
37327         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
37328         alternate implementation, suggested by Jim Meyering.
37330 2012-08-10  Eric Blake  <eblake@redhat.com>
37332         count-leading-zeros: new module
37333         * modules/count-leading-zeros: New module.
37334         * m4/count-leading-zeros.m4: New file.
37335         * lib/count-leading-zeros.h: Likewise.
37336         * modules/count-leading-zeros-tests: New test.
37337         * tests/test-count-leading-zeros.c: New file.
37338         * MODULES.html.sh (Integer arithmetic functions): Document it.
37340 2012-08-07  Simon Josefsson  <simon@josefsson.org>
37341             Jim Meyering  <meyering@redhat.com>
37343         maintainer-makefile: Fix syntax error with dash.
37344         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37345         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37347 2012-08-05  Jim Meyering  <meyering@redhat.com>
37349         extern-inline: also ignore -Wmissing-declarations
37350         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37351         required with gcc-4.8.0-to-be.
37353         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37354         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37355         for /error ?([^,]*)/.  This avoids false-positives for strings like
37356         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37358 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37360         gnumakefile: better interaction with Automake-NG
37361         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37362         Automake-NG always contain a definition of VPATH, even in non-VPATH
37363         builds (its value being simply '.' in that case).  So, in the
37364         'clean-GNUmakefile' rule, to determine whether running under a
37365         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37366         '$(VPATH)' expands to the empty string.
37368 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37370         base64: Use extern C scope in header file, for C++.
37371         * lib/base64.h: Add C++ namespace protection.
37373 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37375         stat-time, timespec, u64: support naive out-of-dir builds
37376         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37377         Use '#include "foo.h"', not '#include <foo.h>', when including
37378         one's own interface.  This works better when configuring with
37379         out-of-directory builds, since packages need not add an
37380         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37382 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37384         utimens: use extern-inline
37385         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37386         * lib/utimens.h: Add copyright notice, since this is now large enough
37387         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37388         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37389         * modules/utimens (Depends-on): Add extern-inline.
37391         u64: use extern-inline
37392         * lib/u64.c: New file.
37393         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37394         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37395         * modules/u64 (Files): Add lib/u64.c.
37396         (Depends-on): Add extern-inline.
37397         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37398         does that now.
37399         (lib_SOURCES): Add u64.c.
37401         timespec: use extern-inline
37402         * lib/timespec.c: New file.
37403         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37404         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37405         * modules/timespec (Files): Add lib/timespec.c.
37406         (Depends-on): Add extern-inline.
37407         (lib_SOURCES): Add timespec.c.
37409         stat-time: use extern-inline
37410         * lib/stat-time.c: New file.
37411         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37412         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37413         * modules/stat-time (Files): Add lib/stat-time.c.
37414         (Depends-on): Add extern-inline.
37415         (lib_SOURCES): Add stat-time.c.
37417         extern-inline: new module
37418         * modules/extern-inline, m4/extern-inline.m4: New files.
37419         This is for better support of 'extern inline' a la ISO C99,
37420         with a portable alternative on compilers that do not support
37421         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37422         of the Emacs executable, when compiled with debugging disabled,
37423         which is a typical way that Emacs is built while developing.
37425 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37427         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37428         * build-aux/do-release-commit-and-tag: Move variable definitions
37429         together.
37430         ($branch): Instead of defaulting to "master", default to the current
37431         branch (as gnu-web-doc-update does).
37432         (help): Display the current values of the option arguments.
37433         * top/maint.mk (release-commit): New.
37434         * top/README-release: Simplify the corresponding step.
37436 2012-07-30  Eric Blake  <eblake@redhat.com>
37438         passfd: fix comment on recvfd
37439         * lib/passfd.c (recvfd): Fix comment.
37440         Reported by Jann Horn <jannhorn@googlemail.com>.
37442 2012-07-30  Jim Meyering  <meyering@redhat.com>
37444         maint.mk: avoid a sub-shell
37445         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37447 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37449         maint.mk: use silent-rules support from Automake
37450         * top/maint.mk (news-check, vc-diff-check, announcement)
37451         (no-submodule-changes, alpha beta stable, release-prep)
37452         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
37454 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37456         maint.mk: provide a web-manual-update target
37457         * top/maint.mk: here.
37458         * top/README-release: Use it to simplify the web manual update step.
37460 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37462         README-release: shorten the circuit to post a news
37463         * top/README-release: Point directly to the news submission form.
37465 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37467         gnu-web-doc-update: fix --help
37468         * build-aux/gnu-web-doc-update: The information "top level" was written
37469         twice.
37471 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37473         maint.mk: absolute VPATH issue
37474         * top/maint.mk (release-prep): Help Git find .git/.
37475         From Jim Meyering.
37477 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37479         gitlog-to-changelog: fix previous change
37480         * build-aux/gitlog-to-changelog: Fix condition.
37481         Add missing ";".
37483 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37485         gitlog-to-changelog: don't expect .git to be in $srcdir
37486         Reported by Bruno Haible.
37487         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
37488         * build-aux/gitlog-to-changelog (&git_dir_option): New.
37489         Use it.
37491 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37493         maint.mk: absolute VPATH build fix
37494         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
37495         $(srcdir) is not a parent of $(builddir).
37497 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
37499         clean-temp: Fix memory leak.
37500         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
37501         'files' members of tmpdir.
37503 2012-07-27  Jim Meyering  <meyering@redhat.com>
37505         maint.mk: new rule: refresh-gnulib-patches
37506         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
37507         Use this rule to refresh them.
37508         * top/maint.mk (refresh-gnulib-patches): New rule.
37510 2012-07-24  Bruno Haible  <bruno@clisp.org>
37512         gnulib-tool: Fix handling of inctests variable.
37513         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
37514         Reported by Nick Bowler <nbowler@elliptictech.com>.
37516 2012-07-22  Bruno Haible  <bruno@clisp.org>
37518         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
37519         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
37520         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37521         Remove exemption for getpass.h.
37522         Suggested by Eric Blake.
37524 2012-07-20  Eric Blake  <eblake@redhat.com>
37526         verify: document conflict with -Wnested-externs
37527         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
37529         maint.mk: forbid exit(-1)
37530         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
37532 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
37534         fsusage: port back to Solaris
37535         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
37536         error (fsd not declared) on Solaris 10.  Reported privately by
37537         Andrew Borodin.
37539 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
37541         gnu-web-doc-update: fix error messages
37542         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
37544         gnu-web-doc-update: check the requirements.
37545         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
37546         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
37547         * build-aux/bootstrap (find_tool): Comment change.
37549 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
37551         maint.mk: minor simplication.
37552         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
37553         for default values.
37555 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
37557         gitlog-to-changelog: VPATH build issues
37558         If builddir is not a subdirectory of srcdir, running git from it will
37559         fail.
37560         * build-aux/gitlog-to-changelog (--srcdir): New option.
37562 2012-07-15  Bruno Haible  <bruno@clisp.org>
37564         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
37565         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
37566         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
37567         Remove exemption for fpending.h.
37568         Suggested by Eric Blake.
37570 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37572         pthread_sigmask: fix bug on FreeBSD 9
37573         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
37574         Include string.h.
37575         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
37576         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
37577         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
37578         but pthread_sigmask (1729, NULL, NULL) returns zero.
37579         See <http://bugs.gnu.org/11884>.
37580         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
37581         by inspecting whether the main call changed the old mask.
37583 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
37585         README-release: make it more legible
37586         * top/README-release: Improve typography slightly.
37588 2012-07-15  Jim Meyering  <meyering@redhat.com>
37590         maint: require that each sc_... command start with "@"
37591         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37592         "make sc_maint" helps us avoid this nit.
37594 2012-07-15  Jim Meyering  <meyering@redhat.com>
37596         maint.mk: add leading "@" to quiet new "make syntax-check" rule
37597         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37599 2012-07-13  Eric Blake  <eblake@redhat.com>
37601         maint.mk: new syntax check for HAVE_DECL checks
37602         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
37603         * cfg.mk
37604         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37605         Exempt some false positives.
37606         Based on a report by Karel Zak.
37608         argp: make HAVE_DECL usage consistent
37609         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
37610         macros, not whether they are defined.
37611         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
37612         convention with other declaration checks.
37613         Reported by Karel Zak, with suggestions from Paul Eggert.
37615         stat-time: relax license to LGPLv2+
37616         * modules/stat-time (License): Relax, with consent of all authors.
37618         strndup: fix m4 usage error
37619         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
37620         defined, to either 0 or 1.
37621         Reported by Karel Zak.
37623 2012-07-11  Jim Meyering  <meyering@redhat.com>
37625         maint: enable the sc_avoid_if_before_free syntax-check rule
37626         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
37627         (if_before_free_offenders_): Define.
37628         (if_before_free_basename_re_): Define.
37629         Exempt current files with useless if-before-free.
37631 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37633         gettext: do not assume '#define ... defined ...' behavior
37634         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
37635         Do not use '#define FOO ... defined BAR ...', as the C standard says
37636         it's not portable to expect that this works after macro expansion.
37637         Problem reported for gzip by Steven M. Schweda in
37638         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
37640 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37642         getloadavg: clean out old Emacs and Autoconf cruft
37643         See Glenn Morris in <http://bugs.gnu.org/11905>.
37644         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
37645         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
37646         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
37647         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
37649 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
37651         bootstrap: let warn be like tests/init.sh's warn_
37652         Reported by Jim Meyering.
37653         * build-aux/bootstrap (warn): Remove, replaced by...
37654         (warnf_, warn_): these.
37655         Adjust callers.
37656         Shorten messages that no longer fit in 80 columns.
37658 2012-07-09  Bruno Haible  <bruno@clisp.org>
37660         getopt: Simplify after Emacs changed.
37661         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37662         (gl_GETOPT_IFELSE): Remove macro.
37664 2012-07-09  Jim Meyering  <meyering@redhat.com>
37666         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37667         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37669         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37670         Bugs in both of those conspired to make the
37671         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37672         _sc_search_regexp's handling of non-empty $in_files would filter
37673         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37674         choice of in_files value meant there would be no match in most
37675         projects, due to the presence of two or more Makefile.in files.
37676         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37677         Fix a bug in how a non-empty $$in_files was processed:
37678         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37679         in spite of the name, it's a regexp, not a list of file names.
37681 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37683         getloadavg, getopt: fix commentary re configure.in
37684         Autoconf is deprecating the name 'configure.in', so change it to
37685         to the new name 'configure.ac' in a couple of places.
37686         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37687         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37688         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37689         Emacs has renamed it to configure.ac, and it no longer refers
37690         to these macros anyway.
37692         timespec: mark functions with const attributes
37693         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37694         Mark with _GL_ATTRIBUTE_CONST.
37696 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37698         canonicalize[-lgpl]: handle "guessing" values when cross-building
37699         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37700         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37701         matches "*yes" instead of just "yes".  Regression introduced in commit
37702         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37704 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37705             Bruno Haible  <bruno@clisp.org>
37707         canonicalize: make the right guess when cross-compiling to GNU
37708         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37709         determine whether cross-compiling to glibc systems, so as to
37710         include GNU/Hurd.
37712 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37714         timespec-sub: avoid duplicate include
37715         * lib/timespec-sub.c: Do not include <config.h> twice.
37716         Reported by Juanma Barranquero.
37718 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37720         bootstrap: use a more consistent error reporting scheme
37721         * build-aux/bootstrap (warn, die): New.
37722         Use them.
37724 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37726         sys_time: allow too-wide tv_sec
37727         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37728         timeval even if tv_sec is wider than time_t.  This allows
37729         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37730         as without this patch gnulib replaces struct timeval
37731         and OpenBSD futimes therefore has a type mismatch.
37732         * doc/posix-headers/sys_time.texi: Mention this.
37734         pthread: check for both pthread_create and pthread_join
37735         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37736         alter the check so that it tests for both pthread_create and
37737         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37738         Suggested by Bruno Haible and Richard Yao in
37739         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37741         parse-datetime: doc tuneup
37742         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37743         spacing issues.
37745 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37747         do-release-commit-and-tag: fix the previous commit
37748         * build-aux/do-release-commit-and-tag: Actually the test was right,
37749         but the comment and the error message were misleading.
37750         Fix comment, and improve error message.
37751         Perform check first, so that NEWS is not modified uselessly.
37753         do-release-commit-and-tag: fix typo
37754         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37755         _not_ start with a stub.
37757 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37759         pthread: check for pthread_create, not pthread_join
37760         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37761         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37762         pthread_join in libc.  I hope this removes the need for all the
37763         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37764         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37766 2012-07-04  Jim Meyering  <meyering@redhat.com>
37768         parse-datetime: fix failure to diagnose invalid input
37769         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37770         rather than diagnosing the invalid input.  Now it reports this:
37771         date: invalid date '\260'
37772         * lib/parse-datetime.y (to_uchar): Define.
37773         (yylex): Don't sign-extend "other" bytes.
37774         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37775         Thanks to Bruno Haible for the patch to this file.
37776         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37777         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37779 2012-07-03  Jim Meyering  <meyering@redhat.com>
37781         bootstrap: do not require now-removed build-aux/missing
37782         Now that build-aux/missing is, er, missing, bootstrap would
37783         silently fail.
37784         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37785         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37786         no longer part of gnulib.
37787         Diagnose the failure.
37789 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37791         alloca: add support for HP NonStop TNS/E native
37792         * lib/alloca.in.h (alloca): Support the new host.
37793         From a suggestion by Joachim Schmitz in
37794         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37796 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37798         fsusage: remove code not needed on non GNU/Linux systems.
37800         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37801         Don't include headers no longer needed in this case.
37802         * lib/fsusage.c [STAT_STATVFS &&
37803         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37804         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37806 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37808         fsusage: include files needed for glibc 2.6 fallback
37809         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37810         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37811         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37812         Problem reported by Ludovic Courtès in
37813         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37815         fsusage: avoid needless check on GNU/Linux
37816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37817         on GNU/Linux systems, since it can't possibly work.
37819 2012-07-01  Bruno Haible  <bruno@clisp.org>
37821         log: Fix an autoconf >= 2.64 warning.
37822         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37823         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37825 2012-06-28  Bruno Haible  <bruno@clisp.org>
37827         log10f: Fix possible configuration problem.
37828         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37829         $LOGF_LIBM.
37830         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37832 2012-06-28  Bruno Haible  <bruno@clisp.org>
37834         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37835         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37836         not gl_cv_func_unlink_works.
37837         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37839 2012-06-27  Eric Blake  <eblake@redhat.com>
37841         config: drop scripts that automake says are not independent
37842         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37843         * build-aux/elisp-comp: Delete.
37844         * build-aux/missing: Likewise.
37845         * build-aux/ylwrap: Likewise.
37846         * modules/elisp-comp: Likewise.
37847         * MODULES.html.sh: Drop mention of elisp-comp.
37848         * NEWS: Mention this.
37850 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37852         root-uid: new module
37853         This is for portability to Tandem's NonStop Kernel.
37854         * lib/root-uid.h, modules/root-uid: New files.
37855         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37856         * lib/write-any-file.c, tests/test-sethostname2.c:
37857         Include "root-uid.h".
37858         * lib/euidaccess.c (euidaccess):
37859         * lib/pt_chown.c (main):
37860         * lib/unlinkdir.c (cannot_unlink_dir):
37861         * lib/write-any-file.c (can_write_any_file):
37862         * m4/mknod.m4 (gl_FUNC_MKNOD):
37863         * tests/test-sethostname2.c (geteuid, main):
37864         Don't assume ROOT_UID == 0.
37865         * modules/euidaccess (Depends-on):
37866         * modules/pt_chown (Depends-on):
37867         * modules/sethostname-tests (Depends-on):
37868         * modules/unlinkdir (Depends-on):
37869         * modules/write-any-file (Depends-on):
37870         Add root-uid.
37872         regex: use locale-independent comparison for codeset name
37873         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37874         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37875         for codeset name.
37876         * lib/regex_internal.h: Do not include <strings.h>, since we
37877         no longer use strcasecmp.
37878         * modules/regex (Depends-on): Remove strcase.
37880 2012-06-23  Bruno Haible  <bruno@clisp.org>
37882         getopt-posix: No longer guarantee that option processing is resettable.
37883         * doc/posix-functions/getopt.texi: Drop description of problem with
37884         internal state. Fix info about mingw and msvc9.
37885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37886         option processing by getopt(). Run three test programs instead of one.
37887         Simplify cross-compilation guess.
37888         * NEWS: Mention the change.
37889         Reported by Rich Felker <dalias@aerifal.cx>.
37891 2012-06-26  Bruno Haible  <bruno@clisp.org>
37893         argp, regex: Ensure strcasecmp gets declared.
37894         * lib/argp-help.c: Include <strings.h>.
37895         * lib/regex_internal.h: Likewise.
37896         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37898 2012-06-24  Bruno Haible  <bruno@clisp.org>
37900         ptsname_r: Make it consistent with ptsname on AIX.
37901         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37902         implementation as for OSF/1.
37903         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37904         a pty master.
37906         ptsname_r: Make it consistent with ptsname on OSF/1.
37907         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37908         OSF/1.
37910 2012-06-24  Bruno Haible  <bruno@clisp.org>
37912         ttyname_r: Fix result on OSF/1, Solaris.
37913         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37915 2012-06-24  Bruno Haible  <bruno@clisp.org>
37917         ptsname_r: Add support for Solaris.
37918         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37919         Solaris.
37921         ptsname_r: Fix test failure on native Windows.
37922         * modules/ptsname_r (Depends-on): Add isatty.
37924         ptsname_r: Fix test failures on IRIX, Solaris.
37925         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37926         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37927         accordingly.
37928         * lib/ptsname_r.c: Include <fcntl.h>.
37929         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37930         set errno if fd is invalid.
37931         * tests/test-isatty.c (main): Update comments.
37933 2012-06-24  Bruno Haible  <bruno@clisp.org>
37935         ptsname test: Extend test.
37936         * tests/test-ptsname.c: Include <errno.h>.
37937         (main): Test behaviour with invalid file descriptor.
37939 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37941         time: fix obsolete comment
37942         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37943         reference to HAVE_STRUCT_TIMESPEC in comment.
37945 2012-06-23  Bruno Haible  <bruno@clisp.org>
37947         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37949         does not handle abbreviated long options with equivalent
37950         disambiguations, set gl_replace_getopt to yes.
37951         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37953 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37955         time_r: fix typo that always overrode localtime_r decl
37956         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37957         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37958         not in a standard include.
37960 2012-06-22  Bruno Haible  <bruno@clisp.org>
37962         Write "Mac OS X" instead of "MacOS X".
37963         * README: Write "Mac OS X" instead of "MacOS X".
37964         * build-aux/bootstrap: Likewise.
37965         * build-aux/install-reloc: Likewise.
37966         * lib/acl-internal.h: Likewise.
37967         * lib/acl_entries.c: Likewise.
37968         * lib/argp-ba.c: Likewise.
37969         * lib/argp-pv.c: Likewise.
37970         * lib/config.charset: Likewise.
37971         * lib/copy-acl.c: Likewise.
37972         * lib/csharpexec.c: Likewise.
37973         * lib/euidaccess.c: Likewise.
37974         * lib/fbufmode.c: Likewise.
37975         * lib/fflush.c: Likewise.
37976         * lib/file-has-acl.c: Likewise.
37977         * lib/filemode.h: Likewise.
37978         * lib/fpurge.c: Likewise.
37979         * lib/freadable.c: Likewise.
37980         * lib/freadahead.c: Likewise.
37981         * lib/freading.c: Likewise.
37982         * lib/freadptr.c: Likewise.
37983         * lib/freadseek.c: Likewise.
37984         * lib/fseeko.c: Likewise.
37985         * lib/fseterr.c: Likewise.
37986         * lib/fsusage.c: Likewise.
37987         * lib/fwritable.c: Likewise.
37988         * lib/fwriting.c: Likewise.
37989         * lib/get-rusage-as.c: Likewise.
37990         * lib/get-rusage-data.c: Likewise.
37991         * lib/getdomainname.c: Likewise.
37992         * lib/idpriv-drop.c: Likewise.
37993         * lib/idpriv-droptemp.c: Likewise.
37994         * lib/localcharset.c: Likewise.
37995         * lib/locale.in.h: Likewise.
37996         * lib/localename.c: Likewise.
37997         * lib/mbsrtowcs-state.c: Likewise.
37998         * lib/nproc.c: Likewise.
37999         * lib/passfd.c: Likewise.
38000         * lib/posix_openpt.c: Likewise.
38001         * lib/printf-parse.c: Likewise.
38002         * lib/progreloc.c: Likewise.
38003         * lib/safe-read.h: Likewise.
38004         * lib/safe-write.h: Likewise.
38005         * lib/sched.in.h: Likewise.
38006         * lib/set-mode-acl.c: Likewise.
38007         * lib/signal.in.h: Likewise.
38008         * lib/stdint.in.h: Likewise.
38009         * lib/stdio-impl.h: Likewise.
38010         * lib/stdlib.in.h: Likewise.
38011         * lib/strtod.c: Likewise.
38012         * lib/sys_select.in.h: Likewise.
38013         * lib/tcgetsid.c: Likewise.
38014         * lib/unistd.in.h: Likewise.
38015         * lib/unlockpt.c: Likewise.
38016         * lib/vasnprintf.c: Likewise.
38017         * lib/vma-iter.c: Likewise.
38018         * lib/wcsrtombs-state.c: Likewise.
38019         * m4/acl.m4: Likewise.
38020         * m4/acosl.m4: Likewise.
38021         * m4/asinl.m4: Likewise.
38022         * m4/atanl.m4: Likewise.
38023         * m4/c-stack.m4: Likewise.
38024         * m4/cosl.m4: Likewise.
38025         * m4/expl.m4: Likewise.
38026         * m4/extensions.m4: Likewise.
38027         * m4/fdatasync.m4: Likewise.
38028         * m4/fmal.m4: Likewise.
38029         * m4/frexp.m4: Likewise.
38030         * m4/frexpf.m4: Likewise.
38031         * m4/frexpl.m4: Likewise.
38032         * m4/fsusage.m4: Likewise.
38033         * m4/getdomainname.m4: Likewise.
38034         * m4/getloadavg.m4: Likewise.
38035         * m4/getopt.m4: Likewise.
38036         * m4/gettext.m4: Likewise.
38037         * m4/gnulib-common.m4: Likewise.
38038         * m4/intdiv0.m4: Likewise.
38039         * m4/intlmacosx.m4: Likewise.
38040         * m4/largefile.m4: Likewise.
38041         * m4/ldexpl.m4: Likewise.
38042         * m4/link-follow.m4: Likewise.
38043         * m4/locale-ar.m4: Likewise.
38044         * m4/locale-fr.m4: Likewise.
38045         * m4/locale-ja.m4: Likewise.
38046         * m4/locale-tr.m4: Likewise.
38047         * m4/locale-zh.m4: Likewise.
38048         * m4/locale_h.m4: Likewise.
38049         * m4/lock.m4: Likewise.
38050         * m4/logl.m4: Likewise.
38051         * m4/mathfunc.m4: Likewise.
38052         * m4/minus-zero.m4: Likewise.
38053         * m4/mktime.m4: Likewise.
38054         * m4/mmap-anon.m4: Likewise.
38055         * m4/multiarch.m4: Likewise.
38056         * m4/nanosleep.m4: Likewise.
38057         * m4/nocrash.m4: Likewise.
38058         * m4/poll.m4: Likewise.
38059         * m4/printf-frexpl.m4: Likewise.
38060         * m4/printf.m4: Likewise.
38061         * m4/signbit.m4: Likewise.
38062         * m4/sinl.m4: Likewise.
38063         * m4/sqrtl.m4: Likewise.
38064         * m4/strerror_r.m4: Likewise.
38065         * m4/tanl.m4: Likewise.
38066         * m4/threadlib.m4: Likewise.
38067         * m4/ttyname_r.m4: Likewise.
38068         * m4/unlink.m4: Likewise.
38069         * m4/visibility.m4: Likewise.
38070         * m4/wcwidth.m4: Likewise.
38071         * tests/minus-zero.h: Likewise.
38072         * tests/test-alloca-opt.c: Likewise.
38073         * tests/test-copy-acl.sh: Likewise.
38074         * tests/test-copy-file.sh: Likewise.
38075         * tests/test-fdatasync.c: Likewise.
38076         * tests/test-file-has-acl.sh: Likewise.
38077         * tests/test-flock.c: Likewise.
38078         * tests/test-fsync.c: Likewise.
38079         * tests/test-localename.c: Likewise.
38080         * tests/test-malloca.c: Likewise.
38081         * tests/test-nonblocking-pipe.h: Likewise.
38082         * tests/test-nonblocking-socket.h: Likewise.
38083         * tests/test-openpty.c: Likewise.
38084         * tests/test-posix_openpt.c: Likewise.
38085         * tests/test-ptsname.c: Likewise.
38086         * tests/test-ptsname_r.c: Likewise.
38087         * tests/test-sameacls.c: Likewise.
38088         * tests/test-select.h: Likewise.
38089         * tests/test-set-mode-acl.sh: Likewise.
38090         * tests/test-snprintf-posix.h: Likewise.
38091         * tests/test-sprintf-posix.h: Likewise.
38092         * tests/test-strtod.c: Likewise.
38093         * tests/test-time.c: Likewise.
38094         * tests/test-vasnprintf-posix.c: Likewise.
38095         * tests/test-vasprintf-posix.c: Likewise.
38096         * doc/acl-resources.txt: Likewise.
38097         * doc/**/*.texi: Likewise.
38098         Reported by Max Horn <max@quendi.de>.
38100 2012-06-22  Bruno Haible  <bruno@clisp.org>
38102         grantpt: Relax requirement regarding invalid file descriptors.
38103         * lib/grantpt.c: Don't include <fcntl.h>.
38104         (grantpt): Don't verify the validity of the file descriptor.
38105         * modules/grantpt (Depends-on): Remove fcntl-h.
38106         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
38107         file descriptors.
38108         * doc/posix-functions/grantpt.texi: Document more platforms on which
38109         grantpt succeeds for invalid file descriptors.
38110         Reported by Rich Felker <dalias@aerifal.cx>.
38112 2012-06-22  Bruno Haible  <bruno@clisp.org>
38114         fbufmode test: Don't test unportable behaviour.
38115         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
38116         (main): Invoke it three times.
38117         Reported by Szabolcs Nagy <nsz@port70.net>
38118         and Rich Felker <dalias@aerifal.cx>.
38120 2012-06-21  Bruno Haible  <bruno@clisp.org>
38122         gnulib-tool: Refactor inctests variable.
38123         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
38124         (func_modules_transitive_closure,
38125         func_modules_transitive_closure_separately,
38126         func_import, func_create_testdir): Update.
38128         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
38129         * gnulib-tool: Accept option --without-tests.
38130         (func_usage): Document --without-tests option. Rearrange.
38131         (inctests): Normalize according to the mode.
38132         * NEWS: Mention the change.
38133         Suggested by Simon Josefsson.
38135 2012-06-21  Bruce Korb  <bkorb@gnu.org>
38137         parse-duration test: Avoid spurious output.
38138         * tests/test-parse-duration.sh: Reindent with leading tabs.
38140 2012-06-21  Jim Meyering  <meyering@redhat.com>
38142         maint: disable the strncpy prohibition
38143         * cfg.mk: Do not prohibit strncpy here.
38145 2012-06-21  Bruno Haible  <bruno@clisp.org>
38147         nonblocking: Avoid compilation error on mingw64.
38148         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
38149         fscanf.
38150         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
38151         * modules/vfscanf (configure.ac): Likewise.
38152         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
38153         definition only if stdio.h has prepared it.
38154         Reported by Daniel P. Berrange <berrange@redhat.com>.
38156 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
38158         gnulib-tool: Use readlink if it is available.
38159         * gnulib-tool (func_readlink): Choose function more appropriately.
38161 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38163         posixtm-tests: port to buggy compiler
38164         Problem reported by Simon Josefsson in
38165         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
38166         * modules/posixtm-tests (Depends-on): Add stdint.
38167         * tests/test-posixtm.c (struct posixtm_test.t_expected):
38168         Now of type int_least64_t, not int64_t, both because that's
38169         what INT64_C returns and because int_least64_t works even
38170         on 72-bit hosts.
38171         (T): Use INT64_C on constants outside the traditional int range,
38172         to work around compiler bug noted by Simon.
38174         mktime: fix integer overflow in 'configure'-time test
38175         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38176         after integer overflow.  Problem reported by Rich Felker in
38177         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
38178         Also, don't look for further instances of a bug if we've already
38179         found one instance; this helps 'configure' run faster.
38181 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
38183         tmpfile, clean-temp: Fix invocation of GetVersionEx.
38184         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
38185         GetVersionEx correctly.
38186         * lib/clean-temp.c (supports_delete_on_close): Likewise.
38188 2012-06-20  Bruno Haible  <bruno@clisp.org>
38190         fdopen: Allow implementations that don't reject invalid fd arguments.
38191         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
38192         succeeds.
38193         Reported by Rich Felker <dalias@aerifal.cx>.
38195 2012-06-20  Simon Josefsson  <simon@josefsson.org>
38197         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
38198         bring in LIBINTL.
38200 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38202         init.sh: do not rely on autoupated PWD
38203         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
38204         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
38205         Although Nelson's bug was not necessarily fixed by this patch,
38206         it seems wise to make the change for safety.
38207         * tests/init.sh (path_prepend_): Do not rely on PWD updating
38208         automagically after 'cd'; this is not reliable on older shells.
38209         (setup_): Fail if we cannot cd to temporary directory.
38211 2012-06-19  Bruno Haible  <bruno@clisp.org>
38213         stat, fstat: Avoid warnings on mingw64.
38214         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
38215         redefining.
38216         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
38217         Reported by Daniel P. Berrange <berrange@redhat.com>.
38219 2012-06-19  Bruno Haible  <bruno@clisp.org>
38221         stdioext: Add support for musl libc.
38223         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
38224         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
38226         * m4/fseterr.m4: New file.
38227         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
38228         function exists.
38229         * modules/fseterr (Files): Add m4/fseterr.m4.
38230         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
38231         __fseterr does not exist.
38232         (Makefile.am): Remove fseterr.c from lib_SOURCES.
38234         * lib/freadable.h: Update comment.
38236         * lib/fwritable.h: Update comment.
38238         * lib/freading.h: Update comment.
38240         * lib/fwriting.h: Update comment.
38242         * m4/freadahead.m4: New file.
38243         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
38244         that function exists.
38245         * modules/freadahead (Files): Add m4/freadahead.m4.
38246         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
38247         __freadahead does not exist.
38248         (Makefile.am): Remove freadahead.c from lib_SOURCES.
38250         * m4/freadptr.m4: New file.
38251         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
38252         function exists.
38253         * modules/freadptr (Files): Add m4/freadptr.m4.
38254         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
38255         __freadptr does not exist.
38256         (Makefile.am): Remove freadptr.c from lib_SOURCES.
38258         * m4/freadseek.m4: New file.
38259         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
38260         exists.
38261         * modules/freadseek (Files): Add m4/freadseek.m4.
38262         (configure.ac): Invoke gl_FUNC_FREADSEEK.
38264         * lib/fpurge.c (fpurge): Update comment.
38266         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
38268 2012-06-19  Bruno Haible  <bruno@clisp.org>
38270         *printf-posix: Put more info into config.log.
38271         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
38272         exit code into config.log.
38274 2012-06-19  Bruno Haible  <bruno@clisp.org>
38276         getopt-gnu: Fix exit code overflow in autoconf test.
38277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
38278         to keep them below < 128.
38280 2012-06-17  Jim Meyering  <meyering@redhat.com>
38282         maint.mk: fix typo in code to derive GPG key at release time
38283         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
38285 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
38287         regex: avoid warning when pointers are not long
38288         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
38289         and uintptr_t, not long, for portability to hosts where pointers and
38290         long have different sizes.  Issue noted by Daniel P. Berrange in
38291         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
38292         and fix suggested by Bruno Haible in
38293         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
38295 2012-06-17  Bruno Haible  <bruno@clisp.org>
38297         dummy: Relicense into the public domain.
38298         * modules/dummy (License): Set to "public domain".
38299         Suggested by Reuben Thomas.
38301 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38303         announce-gen: VPATH issues
38304         * build-aux/announce-gen (--srcdir): New option, used to trim the
38305         $srcdir part of the path from $builddir to NEWS.
38306         * top/maint.mk (announcement): Adjust.
38308 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38310         gnu-web-doc-update: VPATH builds
38311         * build-aux/gnu-web-doc-update (--builddir): New option.
38312         Revamp the handling of options.
38313         Prefer $(...) to `...`.
38314         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
38315         the template, and it is GNU mktemp specific.
38316         Prefer set -e to long series of &&.
38317         Restore the initial git branch, not "master".
38318         Properly initialize submodules (don't rely only on bootstrap).
38319         Do not reconfigure blindly, use config.status.
38320         * top/README-release: Update instructions for gnu-web-doc-update.
38322 2012-06-11  Jim Meyering  <meyering@redhat.com>
38324         maint.mk: revert most of the previous change re "all these"
38325         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
38326         For rationale, see the discussion at
38327         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
38329 2012-06-10  Karl Berry  <karl@gnu.org>
38331         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
38333         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
38335 2012-06-10  Bruce Korb  <bkorb@gnu.org>
38337         parse-duration: Relicense under LGPLv2+.
38338         * modules/parse-duration (License): Change to LGPLv2+.
38340 2012-06-10  Jim Meyering  <meyering@redhat.com>
38342         maint.mk: prohibit common grammar error: "all these"
38343         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38344         the list of prohibited word sequences.  It should be "all of these".
38345         * lib/tempname.c (__gen_tempname): Fix one of them.
38347 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38349         do-release-commit-and-tag: support VPATH builds
38350         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38351         (noteworthy): Defined earlier to factor its value.
38352         (noteworthy_stub): New.
38353         Use it to factor.
38354         (help_version): Split into...
38355         (help, version): these.
38356         Adjust the option processing part.
38357         Support "--option=value" in addition to "--option value".
38358         (builddir): New.
38359         (--builddir): New option.
38360         * top/README-release: Document this.
38361         Reword slightly so that the reader cannot understand that he
38362         has to do these steps before calling do-release-commit-and-tag.
38364 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38366         readme-release: also require announce-gen and maintainer-makefile
38367         * modules/readme-release (Depends-on): here.
38368         * modules/announce-gen, modules/do-release-commit-and-tag,
38369         modules/gnu-web-doc-update, modules/maintainer-makefile
38370         (Description): Point to readme-release.
38372 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38374         maint.mk: fix VPATH issues.
38375         * top/maint.mk (news-check): GNU Make understand $< very well.
38376         (release-prep): NEWS is in $(srcdir).
38378 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38380         readme-release: require the promoted modules.
38381         * modules/readme-release (Depends-on): Add
38382         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38383         in this text.
38385 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38386             Bruno Haible  <bruno@clisp.org>
38388         error, strerror-override: Support mingw64 from Fedora 17.
38389         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38390         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38391         EINPROGRESS.
38392         * lib/strerror-override.h (strerror_override): Test it.
38393         * lib/strerror-override.c (strerror_override): Likewise.
38394         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38396 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38397             Bruno Haible  <bruno@clisp.org>
38399         error, strerror-override: Support mingw64 from Fedora 17.
38400         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38401         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38402         * lib/strerror-override.h (strerror_override): Test it.
38403         * lib/strerror-override.c (strerror_override): Likewise.
38405 2012-06-03  Bruno Haible  <bruno@clisp.org>
38407         error, strerror-override: Support new errno values from POSIX:2008.
38408         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38409         ENOTRECOVERABLE.
38410         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38411         platforms.
38412         * lib/strerror-override.c (strerror_override): Conditionalize the
38413         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38414         * lib/strerror-override.h (strerror_override): Declare also if
38415         GNULIB_defined_EOWNERDEAD is defined.
38416         * tests/test-errno.c (e130, e131): New variables.
38417         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38418         ENOTRECOVERABLE.
38419         Reported by Paolo Bonzini.
38421 2012-05-31  Jim Meyering  <meyering@redhat.com>
38423         savewd: add missing dependency on sys_wait module
38424         * modules/savewd (Depends-on): Add sys_wait, needed at least
38425         for MSVC.  Report and suggested change by Michael Goffioul.
38427 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38429         system-quote-tests: port to CentOS 5
38430         Problem reported by Tom G. Christensen in
38431         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38432         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38434 2012-05-29  Jim Meyering  <meyering@redhat.com>
38436         maint: fix typos in comments and ChangeLog
38437         Culprits identified and fixed mostly automatically using these commands:
38438         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38439         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38440         using http://github.com/lyda/misspell-check
38441         * ChangeLog: Fix typos.
38442         * doc/solaris-versions: Likewise.
38443         * lib/regexec.c (re_search_stub): Likewise.
38444         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38446 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38448         manywarnings: remove duplicate -Wmultichar entry
38449         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38450         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38451         so keep the entry marked as documented.
38453 2012-05-27  Karl Berry  <karl@gnu.org>
38455         * config/srclist.txt (mktime.c): remove last libc sync,
38456         perhaps just temporarily.
38458 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38460         regex: don't assume uint64_t or uint32_t
38461         * lib/regcomp.c (init_word_char): Don't assume that the types
38462         uint64_t and uint32_t exist.  The C standard doesn't guarantee
38463         them, and on some 32-bit compilers there is no uint64_t.
38464         Problem reported by Gianluigi Tiesi in
38465         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
38467 2012-05-25  Jim Meyering  <meyering@redhat.com>
38469         maint.mk: add strncpy-prohibiting syntax-check rule
38470         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38472 2012-05-24  Jim Meyering  <meyering@redhat.com>
38474         maint.mk: compute $(gpg_key_ID) more portably
38475         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
38476         That use of sed is not portable to some fringe systems.
38477         Reported by Paul Eggert in
38478         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
38480 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38482         mktime: sync from glibc
38483         * config/srclist.txt: Uncomment mktime.c.
38484         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
38485         First, indent with tabs, since glibc uses tabs and doesn't want to
38486         change and we'd rather be identical to glibc.  Also, two small
38487         coding changes:
38488         (isdst_differ): Use &&, not &, as && is the usual style.
38489         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
38490         for clarity.
38492 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38494         announce-gen: du -h is more portable than du --human
38495         * build-aux/announce-gen (sizes): Invoke du with -h instead
38496         of --human.  Accept leading white space in its output.
38498 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38500         announce-gen: Improve diagnostics.
38501         * build-aux/announce-gen: When parsing command line options,
38502         prefer "announce-gen: option --release-type requires an argument"
38503         to "Option release-type requires an argument".
38505 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38507         maint.mk: gpg_key_ID: use sed more portably
38508         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38509         the closing brace.
38510         (refresh-po): Fuse two sed invocations into one.
38512 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
38514         gitlog-to-changelog: support the log message format used in Bison.
38515         * build-aux/gitlog-to-changelog: Support --strip-tab and
38516         --strip-cherry-picked.
38518 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38520         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
38521         the rest of the current time slice to another thread in the current
38522         process. So if the thread that feeds the file decscriptor we're
38523         polling is not in the current process, we get busy-waiting.
38524         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
38525         Patch from Theodore Leblond.
38526         * lib/select.c: Split polling out of the loop that sets the output
38527         fd_sets.  Check for zero result and loop if the wait timeout is
38528         infinite.
38530 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38532         select: Fix build error on IRIX 6.5.
38533         * lib/select.c: Include stddef.h for NULL.
38535 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38537         gc: fix libgcrypt detection on older machines.
38538         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
38539         copyright years because the file has been distributed every year
38540         since it was created.
38542 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38544         crypto: fix bug in large buffer handling
38545         Problem reported by Serge Belyshev for glibc in
38546         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
38547         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
38548         * lib/md4.c (md4_process_block):
38549         * lib/md5.c (md5_process_block):
38550         * lib/sha1.c (sha1_process_block):
38551         * lib/sha256.c (sha256_process_block):
38552         Don't assume the buffer length is less than 2**32.
38553         * lib/sha512.c (sha512_process_block): Likewise.
38554         Here, the bug is present only in the rare case where the host does
38555         not support uint64_t or where size_t is wider than 64 bits.
38556         Use u64size to work around the problems.
38557         * lib/u64.h (u64size): New macro.
38559 2012-05-15  Pádraig Brady  <P@draigBrady.com>
38561         fsusage: fix block size returned on older Linux 2.6
38563         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
38564         which is available since Linux 2.6.
38565         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
38566         when the member is available so it can be used as a fallback.
38567         * doc/posix-functions/statvfs.texi: Mention the hang issue
38568         on Linux < 2.6.36.
38570 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38572         bootstrap: suppress stderr chatter
38573         * build-aux/bootstrap (insert_sorted_if_absent, main program):
38574         Omit unnecessary chatter to stderr.  The main program chatter
38575         was there only inadvertantly.
38577         bootstrap: .gitignore files created by autopoint, libtool
38578         I ran into this problem when bootstrapping the latest diffutils.
38579         After './bootstrap', 'git status' reported lots of untracked files
38580         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
38581         autopoint and do not need to be version-controlled.
38582         * build-aux/bootstrap: Put into .gitignore the files that
38583         autopoint and libtool create, by keeping track of files that exist
38584         after but not before these programs are run.
38585         (version_controlled_file): Move up.  2nd arg is now full file
38586         name, not base name; this is more convenient.  Put CVS at the end,
38587         as it's now somewhat deprecated.
38589 2012-05-14  Jim Meyering  <meyering@redhat.com>
38591         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38592         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38593         definition.  Reported by Bruno Haible.
38595 2012-05-13  Bruno Haible  <bruno@clisp.org>
38596             Paul Eggert  <eggert@cs.ucla.edu>
38598         binary-io: Define set_binary_mode function.
38599         * lib/binary-io.h (set_binary_mode): New function.
38600         (SET_BINARY): Define in terms of set_binary_mode.
38601         * modules/binary-io (configure.ac): Require AC_C_INLINE.
38602         * tests/test-binary-io.c (main): Accept an argument, and test either
38603         set_binary_mode or SET_BINARY depending on the argument.
38604         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
38605         argument. Clean up also t-bin-out0.tmp.
38607 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
38609         bootstrap: take advantage of POSIX shell features
38611         The 'bootstrap' script offered by Gnulib script already uses POSIX
38612         shell features (like $((...)) arithmetic expansions) that are not
38613         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
38614         means that bootstrap must already be run using a proper POSIX shell,
38615         which will thus provide more features, like ${var#pattern} parameter
38616         expansion or inversion of a command exit status with '!'.  We can
38617         thus use these features to improve the clarity and the performances
38618         of the bootstrap script.
38620         Suggested by Eric Blake.
38622         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
38623         of sed/expr plus command substitutions, to save some forks.  While
38624         we are at it, prefer the POSIX $(...) form of command substitution,
38625         rather than the legacy form `...` (since the former is visually
38626         clearer and interacts better with quoting), and prefer the idiom:
38627           "if ! CMD; then ACTION ..."
38628         over the idiom:
38629           "if CMD; then :; else ACTION ..."
38630         which was required by legacy Bourne shells not supporting '!'.
38632 2012-05-12  Bruno Haible  <bruno@clisp.org>
38634         system-quote: Add more comments.
38635         * lib/system-quote.h: Add more comments about wilcards and limitations.
38636         Suggested by Eli Zaretskii <eliz@gnu.org>.
38638         sh-quote, system-quote: Add comments about wildcards.
38639         * lib/sh-quote.h: Clarify what happens with wildcard characters.
38640         * lib/system-quote.h: Likewise.
38641         Reported by Eli Zaretskii <eliz@gnu.org>.
38643 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38645         fsusage: check for GNU/Linux statvfs problem dynamically
38646         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
38647         Define STAT_STATFS2_BSIZE too, since in this case the code now
38648         checks dynamically whether statvfs is reliable, falling back on
38649         Linux-style statfs otherwise.
38650         (statvfs_works): New function, for dynamically testing statvfs.
38651         (get_fs_usage) [STAT_STATVFS]: Use it.
38652         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
38653         statvfs on GNU/Linux hosts, since it's now done dynamically.
38655 2012-05-10  Bruno Haible  <bruno@clisp.org>
38657         system-quote, execute, spawn-pipe: Escape '?' on Windows.
38658         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
38659         '?' character.
38660         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38661         * tests/test-system-quote-main.c (check_all): Check also strings like
38662         "??????????".
38663         Reported by Eli Zaretskii <eliz@gnu.org>.
38665 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38667         _Noreturn: port config.h to gcc -Wundef
38668         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38669         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38670         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38672 2012-05-10  Bruno Haible  <bruno@clisp.org>
38674         system-quote: Refactor.
38675         * lib/system-quote.h (system_quote_copy): Fix comment.
38676         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38677         New functions, extracted from system_quote_copy.
38678         (system_quote_length, system_quote_copy): Use these functions.
38679         Reported by Paul Eggert.
38681 2012-05-08  Bruno Haible  <bruno@clisp.org>
38683         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38684         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38686 2012-05-08  Bruno Haible  <bruno@clisp.org>
38688         Tests for module 'system-quote'.
38689         * modules/system-quote-tests: New file.
38690         * tests/test-system-quote.sh: New file.
38691         * tests/test-system-quote-main.c: New file.
38692         * tests/test-system-quote-child.c: New file.
38694         New module 'system-quote'.
38695         * lib/system-quote.h: New file.
38696         * lib/system-quote.c: New file.
38697         * modules/system-quote: New file.
38699 2012-05-08  Bruno Haible  <bruno@clisp.org>
38701         sh-quote: Make C++ safe and allow multiple inclusion.
38702         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38703         declarations in extern "C".
38705 2012-05-08  Bruno Haible  <bruno@clisp.org>
38707         sh-quote tests: Make tests stricter.
38708         * tests/test-sh-quote.c (check_one): Check the return value of
38709         shell_quote_copy.
38710         (main): Check a string with a CR character. Check a string that
38711         contains UCHAR_MAX.
38713 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38715         warnings.m4: provide a means to specify the program to compile.
38716         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38717         (gl_WARN_ADD): here.
38718         Use gl_AS_VAR_APPEND.
38719         Support an argument to specify the program to compile.
38720         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38721         AC_SUBST the WARN_CFLAGS when they are used.
38722         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38723         leave this to gl_WARN_ADD.
38725 2012-05-08  Eric Blake  <eblake@redhat.com>
38727         doc: recommendations on gettext version
38728         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38729         choice between versions.
38730         * DEPENDENCIES (gettext): Cover both approaches.
38732 2012-05-08  Jim Meyering  <meyering@redhat.com>
38734         init.sh: explain why EXEEXT support uses aliases rather than functions
38735         * tests/init.sh: Add a comment.
38737         init.sh: don't let bash aliases interfere with tests
38738         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38739         is bash.  This avoids problems for those who alias standard commands to
38740         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38741         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38743 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38745         stdint: be more consistent with glibc, SunOS libc
38746         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38747         (gl_int_fast16_t, gl_uint_fast16_t)
38748         (gl_int_fast32_t, gl_uint_fast32_t)
38749         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38750         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38751         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38752         Be consistent with glibc by default, and with SunOS 5.10 and later
38753         if __sun is defined.  This lessens the likelihood of clashes if
38754         code compiled for older hosts is combined with code compiled for
38755         newer ones.  Problem reported by Niels Möller in
38756         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38758 2012-05-07  Eric Blake  <eblake@redhat.com>
38760         isatty: relax license to LGPLv2+
38761         * modules/isatty (License): Relax license.
38763 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38765         stat-size: comment fix
38766         * lib/stat-size.h: Remove obsolete comment about indenting.
38768 2012-05-06  Bruno Haible  <bruno@clisp.org>
38770         Tests for module 'sh-quote'.
38771         * modules/sh-quote-tests: New file.
38772         * tests/test-sh-quote.c: New file.
38774 2012-05-06  Bruno Haible  <bruno@clisp.org>
38776         sh-quote: Improve shell_quote_argv's signature.
38777         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38778         * lib/sh-quote.c (shell_quote_argv): Likewise.
38780 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38782         stdint: document issues with int_fast8_t etc.
38783         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38784         stdint.h substitutes may define these types differently.  See
38785         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38787 2012-05-05  Bruno Haible  <bruno@clisp.org>
38789         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38791         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38792         or 'guessing no (mishandles large arguments)'.
38794 2012-05-05  Bruno Haible  <bruno@clisp.org>
38796         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38797         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38798         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38799         set gl_cv_func_link_follows_symlink to "guessing no".
38801 2012-05-05  Bruno Haible  <bruno@clisp.org>
38803         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38804         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38805         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38806         "guessing no".
38807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38809 2012-05-05  Bruno Haible  <bruno@clisp.org>
38811         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38812         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38813         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38814         set gl_cv_struct_dirent_d_ino to "guessing yes".
38816 2012-05-05  Bruno Haible  <bruno@clisp.org>
38818         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38819         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38820         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38821         "guessing yes".
38823 2012-05-05  Bruno Haible  <bruno@clisp.org>
38825         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38826         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38827         compiling to a glibc system, set gl_cv_func_signbit and
38828         gl_cv_func_signbit_gcc to "guessing yes".
38830 2012-05-05  Bruno Haible  <bruno@clisp.org>
38832         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38833         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38834         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38835         to "guessing yes".
38836         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38837         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38839 2012-05-05  Bruno Haible  <bruno@clisp.org>
38841         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38842         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38843         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38844         gl_cv_func_realpath_works to "guessing yes".
38846 2012-05-05  Bruno Haible  <bruno@clisp.org>
38848         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38849         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38850         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38852 2012-05-04  Bruno Haible  <bruno@clisp.org>
38854         Tweak last commit.
38855         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38856         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38858 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38860         unistd_h: make it easier to avoid sys_types_h
38861         This is useful for Emacs, which has its own method of porting to
38862         Windows, and which therefore does not need the sys_types_h module.
38863         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38864         code moved here from gl_SYS_TYPES_H.
38865         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38866         using the code directly.
38867         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38868         gl_SYS_TYPES_H.
38869         * modules/sys_types (Files):
38870         * modules/unistd (Files): Add m4/off_t.m4.
38872 2012-05-03  Bruno Haible  <bruno@clisp.org>
38874         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38875         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38876         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38877         "guessing yes" or "guessing no".
38878         (gl_FUNC_LSTAT): Update.
38879         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38880         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38881         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38883 2012-05-03  Bruno Haible  <bruno@clisp.org>
38885         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38886         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38887         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38888         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38889         cross-compiling, choose the first alternative on glibc systems.
38890         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38892 2012-05-03  Bruno Haible  <bruno@clisp.org>
38894         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38895         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38896         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38898 2012-05-03  Bruno Haible  <bruno@clisp.org>
38900         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38901         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38903 2012-05-03  Bruno Haible  <bruno@clisp.org>
38905         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38906         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38907         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38908         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38909         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38910         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38911         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38912         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38913         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38914         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38915         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38916         gl_cv_func_chown_ctime_works to "guessing yes".
38917         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38918         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38919         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38920         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38921         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38923         compiling to glibc systems, set gl_cv_func_open_directory_works to
38924         "guessing yes".
38925         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38926         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38927         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38928         "guessing yes".
38929         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38930         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38931         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38932         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38933         "guessing yes".
38934         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38935         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38936         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38937         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38938         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38939         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38940         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38941         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38942         "guessing yes".
38943         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38944         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38945         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38946         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38947         "guessing yes".
38948         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38949         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38950         "guessing yes".
38951         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38952         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38953         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38954         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38955         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38956         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38957         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38958         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38959         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38960         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38961         "guessing yes".
38962         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38963         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38964         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38965         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38966         "guessing yes".
38967         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38968         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38969         "guessing yes".
38970         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38971         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38972         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38973         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38974         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38975         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38976         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38977         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38978         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38979         "guessing yes".
38980         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38981         compiling to glibc systems, set gl_cv_func_mknod_works to
38982         "guessing yes".
38983         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38984         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38985         "guessing yes".
38986         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38987         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38988         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38989         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38990         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38991         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38992         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38993         compiling to glibc systems, set gl_cv_func_svid_putenv to
38994         "guessing yes".
38995         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38996         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38997         "guessing yes".
38998         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38999         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
39000         "guessing yes".
39001         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
39002         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
39003         to "guessing yes".
39004         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
39005         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
39006         to "guessing yes".
39007         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
39008         compiling to glibc systems, set gl_cv_func_rmdir_works to
39009         "guessing yes".
39010         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
39011         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
39012         gl_cv_func_unlink_parent_fails to "guessing yes".
39013         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
39014         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
39015         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
39016         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
39017         gl_cv_func_rename_dest_works to "guessing yes".
39018         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
39019         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
39020         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
39021         compiling to glibc systems, set gl_cv_func_roundf_ieee to
39022         "guessing yes".
39023         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
39024         compiling to glibc systems, set gl_cv_func_roundl_ieee to
39025         "guessing yes".
39026         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
39027         compiling to glibc systems, set gl_cv_func_setenv_works to
39028         "guessing yes".
39029         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
39030         compiling to glibc systems, set gl_cv_func_unsetenv_works to
39031         "guessing yes".
39032         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
39033         compiling to glibc systems, set gl_cv_func_sleep_works to
39034         "guessing yes".
39035         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
39036         compiling to glibc systems, set gl_cv_func_stat_file_slash to
39037         "guessing yes".
39038         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
39039         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
39040         "guessing yes".
39041         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
39042         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
39043         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
39044         compiling to glibc systems, set gl_cv_func_truncf_ieee to
39045         "guessing yes".
39046         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
39047         compiling to glibc systems, set gl_cv_func_truncl_ieee to
39048         "guessing yes".
39049         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
39050         compiling to glibc systems, set gl_cv_func_usleep_works to
39051         "guessing yes".
39052         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
39053         compiling to glibc systems, set gl_cv_func_futimesat_works to
39054         "guessing yes".
39056 2012-05-03  Bruno Haible  <bruno@clisp.org>
39058         Say "guessing yes" or "guessing no" when cross-compiling.
39059         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
39060         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
39061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
39062         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
39063         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
39064         am_cv_func_working_getline to "guessing yes" or "guessing no".
39065         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
39066         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
39067         (gl_FUNC_MEMMEM): When cross-compiling, set
39068         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
39069         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
39070         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
39071         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
39072         set gl_cv_func_strcasestr_works_always to "guessing yes" or
39073         "guessing no".
39074         (gl_FUNC_STRCASESTR): When cross-compiling, set
39075         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
39076         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
39077         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
39078         (gl_FUNC_STRSTR): When cross-compiling, set
39079         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
39080         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
39081         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
39082         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
39083         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
39085 2012-05-01  Bruno Haible  <bruno@clisp.org>
39087         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
39088         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
39089         * build-aux/reloc-ldflags: Likewise.
39090         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
39092 2012-05-01  Bruno Haible  <bruno@clisp.org>
39094         gnulib-tool: Remove transitional code.
39095         * gnulib-tool: Don't warn about --import with 0 arguments any more.
39096         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39098 2012-05-01  Bruno Haible  <bruno@clisp.org>
39100         getcwd: Fix misindentation.
39101         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
39103 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
39105         exclude: process exclude and include directives in order
39106         This restores the pre-2009 behavior, and is part of a fix of a
39107         grep bug reported by Quentin Arce in
39108         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
39109         * lib/exclude.c (struct exclude): Remove 'tail' member.
39110         (new_exclude_segment): Prepend the new segment instead of appending.
39111         Return void, since that's now more convenient.
39112         (file_pattern_matches): Renamed from excluded_file_pattern_p.
39113         (file_name_matches): Renamed from excluded_file_name_p.
39114         (file_pattern_matches, file_name_matches):
39115         Return true if the pattern matches, not if it excludes.
39116         All callers changed.
39117         (excluded_file_name): Process the list in reverse order;
39118         since the list is now reversed this restores the pre-2009 behavior.
39119         (add_exclude): Adjust to new reversed-order list.  Use local var
39120         rather than macro, for clarity.
39121         * tests/test-exclude7.sh: Adjust to corrected behavior.
39123         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
39124         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
39125         it's not possible here.  Handle the case of \ at end of pattern
39126         without dumping core.
39127         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
39129         _Noreturn: future-proof non-GNU and non-MSVC compilers
39130         * build-aux/snippet/_Noreturn.h (_Noreturn):
39131         * m4/gnulib-common.m4 (gl_COMMON_BODY):
39132         Do not define _Noreturn if __STDC_VERSION__ indicates this is
39133         C11 or later.  This is more likely to work with random future C
39134         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
39135         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
39137         exclude: handle wildcards with FNM_EXTMATCH
39138         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
39139         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
39140         comment that "has wildcards" really means "has or may have
39141         wildcards".  Simplify by avoiding the need to call strcspn.
39143 2012-04-29  Bruno Haible  <bruno@clisp.org>
39145         gnulib-tool: Fix list of authors.
39146         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
39148 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
39150         bootstrap: support Automake-NG in $buildreq
39151         * bootstrap (check_versions): Handle automake and aclocal from
39152         Automake-NG specially.  They can be specified as respectively
39153         the "automake-ng" and "aclocal-ng" requirements.
39155 2012-04-25  Eric Blake  <eblake@redhat.com>
39157         bootstrap: only force latest Makefile.in.in for gettext module
39158         * build-aux/bootstrap (with_gettext): Only install latest
39159         Makefile.in.in for projects requesting bleeding edge gettext.
39161 2012-04-22  Bruno Haible  <bruno@clisp.org>
39163         doc: Mention reason for replacement on glibc/Linux systems.
39164         * doc/posix-functions/dprintf.texi: Mention the problem with special
39165         'long double' values.
39166         * doc/posix-functions/fprintf.texi: Likewise.
39167         * doc/posix-functions/printf.texi: Likewise.
39168         * doc/posix-functions/snprintf.texi: Likewise.
39169         * doc/posix-functions/sprintf.texi: Likewise.
39170         * doc/posix-functions/vdprintf.texi: Likewise.
39171         * doc/posix-functions/vfprintf.texi: Likewise.
39172         * doc/posix-functions/vprintf.texi: Likewise.
39173         * doc/posix-functions/vsnprintf.texi: Likewise.
39174         * doc/posix-functions/vsprintf.texi: Likewise.
39175         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39176         platforms with F_DUPFD_CLOEXEC problems.
39177         * doc/posix-functions/glob.texi: Mention which platforms are affected
39178         by the problem with symbolic links.
39179         * doc/posix-functions/linkat.texi: Mention the problem with
39180         AT_SYMLINK_FOLLOW on Linux.
39182 2012-04-22  Bruno Haible  <bruno@clisp.org>
39184         pwrite: Don't replace on all platforms.
39185         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
39187 2012-04-22  Bruno Haible  <bruno@clisp.org>
39189         rint* tests: Avoid gcc warnings.
39190         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
39191         * tests/test-rintf.c (INFINITY, NAN): Likewise.
39192         * tests/test-rintl.c (INFINITY, NAN): Likewise.
39194 2012-04-21  Bruno Haible  <bruno@clisp.org>
39196         users.txt: Update.
39197         * users.txt: Add freedink, wdiff. Update URLs for projects that have
39198         switched from CVS to git, bzr, or svn.
39200 2012-04-21  Bruno Haible  <bruno@clisp.org>
39202         Large File Support for native Windows platforms.
39204         * m4/largefile.m4 (gl_LARGEFILE): New macro.
39205         * modules/largefile (configure.ac): Require gl_LARGEFILE.
39207         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
39208         type.
39209         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
39210         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
39211         * doc/posix-headers/sys_types.texi: Mention the effect of the
39212         'largefile' module.
39214         * lib/fcntl.in.h: Add comments about off_t.
39215         * modules/fcntl-h (Depends-on): Add sys_types.
39217         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
39218         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
39219         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
39220         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
39221         * modules/unistd (Depends-on): Add sys_types.
39222         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
39224         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39225         instead of lseek.
39226         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
39227         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
39228         * modules/lseek (Depends-on): Add sys_types.
39230         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
39231         msvc-nothrow.h.
39232         (SetFileSize): New function.
39233         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
39234         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
39235         if Large File Support is requested.
39236         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
39237         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39239         * lib/stdio.in.h: Add comments about off_t.
39240         * modules/stdio (Depends-on): Add sys_types.
39242         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
39243         instead of ftello.
39244         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
39245         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
39246         (gl_PREREQ_FTELLO): New macro.
39247         * modules/ftello (Depends-on): Add sys_types.
39248         (configure.ac): Incoke gl_PREREQ_FTELLO.
39250         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
39251         instead of fseeko.
39252         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
39253         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
39254         (gl_PREREQ_FSEEKO): New macro.
39255         * modules/fseeko (Depends-on): Add sys_types.
39256         (configure.ac): Invoke gl_PREREQ_FSEEKO.
39258         * lib/sys_stat.in.h: Add comments about off_t.
39259         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
39260         64-bit integer for st_size in 'struct stat'.
39261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
39262         Define _GL_WINDOWS_64_BIT_ST_SIZE.
39263         * modules/sys_stat (Depends-on): Add sys_types.
39264         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
39266         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
39267         instead of stat or _stat.
39269         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
39270         'struct _stati64' instead of fstat and 'struct stat'.
39271         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
39272         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
39274         Reported by Ray Satiro <raysatiro@yahoo.com>.
39276 2012-04-19  Eric Blake  <eblake@redhat.com>
39278         bootstrap: accommodate older libtool
39279         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
39280         Reported by Daniel P. Berrange.
39282 2012-04-19  Jim Meyering  <meyering@redhat.com>
39284         announce-gen: avoid failure due to lack of Digest::SHA1
39285         Even with the preferred Digest::SHA available, this script
39286         would fail when the backup module, Digest::SHA1, was not installed.
39287         * build-aux/announce-gen: Quote the conditional use of "use".
39288         Reported by Reuben Thomas in:
39289         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
39291         bootstrap: don't let a user's CDPATH setting affect this script
39292         When CDPATH is set, cd will sometimes generate output.
39293         When "cd" is run in a subshell whose output matters, that
39294         surprising-to-some output can cause malfunction.
39295         Unsetting CDPATH turns off this shell "feature."
39296         * build-aux/bootstrap (CDPATH): Unset.
39297         Reported by Reuben Thomas in:
39298         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
39299         and inspired by his patch here:
39300         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
39302 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
39303         and Jim Meyering  <meyering@redhat.com>
39305         maint.mk: catch "see @xref{}" and similar
39306         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
39307         prohibit "See also @xref{", "Also see @pxref{", and similar.
39309 2012-04-16  Jim Meyering  <meyering@redhat.com>
39311         bootstrap: really use gnulib's po/Makefile.in.in
39312         * build-aux/bootstrap: Correct the source file name in previous change.
39313         Reported by Akim Demaille.
39315         configmake: correct minor inconsistency in Makefile rule
39316         * modules/configmake (Makefile.am): All other rules like this one
39317         run the final "mv -f ..." in the same backslash-continued command
39318         as the one that does everything else.  This one put the mv -f ...
39319         command on a separate, non-backslash-continued line.
39320         Make it like the others.
39322         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
39323         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
39324         the one from gettext.  Reported by Akim Demaille.
39326 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
39328         Fix recursion of install-* into po directories.
39329         Bison's install-pdf bug reported by Hans Aberg at
39330         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
39331         * build-aux/po/Makefile.in.in (install-dvi, install-html)
39332         (install-info, install-pdf, install-ps): New targets.
39334 2012-04-16  Jim Meyering  <meyering@redhat.com>
39336         maint: avoid spurious "make sc_maint" failure
39337         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
39338         exempt all *.class file names, for lib/javaversion.class.
39340 2012-04-15  Bruno Haible  <bruno@clisp.org>
39342         lseek: Make configure test independent of environment.
39343         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39344         Windows, we know that lseek() on pipes is broken; skip the runtime
39345         test.
39347 2012-04-14  Bruno Haible  <bruno@clisp.org>
39349         stat: Bypass buggy override in mingw64.
39350         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39351         * lib/stat.c (stat) [mingw64]: Define to _stat.
39352         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39354 2012-04-14  Bruno Haible  <bruno@clisp.org>
39356         pathmax: Fix compilation error on MSVC 9.
39357         * modules/pathmax (Depends-on): Add unistd.
39359 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39361         README: document pointer comparison assumption
39362         * README (Portability guidelines): Document assumption about
39363         pointer comparisons, in response to a recent bug-gnulib comment by
39364         Jeffrey Kegler.
39366 2012-04-12  Bruno Haible  <bruno@clisp.org>
39368         Tests for module 'getrusage'.
39369         * modules/getrusage-tests: New file.
39370         * tests/test-getrusage.c: New file.
39372         New module 'getrusage'.
39373         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39374         warn-on-use.h.
39375         (getrusage): New declaration.
39376         * lib/getrusage.c: New file.
39377         * m4/getrusage.m4: New file.
39378         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39379         is declared.
39380         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39381         HAVE_GETRUSAGE.
39382         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39383         snippet/c++defs, snippet/warn-on-use.
39384         (Makefile.am): Update generation of sys/resource.h. Substitute
39385         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39386         * modules/getrusage: New file.
39387         * doc/posix-functions/getrusage.texi: Mention the new module.
39389 2012-04-12  Bruno Haible  <bruno@clisp.org>
39391         Tests for module 'sys_resource'.
39392         * modules/sys_resource-tests: New file.
39393         * tests/test-sys_resource.c: New file.
39395         New module 'sys_resource'.
39396         * lib/sys_resource.in.h: New file.
39397         * m4/sys_resource_h.m4: New file.
39398         * modules/sys_resource: New file.
39399         * doc/posix-headers/sys_resource.texi: Mention the new module.
39401 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39403         ioctl: Fix compilation error on mingw.
39404         * lib/ioctl.c: Include <windows.h>.
39405         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39407 2012-04-04  Jim Meyering  <meyering@redhat.com>
39409         regex: correct #pragma guard expression
39410         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39411         not 4.3.  Correct its cpp guard expression.
39413 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39415         regex: remove unnecessary type punning
39416         Problem reported by Vladimir Serbinenko in
39417         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39418         * lib/regex.h (struct re_pattern_buffer): Change the type of
39419         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39420         Fix comment to match code.
39421         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39422         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39423         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39424         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39425         (set_regs):
39426         Omit no-longer-necessary casts.
39428 2012-04-03  Bruno Haible  <bruno@clisp.org>
39430         Tests for module 'ilogbl'.
39431         * modules/ilogbl-tests: New file.
39432         * tests/test-ilogbl.c: New file.
39434         New module 'ilogbl'.
39435         * lib/math.in.h (ilogbl): New declaration.
39436         * lib/ilogbl.c: New file.
39437         * m4/ilogbl.m4: New file.
39438         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39440         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39441         Split sed invocation, to avoid the limit of 100 substitutions of
39442         HP-UX 'sed'.
39443         * modules/ilogbl: New file.
39444         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39445         * doc/posix-functions/ilogbl.texi: Mention the new module.
39447 2012-04-03  Bruno Haible  <bruno@clisp.org>
39449         Tests for module 'ilogbf'.
39450         * modules/ilogbf-tests: New file.
39451         * tests/test-ilogbf.c: New file.
39453         New module 'ilogbf'.
39454         * lib/math.in.h (ilogbf): New declaration.
39455         * lib/ilogbf.c: New file.
39456         * m4/ilogbf.m4: New file.
39457         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
39458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
39459         REPLACE_ILOGBF.
39460         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
39461         REPLACE_ILOGBF.
39462         * modules/ilogbf: New file.
39463         * tests/test-math-c++.cc: Check the declaration of ilogbf.
39464         * doc/posix-functions/ilogbf.texi: Mention the new module.
39466 2012-04-03  Bruno Haible  <bruno@clisp.org>
39468         Tests for module 'ilogb'.
39469         * modules/ilogb-tests: New file.
39470         * tests/test-ilogb.c: New file.
39471         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
39472         tests/test-logb-ieee.h.
39474         New module 'ilogb'.
39475         * lib/math.in.h (ilogb): New declaration.
39476         * lib/ilogb.c: New file.
39477         * m4/ilogb.m4: New file.
39478         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
39479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
39480         REPLACE_ILOGB.
39481         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
39482         REPLACE_ILOGB.
39483         * modules/ilogb: New file.
39484         * tests/test-math-c++.cc: Check the declaration of ilogb.
39485         * doc/posix-functions/ilogb.texi: Mention the new module.
39487 2012-04-03  Bruno Haible  <bruno@clisp.org>
39489         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
39490         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
39491         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
39492         (main): Check their values.
39493         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
39494         problem.
39496 2012-04-03  Bruno Haible  <bruno@clisp.org>
39498         Tests for module 'logbl-ieee'.
39499         * modules/logbl-ieee-tests: New file.
39500         * tests/test-logbl-ieee.c: New file.
39502         New module 'logbl-ieee'.
39503         * modules/logbl-ieee: New file.
39505         Tests for module 'logb-ieee'.
39506         * modules/logb-ieee-tests: New file.
39507         * tests/test-logb-ieee.c: New file.
39509         New module 'logb-ieee'.
39510         * modules/logb-ieee: New file.
39512         Tests for module 'logbf-ieee'.
39513         * modules/logbf-ieee-tests: New file.
39514         * tests/test-logbf-ieee.c: New file.
39515         * tests/test-logb-ieee.h: New file.
39517         New module 'logbf-ieee'.
39518         * modules/logbf-ieee: New file.
39520 2012-04-03  Bruno Haible  <bruno@clisp.org>
39522         Tests for module 'logbl'.
39523         * modules/logbl-tests: New file.
39524         * tests/test-logbl.c: New file.
39526         New module 'logbl'.
39527         * lib/math.in.h (logbl): New declaration.
39528         * lib/logbl.c: New file.
39529         * m4/logbl.m4: New file.
39530         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
39531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
39532         REPLACE_LOGBL.
39533         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
39534         REPLACE_LOGBL.
39535         * modules/logbl: New file.
39536         * tests/test-math-c++.cc: Check the declaration of logbl.
39537         * doc/posix-functions/logbl.texi: Mention the new module.
39539 2012-04-02  Bruno Haible  <bruno@clisp.org>
39541         Tests for module 'logbf'.
39542         * modules/logbf-tests: New file.
39543         * tests/test-logbf.c: New file.
39545         New module 'logbf'.
39546         * lib/math.in.h (logbf): New declaration.
39547         * lib/logbf.c: New file.
39548         * m4/logbf.m4: New file.
39549         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
39550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
39551         REPLACE_LOGBF.
39552         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
39553         REPLACE_LOGBF.
39554         * modules/logbf: New file.
39555         * tests/test-math-c++.cc: Check the declaration of logbf.
39556         * doc/posix-functions/logbf.texi: Mention the new module.
39558 2012-04-02  Bruno Haible  <bruno@clisp.org>
39560         logb tests: More tests.
39561         * tests/test-logb.h: New file, based on tests/test-logb.c and
39562         tests/test-frexp.h.
39563         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
39564         (main): Just invoke test_function.
39565         * modules/logb-tests (Files): Add tests/test-logb.h,
39566         tests/minus-zero.h, tests/randomd.c.
39567         (Makefile.am): Add randomd.c to test_logb_SOURCES.
39569         logb: Provide replacement and workarounds.
39570         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
39571         is 1.
39572         * lib/logb.c: New file.
39573         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
39574         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
39575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
39576         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
39577         * modules/logb (Files): Add lib/logb.c.
39578         (Depends-on): Add isfinite, frexp, isnand.
39579         (configure.ac): Compile the replacement code logb.c if needed.
39580         * tests/test-math-c++.cc: Check the declaration of logb.
39581         * doc/posix-functions/logb.texi: Mention the replacement and the bug
39582         with subnormal numbers.
39584 2012-04-02  Bruno Haible  <bruno@clisp.org>
39586         log10* tests: Speed up.
39587         * tests/test-log10.h (test_function): Reduce amount of random numbers
39588         to test.
39590 2012-04-01  Bruno Haible  <bruno@clisp.org>
39592         logf-ieee: Fix test whether logf works.
39593         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39595 2012-04-01  Bruno Haible  <bruno@clisp.org>
39597         log10l: Work around log10l-ieee test failure on IRIX 6.5.
39598         * lib/log10l.c: Include <float.h>
39599         (log10l): On IRIX, normalize the +Infinity value.
39600         * modules/log10l (Depends-on): Add 'float'.
39601         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
39602         +Infinity.
39604         log10f-ieee: Work around test failure on NetBSD 5.1.
39605         * m4/log10f-ieee.m4: New file.
39606         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
39607         test whether log10f works with a negative argument. Replace it if not.
39608         * lib/log10f.c (log10f): For negative arguments, return NaN.
39609         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
39610         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
39611         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
39613         log10f-ieee: Work around test failure on Solaris 9.
39614         * modules/log10f-ieee (Depends-on): Add log10-ieee.
39615         (configure.ac): Require gl_FUNC_LOG10F.
39617         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39618         * m4/log10-ieee.m4: New file.
39619         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
39620         whether log10 works with a negative argument. Replace it if not.
39621         * lib/log10.c (log10): For negative arguments, return NaN.
39622         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
39623         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
39624         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
39626         Tests for module 'log10l-ieee'.
39627         * modules/log10l-ieee-tests: New file.
39628         * tests/test-log10l-ieee.c: New file.
39630         New module 'log10l-ieee'.
39631         * modules/log10l-ieee: New file.
39633         Tests for module 'log10-ieee'.
39634         * modules/log10-ieee-tests: New file.
39635         * tests/test-log10-ieee.c: New file.
39637         New module 'log10-ieee'.
39638         * modules/log10-ieee: New file.
39640         Tests for module 'log10f-ieee'.
39641         * modules/log10f-ieee-tests: New file.
39642         * tests/test-log10f-ieee.c: New file.
39643         * tests/test-log10-ieee.h: New file.
39645         New module 'log10f-ieee'.
39646         * modules/log10f-ieee: New file.
39648 2012-04-01  Bruno Haible  <bruno@clisp.org>
39650         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
39651         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
39652         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
39653         workaround.
39654         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
39655         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
39656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
39657         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
39658         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
39659         (Depends-on): Update conditions.
39660         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39661         IRIX 6.5, OSF/1 5.1 problems.
39663 2012-04-01  Bruno Haible  <bruno@clisp.org>
39665         log10f: Work around OSF/1 5.1 bug.
39666         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39667         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39668         workaround.
39669         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39670         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39672         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39673         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39674         (Depends-on): Update conditions.
39675         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39677 2012-04-01  Bruno Haible  <bruno@clisp.org>
39679         log10: Work around OSF/1 5.1 bug.
39680         * lib/math.in.h (log10): New declaration.
39681         * lib/log10.c: New file.
39682         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39683         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39684         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39686         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39687         * modules/log10 (Files): Add lib/log10.c.
39688         (Depends-on): Add math.
39689         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39690         * tests/test-math-c++.cc: Check the declaration of log10.
39691         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39693 2012-03-31  Bruno Haible  <bruno@clisp.org>
39695         log10l tests: More tests.
39696         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39697         tests/minus-zero.h, tests/randoml.c.
39698         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39699         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39700         (main): Invoke test_function.
39702         log10f tests: More tests.
39703         * modules/log10f-tests (Files): Add tests/test-log10.h,
39704         tests/minus-zero.h, tests/randomf.c.
39705         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39706         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39707         (main): Invoke test_function.
39709         log10 tests: More tests.
39710         * tests/test-log10.h: New file.
39711         * modules/log10-tests (Files): Add tests/test-log10.h,
39712         tests/minus-zero.h, tests/randomd.c.
39713         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39714         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39715         (main): Invoke test_function.
39717 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39719         fflush: Fix syntax error.
39720         * lib/fflush.c: Include unused-parameter.h, needed for
39721         _GL_UNUSED_PARAMETER.
39722         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39724 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39726         regex: pacify GCC when compiling GRUB
39727         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39728         a diagnostic.  Reported by Vladimir Serbinenko in
39729         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39731 2012-03-29  Eric Blake  <eblake@redhat.com>
39733         stdio: don't assume gets any more
39734         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39735         support.
39736         * modules/stdio (Makefile.am): Likewise.
39737         * lib/stdio-read.c (gets): Likewise.
39738         * tests/test-stdio-c++.cc: Likewise.
39739         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39740         * lib/stdio.in.h (gets): Make warning occur in more places.
39741         * doc/posix-functions/gets.texi (gets): Update documentation.
39742         Reported by Christer Solskogen.
39744         maint.mk: fix syntax checks without exclusions
39745         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39746         Reported by Daniel P. Berrange.
39748         strerror_r: avoid compiler warning
39749         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39750         level.
39752         fflush: avoid compiler warning
39753         * lib/fflush.c (update_fpos_cache): Mark variables that are
39754         potentially unused.
39756 2012-03-25  Bruno Haible  <bruno@clisp.org>
39758         Tests for module 'localeconv'.
39759         * modules/localeconv-tests: New file.
39760         * tests/test-localeconv.c: New file.
39762         New module 'localeconv'.
39763         * lib/locale.in.h (localeconv): New declaration.
39764         * lib/localeconv.c: New file.
39765         * m4/localeconv.m4: New file.
39766         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39767         REPLACE_LOCALECONV.
39768         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39769         REPLACE_LOCALECONV.
39770         * modules/localeconv: New file.
39771         * modules/nl_langinfo (Depends-on): Add localeconv.
39772         * modules/human (Depends-on): Likewise.
39773         * doc/posix-functions/localeconv.texi: Mention the new module.
39775 2012-03-25  Bruno Haible  <bruno@clisp.org>
39777         locale: Provide a complete 'struct lconv'.
39778         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39779         'struct lconv' does not contain int_p_cs_precedes.
39780         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39781         * doc/posix-headers/locale.texi: Update.
39783         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39784         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39785         * doc/posix-headers/locale.texi: Update.
39787         locale: Provide a working 'struct lconv'.
39788         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39789         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39790         'struct lconv' does not even contain decimal_point.
39791         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39792         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39793         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39794         * doc/posix-headers/locale.texi: Mention the problems with
39795         'struct lconv'.
39796         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39798 2012-03-24  Bruno Haible  <bruno@clisp.org>
39800         Enable common subexpression optimization in GCC.
39801         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39802         macros.
39803         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39804         GCC attribute 'const'.
39805         (uc_locale_language): Declare with GCC attribute 'pure'.
39806         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39807         with GCC attribute 'const'.
39808         * lib/unictype.in.h (uc_is_general_category_withtable,
39809         uc_combining_class, uc_combining_class_name,
39810         uc_combining_class_long_name, uc_bidi_class_name,
39811         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39812         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39813         uc_decimal_value, uc_digit_value, uc_numeric_value,
39814         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39815         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39816         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39817         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39818         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39819         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39820         Declare with GCC attribute 'const'.
39821         (uc_general_category_name, uc_general_category_long_name,
39822         uc_general_category_byname, uc_general_category,
39823         uc_is_general_category, uc_combining_class_byname,
39824         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39825         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39826         Declare with GCC attribute 'pure'.
39827         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39828         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39829         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39830         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39831         with GCC attribute 'pure'.
39832         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39833         'const'.
39834         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39835         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39836         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39837         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39838         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39839         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39840         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39841         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39842         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39843         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39844         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39845         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39846         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39847         GCC attribute 'pure'.
39848         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39849         'const'.
39850         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39851         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39852         u32_strwidth): Declare with GCC attribute 'pure'.
39854         Enable common subexpression optimization in GCC.
39855         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39856         (alphasort): Declare with GCC attribute 'pure'.
39857         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39858         (atoll): Declare with GCC attribute 'pure'.
39859         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39860         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39861         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39862         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39863         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39864         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39865         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39867 2012-03-24  Bruno Haible  <bruno@clisp.org>
39869         gnulib-tool: Avoid unintended error output from 'cmp'.
39870         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39871         "cmp -s", not "cmp > /dev/null".
39873 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39875         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39877         It's not just Automake versions < 1.9b that creates an empty
39878         pkgdatadir at installation time if pkgdata_DATA is specified
39879         to empty; modern automake versions do this as well, at least
39880         until automake 1.11.4 (not yet released at the moment of writing,
39881         but soon to appear).  That behaviour was generally considered a
39882         feature rather than a bug, at least until this discussion:
39883         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39885         See also automake bugs #10997 and #11030.
39887         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39888         reference to relevant automake bug numbers.
39889         (func_emit_tests_Makefile_am): Likewise.
39891 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39893         announce-gen: use Digest::SHA when possible
39894         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39895         back to Digest::SHA1 if necessary.
39897 2012-03-20  Jim Meyering  <meyering@redhat.com>
39899         tests: avoid gcc warnings about argv vs. const initializers
39900         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39901         warnings about discarding 'const' qualifier from pointer target type.
39902         * tests/test-posix_spawn2.c (main): Likewise.
39904 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39906         README-release: simplify slightly
39907         * top/README-release: Run "git checkout master" only once.
39909 2012-03-15  Mark Wielaard  <mark@klomp.org>
39911         git-merge-changelog: add specific example on how to use with hg.
39912         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39914 2012-03-18  Mark Wielaard  <mark@klomp.org>
39916         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39918 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39920         git-version-gen: don't let "prefix" envvar cause trouble
39921         * build-aux/git-version-gen (prefix): Initialize properly,
39922         so as not to use a value specified via the environment.
39923         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39925 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39927         regex: diagnose too-large repeat counts in EREs
39928         Previously, the code did not diagnose the too-large repeat count
39929         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39930         as if it were 'b\{1000000000}', which is unexpected.
39931         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39932         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39933         is a reasonable one for this problem.  Another option would be to
39934         create a new REG_OVERFLOW error for repeat counts that are too large.
39935         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39936         count is too large, so that the caller can distinguish the two cases.
39937         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39938         "Too large" return code, and that repeat counts are one example of this.
39940 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39942         doc: some glibc x32 integer width issues
39943         * doc/posix-headers/sys_types.texi (sys/types.h):
39944         * doc/posix-headers/time.texi (time.h):
39945         Mention that glibc x32 does not conform to POSIX in a couple of
39946         areas related to integer widths.
39948 2012-03-15  Bruno Haible  <bruno@clisp.org>
39950         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39951         * lib/fma.c (VOLATILE): New macro.
39952         (FUNC): Use it to work around a GCC compiler bug.
39954 2012-03-13  Bruno Haible  <bruno@clisp.org>
39956         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39957         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39958         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39959         REPLACE_HYPOTL to 1.
39960         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39962 2012-03-13  Bruno Haible  <bruno@clisp.org>
39964         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39965         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39966         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39967         REPLACE_REMAINDERL to 1.
39968         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39969         bug.
39971 2012-03-13  Bruno Haible  <bruno@clisp.org>
39973         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39974         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39975         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39976         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39977         too big rounding errors.
39978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39979         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39980         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39981         (Depends-on): Update conditions.
39982         * tests/test-sqrtl.c (my_ldexpl): New function.
39983         (main): Add test of a particular value.
39984         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39986 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39988         doc: Update timer_* platform portability notes.
39989         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39990         that always return ENOSYS.
39991         * doc/posix-functions/timer_delete.texi: Likewise.
39992         * doc/posix-functions/timer_gettime.texi: Likewise.
39993         * doc/posix-functions/timer_settime.texi: Likewise.
39995 2012-03-13  Bruno Haible  <bruno@clisp.org>
39997         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39998         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39999         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
40000         REPLACE_CBRTL to 1.
40001         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40003 2012-03-13  Bruno Haible  <bruno@clisp.org>
40005         remainderl: Avoid compilation error on AIX >= 5.2.
40006         * lib/math.in.h (remainderl): Undefine macro from the system header.
40008 2012-03-13  Bruno Haible  <bruno@clisp.org>
40010         Avoid compilation errors with MSVC option -fp:strict.
40011         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
40012         * lib/cbrtf.c: Likewise.
40013         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40015 2012-03-12  Bruno Haible  <bruno@clisp.org>
40017         uninorm: Don't crash in out-of-memory conditions.
40018         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
40019         gracefully.
40020         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
40021         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
40023 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
40025         quote: fix syntax-check
40026         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
40027         also exports quote_quoting_options.
40029 2012-03-12  Simon Josefsson  <simon@josefsson.org>
40031         Collapse list of copyright years to ranges.  See
40032         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
40033         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
40034         build-aux/csharpexec.sh.in, build-aux/gnupload,
40035         build-aux/install-reloc, build-aux/javacomp.sh.in,
40036         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
40037         build-aux/move-if-change, build-aux/reloc-ldflags,
40038         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
40040 2012-03-11  Bruno Haible  <bruno@clisp.org>
40042         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40043         * m4/log2f-ieee.m4: New file.
40044         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
40045         whether log2f works with a minus zero argument. Replace it if not.
40046         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40047         (Depends-on): Add log2-ieee.
40048         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
40049         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
40051         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40052         * m4/log2-ieee.m4: New file.
40053         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
40054         whether log2 works with a minus zero argument. Replace it if not.
40055         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
40056         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
40057         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
40059         Tests for module 'log2l-ieee'.
40060         * modules/log2l-ieee-tests: New file.
40061         * tests/test-log2l-ieee.c: New file.
40063         New module 'log2l-ieee'.
40064         * modules/log2l-ieee: New file.
40066         Tests for module 'log2-ieee'.
40067         * modules/log2-ieee-tests: New file.
40068         * tests/test-log2-ieee.c: New file.
40070         New module 'log2-ieee'.
40071         * modules/log2-ieee: New file.
40073         Tests for module 'log2f-ieee'.
40074         * modules/log2f-ieee-tests: New file.
40075         * tests/test-log2f-ieee.c: New file.
40076         * tests/test-log2-ieee.h: New file.
40078         New module 'log2f-ieee'.
40079         * modules/log2f-ieee: New file.
40081 2012-03-11  Bruno Haible  <bruno@clisp.org>
40083         Tests for module 'log2l'.
40084         * modules/log2l-tests: New file.
40085         * tests/test-log2l.c: New file.
40087         New module 'log2l'.
40088         * lib/math.in.h (log2l): New declaration.
40089         * lib/log2l.c: New file.
40090         * m4/log2l.m4: New file.
40091         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
40092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
40093         REPLACE_LOG2L.
40094         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
40095         REPLACE_LOG2L.
40096         * modules/log2l: New file.
40097         * tests/test-math-c++.cc: Check the declaration of log2l.
40098         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
40099         and OSF/1 problems.
40101 2012-03-11  Bruno Haible  <bruno@clisp.org>
40103         Tests for module 'log2f'.
40104         * modules/log2f-tests: New file.
40105         * tests/test-log2f.c: New file.
40107         New module 'log2f'.
40108         * lib/math.in.h (log2f): New declaration.
40109         * lib/log2f.c: New file.
40110         * m4/log2f.m4: New file.
40111         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
40112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
40113         REPLACE_LOG2F.
40114         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
40115         REPLACE_LOG2F.
40116         * modules/log2f: New file.
40117         * tests/test-math-c++.cc: Check the declaration of log2f.
40118         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
40119         and OSF/1 and Cygwin problems.
40121 2012-03-11  Bruno Haible  <bruno@clisp.org>
40123         Tests for module 'log2'.
40124         * modules/log2-tests: New file.
40125         * tests/test-log2.c: New file.
40126         * tests/test-log2.h: New file.
40128         New module 'log2'.
40129         * lib/math.in.h (log2): New declaration.
40130         * lib/log2.c: New file.
40131         * m4/log2.m4: New file.
40132         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
40133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
40134         REPLACE_LOG2.
40135         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
40136         REPLACE_LOG2.
40137         * modules/log2: New file.
40138         * tests/test-math-c++.cc: Check the declaration of log2.
40139         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
40140         and OSF/1 and Cygwin problems.
40142 2012-03-11  Bruno Haible  <bruno@clisp.org>
40144         exp2* tests: More tests.
40145         * tests/test-exp2.h (test_function): Test all integral arguments that
40146         don't need to overflow or denormalized numbers.
40147         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
40148         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
40149         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
40151 2012-03-10  Bruno Haible  <bruno@clisp.org>
40153         log1pl-ieee: Work around test failure on AIX 7.1.
40154         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
40156         log1pl-ieee: Work around test failure on IRIX 6.5.
40157         * m4/log1pl-ieee.m4: New file.
40158         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
40159         test whether log1pl works with a minus zero argument. Replace it if
40160         not.
40161         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
40162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
40163         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
40164         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
40165         (Depends-on): Update conditions.
40166         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40167         m4/signbit.m4.
40168         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
40169         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
40171         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40172         * m4/log1pf-ieee.m4: New file.
40173         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40174         test whether log1pf works with a minus zero argument. Replace it if
40175         not.
40176         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
40177         m4/signbit.m4.
40178         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
40179         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
40181         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
40182         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
40183         (configure.ac): Require gl_FUNC_LOG1PF.
40185         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
40186         * m4/log1p-ieee.m4: New file.
40187         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
40188         whether log1p works with a minus zero argument. Replace it if not.
40189         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
40190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
40191         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
40192         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
40193         (Depends-on): Update conditions.
40194         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40195         m4/signbit.m4.
40196         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
40197         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
40199         Tests for module 'log1pl-ieee'.
40200         * modules/log1pl-ieee-tests: New file.
40201         * tests/test-log1pl-ieee.c: New file.
40203         New module 'log1pl-ieee'.
40204         * modules/log1pl-ieee: New file.
40206         Tests for module 'log1p-ieee'.
40207         * modules/log1p-ieee-tests: New file.
40208         * tests/test-log1p-ieee.c: New file.
40210         New module 'log1p-ieee'.
40211         * modules/log1p-ieee: New file.
40213         Tests for module 'log1pf-ieee'.
40214         * modules/log1pf-ieee-tests: New file.
40215         * tests/test-log1pf-ieee.c: New file.
40216         * tests/test-log1p-ieee.h: New file.
40218         New module 'log1pf-ieee'.
40219         * modules/log1pf-ieee: New file.
40221 2012-03-10  Bruno Haible  <bruno@clisp.org>
40223         Tests for module 'log1pl'.
40224         * modules/log1pl-tests: New file.
40225         * tests/test-log1pl.c: New file.
40227         New module 'log1pl'.
40228         * lib/math.in.h (log1pl): New declaration.
40229         * lib/log1pl.c: New file.
40230         * m4/log1pl.m4: New file.
40231         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
40232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
40233         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
40234         * modules/log1pl: New file.
40235         * tests/test-math-c++.cc: Check the declaration of log1pl.
40236         * doc/posix-functions/log1pl.texi: Mention the new module.
40238 2012-03-10  Bruno Haible  <bruno@clisp.org>
40240         Tests for module 'log1pf'.
40241         * modules/log1pf-tests: New file.
40242         * tests/test-log1pf.c: New file.
40244         New module 'log1pf'.
40245         * lib/math.in.h (log1pf): New declaration.
40246         * lib/log1pf.c: New file.
40247         * m4/log1pf.m4: New file.
40248         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
40249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
40250         REPLACE_LOG1PF.
40251         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
40252         REPLACE_LOG1PF.
40253         * modules/log1pf: New file.
40254         * tests/test-math-c++.cc: Check the declaration of log1pf.
40255         * doc/posix-functions/log1pf.texi: Mention the new module.
40257 2012-03-10  Bruno Haible  <bruno@clisp.org>
40259         log1p tests: More tests.
40260         * tests/test-log1p.h: New file.
40261         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
40262         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
40263         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
40264         (main): Invoke test_function.
40266         log1p: Provide replacement for Minix and MSVC.
40267         * lib/math.in.h (log1p): New declaration.
40268         * lib/log1p.c: New file.
40269         * m4/log1p.m4: New file.
40270         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
40271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
40272         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
40273         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
40274         (Depends-on): Add math, isnand, log, round.
40275         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
40276         HAVE_LOG1P is 0.
40277         * tests/test-math-c++.cc: Check the declaration of log1p.
40278         * doc/posix-functions/log1p.texi: Mention the replacement.
40280 2012-03-10  Bruno Haible  <bruno@clisp.org>
40282         math tests: Small simplification.
40283         * tests/test-exp.h (test_function): Use the same err_bound for
40284         'double' on platforms with sizeof (long double) == sizeof (double)
40285         than on platforms with sizeof (long double) > sizeof (double).
40286         * tests/test-exp2.h (test_function): Likewise.
40287         * tests/test-expm1.h (test_function): Likewise.
40288         * tests/test-log.h (test_function): Likewise.
40290 2012-03-10  Bruno Haible  <bruno@clisp.org>
40292         Fix some comments.
40293         * lib/expl.c: Fix an ambiguous comment.
40294         * lib/expm1.c: Likewise.
40295         * lib/expm1l.c: Likewise.
40296         * lib/exp2.c: Likewise.
40297         * lib/exp2l.c: Likewise.
40299 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
40301         regex: allow inclusion of <regex.h> before <limits.h>
40302         Without this patch, portable programs had to include <limits.h> before
40303         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
40304         I ran into this problem with a test version of GNU grep on Solaris 8.
40305         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
40306         This is done conditionally so that this change can be merged
40307         back to glibc.
40308         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
40309         using the included regex.
40311         fts: depend on fdopendir
40312         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
40313         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
40314         problem was introduced when fdopendir was split out.
40316 2012-03-10  Bruno Haible  <bruno@clisp.org>
40318         Remove unused variables.
40319         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
40320         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40322 2012-03-10  Bruno Haible  <bruno@clisp.org>
40324         isnanf-nolibm: Fix last commit.
40325         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
40327         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
40328         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
40330 2012-03-10  Bruno Haible  <bruno@clisp.org>
40332         logf-ieee: Work around test failure on NetBSD 5.1.
40333         * m4/logf-ieee.m4: New file.
40334         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
40335         whether logf works with a negative argument. Replace it if not.
40336         * lib/logf.c (logf): For negative arguments, return NaN.
40337         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
40338         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
40339         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
40341         logf-ieee: Work around test failure on Solaris 9.
40342         * modules/logf-ieee (Depends-on): Add log-ieee.
40343         (configure.ac): Require gl_FUNC_LOGF.
40345         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40346         * m4/log-ieee.m4: New file.
40347         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40348         log works with a negative argument. Replace it if not.
40349         * lib/log.c (log): For negative arguments, return NaN.
40350         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40351         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40352         * doc/posix-functions/log.texi: Mention the log-ieee module.
40354         Tests for module 'logl-ieee'.
40355         * modules/logl-ieee-tests: New file.
40356         * tests/test-logl-ieee.c: New file.
40358         New module 'logl-ieee'.
40359         * modules/logl-ieee: New file.
40361         Tests for module 'log-ieee'.
40362         * modules/log-ieee-tests: New file.
40363         * tests/test-log-ieee.c: New file.
40365         New module 'log-ieee'.
40366         * modules/log-ieee: New file.
40368         Tests for module 'logf-ieee'.
40369         * modules/logf-ieee-tests: New file.
40370         * tests/test-logf-ieee.c: New file.
40371         * tests/test-log-ieee.h: New file.
40373         New module 'logf-ieee'.
40374         * modules/logf-ieee: New file.
40376 2012-03-10  Bruno Haible  <bruno@clisp.org>
40378         log: Fix bug introduced on 2012-03-09.
40379         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40381 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40383         timer-time: link explicitly with pthreads on glibc
40384         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40385         to support static linking, when newer glibc is
40386         detected, as that contains pthread emulation of
40387         POSIX timer functions where required.
40388         * modules/timer-time: Depend on threadlib to
40389         pull in the appropriate library to link.
40391 2012-03-10  Bruno Haible  <bruno@clisp.org>
40393         log* tests: More tests.
40394         * tests/test-log.h: New file.
40395         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40396         (main): Invoke test_function.
40397         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40398         (main): Invoke test_function.
40399         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40400         (main): Invoke test_function.
40401         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40402         tests/randomd.c.
40403         (Makefile.am): Add randomd.c to test_log_SOURCES.
40404         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40405         tests/randomf.c.
40406         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40407         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40408         tests/randoml.c.
40409         (Depends-on): Add 'float'.
40410         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40412 2012-03-09  Bruno Haible  <bruno@clisp.org>
40414         logl: Work around OSF/1 5.1 bug.
40415         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40416         * lib/logl.c (logl): If logl exists, use it and provide just the
40417         workaround.
40418         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40419         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40421         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40422         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40423         (Depends-on): Update conditions.
40424         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40426 2012-03-09  Bruno Haible  <bruno@clisp.org>
40428         logf: Work around OSF/1 5.1 bug.
40429         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40430         * lib/logf.c (logf): If logf exists, use it and provide just the
40431         workaround.
40432         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40433         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40435         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40436         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40437         (Depends-on): Update conditions.
40438         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40440 2012-03-09  Bruno Haible  <bruno@clisp.org>
40442         log: Work around OSF/1 5.1 bug.
40443         * lib/math.in.h (log): New declaration.
40444         * lib/log.c: New file.
40445         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40446         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40447         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40449         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40450         * modules/log (Files): Add lib/log.c.
40451         (Depends-on): Add math.
40452         (configure.ac): If REPLACE_LOG is 1, compile an override.
40453         * tests/test-math-c++.cc: Check the declaration of log.
40454         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
40456 2012-03-09  Jim Meyering  <meyering@redhat.com>
40458         readtokens.c: adjust wording in a comment
40459         * lib/readtokens.c: Insert omitted "that" in a comment.
40461 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40463         modechange: add notations +40, 00440, etc.
40464         * lib/modechange.c (mode_compile): Support new notations
40465         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
40467 2012-03-08  Bruno Haible  <bruno@clisp.org>
40469         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
40470         * m4/exp2l-ieee.m4: New file.
40471         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
40472         test whether exp2l works with a NaN argument and with a negative
40473         infinity argument. Replace it if not.
40474         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
40475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
40476         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
40477         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
40478         (Depends-on): Update conditions.
40479         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
40480         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
40481         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
40483         Tests for module 'exp2l-ieee'.
40484         * modules/exp2l-ieee-tests: New file.
40485         * tests/test-exp2l-ieee.c: New file.
40487         New module 'exp2l-ieee'.
40488         * modules/exp2l-ieee: New file.
40490         Tests for module 'exp2-ieee'.
40491         * modules/exp2-ieee-tests: New file.
40492         * tests/test-exp2-ieee.c: New file.
40494         New module 'exp2-ieee'.
40495         * modules/exp2-ieee: New file.
40497         Tests for module 'exp2f-ieee'.
40498         * modules/exp2f-ieee-tests: New file.
40499         * tests/test-exp2f-ieee.c: New file.
40500         * tests/test-exp2-ieee.h: New file.
40502         New module 'exp2f-ieee'.
40503         * modules/exp2f-ieee: New file.
40505 2012-03-08  Bruno Haible  <bruno@clisp.org>
40507         Tests for module 'exp2l'.
40508         * modules/exp2l-tests: New file.
40509         * tests/test-exp2l.c: New file.
40511         New module 'exp2l'.
40512         * lib/math.in.h (exp2l): New declaration.
40513         * lib/exp2l.c: New file.
40514         * lib/expl-table.c: New file, extracted from lib/expl.c.
40515         * lib/expl.c (gl_expl_table): New declaration.
40516         (expl): Remove expl_table. Update reference.
40517         * m4/exp2l.m4: New file.
40518         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
40519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
40520         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
40521         * modules/exp2l: New file.
40522         * modules/expl (Files): Add lib/expl-table.c.
40523         (configure.ac): Compile also expl-table.c.
40524         * tests/test-math-c++.cc: Check the declaration of exp2l.
40525         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
40526         problem.
40528 2012-03-08  Bruno Haible  <bruno@clisp.org>
40530         Tests for module 'exp2f'.
40531         * modules/exp2f-tests: New file.
40532         * tests/test-exp2f.c: New file.
40534         New module 'exp2f'.
40535         * lib/math.in.h (exp2f): New declaration.
40536         * lib/exp2f.c: New file.
40537         * m4/exp2f.m4: New file.
40538         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
40539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
40540         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
40541         * modules/exp2f: New file.
40542         * tests/test-math-c++.cc: Check the declaration of exp2f.
40543         * doc/posix-functions/exp2f.texi: Mention the new module and the
40544         IRIX problem.
40546 2012-03-08  Bruno Haible  <bruno@clisp.org>
40548         Tests for module 'exp2'.
40549         * modules/exp2-tests: New file.
40550         * tests/test-exp2.c: New file.
40551         * tests/test-exp2.h: New file.
40553         New module 'exp2'.
40554         * lib/math.in.h (exp2): New declaration.
40555         * lib/exp2.c: New file.
40556         * m4/exp2.m4: New file.
40557         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
40558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
40559         REPLACE_EXP2.
40560         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
40561         REPLACE_EXP2.
40562         * modules/exp2: New file.
40563         * tests/test-math-c++.cc: Check the declaration of exp2.
40564         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
40565         and OpenBSD problems.
40567 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40569         savedir: fix comment typo
40570         * lib/savedir.c (savedirstream): Fix typo in comment.
40572 2012-03-08  Bruno Haible  <bruno@clisp.org>
40574         test-readtokens.c: use const; remove unwarranted cast
40575         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
40577 2012-03-08  Bruno Haible  <bruno@clisp.org>
40579         fmal: Avoid compilation error on AIX.
40580         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
40581         AIX 5.2..7.1.
40583 2012-03-08  Bruno Haible  <bruno@clisp.org>
40585         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
40586         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
40587         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
40588         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40589         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40590         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40591         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40593 2012-03-08  Bruno Haible  <bruno@clisp.org>
40595         remainderf: Override buggy system function on IRIX 6.5.
40596         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
40597         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
40598         when it exists.
40599         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
40601 2012-03-08  Jim Meyering  <meyering@redhat.com>
40603         test-readtokens.c: avoid const-related compilation warnings
40604         * tests/test-readtokens.c: Avoid const-related compilation warnings.
40606 2012-03-07  Jim Meyering  <meyering@redhat.com>
40607             Bruno Haible  <bruno@clisp.org>
40609         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
40610         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
40611         tests/randomd.c.
40612         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
40613         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
40614         tests/randoml.c.
40615         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
40617 2012-03-07  Bruno Haible  <bruno@clisp.org>
40619         expm1l: Avoid compilation error on AIX.
40620         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
40621         AIX 5.2..7.1.
40623 2012-03-07  Bruno Haible  <bruno@clisp.org>
40625         expm1l: Don't override undeclared system function on IRIX 6.5.
40626         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
40627         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
40628         it exists. Set HAVE_DECL_EXPM1L.
40629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
40630         HAVE_EXPM1L.
40631         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
40632         HAVE_EXPM1L.
40633         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
40635 2012-03-07  Bruno Haible  <bruno@clisp.org>
40637         remainderl: Don't override undeclared system function on IRIX 6.5.
40638         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
40639         HAVE_REMAINDERL.
40640         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
40641         declared when it exists. Set HAVE_DECL_REMAINDERL.
40642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
40643         not HAVE_REMAINDERL.
40644         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
40645         HAVE_REMAINDERL.
40646         * doc/posix-functions/remainderl.texi: Mention missing declaration
40647         problem.
40649 2012-03-07  Bruno Haible  <bruno@clisp.org>
40651         rintf: Don't override undeclared system function on IRIX 6.5.
40652         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
40653         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
40654         exists. Set HAVE_DECL_RINTF.
40655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
40656         HAVE_RINTF.
40657         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
40658         HAVE_RINTF.
40659         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40661 2012-03-07  Bruno Haible  <bruno@clisp.org>
40663         roundl: Avoid compilation error on AIX.
40664         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40665         AIX 5.2..7.1.
40667 2012-03-07  Bruno Haible  <bruno@clisp.org>
40669         roundl: Don't override undeclared system function on IRIX 6.5.
40670         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40671         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40672         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40673         * modules/roundl (configure.ac): For replacement code, test
40674         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40675         (Depends-on): Update conditions.
40676         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40678 2012-03-07  Bruno Haible  <bruno@clisp.org>
40680         roundf: Don't override undeclared system function on IRIX 6.5.
40681         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40682         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40683         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40684         * modules/roundf (configure.ac): For replacement code, test
40685         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40686         (Depends-on): Update conditions.
40687         * modules/roundf-ieee (Depends-on): Update conditions.
40688         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40690 2012-03-07  Bruno Haible  <bruno@clisp.org>
40692         round: Don't override undeclared system function on IRIX 6.5.
40693         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40694         argument.
40695         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40696         also when it is not declared. Set HAVE_ROUND. For replacement code,
40697         test HAVE_ROUND, not HAVE_DECL_ROUND.
40698         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40699         not HAVE_DECL_ROUND.
40700         (Depends-on): Update conditions.
40701         * modules/round-ieee (Depends-on): Update conditions.
40702         * doc/posix-functions/round.texi: Mention the IRIX problem.
40704 2012-03-07  Bruno Haible  <bruno@clisp.org>
40706         copysignf: Don't override undeclared system function on IRIX 6.5.
40707         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40708         HAVE_COPYSIGNF.
40709         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40710         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40712         not HAVE_COPYSIGNF.
40713         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40714         HAVE_COPYSIGNF.
40715         * doc/posix-functions/copysignf.texi: Mention missing declaration
40716         problem.
40718 2012-03-07  Jim Meyering  <meyering@redhat.com>
40720         readtokens: add tests
40721         * modules/readtokens-tests: New file.
40722         * tests/test-readtokens.c: New file.
40724 2012-03-07  Jim Meyering  <meyering@redhat.com>
40726         quotearg: the module must now include quote.h
40727         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40728         So must the module.
40729         * modules/quotearg (Files): Add quote.h.
40731 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40733         readtokens: avoid core dumps with unusual calling patterns
40734         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40735         * lib/readtokens.c: Include limits.h.
40736         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40737         (readtoken): Don't cache the delimiters; the cache code was buggy
40738         if !delim && saved_delim, or if the new n_delim differs from the old.
40739         Also, it wasn't thread-safe.
40741 2012-03-07  Bruno Haible  <bruno@clisp.org>
40743         quote: Adhere to common module description layout.
40744         * modules/quote (Makefile.am): Add back empty section.
40746 2012-03-06  Akim Demaille  <demaille@gostai.com>
40748         quote: fuse into quotearg
40749         This patch is made for the benefit of Bison.
40750         quote does not leave the choice of the quoting style to the user.
40751         quoting_style provides poor customizability, yet quoting_options,
40752         which is very rich, is hidden inside quotearg.c.  So in order to
40753         allow quote customization, move its implementation to quotearg.c.
40754         * lib/quote.c: Remove.
40755         * modules/quote: Adjust.
40756         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40757         warning: provide all the members of literal structs.
40758         (quote_quoting_options): New.
40759         (quote, quote_n): Import implementation from quote.c.
40760         * lib/quote.h: Import the comments from quote.c.
40761         (quote_quoting_options): New.
40763 2012-03-06  Bruno Haible  <bruno@clisp.org>
40765         Tests for module 'expm1l-ieee'.
40766         * modules/expm1l-ieee-tests: New file.
40767         * tests/test-expm1l-ieee.c: New file.
40769         New module 'expm1l-ieee'.
40770         * modules/expm1l-ieee: New file.
40772         Tests for module 'expm1f-ieee'.
40773         * modules/expm1f-ieee-tests: New file.
40774         * tests/test-expm1f-ieee.c: New file.
40776         New module 'expm1f-ieee'.
40777         * modules/expm1f-ieee: New file.
40779         Tests for module 'expm1-ieee'.
40780         * modules/expm1-ieee-tests: New file.
40781         * tests/test-expm1-ieee.c: New file.
40782         * tests/test-expm1-ieee.h: New file.
40784         New module 'expm1-ieee'.
40785         * modules/expm1-ieee: New file.
40786         * m4/expm1-ieee.m4: New file.
40787         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40788         whether expm1 works with a minus zero argument. Replace it if not.
40789         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40791         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40792         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40793         (Depends-on): Update conditions.
40794         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40795         AIX problem.
40797 2012-03-06  Bruno Haible  <bruno@clisp.org>
40799         Work around expm1f bug on IRIX 6.5.
40800         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40801         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40802         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40803         not work.
40804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40805         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40806         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40807         (Depends-on): Update conditions.
40808         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40810 2012-03-06  Bruno Haible  <bruno@clisp.org>
40812         Tests for module 'expm1l'.
40813         * modules/expm1l-tests: New file.
40814         * tests/test-expm1l.c: New file.
40816         New module 'expm1l'.
40817         * lib/math.in.h (expm1l): New declaration.
40818         * lib/expm1l.c: New file.
40819         * m4/expm1l.m4: New file.
40820         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40822         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40823         * modules/expm1l: New file.
40824         * tests/test-math-c++.cc: Check the declaration of expm1l.
40825         * doc/posix-functions/expm1l.texi: Mention the new module.
40827 2012-03-06  Bruno Haible  <bruno@clisp.org>
40829         Tests for module 'expm1f'.
40830         * modules/expm1f-tests: New file.
40831         * tests/test-expm1f.c: New file.
40833         New module 'expm1f'.
40834         * lib/math.in.h (expm1f): New declaration.
40835         * lib/expm1f.c: New file.
40836         * m4/expm1f.m4: New file.
40837         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40839         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40840         * modules/expm1f: New file.
40841         * tests/test-math-c++.cc: Check the declaration of expm1f.
40842         * doc/posix-functions/expm1f.texi: Mention the new module.
40844 2012-03-06  Bruno Haible  <bruno@clisp.org>
40846         Tests for module 'expm1'.
40847         * modules/expm1-tests: New file.
40848         * tests/test-expm1.c: New file.
40849         * tests/test-expm1.h: New file.
40851         New module 'expm1'.
40852         * lib/math.in.h (expm1): New declaration.
40853         * lib/expm1.c: New file.
40854         * m4/expm1.m4: New file.
40855         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40857         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40858         * modules/expm1: New file.
40859         * tests/test-math-c++.cc: Check the declaration of expm1.
40860         * doc/posix-functions/expm1.texi: Mention the new module.
40862 2012-03-06  Bruno Haible  <bruno@clisp.org>
40864         math: Ensure declarations of math functions.
40865         * modules/acosf (Depends-on): Add 'extensions'.
40866         * modules/asinf (Depends-on): Likewise.
40867         * modules/atan2f (Depends-on): Likewise.
40868         * modules/atanf (Depends-on): Likewise.
40869         * modules/cbrt (Depends-on): Likewise.
40870         * modules/cbrtf (Depends-on): Likewise.
40871         * modules/cbrtl (Depends-on): Likewise.
40872         * modules/copysignf (Depends-on): Likewise.
40873         * modules/copysignl (Depends-on): Likewise.
40874         * modules/cosf (Depends-on): Likewise.
40875         * modules/coshf (Depends-on): Likewise.
40876         * modules/expf (Depends-on): Likewise.
40877         * modules/fabsf (Depends-on): Likewise.
40878         * modules/fabsl (Depends-on): Likewise.
40879         * modules/fmaf (Depends-on): Likewise.
40880         * modules/fmal (Depends-on): Likewise.
40881         * modules/fmodf (Depends-on): Likewise.
40882         * modules/fmodl (Depends-on): Likewise.
40883         * modules/frexpf (Depends-on): Likewise.
40884         * modules/frexpl (Depends-on): Likewise.
40885         * modules/hypot (Depends-on): Likewise.
40886         * modules/hypotf (Depends-on): Likewise.
40887         * modules/hypotl (Depends-on): Likewise.
40888         * modules/ldexpf (Depends-on): Likewise.
40889         * modules/ldexpl (Depends-on): Likewise.
40890         * modules/log10f (Depends-on): Likewise.
40891         * modules/log10l (Depends-on): Likewise.
40892         * modules/log1p (Depends-on): Likewise.
40893         * modules/logb (Depends-on): Likewise.
40894         * modules/logf (Depends-on): Likewise.
40895         * modules/modff (Depends-on): Likewise.
40896         * modules/modfl (Depends-on): Likewise.
40897         * modules/powf (Depends-on): Likewise.
40898         * modules/remainderf (Depends-on): Likewise.
40899         * modules/remainderl (Depends-on): Likewise.
40900         * modules/rintf (Depends-on): Likewise.
40901         * modules/rintl (Depends-on): Likewise.
40902         * modules/sinf (Depends-on): Likewise.
40903         * modules/sinhf (Depends-on): Likewise.
40904         * modules/sqrtf (Depends-on): Likewise.
40905         * modules/tanf (Depends-on): Likewise.
40906         * modules/tanhf (Depends-on): Likewise.
40907         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40908         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40909         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40910         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40911         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40912         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40913         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40914         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40915         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40916         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40917         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40918         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40919         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40920         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40921         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40922         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40923         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40924         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40925         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40926         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40927         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40928         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40929         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40930         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40931         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40932         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40933         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40934         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40935         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40936         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40937         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40938         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40939         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40940         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40941         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40942         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40943         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40944         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40945         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40946         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40947         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40949 2012-03-06  Bruno Haible  <bruno@clisp.org>
40951         math: Update module names in warnings.
40952         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40953         tanl): Use specific module name in warn-on-use warning.
40955 2012-03-06  Bruno Haible  <bruno@clisp.org>
40957         expl: Simplify computation.
40958         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40960 2012-03-05  Bruno Haible  <bruno@clisp.org>
40962         exp* tests: More tests.
40963         * tests/test-exp.h: New file.
40964         * tests/test-exp.c: Include <float.h> and test-exp.h.
40965         (main): Invoke test_function.
40966         * tests/test-expf.c: Include <float.h> and test-exp.h.
40967         (main): Invoke test_function.
40968         * tests/test-expl.c: Include <float.h> and test-exp.h.
40969         (main): Invoke test_function.
40970         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40971         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40972         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40973         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40974         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40975         (Depends-on): Add 'float'.
40976         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40978         expl: Fix precision of computed result.
40979         * lib/expl.c: Completely rewritten.
40980         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40981         (Maintainer): Add me.
40982         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40984 2012-03-05  Bruno Haible  <bruno@clisp.org>
40986         cbrt* tests: More tests.
40987         * tests/test-cbrt.h: New file.
40988         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40989         (main): Invoke test_function.
40990         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40991         (main): Invoke test_function.
40992         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40993         (main): Invoke test_function.
40994         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40995         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40996         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40997         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40998         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40999         (Depends-on): Add 'float'.
41000         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
41002 2012-03-05  Bruno Haible  <bruno@clisp.org>
41004         hypot* tests: More tests.
41005         * tests/test-hypot.h: New file, partially extracted from
41006         tests/test-hypotl.c.
41007         * tests/test-hypot.c: Include test-hypot.h.
41008         (main): Invoke test_function.
41009         * tests/test-hypotf.c: Include test-hypot.h.
41010         (main): Invoke test_function.
41011         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
41012         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
41013         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
41014         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
41015         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
41016         tests/randomf.c.
41017         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
41018         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
41019         tests/randoml.c.
41020         (Depends-on): Add 'fpucw', 'float'.
41021         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
41023 2012-03-05  Bruno Haible  <bruno@clisp.org>
41025         fpucw: Doc about FreeBSD.
41026         * lib/fpucw.h: Mention FreeBSD in comments.
41028 2012-03-04  Bruno Haible  <bruno@clisp.org>
41030         sqrt* tests: More tests.
41031         * tests/test-sqrt.h: New file.
41032         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
41033         (main): Invoke test_function.
41034         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
41035         (main): Invoke test_function.
41036         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
41037         (main): Invoke test_function.
41038         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
41039         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
41040         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
41041         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41042         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
41043         (Depends-on): Add 'float'.
41044         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
41046 2012-03-04  Bruno Haible  <bruno@clisp.org>
41048         remainder* tests: More tests.
41049         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
41050         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
41051         (main): Invoke test_function.
41052         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
41053         (main): Invoke test_function.
41054         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
41055         (main): Invoke test_function.
41056         * modules/remainder-tests (Files): Add tests/test-remainder.h,
41057         tests/randomd.c.
41058         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
41059         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
41060         tests/randomf.c.
41061         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
41062         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
41063         tests/randoml.c.
41064         (Depends-on): Add 'float'.
41065         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
41067 2012-03-04  Bruno Haible  <bruno@clisp.org>
41069         remainder, remainderf, remainderl: Fix computation for large quotients.
41070         * lib/remainder.c: Completely rewritten.
41071         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
41072         USE_FLOAT.
41073         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
41074         USE_LONG_DOUBLE.
41075         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
41076         isnand, isinf. Remove round, fma.
41077         * modules/remainderf (Files): Add lib/remainder.c.
41078         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
41079         Remove roundf, fmaf.
41080         * modules/remainderl (Files): Add lib/remainder.c.
41081         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
41082         isinf. Remove roundl, fmal.
41083         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
41084         REMAINDER_LIBM.
41085         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
41086         REMAINDERF_LIBM.
41087         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
41088         REMAINDERL_LIBM.
41090 2012-03-04  Bruno Haible  <bruno@clisp.org>
41092         fmod* tests: More tests.
41093         * tests/test-fmod.h (my_ldexp): New function.
41094         (test_function): Reduce amount of random numbers to test. Add tests
41095         of very large quotients x / y.
41096         * tests/test-fmod.c (MAX_EXP): New macro.
41097         * tests/test-fmodf.c (MAX_EXP): Likewise.
41098         * tests/test-fmodl.c (MAX_EXP): Likewise.
41100 2012-03-04  Bruno Haible  <bruno@clisp.org>
41102         fmod, fmodl: Fix computation for large quotients x / y.
41103         * lib/fmod.c: Completely rewritten.
41104         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
41105         USE_LONG_DOUBLE.
41106         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
41107         isnand. Remove fma.
41108         * modules/fmodl (Files): Add lib/fmod.c.
41109         (Depends-on): Add float, isfinite, signbit, fabsl,
41110         frexpl, ldexpl, isnanl. Remove fma.
41111         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
41112         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
41114 2012-03-03  Bruno Haible  <bruno@clisp.org>
41116         fmod* tests: More tests.
41117         * tests/test-fmod.h: New file.
41118         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
41119         (main): Invoke test_function.
41120         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
41121         (main): Invoke test_function.
41122         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
41123         (main): Invoke test_function.
41124         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
41125         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
41126         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
41127         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
41128         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
41129         (Depends-on): Add 'float'.
41130         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
41132 2012-03-03  Bruno Haible  <bruno@clisp.org>
41134         rint* tests: More tests.
41135         * tests/test-rint.h: New file, partially extracted from
41136         tests/test-rintl.c.
41137         * tests/test-rint.c: Include test-rint.h.
41138         (main): Invoke test_function.
41139         * tests/test-rintf.c: Include test-rint.h.
41140         (main): Invoke test_function.
41141         * tests/test-rintl.c: Include test-rint.h.
41142         (main): Invoke test_function.
41143         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
41144         (Makefile.am): Add randomd.c to test_rint_SOURCES.
41145         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
41146         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
41147         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
41148         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
41150 2012-03-03  Bruno Haible  <bruno@clisp.org>
41152         modf* tests: More tests.
41153         * tests/test-modf.h: New file.
41154         * tests/test-modf.c: Include <float.h> and test-modf.h.
41155         (main): Invoke test_function.
41156         * tests/test-modff.c: Include <float.h> and test-modf.h.
41157         (main): Invoke test_function.
41158         * tests/test-modfl.c: Include <float.h> and test-modf.h.
41159         (main): Invoke test_function.
41160         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
41161         (Makefile.am): Add randomd.c to test_modf_SOURCES.
41162         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
41163         (Makefile.am): Add randomf.c to test_modff_SOURCES.
41164         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
41165         (Depends-on): Add 'float'.
41166         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
41168 2012-03-03  Bruno Haible  <bruno@clisp.org>
41170         fabs* tests: More tests.
41171         * tests/test-fabs.h: New file, partially extracted from
41172         tests/test-fabsl.c.
41173         * tests/test-fabs.c (RANDOM): New macro.
41174         * tests/test-fabsf.c (RANDOM): New macro.
41175         * tests/test-fabsl.c (RANDOM): New macro.
41176         * modules/fabs-tests (Files): Add tests/randomd.c.
41177         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
41178         * modules/fabsf-tests (Files): Add tests/randomf.c.
41179         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
41180         * modules/fabsl-tests (Files): Add tests/randoml.c.
41181         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
41183 2012-03-03  Bruno Haible  <bruno@clisp.org>
41185         ldexp* tests: More tests.
41186         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
41187         * tests/test-ldexp.c (RANDOM): New macro.
41188         * tests/test-ldexpf.c (RANDOM): New macro.
41189         * tests/test-ldexpl.c (RANDOM): New macro.
41190         * modules/ldexp-tests (Files): Add tests/randomd.c.
41191         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
41192         * modules/ldexpf-tests (Files): Add tests/randomf.c.
41193         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
41194         * modules/ldexpl-tests (Files): Add tests/randoml.c.
41195         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
41197 2012-03-03  Bruno Haible  <bruno@clisp.org>
41199         frexp* tests: More tests.
41200         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
41201         * tests/test-frexp.c (RANDOM): New macro.
41202         * tests/test-frexpf.c (RANDOM): New macro.
41203         * tests/test-frexpl.c (RANDOM): New macro.
41204         * modules/frexp-tests (Files): Add tests/randomd.c.
41205         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
41206         * modules/frexpf-tests (Files): Add tests/randomf.c.
41207         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
41208         * modules/frexpl-tests (Files): Add tests/randoml.c.
41209         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
41211 2012-03-03  Bruno Haible  <bruno@clisp.org>
41213         Support for pseudo-random numbers in tests.
41214         * tests/randomf.c: New file.
41215         * tests/randomd.c: New file.
41216         * tests/randoml.c: New file.
41217         * tests/macros.h (randomf, randomd, randoml): New declarations.
41219 2012-03-03  Bruno Haible  <bruno@clisp.org>
41221         frexp* tests: Refactor.
41222         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
41223         * tests/test-frexp.c: Include and use it.
41224         * tests/test-frexpf.c: Likewise.
41225         * tests/test-frexpl.c: Likewise.
41226         * modules/frexp-tests (Files): Add tests/test-frexp.h.
41227         * modules/frexpf-tests (Files): Likewise.
41228         * modules/frexpl-tests (Files): Likewise.
41230 2012-03-02  Jim Meyering  <meyering@redhat.com>
41232         maint: don't specify XZ_OPT=-9ev in dist-related rule
41233         Using xz's -9 option is warranted only if you have a very large
41234         tarball (see xz's documentation for the sizes vs. presets), and
41235         requires 64MiB of memory at decompression time.
41236         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
41237         Automake's default of just "-e" is fine.  Override on a
41238         per-package basis by setting XZ_OPT e.g., in cfg.mk.
41240 2012-03-01  Eric Blake  <eblake@redhat.com>
41242         maint.mk: allow announcement for non-gnulib project
41243         * maint.mk (announcement): Skip gnulib version if not used.
41245 2012-03-01  Jim Meyering  <meyering@redhat.com>
41247         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
41248         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
41249         envvar settings cannot interfere.  Otherwise, setting envvars like
41250         prohibit=foo require=bar, etc. would cause spurious test failures.
41252 2012-03-01  Eric Blake  <eblake@redhat.com>
41254         maint.mk: add per-line exclusions to prohibitions
41255         * maint.mk (_sc_search_regexp): Add $exclude parameter.
41256         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
41257         (sc_const_long_option): Use it.
41259 2012-03-01  Bruno Haible  <bruno@clisp.org>
41261         Tests for module 'expl-ieee'.
41262         * modules/expl-ieee-tests: New file.
41263         * tests/test-expl-ieee.c: New file.
41265         New module 'expl-ieee'.
41266         * modules/expl-ieee: New file.
41268         Tests for module 'exp-ieee'.
41269         * modules/exp-ieee-tests: New file.
41270         * tests/test-exp-ieee.c: New file.
41272         New module 'exp-ieee'.
41273         * modules/exp-ieee: New file.
41275         Tests for module 'expf-ieee'.
41276         * modules/expf-ieee-tests: New file.
41277         * tests/test-expf-ieee.c: New file.
41278         * tests/test-exp-ieee.h: New file.
41280         New module 'expf-ieee'.
41281         * modules/expf-ieee: New file.
41283 2012-02-29  Bruno Haible  <bruno@clisp.org>
41285         cbrtl-ieee: Work around test failure on IRIX 6.5.
41286         * m4/cbrtl-ieee.m4: New file.
41287         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
41288         test whether cbrtl works with a minus zero argument. Replace it if not.
41289         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
41290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
41291         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
41292         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
41293         (Depends-on): Update conditions.
41294         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
41295         m4/signbit.m4.
41296         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
41297         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
41298         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
41300         Tests for module 'cbrtl-ieee'.
41301         * modules/cbrtl-ieee-tests: New file.
41302         * tests/test-cbrtl-ieee.c: New file.
41304         New module 'cbrtl-ieee'.
41305         * modules/cbrtl-ieee: New file.
41307         Tests for module 'cbrt-ieee'.
41308         * modules/cbrt-ieee-tests: New file.
41309         * tests/test-cbrt-ieee.c: New file.
41311         New module 'cbrt-ieee'.
41312         * modules/cbrt-ieee: New file.
41314         Tests for module 'cbrtf-ieee'.
41315         * modules/cbrtf-ieee-tests: New file.
41316         * tests/test-cbrtf-ieee.c: New file.
41317         * tests/test-cbrt-ieee.h: New file.
41319         New module 'cbrtf-ieee'.
41320         * modules/cbrtf-ieee: New file.
41322 2012-02-29  Bruno Haible  <bruno@clisp.org>
41324         cbrtf: Work around bug in IRIX 6.5 system function.
41325         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
41326         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
41327         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
41328         work.
41329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
41330         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
41331         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
41332         (Depends-on): Update conditions.
41333         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
41335 2012-02-29  Bruno Haible  <bruno@clisp.org>
41337         Tests for module 'cbrtl'.
41338         * modules/cbrtl-tests: New file.
41339         * tests/test-cbrtl.c: New file.
41341         New module 'cbrtl'.
41342         * lib/math.in.h (cbrtl): New declaration.
41343         * lib/cbrtl.c: New file.
41344         * m4/cbrtl.m4: New file.
41345         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41347         HAVE_DECL_CBRTL.
41348         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41349         HAVE_DECL_CBRTL.
41350         * modules/cbrtl: New file.
41351         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41352         * doc/posix-functions/cbrtl.texi: Mention the new module.
41354 2012-02-29  Bruno Haible  <bruno@clisp.org>
41356         Tests for module 'cbrtf'.
41357         * modules/cbrtf-tests: New file.
41358         * tests/test-cbrtf.c: New file.
41360         New module 'cbrtf'.
41361         * lib/math.in.h (cbrtf): New declaration.
41362         * lib/cbrtf.c: New file.
41363         * m4/cbrtf.m4: New file.
41364         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41366         HAVE_DECL_CBRTF.
41367         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41368         HAVE_DECL_CBRTF.
41369         * modules/cbrtf: New file.
41370         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41371         * doc/posix-functions/cbrtf.texi: Mention the new module.
41373 2012-02-29  Bruno Haible  <bruno@clisp.org>
41375         cbrt: Provide replacement on MSVC and Minix.
41376         * lib/math.in.h (cbrt): New declaration.
41377         * lib/cbrt.c: New file.
41378         * m4/cbrt.m4: New file.
41379         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41381         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41382         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41383         (Depends-on): Add dependencies.
41384         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41385         * tests/test-math-c++.cc: Check the declaration of cbrt.
41386         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41387         replacement.
41389 2012-02-29  Bruno Haible  <bruno@clisp.org>
41391         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41392         * m4/hypotl-ieee.m4: New file.
41393         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41394         test whether hypotl works with mixed NaN and Infinity arguments.
41395         Replace it if not.
41396         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41398         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41399         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41400         (Depends-on): Update conditions.
41401         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41402         (Depends-on): Add hypot-ieee.
41403         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41404         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41406         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41407         * m4/hypotf-ieee.m4: New file.
41408         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41409         test whether hypotf works with mixed NaN and Infinity arguments.
41410         Replace it if not.
41411         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41412         (Depends-on): Add hypot-ieee.
41413         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41414         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41416         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41417         * lib/math.in.h (hypot): New declaration.
41418         * lib/hypot.c: New file.
41419         * m4/hypot-ieee.m4: New file.
41420         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41421         whether hypot works with mixed NaN and Infinity arguments. Replace it
41422         if not.
41423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41424         REPLACE_HYPOT.
41425         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41426         * modules/hypot (Files): Add lib/hypot.c.
41427         (Depends-on): Add dependencies.
41428         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41429         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41430         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41431         * tests/test-math-c++.cc: Check the declaration of hypot.
41432         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41434         Tests for module 'hypotl-ieee'.
41435         * modules/hypotl-ieee-tests: New file.
41436         * tests/test-hypotl-ieee.c: New file.
41438         New module 'hypotl-ieee'.
41439         * modules/hypotl-ieee: New file.
41441         Tests for module 'hypot-ieee'.
41442         * modules/hypot-ieee-tests: New file.
41443         * tests/test-hypot-ieee.c: New file.
41445         New module 'hypot-ieee'.
41446         * modules/hypot-ieee: New file.
41448         Tests for module 'hypotf-ieee'.
41449         * modules/hypotf-ieee-tests: New file.
41450         * tests/test-hypotf-ieee.c: New file.
41451         * tests/test-hypot-ieee.h: New file.
41453         New module 'hypotf-ieee'.
41454         * modules/hypotf-ieee: New file.
41456 2012-02-29  Bruno Haible  <bruno@clisp.org>
41458         Remove unused variables.
41459         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
41460         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41461         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
41462         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41464 2012-02-29  Eric Blake  <eblake@redhat.com>
41466         termios: fix pid_t always, not just for tcgetsid
41467         * doc/posix-headers/termios.texi (termios.h): Mention problem.
41468         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
41469         just when building tcgetsid.
41471 2012-02-29  Bruno Haible  <bruno@clisp.org>
41473         Tests for module 'hypotl'.
41474         * modules/hypotl-tests: New file.
41475         * tests/test-hypotl.c: New file.
41477         New module 'hypotl'.
41478         * lib/math.in.h (hypotl): New declaration.
41479         * lib/hypotl.c: New file.
41480         * m4/hypotl.m4: New file.
41481         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
41483         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
41484         * modules/hypotl: New file.
41485         * tests/test-math-c++.cc: Check the hypotl declaration.
41486         * doc/posix-functions/hypotl.texi: Mention the new module.
41488 2012-02-29  Eric Blake  <eblake@redhat.com>
41490         tcgetsid: fix cygwin header bug
41491         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
41493         docs: update cygwin progress
41494         * doc/posix-functions/llround.texi (llround): Added in cygwin
41495         1.7.8.
41496         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
41497         * doc/glibc-functions/program_invocation_name.texi
41498         (program_invocation_name): Likewise.
41499         * doc/glibc-functions/program_invocation_short_name.texi
41500         (program_invocation_short_name): Likewise.
41501         * doc/glibc-functions/madvise.texi (madvise): Likewise.
41502         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
41503         Likewise.
41504         * doc/posix-functions/pthread_spin_destroy.texi
41505         (pthread_spin_destroy): Added in cygwin 1.7.10.
41506         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
41507         Likewise.
41508         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
41509         Likewise.
41510         * doc/posix-functions/pthread_spin_trylock.texi
41511         (pthread_spin_trylock): Likewise.
41512         * doc/posix-functions/pthread_spin_unlock.texi
41513         (pthread_spin_unlock): Likewise.
41514         * doc/posix-functions/pthread_setschedprio.texi
41515         (pthread_setschedprio): Likewise.
41516         * doc/posix-functions/pthread_attr_getstack.texi
41517         (pthread_attr_getstack): Likewise.
41518         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
41519         (pthread_attr_getstackaddr): Likewise.
41520         * doc/glibc-functions/pthread_getattr_np.texi
41521         (pthread_getattr_np): Likewise.
41522         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
41523         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
41524         * doc/posix-functions/clock_settime.texi (clock_settime):
41525         Likewise.
41526         * doc/posix-functions/pthread_attr_getguardsize.texi
41527         (pthread_attr_getguardsize): Likewise.
41528         * doc/posix-functions/pthread_attr_setguardsize.texi
41529         (pthread_attr_setguardsize): Likewise.
41530         * doc/posix-functions/pthread_attr_setstack.texi
41531         (pthread_attr_setstack): Likewise.
41532         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
41533         (pthread_attr_setstackaddr): Likewise.
41534         * doc/posix-functions/clock_getcpuclockid.texi
41535         (clock_getcpuclockid): Likewise.
41536         * doc/posix-functions/pthread_getcpuclockid.texi
41537         (pthread_getcpuclockid): Likewise.
41538         * doc/glibc-functions/error.texi (error): Likewise.
41539         * doc/glibc-functions/error_at_line.texi (error_at_line):
41540         Likewise.
41541         * doc/glibc-functions/error_message_count.texi
41542         (error_message_count): Likewise.
41543         * doc/glibc-functions/error_one_per_line.texi
41544         (error_one_per_line): Likewise.
41545         * doc/glibc-functions/error_print_progname.texi
41546         (error_print_progname): Likewise.
41547         * doc/posix-functions/pthread_condattr_getclock.texi
41548         (pthread_condattr_getclock): Likewise.
41549         * doc/posix-functions/pthread_condattr_setclock.texi
41550         (pthread_condattr_setclock): Likewise.
41551         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
41552         Likewise.
41553         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
41554         * doc/glibc-functions/getpt.texi (getpt): Likewise.
41555         * doc/glibc-functions/get_current_dir_name.texi
41556         (get_current_dir_name): Likewise.
41557         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
41558         Likewise.
41559         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
41560         wrong return type.
41561         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
41562         1.7.11.
41564 2012-02-29  Bruno Haible  <bruno@clisp.org>
41566         Tests for module 'hypotf'.
41567         * modules/hypotf-tests: New file.
41568         * tests/test-hypotf.c: New file.
41570         New module 'hypotf'.
41571         * lib/math.in.h (hypotf): New declaration.
41572         * lib/hypotf.c: New file.
41573         * m4/hypotf.m4: New file.
41574         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
41576         REPLACE_HYPOTF.
41577         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
41578         REPLACE_HYPOTF.
41579         * modules/hypotf: New file.
41580         * tests/test-math-c++.cc: Check the hypotf declaration.
41581         * doc/posix-functions/hypotf.texi: Mention the new module.
41583         hypot: Prepare for hypotf module.
41584         * m4/hypot.m4: New file.
41585         * modules/hypot (Files): Add m4/hypot.m4.
41586         (configure.ac): Invoke gl_FUNC_HYPOT.
41588 2012-02-29  Bruno Haible  <bruno@clisp.org>
41590         hypot tests: More tests.
41591         * tests/test-hypot.c: Include <float.h>.
41592         (main): Add tests about overflow and underflow.
41594 2012-02-29  Bruno Haible  <bruno@clisp.org>
41596         math code: Add comments.
41597         * lib/acosl.c: Add comment about related glibc source files.
41598         * lib/asinl.c: Likewise.
41599         * lib/atanl.c: Likewise.
41600         * lib/expl.c: Likewise.
41601         * lib/logl.c: Likewise.
41602         * lib/sincosl.c: Likewise.
41603         * lib/sinl.c: Likewise.
41604         * lib/tanl.c: Likewise.
41605         * lib/trigl.c: Likewise.
41606         * lib/cosl.c: Likewise. Fix comments.
41608 2012-02-28  Bruno Haible  <bruno@clisp.org>
41610         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
41611         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
41612         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
41613         HUGE_VALL are defined.
41614         (numeric_equald): Renamed from numeric_equal.
41615         (numeric_equalf, numeric_equall): New functions.
41616         (main): Check also HUGE_VALF, HUGE_VALL.
41617         * modules/math-tests (Files): Add tests/macros.h.
41618         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
41619         HUGE_VALL.
41621 2012-02-28  Bruno Haible  <bruno@clisp.org>
41623         doc: Move ISO C11 feature notes into POSIX chapters.
41624         * doc/posix-functions/aligned_alloc.texi: Renamed from
41625         doc/glibc-functions/aligned_alloc.texi.
41626         * doc/posix-functions/quick_exit.texi: Renamed from
41627         doc/glibc-functions/quick_exit.texi.
41628         * doc/posix-headers/uchar.texi: Renamed from
41629         doc/glibc-headers/uchar.texi.
41630         * doc/posix-functions/c16rtomb.texi: Renamed from
41631         doc/glibc-functions/c16rtomb.texi.
41632         * doc/posix-functions/c32rtomb.texi: Renamed from
41633         doc/glibc-functions/c32rtomb.texi.
41634         * doc/posix-functions/mbrtoc16.texi: Renamed from
41635         doc/glibc-functions/mbrtoc16.texi.
41636         * doc/posix-functions/mbrtoc32.texi: Renamed from
41637         doc/glibc-functions/mbrtoc32.texi.
41638         * doc/gnulib.texi: Update.
41639         (Glibc uchar.h): Remove section.
41640         Suggested by Eric Blake.
41642 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
41644         stdnoreturn: port to MSVC better
41645         MSVC standard headers use __declspec(noreturn), so #define noreturn
41646         to empty on that platform.  Reported by Bruno Haible in
41647         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
41648         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
41649         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
41651 2012-02-28  Bruno Haible  <bruno@clisp.org>
41653         doc: Mention new glibc headers and functions.
41654         * doc/glibc-headers/uchar.texi: New file.
41655         * doc/glibc-functions/aligned_alloc.texi: New file.
41656         * doc/glibc-functions/c16rtomb.texi: New file.
41657         * doc/glibc-functions/c32rtomb.texi: New file.
41658         * doc/glibc-functions/clock_adjtime.texi: New file.
41659         * doc/glibc-functions/fanotify_init.texi: New file.
41660         * doc/glibc-functions/fanotify_mark.texi: New file.
41661         * doc/glibc-functions/inet6_opt_append.texi: New file.
41662         * doc/glibc-functions/inet6_opt_find.texi: New file.
41663         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41664         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41665         * doc/glibc-functions/inet6_opt_init.texi: New file.
41666         * doc/glibc-functions/inet6_opt_next.texi: New file.
41667         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41668         * doc/glibc-functions/inet6_rth_add.texi: New file.
41669         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41670         * doc/glibc-functions/inet6_rth_init.texi: New file.
41671         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41672         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41673         * doc/glibc-functions/inet6_rth_space.texi: New file.
41674         * doc/glibc-functions/login.texi: New file.
41675         * doc/glibc-functions/mbrtoc16.texi: New file.
41676         * doc/glibc-functions/mbrtoc32.texi: New file.
41677         * doc/glibc-functions/name_to_handle_at.texi: New file.
41678         * doc/glibc-functions/ntp_gettimex.texi: New file.
41679         * doc/glibc-functions/open_by_handle_at.texi: New file.
41680         * doc/glibc-functions/prlimit.texi: New file.
41681         * doc/glibc-functions/process_vm_readv.texi: New file.
41682         * doc/glibc-functions/process_vm_writev.texi: New file.
41683         * doc/glibc-functions/recvmmsg.texi: New file.
41684         * doc/glibc-functions/scandirat.texi: New file.
41685         * doc/glibc-functions/sendmmsg.texi: New file.
41686         * doc/glibc-functions/setns.texi: New file.
41687         * doc/glibc-functions/timespec_get.texi: New file.
41688         * doc/gnulib.texi: Include them.
41689         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41690         sections.
41691         Reported by Eric Blake.
41693 2012-02-28  Bruno Haible  <bruno@clisp.org>
41695         Avoid compilation errors with MSVC option -fp:strict.
41696         * lib/floor.c: Use MSVC specific pragma fenv_access.
41697         * lib/ceil.c: Likewise.
41698         * lib/trunc.c: Likewise.
41699         * lib/round.c: Likewise.
41700         * lib/rint.c: Likewise.
41701         * lib/fma.c: Likewise.
41702         * lib/integer_length.c: Likewise.
41703         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41704         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41705         * tests/test-floor2.c: Likewise.
41706         * tests/test-floorf2.c: Likewise.
41707         * tests/test-ceil2.c: Likewise.
41708         * tests/test-ceilf2.c: Likewise.
41709         * tests/test-trunc2.c: Likewise.
41710         * tests/test-truncf2.c: Likewise.
41711         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41713 2012-02-27  Bruno Haible  <bruno@clisp.org>
41715         Tests for module 'sqrtl-ieee'.
41716         * modules/sqrtl-ieee-tests: New file.
41717         * tests/test-sqrtl-ieee.c: New file.
41719         New module 'sqrtl-ieee'.
41720         * modules/sqrtl-ieee: New file.
41722         Tests for module 'sqrt-ieee'.
41723         * modules/sqrt-ieee-tests: New file.
41724         * tests/test-sqrt-ieee.c: New file.
41726         New module 'sqrt-ieee'.
41727         * modules/sqrt-ieee: New file.
41729         Tests for module 'sqrtf-ieee'.
41730         * modules/sqrtf-ieee-tests: New file.
41731         * tests/test-sqrtf-ieee.c: New file.
41732         * tests/test-sqrt-ieee.h: New file.
41734         New module 'sqrtf-ieee'.
41735         * modules/sqrtf-ieee: New file.
41737 2012-02-27  Bruno Haible  <bruno@clisp.org>
41739         remainderl-ieee: Work around test failure on OSF/1.
41740         * m4/remainderl-ieee.m4: New file.
41741         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41742         present, test whether remainderl works with a zero second argument.
41743         Replace it if not.
41744         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41746         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41747         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41748         (Depends-on): Update conditions.
41749         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41750         (Depends-on): Add remainder-ieee.
41751         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41752         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41753         module.
41755         remainderf-ieee: Work around test failure on OSF/1.
41756         * m4/remainderf-ieee.m4: New file.
41757         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41758         present, test whether remainderf works with a zero second argument.
41759         Replace it if not.
41760         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41762         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41763         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41764         (Depends-on): Update conditions.
41765         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41766         (Depends-on): Add remainder-ieee.
41767         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41768         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41769         module.
41771         remainder-ieee: Work around test failure on OSF/1.
41772         * m4/remainder-ieee.m4: New file.
41773         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41774         present, test whether remainder works with a zero second argument.
41775         Replace it if not.
41776         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41778         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41779         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41780         (Depends-on): Update dependencies.
41781         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41782         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41783         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41785         Tests for module 'remainderl-ieee'.
41786         * modules/remainderl-ieee-tests: New file.
41787         * tests/test-remainderl-ieee.c: New file.
41789         New module 'remainderl-ieee'.
41790         * modules/remainderl-ieee: New file.
41792         Tests for module 'remainder-ieee'.
41793         * modules/remainder-ieee-tests: New file.
41794         * tests/test-remainder-ieee.c: New file.
41796         New module 'remainder-ieee'.
41797         * modules/remainder-ieee: New file.
41799         Tests for module 'remainderf-ieee'.
41800         * modules/remainderf-ieee-tests: New file.
41801         * tests/test-remainderf-ieee.c: New file.
41802         * tests/test-remainder-ieee.h: New file.
41804         New module 'remainderf-ieee'.
41805         * modules/remainderf-ieee: New file.
41807 2012-02-27  Bruno Haible  <bruno@clisp.org>
41809         modff, modfl: Fix configure syntax error.
41810         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41811         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41813 2012-02-27  Bruno Haible  <bruno@clisp.org>
41815         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41816         * m4/fmodl-ieee.m4: New file.
41817         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41818         whether fmodl works with zero arguments. Replace it if not.
41819         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41820         (Depends-on): Add fmod-ieee.
41821         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41822         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41824         fmodf-ieee: Work around test failure on OSF/1.
41825         * m4/fmodf-ieee.m4: New file.
41826         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41827         whether fmodf works with zero arguments. Replace it if not.
41828         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41830         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41831         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41832         (Depends-on): Update dependencies.
41833         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41834         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41835         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41837         fmodf-ieee: Work around test failure on MSVC 9.
41838         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41839         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41841         fmod-ieee: Work around test failures on OSF/1, mingw.
41842         * m4/fmod-ieee.m4: New file.
41843         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41844         whether fmod works with zero arguments. Replace it if not.
41845         * lib/math.in.h (fmod): New declaration.
41846         * lib/fmod.c: New file.
41847         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41849         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41850         * modules/fmod (Files): Add lib/fmod.c.
41851         (Depends-on): Add math, isinf, trunc, fma.
41852         (configure.ac): Arrange to compile lib/fmod.c if needed.
41853         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41854         m4/signbit.m4.
41855         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41856         * tests/test-math-c++.cc: Check the declaration of fmod.
41857         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41859         fmodl-ieee: Fix test failures.
41860         * lib/fmodl.c (fmodl): Treat Inf specially.
41861         * modules/fmodl (Depends-on): Add isinf.
41863         Tests for module 'fmodl-ieee'.
41864         * modules/fmodl-ieee-tests: New file.
41865         * tests/test-fmodl-ieee.c: New file.
41867         New module 'fmodl-ieee'.
41868         * modules/fmodl-ieee: New file.
41870         Tests for module 'fmod-ieee'.
41871         * modules/fmod-ieee-tests: New file.
41872         * tests/test-fmod-ieee.c: New file.
41874         New module 'fmod-ieee'.
41875         * modules/fmod-ieee: New file.
41877         Tests for module 'fmodf-ieee'.
41878         * modules/fmodf-ieee-tests: New file.
41879         * tests/test-fmodf-ieee.c: New file.
41880         * tests/test-fmod-ieee.h: New file.
41882         New module 'fmodf-ieee'.
41883         * modules/fmodf-ieee: New file.
41885 2012-02-27  Bruno Haible  <bruno@clisp.org>
41887         Tests for module 'rintl-ieee'.
41888         * modules/rintl-ieee-tests: New file.
41889         * tests/test-rintl-ieee.c: New file.
41891         New module 'rintl-ieee'.
41892         * modules/rintl-ieee: New file.
41894         Tests for module 'rint-ieee'.
41895         * modules/rint-ieee-tests: New file.
41896         * tests/test-rint-ieee.c: New file.
41898         New module 'rint-ieee'.
41899         * modules/rint-ieee: New file.
41901         Tests for module 'rintf-ieee'.
41902         * modules/rintf-ieee-tests: New file.
41903         * tests/test-rintf-ieee.c: New file.
41904         * tests/test-rint-ieee.h: New file.
41906         New module 'rintf-ieee'.
41907         * modules/rintf-ieee: New file.
41909 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41911         regex: re_search etc. should return -2 when memory exhausted
41912         This bug was uncovered when testing 'grep'.  Without the fix,
41913         re_search and friends return -1 when memory is exhausted, but -1
41914         means no match, and this causes grep to falsely report no-match
41915         instead of memory-exhaustion.  See
41916         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41917         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41918         trouble; this can occur if re_search_internal ran out of memory.
41920 2012-02-26  Bruno Haible  <bruno@clisp.org>
41922         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41923         * m4/modfl-ieee.m4: New file.
41924         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41925         whether modfl works with Inf. Replace it if not.
41926         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41928         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41929         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41930         (Depends-on): Update dependencies.
41931         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41932         m4/signbit.m4.
41933         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41934         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41936         modfl-ieee: Fix dependencies.
41937         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41939         modfl-ieee: Fix test failures.
41940         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41941         * modules/modfl (Depends-on): Add isfinite, isinf.
41943         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41944         * m4/modff-ieee.m4: New file.
41945         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41946         whether modff works with NaN and Inf. Replace it if not.
41947         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41949         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41950         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41951         (Depends-on): Update dependencies.
41952         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41953         m4/signbit.m4.
41954         (Depends-on): Add modf-ieee.
41955         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41956         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41958         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41959         * m4/modf-ieee.m4: New file.
41960         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41961         whether modf works with NaN and Inf. Replace it if not.
41962         * lib/math.in.h (modf): New declaration.
41963         * lib/modf.c: New file.
41964         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41966         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41967         * modules/modf (Files): Add lib/modf.c.
41968         (Depends-on): Add math, isfinite, trunc, isinf.
41969         (configure.ac): Addrange to compile lib/modf.c if needed.
41970         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41971         m4/signbit.m4.
41972         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41973         * tests/test-math-c++.cc: Check the declaration of modf.
41974         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41976         Tests for module 'modfl-ieee'.
41977         * modules/modfl-ieee-tests: New file.
41978         * tests/test-modfl-ieee.c: New file.
41980         New module 'modfl-ieee'.
41981         * modules/modfl-ieee: New file.
41983         Tests for module 'modf-ieee'.
41984         * modules/modf-ieee-tests: New file.
41985         * tests/test-modf-ieee.c: New file.
41987         New module 'modf-ieee'.
41988         * modules/modf-ieee: New file.
41990         Tests for module 'modff-ieee'.
41991         * modules/modff-ieee-tests: New file.
41992         * tests/test-modff-ieee.c: New file.
41993         * tests/test-modf-ieee.h: New file.
41995         New module 'modff-ieee'.
41996         * modules/modff-ieee: New file.
41998 2012-02-26  Bruno Haible  <bruno@clisp.org>
42000         Tests for module 'fabsl-ieee'.
42001         * modules/fabsl-ieee-tests: New file.
42002         * tests/test-fabsl-ieee.c: New file.
42004         New module 'fabsl-ieee'.
42005         * modules/fabsl-ieee: New file.
42007         Tests for module 'fabs-ieee'.
42008         * modules/fabs-ieee-tests: New file.
42009         * tests/test-fabs-ieee.c: New file.
42011         New module 'fabs-ieee'.
42012         * modules/fabs-ieee: New file.
42014         Tests for module 'fabsf-ieee'.
42015         * modules/fabsf-ieee-tests: New file.
42016         * tests/test-fabsf-ieee.c: New file.
42017         * tests/test-fabs-ieee.h: New file.
42019         New module 'fabsf-ieee'.
42020         * modules/fabsf-ieee: New file.
42022 2012-02-26  Bruno Haible  <bruno@clisp.org>
42024         Tests for module 'fmal-ieee'.
42025         * modules/fmal-ieee-tests: New file.
42026         * tests/test-fmal-ieee.c: New file.
42028         New module 'fmal-ieee'.
42029         * modules/fmal-ieee: New file.
42031         Tests for module 'fma-ieee'.
42032         * modules/fma-ieee-tests: New file.
42033         * tests/test-fma-ieee.c: New file.
42035         New module 'fma-ieee'.
42036         * modules/fma-ieee: New file.
42038         Tests for module 'fmaf-ieee'.
42039         * modules/fmaf-ieee-tests: New file.
42040         * tests/test-fmaf-ieee.c: New file.
42041         * tests/test-fma-ieee.h: New file.
42043         New module 'fmaf-ieee'.
42044         * modules/fmaf-ieee: New file.
42046 2012-02-26  Bruno Haible  <bruno@clisp.org>
42048         Tests for module 'ldexpl-ieee'.
42049         * modules/ldexpl-ieee-tests: New file.
42050         * tests/test-ldexpl-ieee.c: New file.
42052         New module 'ldexpl-ieee'.
42053         * modules/ldexpl-ieee: New file.
42055         Tests for module 'ldexp-ieee'.
42056         * modules/ldexp-ieee-tests: New file.
42057         * tests/test-ldexp-ieee.c: New file.
42059         New module 'ldexp-ieee'.
42060         * modules/ldexp-ieee: New file.
42062         Tests for module 'ldexpf-ieee'.
42063         * modules/ldexpf-ieee-tests: New file.
42064         * tests/test-ldexpf-ieee.c: New file.
42065         * tests/test-ldexp-ieee.h: New file.
42067         New module 'ldexpf-ieee'.
42068         * modules/ldexpf-ieee: New file.
42070 2012-02-26  Bruno Haible  <bruno@clisp.org>
42072         Refactor frexp*-ieee tests.
42073         * tests/test-frexp-ieee.h: New file.
42074         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
42075         (main): Just call test_function.
42076         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
42077         (main): Just call test_function.
42078         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
42079         (main): Just call test_function.
42080         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
42081         * modules/frexp-ieee-tests (Files): Likewise.
42082         * modules/frexpl-ieee-tests (Files): Likewise.
42084         Tests for module 'frexpl-ieee'.
42085         * modules/frexpl-ieee-tests: New file.
42086         * tests/test-frexpl-ieee.c: New file.
42088         New module 'frexpl-ieee'.
42089         * modules/frexpl-ieee: New file.
42091         Tests for module 'frexp-ieee'.
42092         * modules/frexp-ieee-tests: New file.
42093         * tests/test-frexp-ieee.c: New file.
42095         New module 'frexp-ieee'.
42096         * modules/frexp-ieee: New file.
42098         Tests for module 'frexpf-ieee'.
42099         * modules/frexpf-ieee-tests: New file.
42100         * tests/test-frexpf-ieee.c: New file.
42102         New module 'frexpf-ieee'.
42103         * modules/frexpf-ieee: New file.
42105 2012-02-26  Bruno Haible  <bruno@clisp.org>
42107         roundl-ieee tests: More tests.
42108         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42109         (main): Add tests for [MX] shaded specification in POSIX.
42110         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42111         (Depends-on): Add isnanl-nolibm.
42113         round-ieee tests: More tests.
42114         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42115         (main): Add tests for [MX] shaded specification in POSIX.
42116         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42117         (Depends-on): Add isnand-nolibm.
42119         roundf-ieee tests: More tests.
42120         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42121         (main): Add tests for [MX] shaded specification in POSIX.
42122         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42123         (Depends-on): Add isnanf-nolibm.
42125         truncl-ieee tests: More tests.
42126         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42127         (main): Add tests for [MX] shaded specification in POSIX.
42128         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42129         (Depends-on): Add isnanl-nolibm.
42131         trunc-ieee tests: More tests.
42132         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42133         (main): Add tests for [MX] shaded specification in POSIX.
42134         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42135         (Depends-on): Add isnand-nolibm.
42137         truncf-ieee tests: More tests.
42138         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42139         (main): Add tests for [MX] shaded specification in POSIX.
42140         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42141         (Depends-on): Add isnanf-nolibm.
42143         ceill-ieee tests: More tests.
42144         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42145         (main): Add tests for [MX] shaded specification in POSIX.
42146         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42147         (Depends-on): Add isnanl-nolibm.
42149         ceil-ieee tests: More tests.
42150         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42151         (main): Add tests for [MX] shaded specification in POSIX.
42152         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42153         (Depends-on): Add isnand-nolibm.
42155         ceilf-ieee tests: More tests.
42156         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42157         (main): Add tests for [MX] shaded specification in POSIX.
42158         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42159         (Depends-on): Add isnanf-nolibm.
42161         floorl-ieee tests: More tests.
42162         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42163         (main): Add tests for [MX] shaded specification in POSIX.
42164         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42165         (Depends-on): Add isnanl-nolibm.
42167         floor-ieee tests: More tests.
42168         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42169         (main): Add tests for [MX] shaded specification in POSIX.
42170         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42171         (Depends-on): Add isnand-nolibm.
42173         floorf-ieee tests: More tests.
42174         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42175         (main): Add tests for [MX] shaded specification in POSIX.
42176         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42177         (Depends-on): Add isnanf-nolibm.
42179 2012-02-26  Bruno Haible  <bruno@clisp.org>
42181         fpieee: More comments.
42182         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
42184 2012-02-25  Bruno Haible  <bruno@clisp.org>
42186         Tests for module 'log10l'.
42187         * modules/log10l-tests: New file.
42188         * tests/test-log10l.c: New file.
42189         * tests/test-math-c++.cc: Check the declaration of log10l.
42191         New module 'log10l'.
42192         * lib/math.in.h (log10l): New declaration.
42193         * lib/log10l.c: New file.
42194         * m4/log10l.m4: New file.
42195         * modules/log10l: New file.
42196         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
42197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
42198         HAVE_DECL_LOG10L.
42199         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
42200         HAVE_DECL_LOG10L.
42201         * doc/posix-functions/log10l.texi: Mention the new module.
42203 2012-02-25  Bruno Haible  <bruno@clisp.org>
42205         fmodl, remainder*: Avoid wrong results due to rounding errors.
42206         * lib/fmodl.c (fmodl): Correct the result if it is not within the
42207         expected bounds.
42208         * lib/remainderf.c (remainderf): Likewise.
42209         * lib/remainder.c (remainder): Likewise.
42210         * lib/remainderl.c (remainderl): Likewise.
42212 2012-02-25  Bruno Haible  <bruno@clisp.org>
42214         Tests for module 'remainderl'.
42215         * modules/remainderl-tests: New file.
42216         * tests/test-remainderl.c: New file.
42217         * tests/test-math-c++.cc: Check the declaration of remainderl.
42219         New module 'remainderl'.
42220         * lib/math.in.h (remainderl): New declaration.
42221         * lib/remainderl.c: New file.
42222         * m4/remainderl.m4: New file.
42223         * modules/remainderl: New file.
42224         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
42225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
42226         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
42227         HAVE_REMAINDERL.
42228         * doc/posix-functions/remainderl.texi: Mention the new module.
42230 2012-02-25  Bruno Haible  <bruno@clisp.org>
42232         Tests for module 'remainderf'.
42233         * modules/remainderf-tests: New file.
42234         * tests/test-remainderf.c: New file.
42235         * tests/test-math-c++.cc: Check the declaration of remainderf.
42237         New module 'remainderf'.
42238         * lib/math.in.h (remainderf): New declaration.
42239         * lib/remainderf.c: New file.
42240         * m4/remainderf.m4: New file.
42241         * modules/remainderf: New file.
42242         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
42243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
42244         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
42245         HAVE_REMAINDERF.
42246         * doc/posix-functions/remainderf.texi: Mention the new module.
42248 2012-02-25  Bruno Haible  <bruno@clisp.org>
42250         remainder: Support for MSVC.
42251         * lib/math.in.h (remainder): New declaration.
42252         * lib/remainder.c: New file.
42253         * m4/remainder.m4: New file.
42254         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
42255         (Depends-on): Add math, round, fma.
42256         (configure.ac): Use results of gl_FUNC_REMAINDER.
42257         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
42258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
42259         HAVE_DECL_REMAINDER.
42260         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
42261         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
42262         * tests/test-math-c++.cc: Check the declaration of remainder.
42263         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
42264         problems are fixed.
42266 2012-02-25  Bruno Haible  <bruno@clisp.org>
42268         Tests for module 'fmodl'.
42269         * modules/fmodl-tests: New file.
42270         * tests/test-fmodl.c: New file.
42271         * tests/test-math-c++.cc: Check the declaration of fmodl.
42273         New module 'fmodl'.
42274         * lib/math.in.h (fmodl): New declaration.
42275         * lib/fmodl.c: New file.
42276         * m4/fmodl.m4: New file.
42277         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
42278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
42279         REPLACE_FMODL.
42280         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
42281         REPLACE_FMODL.
42282         * modules/fmodl: New file.
42283         * doc/posix-functions/fmodl.texi: Mention the new module.
42285 2012-02-25  Bruno Haible  <bruno@clisp.org>
42287         Tests for module 'modfl'.
42288         * modules/modfl-tests: New file.
42289         * tests/test-modfl.c: New file.
42290         * tests/test-math-c++.cc: Check the declaration of modfl.
42292         New module 'modfl'.
42293         * lib/math.in.h (modfl): New declaration.
42294         * lib/modfl.c: New file.
42295         * m4/modfl.m4: New file.
42296         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
42297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
42298         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
42299         * modules/modfl: New file.
42300         * doc/posix-functions/modfl.texi: Mention the new module.
42302 2012-02-25  Bruno Haible  <bruno@clisp.org>
42304         Tests for module 'fabsl'.
42305         * modules/fabsl-tests: New file.
42306         * tests/test-fabsl.c: New file.
42307         * tests/test-math-c++.cc: Check the declaration of fabsl.
42309         New module 'fabsl'.
42310         * lib/math.in.h (fabsl): New declaration.
42311         * lib/fabsl.c: New file.
42312         * m4/fabsl.m4: New file.
42313         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
42314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
42315         REPLACE_FABSL.
42316         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
42317         REPLACE_FABSL.
42318         * modules/fabsl: New file.
42319         * doc/posix-functions/fabsl.texi: Mention the new module.
42321 2012-02-25  Bruno Haible  <bruno@clisp.org>
42323         fabs tests: More tests.
42324         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
42325         (zero): New variable.
42326         (main): Add tests for signed zero.
42327         * modules/fabs-tests (Files): Add tests/minus-zero.h.
42329         fabsf tests: More tests.
42330         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
42331         (zero): New variable.
42332         (main): Add tests for signed zero.
42333         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
42335 2012-02-24  Bruno Haible  <bruno@clisp.org>
42337         atanl: Provide function definition on MSVC.
42338         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
42339         function pointer.
42340         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42342 2012-02-24  Bruno Haible  <bruno@clisp.org>
42344         acosl: Provide function definition on MSVC.
42345         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42346         function pointer.
42347         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42349 2012-02-24  Bruno Haible  <bruno@clisp.org>
42351         asinl: Provide function definition on MSVC.
42352         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42353         function pointer.
42354         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42356 2012-02-24  Bruno Haible  <bruno@clisp.org>
42358         tanl: Provide function definition on MSVC.
42359         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42360         function pointer.
42361         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42363 2012-02-24  Bruno Haible  <bruno@clisp.org>
42365         cosl: Provide function definition on MSVC.
42366         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42367         function pointer.
42368         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42370 2012-02-24  Bruno Haible  <bruno@clisp.org>
42372         sinl: Provide function definition on MSVC.
42373         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42374         function pointer.
42375         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42377 2012-02-24  Bruno Haible  <bruno@clisp.org>
42379         logl: Provide function definition on MSVC.
42380         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42381         function pointer.
42382         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42384 2012-02-24  Bruno Haible  <bruno@clisp.org>
42386         expl: Provide function definition on MSVC.
42387         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42388         function pointer.
42389         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42391 2012-02-24  Bruno Haible  <bruno@clisp.org>
42393         sqrtl: Provide function definition on MSVC.
42394         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42395         a function pointer.
42396         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42398 2012-02-24  Bruno Haible  <bruno@clisp.org>
42400         ceill: Provide function definition on MSVC.
42401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42402         used as a function pointer.
42403         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42405 2012-02-24  Bruno Haible  <bruno@clisp.org>
42407         floorl: Provide function definition on MSVC.
42408         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42409         used as a function pointer.
42410         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42412 2012-02-24  Bruno Haible  <bruno@clisp.org>
42414         ceilf: Provide function definition on MSVC.
42415         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42416         used as a function pointer.
42417         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42419 2012-02-24  Bruno Haible  <bruno@clisp.org>
42421         floorf: Provide function definition on MSVC.
42422         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42423         used as a function pointer.
42424         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42426 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42428         stdnoreturn: new module
42429         This implements a replacement for C11's <stdnoreturn.h>.
42430         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42431         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42432         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42433         * tests/test-stdnoreturn.c: New files.
42435 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42437         regex: fix false multibyte matches in some regular expressions
42438         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42439         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42440         * lib/regex_internal.c (re_string_skip_chars):
42441         Fix miscomputation of remain_len that may cause incomplete
42442         multi-byte character and false match.
42444 2012-02-24  Jim Meyering  <meyering@redhat.com>
42446         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42447         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42448         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42449         Remove now-unnecessary str''cmp obfuscation.
42450         Suggested by Akim Demaille.
42452 2012-02-24  Bruno Haible  <bruno@clisp.org>
42454         streq: Rename macro.
42455         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
42456         * NEWS: Mention the change.
42457         * lib/mbrtowc.c (mbrtowc): Update.
42458         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
42459         * lib/wcwidth.c (wcwidth): Update.
42460         Suggested by Akim Demaille and Jim Meyering.
42462 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42464         regex: fix typo in definition of MIN
42465         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
42466         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
42468 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42469             Bruno Haible  <bruno@clisp.org>
42471         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
42472         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
42473         entries into a stack-allocated buffer directly.
42474         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
42476 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42477             Bruno Haible  <bruno@clisp.org>
42479         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
42481          - There were several instances of this pattern:
42483              for (;;) {
42484                n = acl (f, GETACLCNT, 0, NULL);
42485                [ allocate an array A of size N ]
42486                if (acl (f, GETACL, n, a) == n)
42487                  break;
42488              }
42490            This loop might never terminate if some other process is constantly
42491            manipulating the file's ACL.  The loop should be rewritten to
42492            terminate.
42494          - The acl (... GETACLNT ...) call is merely an optimization; its value
42495            is merely a hint as to how big to make the array.  A better
42496            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
42497            and just guess a reasonably-big size, growing the size and trying
42498            again if it's not large enough.  This guarantees termination, and
42499            saves a system call.
42501         * lib/acl-internal.h: Include <limits.h>.
42502         (MIN, SIZE_MAX): New macros.
42503         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
42504         a stack-allocated buffer, and use malloc if it does not fit. Don't
42505         use GETACLCNT.
42506         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42508 2012-02-19  Bruno Haible  <bruno@clisp.org>
42510         acl: Fix endless loop on Solaris with vxfs.
42511         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
42512         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
42513         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42514         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
42515         * tests/test-sameacls.c (main)[Solaris]: Likewise.
42516         Reported by Bill Jones in
42517         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
42519 2012-02-19  Bruno Haible  <bruno@clisp.org>
42521         acl: Fix copy-acl test failure on Solaris 11.0.
42522         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
42523         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
42524         that this function returns 0 in some more cases.
42526 2012-02-19  Bruno Haible  <bruno@clisp.org>
42528         acl: Update doc references.
42529         * doc/acl-resources.txt: Update links to Solaris documentation.
42531 2012-02-19  Bruno Haible  <bruno@clisp.org>
42533         Fix test failure in many locales on Solaris 11.
42534         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
42535         'tr' arguments.
42536         * tests/test-pipe-filter-ii1.c (main): Likewise.
42537         * build-aux/bootstrap (check_versions): Run 'tr' command with range
42538         expressions in the C locale.
42539         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42540         * m4/host-os.m4 (gl_HOST_OS): Likewise.
42542 2012-02-19  Bruno Haible  <bruno@clisp.org>
42544         gnulib-tool: Improve usage message.
42545         * gnulib-tool (func_usage): Move doc of --help and --version to the
42546         section "Operation modes".
42548 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
42550         README-release: make it easier to execute commands
42551         * top/README-release: break commands out on to separate lines.
42553 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
42555         GNUmakefile: simplify detection of unconfigured trees
42556         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
42557         whether the tree make is being run from is already configured or
42558         not.  Related simplifications.
42560 2012-02-13  Simon Josefsson  <simon@josefsson.org>
42562         * gnulib-tool (func_usage): Document --help and --version.
42564 2012-02-11  Jim Meyering  <meyering@redhat.com>
42566         bootstrap: don't exit 0 upon gnulib-tool failure
42567         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
42568         its exit status, not 0.
42570 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
42572         README-release: various improvements
42573         * top/README-release: Give a command to push changes for the
42574         release.  Add "distcheck" to list of other pre-release checks.
42575         Fix instance of "make stable" which should be "make TYPE".
42577 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42579         maint: replace FSF snail-mail addresses with URLs
42580         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
42581         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
42582         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
42583         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
42584         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
42585         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
42586         * lib/check-version.c, lib/check-version.h, lib/config.charset:
42587         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
42588         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42589         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42590         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42591         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42592         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42593         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42594         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42595         * lib/glthread/thread.c, lib/glthread/thread.h:
42596         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
42597         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
42598         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
42599         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
42600         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
42601         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
42602         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
42603         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
42604         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
42605         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
42606         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
42607         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
42608         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
42609         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
42610         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
42611         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
42612         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
42613         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
42614         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
42615         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
42616         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
42617         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
42618         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
42619         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
42620         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
42621         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
42622         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
42623         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
42624         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
42625         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
42626         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
42627         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
42628         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
42629         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
42630         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
42631         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
42632         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
42633         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
42634         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
42635         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
42636         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
42637         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
42638         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
42639         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
42640         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
42641         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
42642         * tests/test-poll.c, tests/test-quotearg-simple.c:
42643         * tests/test-quotearg.c, tests/test-quotearg.h:
42644         * tests/test-round-ieee.c, tests/test-round1.c:
42645         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
42646         * tests/test-roundl-ieee.c, tests/test-roundl.c:
42647         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
42648         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
42649         * tests/test-strerror.c, tests/test-strerror_r.c:
42650         * tests/test-strsignal.c, tests/test-strverscmp.c:
42651         * tests/test-xmemdup0.c:
42652         Replace FSF snail mail addresses with URLs, as per GNU coding
42653         standards.  See glibc bug
42654         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
42656 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42658         README-release: capitalize a word and split a line
42659         * top/README-release: Fix punctuation and spacing.
42661 2012-02-08  Akim Demaille  <demaille@gostai.com>
42663         fatal-signal: use C prototypes (with explicit void).
42664         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42665         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42667 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42669         regex: spelling fix
42670         * lib/regexec.c: spelling fix
42672         regex: rely on stdint.h for SIZE_MAX
42673         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42675 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42677         regex: merge glibc changes
42679         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42680         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42681         (init_word_char): Work even if bitset words are not exactly 32 or
42682         64 bits wide.  Don't assume there are no padding bits.
42683         * lib/regex.c [_LIBC]: Do not include <config.h>.
42684         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42685         and -Wtype-limits.
42686         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42687         needless disagreement with glibc.  All uses changed.  Define it to
42688         1 only if _GNU_SOURCE, to match glibc.
42689         (_REG_RM_NAME): Remove; no longer needed, since the names in
42690         question are now all protected by __USE_GNU.
42691         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42692         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42693         * lib/regex_internal.h (MIN): New macro.
42695         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42696         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42698         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42699         * lib/regex_internal.c (re_string_fetch_byte_case):
42700         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42701         is miscompiled, and it turns out it is because of an incorrect
42702         attribute on re_string_fetch_byte_case.  Unlike
42703         re_string_peek_byte_case, this one is really not pure, it modifies
42704         memory (increments pstr->cur_idx), and with the pure attribute GCC
42705         assumed it doesn't and it cached the presumed value of
42706         regexp->cur_idx in a variable across the
42707          for (;; ++i)
42708            {
42709              if (i >= BRACKET_NAME_BUF_SIZE)
42710                return REG_EBRACK;
42711              if (token->type == OP_OPEN_CHAR_CLASS)
42712                ch = re_string_fetch_byte_case (regexp);
42713              else
42714                ch = re_string_fetch_byte (regexp);
42715              if (re_string_eoi(regexp))
42716                return REG_EBRACK;
42717              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42718                break;
42719              elem->opr.name[i] = ch;
42720            }
42722         2011-11-29 Andreas Schwab <schwab@redhat.com>
42723         * lib/regcomp.c (build_equiv_class):
42724         Fix access after end of search string in regex matcher.
42726         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42727         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42729         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42730         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42732         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42733         * lib/regcomp.c (parse_branch, parse_sub_exp):
42734         More regex memory leak fixes and tests.
42735         (parse_sub_exp, parse_bracket_exp):
42736         Fix memory leak for some invalid regular expressions.
42738         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42739         * lib/regex_internal.c, lib/regexec.c:
42740         Fix unnecessary overallocation due to incomplete character.  When
42741         incomplete characters are found at the end of a string the code
42742         ran amok and allocated lots of memory.  Stricter limits are now in
42743         place.
42745         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42746         * lib/regex.h: Update documentation.
42748         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42749         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42751         2010-05-05 Andreas Schwab <schwab@redhat.com>
42752         * lib/regexec.c (find_collation_sequence_value):
42753         Fix lookup of collation sequence value during regexp matching.
42755         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42756         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42758         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42759         * lib/regex.h: Cleanup namespace.
42761         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42762         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42764         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42765         * lib/regex_internal.h: Prevent some declarations and definitions
42766         to be seen when used in tests.
42768         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42769         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42770         __libc_lock_* macros if not _LIBC.
42771         (struct re_dfa_t): Add lock.
42773 2012-02-07  Eric Blake  <eblake@redhat.com>
42775         maint.mk: also prohibit lower-case @var@
42776         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42777         lower case, like @top_srcdir@.
42779 2012-02-04  Eric Blake  <eblake@redhat.com>
42781         canonicalize: avoid uninitialized memory use
42782         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42783         random '/' left in dest.
42784         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42786 2012-02-04  Bruno Haible  <bruno@clisp.org>
42788         isatty: Fix test failure of ptsname_r on native Windows.
42789         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42790         and don't set errno.
42791         (isatty): Test first whether fd is valid. Set errno when returning 0.
42793 2012-02-04  Bruno Haible  <bruno@clisp.org>
42795         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42796         * tests/test-spawn-pipe-main.c: Include progname.h.
42797         (main): Invoke set_program_name.
42798         * modules/spawn-pipe-tests (Depends-on): Add progname.
42800         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42801         * tests/test-nonblocking-socket-main.c: Include progname.h.
42802         (main): Invoke set_program_name.
42803         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42805         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42806         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42807         (main): Invoke set_program_name.
42808         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42810 2012-02-04  Eric Blake  <eblake@redhat.com>
42812         canonicalize-lgpl: fix // handling
42813         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42815         canonicalize: fix // handling
42816         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42817         /// to //, since only // is special.
42819 2012-02-04  Bruno Haible  <bruno@clisp.org>
42821         ioctl: Fix test failure on native Windows.
42822         * lib/ioctl.c: Include msvc-nothrow.h.
42823         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42825 2012-02-04  Bruno Haible  <bruno@clisp.org>
42827         fsync: Avoid test failure on native Windows.
42828         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42829         read-only.
42831 2012-02-04  Bruno Haible  <bruno@clisp.org>
42833         sys_select: Avoid syntax error on OpenBSD 5.0.
42834         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42835         currently being included, just include the system's <sys/select.h>.
42837 2012-02-04  Bruno Haible  <bruno@clisp.org>
42839         sys_select: Avoid syntax error on OpenBSD 5.0.
42840         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42841         <sys/select.h>, not before.
42842         Reported by Jiri B <jirib@devio.us>.
42844 2012-02-04  Bruno Haible  <bruno@clisp.org>
42846         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42847         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42848         global variables.
42849         * tests/test-get-rusage-data.c (main): Likewise.
42850         Reported by Jim Meyering.
42852 2012-02-04  Bruno Haible  <bruno@clisp.org>
42854         stdioext: Fix last commit.
42855         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42857 2012-02-03  Bruno Haible  <bruno@clisp.org>
42859         stdioext: Add tentative support for Plan9.
42860         * lib/stdio-impl.h: Include <errno.h>.
42861         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42862         * lib/freadable.c (freadable): Likewise.
42863         * lib/fwritable.c (fwritable): Likewise.
42864         * lib/fbufmode.c (fbufmode): Likewise.
42865         * lib/freading.c (freading): Likewise.
42866         * lib/fwriting.c (fwriting): Likewise.
42867         * lib/freadptr.c (freadptr): Likewise.
42868         * lib/freadseek.c (freadptrinc): Likewise.
42869         * lib/freadahead.c (freadahead): Likewise.
42870         * lib/fpurge.c (fpurge): Likewise.
42871         * lib/fseeko.c (rpl_fseeko): Likewise.
42872         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42873         Reported by Jens Staal <staal1978@gmail.com>.
42875 2012-02-02  Jim Meyering  <meyering@redhat.com>
42877         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42878         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42879         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42880         not even to try to add the attribute.  Instead, add a pragma to suppress
42881         the suggestion/warning.
42883 2012-01-31  Karl Berry  <karl@gnu.org>
42885         setstate doc: typo.
42886         * doc/posix-functions/setstate.texi (setstate): { not (.
42888 2012-01-31  Bruno Haible  <bruno@clisp.org>
42890         popen: Make more robust on Windows.
42891         * lib/popen.c: On native Windows, use the _popen based code even if
42892         HAVE_POPEN is set.
42893         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42894         environment variable on native Windows.
42896 2012-01-30  Bruno Haible  <bruno@clisp.org>
42898         pclose: Fix typo.
42899         * lib/stdio.in.h (pclose): Fix typo in warning message.
42901 2012-01-30  Bruno Haible  <bruno@clisp.org>
42903         doc about getlogin_r, setstate.
42904         * doc/posix-functions/getlogin_r.texi: List the incompatible
42905         declaration problem under "not fixed by gnulib".
42906         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42907         problem on Solaris 11 and other platforms.
42909 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42910             Bruno Haible  <bruno@clisp.org>
42912         poll tests: Make test more robust.
42913         * tests/test-poll.c: Include macros.h.
42914         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42915         return value of various I/O operations.
42916         * modules/poll-tests (Files): Add tests/macros.h.
42918 2012-01-30  Bruno Haible  <bruno@clisp.org>
42920         sys_stat: Fix support for mingw64 and MSVC.
42921         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42922         header files already do it.
42923         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42924         stat itself.
42925         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42927 2012-01-30  Bruno Haible  <bruno@clisp.org>
42929         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42931         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42933 2012-01-29  Bruno Haible  <bruno@clisp.org>
42935         quotearg: Fix test failure on MacOS X 10.5.
42936         * tests/test-quotearg-simple.c: Include localcharset.h.
42937         (main): If the locale encoding is not ASCII, bypass the tests of
42938         locale_quoting_style and clocale_quoting_style.
42939         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42941 2012-01-29  Jim Meyering  <meyering@redhat.com>
42943         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42944         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42945         detect uses of canonicalize_file_name.
42947 2012-01-28  Bruno Haible  <bruno@clisp.org>
42949         test-framework-sh: Fix test failure with AIX 7.1 diff.
42950         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42951         in column 1, like 'diff -c' does.
42952         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42953         whether 'diff -u' is used. Instead, test whether the output contains
42954         some '@' character.
42956 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42958         strtoimax: eliminate need for stdint.h, inttypes.h checks
42959         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42960         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42961         the prerequisites for a recently-introduced strtoimax test.
42962         I guess this might cause strtoimax to be replaced when not
42963         strictly necessary on older hosts, but this shouldn't introduce
42964         any bugs and it should make Emacs 'configure' faster on typical
42965         modern hosts.  Problem discovered when importing the latest gnulib
42966         to an Emacs test version.
42967         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42969 2012-01-28  Bruno Haible  <bruno@clisp.org>
42971         sys_time: Override 'struct timeval' on some native Windows platforms.
42972         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42973         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42974         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42975         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42976         needs to be overridden.
42977         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42978         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42979         * tests/test-sys_select.c: Check that the tv_sec member has the same
42980         size as a 'time_t'.
42981         * tests/test-sys_time.c: Likewise.
42982         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42983         is set, set also REPLACE_GETTIMEOFDAY.
42984         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42985         convert the resulting 'struct timeval' before returning.
42986         * lib/select.c: Include <sys/time.h>.
42987         (select, timeval): Undefine at the right place.
42988         * modules/select (Depends-on): Add sys_time.
42989         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42990         some Windows platforms.
42991         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42993 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42995         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42996         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42997         an integer.
42998         * lib/fcntl.c (dupfd): Likewise.
42999         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
43001 2012-01-28  Bruno Haible  <bruno@clisp.org>
43003         fcntl: Avoid compilation error on native Windows.
43004         * modules/fcntl (Depends-on): Add 'close'.
43006 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43008         select, poll, isatty: Avoid warnings on x86_64 mingw64.
43009         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
43010         pointer to an integer.
43011         * lib/poll.c (IsConsoleHandle): Likewise.
43012         * lib/isatty.c (IsConsoleHandle): Likewise.
43014 2012-01-28  Jim Meyering  <meyering@redhat.com>
43016         doc: clarify README-release
43017         * top/README-release: Clarify: you should make a point to have
43018         the latest stable versions of build tools in your PATH, and the
43019         reference to buildreq is solely for its list of tool names, not
43020         for its minimal-functional version numbers.
43021         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
43023         maint.mk: use more readable (yet functionally equivalent) quoting
43024         It is common to quote a single quote in a single quoted string like
43025         this:  '...'\''...'.  Unless you know the idiom, that looks like
43026         gibberish, so prefer to double-quote the string when possible.
43027         Then you can use a more readable, lone single quote: "...'..."
43028         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
43029         "don't" is more readable than the equivalent 'don'\''t'.
43030         (sc_cast_of_x_alloc_return_value): Likewise.
43031         (sc_cast_of_alloca_return_value): Likewise.
43032         (sc_makefile_path_separator_check): Similar: use ":" in '...',
43033         rather than '\'':'\''.
43035 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43037         stdalign: relax _Alignof and tighten _Alignas test
43038         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
43039         as it was too strict: alignof must divide offsetof, but it need
43040         not equal offsetof.  Inspired by Joseph S. Myers's comment
43041         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
43042         Conversely, tighten the _Alignas test a bit, as the resulting
43043         alignment must be exactly 8.
43045 2012-01-27  Bruno Haible  <bruno@clisp.org>
43047         stdalign: Document the last change.
43048         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
43050 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43052         stdalign: check that alignof and offsetof are consistent
43053         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
43054         Problem reported for gnulib by Richard W.M. Jones in
43055         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
43057 2012-01-27  Jim Meyering  <meyering@redhat.com>
43059         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
43060         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
43061         convert a sequence with gaps to the minimal containing range.
43062         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
43063         * tests/test-update-copyright.sh: Test for this.
43064         The FSF confirmed it is ok to do this, assuming there is at
43065         least one significant change per year in the affected range:
43066         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
43068 2012-01-26  Bruno Haible  <bruno@clisp.org>
43070         pipe2: refine doc about thread-safety
43071         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
43072         multithread-safety problem.
43073         * doc/glibc-functions/accept4.texi: Likewise.
43075 2012-01-26  Bruno Haible  <bruno@clisp.org>
43077         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
43078         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
43079         In the test program, include <fcntl.h>, for O_RDONLY.
43081 2012-01-26  Eric Blake  <eblake@redhat.com>
43083         pipe2: document lack of thread-safety in replacement
43084         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
43085         issue in replacement.
43086         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43087         Based on a report by Eric Wong.
43089 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43090             Bruno Haible  <bruno@clisp.org>
43092         malloca: Avoid warnings on x86_64 mingw64.
43093         * lib/malloca.c: Include <stdint.h>.
43094         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
43095         * modules/malloca (Depends-on): Add stdint.
43096         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
43098 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43100         obstack: remove __STDC__ conditionals
43101         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
43102         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
43103         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
43104         m4/include_next.m4 as the only gnulib-maintained places that still
43105         refer to __STDC__.
43107 2012-01-24  Bruno Haible  <bruno@clisp.org>
43109         havelib: Modern quoting.
43110         * build-aux/config.rpath: Quote 'like this', not `like this', as per
43111         the recent change to the GNU coding standards.
43113 2012-01-24  Bruno Haible  <bruno@clisp.org>
43115         stdint: Improve support for Android.
43116         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
43117         Reported by Simon Josefsson <simon@josefsson.org>.
43119 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43121         doc: omit trailing empty lines from INSTALL etc.
43122         * doc/Makefile (INSTALL): Omit trailing empty lines.
43123         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
43124         omit trailing empty lines.  This simplifies the build procedure.
43126 2012-01-23  Jim Meyering  <meyering@redhat.com>
43128         tests: avoid spurious warnings about gl_sockets_startup
43129         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
43130         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43131         reporting a "statement with no effect".
43132         * tests/test-accept.c (main): Mark as "(void)".
43133         * tests/test-accept4.c (main): Likewise.
43134         * tests/test-bind.c (main): Likewise.
43135         * tests/test-connect.c (main): Likewise.
43136         * tests/test-getpeername.c (main): Likewise.
43137         * tests/test-getsockname.c (main): Likewise.
43138         * tests/test-getsockopt.c (main): Likewise.
43139         * tests/test-listen.c (main): Likewise.
43140         * tests/test-recv.c (main): Likewise.
43141         * tests/test-recvfrom.c (main): Likewise.
43142         * tests/test-send.c (main): Likewise.
43143         * tests/test-sendto.c (main): Likewise.
43144         * tests/test-setsockopt.c (main): Likewise.
43145         * tests/test-shutdown.c (main): Likewise.
43147 2012-01-21  Bruno Haible  <bruno@clisp.org>
43149         locale-fr.m4: Fix for Android.
43150         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
43151         failure of the test program on Bionic libc.
43153 2012-01-21  Jim Meyering  <meyering@redhat.com>
43155         bootstrap: fail when bootstrap_post_import_hook fails
43156         Otherwise, it's far too easy to miss diagnostics emitted
43157         between gnulib-tool's output and that of running configure.
43158         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
43160 2012-01-17  Jim Meyering  <meyering@redhat.com>
43162         maint: enable sc_trailing_blank
43163         * build-aux/pmccabe.css: Remove trailing blanks.
43164         * doc/acl-cygwin.txt: Likewise.
43165         * doc/gnu-oids.texi: Likewise
43166         * cfg.mk: Enable sc_trailing_blank.
43167         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
43169 2012-01-17  Jim Meyering  <meyering@redhat.com>
43171         maint: enable sc_prohibit_openat_without_use
43172         * cfg.mk: Enable sc_prohibit_openat_without_use.
43173         Exempt lib/selinux-at.c.
43175 2012-01-17  Jim Meyering  <meyering@redhat.com>
43177         maint: enable sc_prohibit_cloexec_without_use
43178         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
43179         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
43181 2012-01-17  Jim Meyering  <meyering@redhat.com>
43183         maint: enable sc_prohibit_intprops_without_use
43184         * cfg.mk: Enable sc_prohibit_intprops_without_use
43185         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
43187 2012-01-17  Jim Meyering  <meyering@redhat.com>
43189         maint: enable sc_prohibit_hash_pjw_without_use
43190         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
43191         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
43192         to match any use of \<hash_pjw\>, i.e., not necessarily with a
43193         following " (".
43195 2012-01-17  Jim Meyering  <meyering@redhat.com>
43197         maint: enable double-word-prohibiting rule
43198         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
43199         Exempt three files.
43201 2012-01-17  Jim Meyering  <meyering@redhat.com>
43203         maint: remove empty lines at EOF, but excluding modules/*
43204         Apply syntax rules at home as well as abroad.  Most changes
43205         were induced by running this:
43206           make srcdir=. _build-aux=build-aux -f top/maint.mk \
43207             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
43208             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
43209         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
43210         Exempt modules/* and two binary files.
43211         Also exempt doc/INSTALL*, per request from Bruno Haible.
43212         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
43213         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
43214         * doc/Copyright/request-assign.future: Likewise.
43215         * doc/Copyright/request-disclaim.changes: Likewise.
43216         * doc/INSTALL: Likewise.
43217         * doc/INSTALL.ISO: Likewise.
43218         * doc/INSTALL.UTF-8: Likewise.
43219         * doc/acl-cygwin.txt: Likewise.
43220         * doc/acl-resources.txt: Likewise.
43221         * doc/fdl-1.2.texi: Likewise.
43222         * doc/fdl-1.3.texi: Likewise.
43223         * doc/fdl.texi: Likewise.
43224         * lib/argp-pin.c: Likewise.
43225         * lib/round.c: Likewise.
43226         * lib/unicase/u16-totitle.c: Likewise.
43227         * lib/unictype/block_test.c: Likewise.
43228         * lib/uninorm/canonical-decomposition.c: Likewise.
43229         * m4/README: Likewise.
43230         * m4/relocatable-lib.m4: Likewise.
43231         * tests/test-isnand-nolibm.c: Likewise.
43232         * tests/test-isnand.c: Likewise.
43233         * tests/uninorm/NormalizationTest.txt: Likewise.
43235 2012-01-17  Jim Meyering  <meyering@redhat.com>
43237         maint: add framework to run syntax-check rules against gnulib sources
43238         * cfg.mk: New file, to disable all currently-failing tests.
43239         We'll enable them one by one, as they are made to pass.
43240         * Makefile (sc_maint): New rule.
43242 2012-01-21  Bruno Haible  <bruno@clisp.org>
43244         stdint: Add support for Android.
43245         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
43246         include the system's <stdint.h>.
43247         Reported by Simon Josefsson <simon@josefsson.org>.
43249 2012-01-19  Jim Meyering  <meyering@redhat.com>
43251         bootstrap: add bootstrap_post_import_hook
43252         Bison does still need something like the gnulib_mk_hook whose
43253         invocation I had to remove along with slurp in commit 767ccd40.
43254         Technically, we could get along without it, but doing so would
43255         have required living with a warning and a mandatory post-bootstrap
43256         automake rerun.
43257         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
43258         (bootstrap_post_import_hook): New function.
43259         Invoke it after gnulib-tool --import and before autoreconf.
43261 2012-01-18  Jim Meyering  <meyering@redhat.com>
43263         gitlog-to-changelog: don't use "no_"-prefixed variable name
43264         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
43265         to enable both --cluster and --no-cluster.  Change variable name,
43266         s/\$no_cluster/$cluster/, and reverse usage to match.
43268         gitlog-to-changelog: use "||", not "or" in expressions
43269         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
43270         expressions.
43272 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
43274         gitlog-to-changelog: new option --no-cluster
43275         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
43276         clustering of adjacent commit messages.
43278 2012-01-17  Jim Meyering  <meyering@redhat.com>
43280         maint: spell file systems with two words, not one
43281         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
43282         two words, not one.
43284 2012-01-16  Jim Meyering  <meyering@redhat.com>
43286         bootstrap: add a FIXME comment to ensure we eventually remove the hack
43287         * build-aux/bootstrap (gnulib_tool_options): Add comment.
43289 2012-01-16  Eric Blake  <eblake@redhat.com>
43291         bootstrap: cater to autoconf 2.59
43292         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
43293         is not available.
43295         bootstrap: properly check for libtool
43296         * build-aux/bootstrap (libtoolize): Also run libtool when older
43297         usage is detected.
43299 2012-01-15  Bruno Haible  <bruno@clisp.org>
43301         Improve support for MSVC 9.
43302         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
43303         clashes on MSVC.
43304         * lib/fcntl.in.h: Likewise.
43305         * lib/stdlib.in.h: Likewise.
43306         * lib/sys_stat.in.h: Likewise.
43308 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
43310         gnupload: we hold the master copy of this script now
43311         For motivation and more information, see:
43312         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
43313         * build-aux/gnupload: Make it clear in the heading comments that the
43314         master copy of this file is maintained by gnulib.  Since we are at
43315         it, bump its copyright year and ...
43316         ($scriptversion): ... the date in its version.
43317         ($usage): Patches and bug reports should be sent to the gnulib list,
43318         not the automake one.
43319         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43320         anymore.
43322 2012-01-15  Bruno Haible  <bruno@clisp.org>
43324         Fix module 'random'.
43325         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
43326         initstate, setstate are declared.
43328 2012-01-14  Bruno Haible  <bruno@clisp.org>
43330         Tests for module 'random'.
43331         * modules/random-tests: New file.
43332         * tests/test-random.c: New file, based on tests/test-random_r.c.
43334         New module 'random'.
43335         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
43336         declarations.
43337         * lib/random.c: New file, based on glibc/stdlib/random.c.
43338         * m4/random.m4: New file.
43339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
43340         HAVE_RANDOM.
43341         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43342         * modules/random: New file.
43343         * config/srclist.txt: Add an entry for random.c.
43344         * doc/posix-functions/random.texi: Mention the 'random' module.
43345         * doc/posix-functions/initstate.texi: Likewise.
43346         * doc/posix-functions/setstate.texi: Likewise.
43347         * doc/posix-functions/srandom.texi: Likewise.
43349 2012-01-12  Bruno Haible  <bruno@clisp.org>
43351         random_r: Use common idioms.
43352         * lib/random_r.c: Include <stdlib.h> first.
43354         random_r: Override incompatible API on AIX, OSF/1.
43355         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43356         Override the system function if REPLACE_RANDOM_R is 1.
43357         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43358         and OSF/1, set REPLACE_RANDOM_R.
43359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43360         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43361         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43362         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43363         * doc/glibc-functions/random_r.texi: Likewise.
43364         * doc/glibc-functions/setstate_r.texi: Likewise.
43366         random_r: Support for MSVC 9.
43367         * lib/random_r.c: Include stdint.h, not inttypes.h.
43369 2012-01-12  Eric Blake  <eblake@redhat.com>
43371         inet_ntop: guard extra work by IF_LINT
43372         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43373         better code generation when not checking for warnings.
43374         Suggested by Paul Eggert and Jim Meyering.
43376         strptime: fix regression on mingw
43377         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43378         Fix regression.  Reported by Bruno Haible.
43380 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43381             Bruno Haible  <bruno@clisp.org>
43383         copy-file: add error-code-returning variant.
43384         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43385         (qcopy_file_preserving): New declaration.
43386         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43387         copy_file_preserving. Change return type to 'int'. Don't emit an error
43388         message here.
43389         (copy_file_preserving): New function.
43390         * tests/test-copy-file.c: Include <stdlib.h>.
43391         (main): Test qcopy_file_preserving if the environment variable
43392         NO_STDERR_OUTPUT is set.
43393         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43394         with NO_STDERR_OUTPUT
43395         * tests/test-copy-file-2.sh: Likewise.
43397 2012-01-10  Bruno Haible  <bruno@clisp.org>
43399         copy-file: Use 'quote' module consistently.
43400         * lib/copy-file.c (copy_file_preserving): Use quote().
43402         copy-file: Refactor.
43403         * lib/copy-file.c: Include quote.h.
43404         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43405         message here.
43406         * modules/copy-file (Depends-on): Add quote.
43408         acl: Export qcopy_acl.
43409         * lib/acl.h (qcopy_acl): New declaration.
43410         * lib/copy-acl.c (qcopy_acl): Make non-static.
43412         acl: Rename a local variable.
43413         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43415         acl: Align return values of copy_acl and qcopy_acl.
43416         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43417         maybe < -1.
43419 2012-01-11  Eric Blake  <eblake@redhat.com>
43421         strptime: silence gcc warnings
43422         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43423         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43424         Reported by Daniel P. Berrange.
43426         inet_ntop: silence gcc warning
43427         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43428         Reported by Daniel P. Berrange.
43430 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43432         getloadavg test: skip the test on GNU/Linux without /proc mounted
43433         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43434         file.  When /proc is not mounted, it always fails with ENOENT.
43435         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43436         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43438 2012-01-10  Bruno Haible  <bruno@clisp.org>
43440         regex: Avoid link error on MSVC 9.
43441         * modules/regex (Depends-on): Add wctype.
43443 2012-01-10  Bruno Haible  <bruno@clisp.org>
43445         doc: Mention --with-tests option.
43446         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43447         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43448         --with-tests.
43449         Reported by Reuben Thomas.
43451 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
43453         users.txt: order package names lexicographically.
43454         * users.txt: Order package names lexicographically.
43456 2012-01-10  Jim Meyering  <meyering@redhat.com>
43458         maint.mk: fix description in comment
43459         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
43461         ignore-value: remove deprecated ignore_ptr function
43462         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
43463         * NEWS: Note this.
43465 2012-01-09  Jim Meyering  <meyering@redhat.com>
43467         test-init.sh: avoid a subshell
43468         * tests/test-init.sh: Remove protective subshell.
43469         Suggested by Bernhard Voelker.  While a subshell is normally
43470         required to protect against older shells (Solaris, FreeBSD) that
43471         warn about a missing program before performing redirection, the
43472         shell-selection tests performed by init.sh probably exclude any
43473         offending shell.
43475 2012-01-08  Bruno Haible  <bruno@clisp.org>
43477         setlocale tests: Avoid test failure on Solaris 11.0.
43478         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
43479         variable.
43481 2012-01-08  Bruno Haible  <bruno@clisp.org>
43483         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
43484         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43485         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43486         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
43487         macro.
43488         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
43489         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43490         * lib/spawn_faction_addopen.c: Add workaround implementation if
43491         HAVE_WORKING_POSIX_SPAWN.
43492         * modules/spawn (Makefile): Substitute
43493         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43494         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
43495         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
43496         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43497         (Depends-on): Update conditions.
43498         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43499         the Solaris 11 bug.
43501 2012-01-08  Bruno Haible  <bruno@clisp.org>
43503         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
43504         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43505         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43506         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
43507         macro.
43508         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
43509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43510         * lib/spawn_faction_adddup2.c: Add workaround implementation if
43511         HAVE_WORKING_POSIX_SPAWN.
43512         * modules/spawn (Makefile): Substitute
43513         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43514         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
43515         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
43516         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43517         (Depends-on): Update conditions.
43518         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43519         the Solaris 11 bug.
43521 2012-01-08  Bruno Haible  <bruno@clisp.org>
43523         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
43524         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43525         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43526         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
43527         HAVE_WORKING_POSIX_SPAWN.
43528         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
43529         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
43530         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43531         * lib/spawn_faction_addclose.c: Add workaround implementation if
43532         HAVE_WORKING_POSIX_SPAWN.
43533         * modules/spawn (Makefile): Substitute
43534         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43535         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
43536         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
43537         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43538         (Depends-on): Update conditions.
43539         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43540         the Solaris 11 bug.
43542 2012-01-08  Bruno Haible  <bruno@clisp.org>
43544         doc: Update for Solaris 11.0.
43545         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
43546         * m4/printf.m4: Update comments.
43548 2012-01-08  Bruno Haible  <bruno@clisp.org>
43550         mktime: Avoid compilation error on Solaris 11.
43551         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
43553 2012-01-08  Bruno Haible  <bruno@clisp.org>
43555         doc: Small fix.
43556         * doc/posix-headers/nl_types.texi: Correct platforms list.
43558 2012-01-08  Simon Josefsson  <simon@josefsson.org>
43560         Add lgpl-3.0 module.
43561         * MODULES.html.sh (Support for building documentation): Add
43562         lgpl-3.0.
43563         * modules/lgpl-3.0: New file.
43565 2012-01-08  Jim Meyering  <meyering@redhat.com>
43567         select.c: indent with spaces, not TABs
43568         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
43570 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43572         quotearg: do not use grave accent for left quote
43573         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
43574         locale_quoting_style.
43575         (quotearg_buffer_restyled): Fix example.
43576         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
43578 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43580         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
43581         Most programs do not have translation catalogs for English and much
43582         less separate catalogs for British and American English.  Drop the
43583         suggestion to translators about these two, and provide it
43584         automatically for Unicode locales.  Like most programs, even those
43585         using American English, we use single quotation marks.  This conflicts
43586         with the American typographic convention, but works better when you
43587         cite the entire error message within double quotes.  It also tries not
43588         to clash with established practice and with what non-gnulib programs
43589         will usually do.
43590         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43591         using an UTF-8 or GB-18030 locale.  The list of other locales with
43592         quotes was provided by Bruno Haible.
43593         (quotearg_buffer_restyled): Adjust instructions to translators.
43594         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43595         text, since this would be wrong when using Unicode.
43596         * modules/quotearg: Depend on c-strcaseeq.
43598 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43600         quotearg: fix Wikipedia link
43601         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
43603 2012-01-07  Simon Josefsson  <simon@josefsson.org>
43605         Fix for mingw with MSVC9.
43606         * m4/ld-version-script.m4: Check that compiler rejects version
43607         scripts with syntax errors.  Reported by Bruno Haible
43608         <bruno@clisp.org>.
43610 2012-01-06  Bruno Haible  <bruno@clisp.org>
43612         Talk about "native Windows API", not "Woe32".
43613         * lib/accept4.c: Update comments to mention native Windows.
43614         * lib/execute.c: Likewise.
43615         * lib/fatal-signal.c: Likewise.
43616         * lib/localcharset.c: Likewise.
43617         * lib/nanosleep.c: Likewise.
43618         * lib/nl_langinfo.c: Likewise.
43619         * lib/pclose.c: Likewise.
43620         * lib/pipe-filter-gi.c: Likewise.
43621         * lib/pipe-filter-ii.c: Likewise.
43622         * lib/pipe.c: Likewise.
43623         * lib/pipe2.c: Likewise.
43624         * lib/popen.c: Likewise.
43625         * lib/progreloc.c: Likewise.
43626         * lib/relocatable.c: Likewise.
43627         * lib/sigaction.c: Likewise.
43628         * lib/sigprocmask.c: Likewise.
43629         * lib/spawn-pipe.h: Likewise.
43630         * lib/spawn-pipe.c: Likewise.
43631         * lib/spawni.c: Likewise.
43632         * lib/stat-time.h: Likewise.
43633         * lib/w32spawn.h: Likewise.
43634         * tests/test-isatty.c: Likewise.
43635         * lib/config.charset: More comments.
43636         * doc/gnulib-intro.texi: Mention native Windows.
43637         * doc/posix-functions/_Exit_C99.texi: Likewise.
43638         * doc/posix-headers/fcntl.texi: Likewise.
43640 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
43642         argp: Avoid crash if translator uses % characters in a translation.
43643         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
43644         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43646 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
43648         doc: C11 and C++11 are now official
43649         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
43650         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
43651         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
43652         * modules/stdalign:
43653         Replace references to draft C1X to C11, and to draft C++0X to C++11.
43655 2012-01-06  Bruno Haible  <bruno@clisp.org>
43657         uc-is-grapheme-break tests: Tweak.
43658         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
43659         message.
43661 2012-01-06  Bruno Haible  <bruno@clisp.org>
43663         test-init.sh: correct the test for diff -u
43664         * tests/test-init.sh: Also redirect stdout to /dev/null.
43666 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43668         Use ', not `, for quoting output.
43669         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43670         (print_changelog_deltas, get_tool_versions, main program):
43671         * build-aux/git-version-gen:
43672         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43673         * build-aux/move-if-change (help):
43674         * build-aux/useless-if-before-free (usage, main program):
43675         * check-module (parse_module_file, usage)
43676         (find_included_lib_files, check_module):
43677         * lib/argmatch.c (main) [TEST]:
43678         * lib/argp-help.c (_help):
43679         * lib/getopt1.c (main) [TEST]:
43680         * lib/git-merge-changelog.c (usage):
43681         * lib/xstrtol-error.c (xstrtol_error):
43682         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43683         * m4/argz.m4 (gl_FUNC_ARGZ):
43684         * m4/bison.m4 (gl_BISON):
43685         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43686         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43687         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43688         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43689         * m4/gc-random.m4 (gl_GC_RANDOM):
43690         * m4/intl.m4 (gt_CHECK_DECL):
43691         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43692         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43693         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43694         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43695         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43696         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43697         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43698         * tests/test-dirname.c (main):
43699         * tests/test-getpass.c (main):
43700         * tests/test-iconvme.c (main):
43701         * tests/test-parse-datetime.c (LOG):
43702         * tests/test-xstrtoimax.sh:
43703         * tests/test-xstrtol.sh:
43704         * tests/test-xstrtoll.sh:
43705         * tests/test-xstrtoumax.sh:
43706         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43707         * top/GNUmakefile (abort-due-to-no-makefile):
43708         Quote 'like this', not `like this', as per the recent change to
43709         the GNU coding standards.
43711 2012-01-05  Bruno Haible  <bruno@clisp.org>
43713         strtoimax: Don't force a replacement on systems where intmax_t is int.
43714         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43715         'intmax_t' is not larger than 'int'.
43716         Reported by Pádraig Brady <P@draigBrady.com>.
43718 2012-01-05  Bruno Haible  <bruno@clisp.org>
43720         doc: Mention NetBSD bugs.
43721         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43722         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43724 2012-01-05  Bruno Haible  <bruno@clisp.org>
43726         strtoumax tests: Enhance tests.
43727         * tests/test-strtoumax.c (main): Add tests for large values.
43729 2012-01-05  Bruno Haible  <bruno@clisp.org>
43731         strtoimax: Work around AIX 5.1 bug.
43732         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43733         definition.
43734         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43735         Set HAVE_STRTOIMAX.
43736         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43737         REPLACE_STRTOIMAX.
43738         * modules/inttypes-incomplete (Makefile.am): Substitute
43739         REPLACE_STRTOIMAX.
43740         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43741         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43742         (Depends-on): Update conditions.
43743         * tests/test-strtoimax.c (main): Add tests for large values.
43744         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43746 2012-01-05  Bruno Haible  <bruno@clisp.org>
43748         inttypes: Modernize.
43749         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43750         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43751         (Makefile.am): Update inttypes.h rule.
43753 2012-01-05  Jim Meyering  <meyering@redhat.com>
43755         init.sh: don't waste a subshell just to redirect stderr
43756         * tests/init.sh: In testing for diff -u and diff -c, use a
43757         stderr-redirecting exec inside `...` rather than a subshell.
43759         test-init.sh: avoid failure on HP-UX 11.00
43760         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43761         resolves to diff -c or cmp.  Reported by Bruno Haible.
43763 2012-01-05  Bruno Haible  <bruno@clisp.org>
43765         Tests for module 'strtoull'.
43766         * modules/strtoull-tests: New file.
43767         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43769 2012-01-05  Bruno Haible  <bruno@clisp.org>
43771         Tests for module 'strtoll'.
43772         * modules/strtoll-tests: New file.
43773         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43775 2012-01-05  Bruno Haible  <bruno@clisp.org>
43777         Tests for module 'strtoul'.
43778         * modules/strtoul-tests: New file.
43779         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43781 2012-01-05  Bruno Haible  <bruno@clisp.org>
43783         Tests for module 'strtol'.
43784         * modules/strtol-tests: New file.
43785         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43787 2012-01-04  Jim Meyering  <meyering@redhat.com>
43789         test-init.sh: accommodate Solaris 5.10's different diff -u output
43790         * tests/test-init.sh: Also exempt @@ lines from the comparison
43791         of diff output, since Solaris 5.10 and GNU diff formats differ.
43792         Reported by Stefano Lattarini.
43794 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43796         test-posixtm: don't assume signed integer wraparound
43797         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43798         after signed integer overflow.  Inspired by (though it may not
43799         fix) Bruno Haible's bug report in
43800         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43802         Spell out "Windows 9x" and "Windows XP".
43803         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43804         "Windows 9x" and "WinXP" with "Windows XP".
43806 2012-01-04  Jim Meyering  <meyering@redhat.com>
43808         test-vc-list-files-cvs.sh: remove obsolete comment
43809         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43810         double exit.  Now that's all encapsulated via skip_ and Exit.
43812 2012-01-04  Bruno Haible  <bruno@clisp.org>
43814         Talk about "native Windows API", not "Win32".
43815         * lib/classpath.c: Update comments to mention native Windows.
43816         * lib/csharpexec.c: Likewise.
43817         * lib/dup2.c: Likewise.
43818         * lib/error.c: Likewise.
43819         * lib/fcntl.c: Likewise.
43820         * lib/filename.h: Likewise.
43821         * lib/findprog.c: Likewise.
43822         * lib/get-rusage-as.c: Likewise.
43823         * lib/get-rusage-data.c: Likewise.
43824         * lib/getpagesize.c: Likewise.
43825         * lib/javaexec.c: Likewise.
43826         * lib/msvc-inval.c: Likewise.
43827         * lib/msvc-nothrow.c: Likewise.
43828         * lib/nanosleep.c: Likewise.
43829         * lib/nonblocking.c: Likewise.
43830         * lib/printf-parse.c: Likewise.
43831         * lib/setlocale.c: Likewise.
43832         * lib/sigaction.c: Likewise.
43833         * lib/strerror_r.c: Likewise.
43834         * lib/tmpdir.c: Likewise.
43835         * lib/vasnprintf.c: Likewise.
43836         * lib/w32spawn.h: Likewise.
43837         * lib/waitpid.c: Likewise.
43838         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43839         * m4/locale-ar.m4: Likewise.
43840         * m4/locale-fr.m4: Likewise.
43841         * m4/locale-ja.m4: Likewise.
43842         * m4/locale-tr.m4: Likewise.
43843         * m4/locale-zh.m4: Likewise.
43844         * m4/printf.m4: Likewise.
43845         * tests/test-cloexec.c: Likewise.
43846         * tests/test-copy-acl.sh: Likewise.
43847         * tests/test-copy-file.sh: Likewise.
43848         * tests/test-file-has-acl.sh: Likewise.
43849         * tests/test-set-mode-acl.sh: Likewise.
43850         * tests/test-dup-safer.c: Likewise.
43851         * tests/test-dup2.c: Likewise.
43852         * tests/test-dup3.c: Likewise.
43853         * tests/test-fcntl.c: Likewise.
43854         * tests/test-nonblocking-pipe.h: Likewise.
43855         * tests/test-nonblocking-socket.h: Likewise.
43856         * tests/test-pipe.c: Likewise.
43857         * tests/test-pipe2.c: Likewise.
43858         * tests/test-spawn-pipe-child.c: Likewise.
43859         * doc/acl-resources.txt: Likewise.
43860         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43861         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43862         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43863         * lib/localcharset.c: Update comments to mention native Windows.
43864         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43865         * lib/localename.c: Likewise.
43866         * lib/progreloc.c: Likewise.
43867         * lib/relocatable.c: Likewise.
43868         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43869         (windows_compute_revents): Renamed from win32_compute_revents.
43870         (windows_compute_revents_socket): Renamed from
43871         win32_compute_revents_socket.
43872         * lib/select.c: Update comments to mention native Windows.
43873         (windows_poll_handle): Renamed from win32_poll_handle.
43874         * m4/threadlib.m4: Update comments to mention native Windows.
43875         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43876         --enable-threads=windows instead of --enable-threads=win32. Set
43877         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43878         * lib/glthread/lock.h: Update comments to mention native Windows.
43879         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43880         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43881         USE_WIN32_THREADS.
43882         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43883         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43884         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43885         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43886         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43887         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43888         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43889         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43890         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43891         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43892         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43893         * tests/test-tls.c: Likewise.
43894         Rationale:
43895         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43896         on both 32-bit and 64-bit Windows systems.
43897         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43898         line of distinction is between "native Windows" on one side and Unix/
43899         POSIX systems on the other side. More details in
43900         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43901         Suggested by Paul Eggert.
43903 2012-01-03  Bruno Haible  <bruno@clisp.org>
43905         isatty: Support for MSVC 9.
43906         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43907         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43908         (_isatty_nothrow): New function.
43909         (isatty): Use it instead of _isatty.
43910         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43911         * lib/poll.c (IsConsoleHandle): Likewise.
43912         * lib/select.c (IsConsoleHandle): Likewise.
43913         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43914         (gl_PREREQ_ISATTY): New macro.
43915         * modules/isatty (Depends-on): Add msvc-inval.
43916         (configure.ac): Invoke gl_PREREQ_ISATTY.
43918 2012-01-03  Jim Meyering  <meyering@redhat.com>
43920         maint.mk: remove temporary transition aid from over 1.5 years ago
43921         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43922         purpose was to aid in the transition (avoiding silent malfunction)
43923         from that old name to the new _sc_search_regexp.  This shim was
43924         added by commit 219c504b.
43926         init.sh: do not try to accommodate compare arguments starting with "-"
43927         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43928         compare arguments that start with "-".  Besides, we do not worry
43929         about this when invoking diff or cmp; why start now with sed?
43930         Using "--" to separate options from argument would trigger sed
43931         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43932         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43934 2012-01-02  Bruno Haible  <bruno@clisp.org>
43936         Enhance tests for module 'isatty'.
43937         * modules/isatty-tests (Depends-on): Add pipe-posix.
43938         * tests/test-isatty.c: Include <fcntl.h>.
43939         (DEV_NULL): New macro.
43940         (main): Test the resut of isatty() also on regular files, pipes, and
43941         /dev/null.
43943         New module 'isatty'.
43944         * lib/unistd.in.h (isatty): New declaration.
43945         * lib/isatty.c: New file, based on an idea of
43946         Bastien Roucariès <roucaries.bastien@gmail.com>.
43947         * m4/isatty.m4: New file.
43948         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43949         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43950         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43951         REPLACE_ISATTY.
43952         * modules/isatty: New file.
43953         * doc/posix-functions/isatty.texi: Mention the new module.
43954         Suggested by Paolo Bonzini.
43956 2012-01-02  Bruno Haible  <bruno@clisp.org>
43958         canonicalize: Tweak 2011-12-29 commit.
43959         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43960         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43962 2012-01-02  Jim Meyering  <meyering@redhat.com>
43964         gitlog-to-changelog: describe input syntax in --help output
43965         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43967         gitlog-to-changelog: fix typo in --help: show backslash before email @
43968         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43969         in sources, but not in actual output.
43971 2011-12-30  Jim Meyering  <meyering@redhat.com>
43973         gitlog-to-changelog: don't malfunction when name contains %-directive
43974         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43975         in a name string cause trouble.  E.g., with a user name of "%s",
43976         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43978 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43980         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43981         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43982         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43983         the "  (tiny change)" notation that is appended to the standard
43984         ChangeLog "date  name  email" header line.
43986 2012-01-01  Jim Meyering  <meyering@redhat.com>
43988         test-framework-sh: init.sh: fix "make dist" failure
43989         When using gnulib-tool's --with-tests option and any module that
43990         depends on test-framework-sh, "make dist" would fail due to the
43991         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43992         in the gltests directory, and not in the gllib/ directory.
43993         One way to work around that is to move the EXTRA_DIST += init.sh
43994         from the primary module to the -tests one:
43995         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43996         * modules/test-framework-sh (Makefile.am): ...not here.
43997         Reported by Tom G. Christensen in
43998         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
44000         version-etc: update copyright year reported by --version
44001         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
44003 2011-12-31  Pádraig Brady  <P@draigBrady.com>
44005         canonicalize: only stat() if required
44006         * lib/canonicalize.c (canonicalize_filename_mode):
44007         Avoid calling l?stat() when both CAN_MISSING,
44008         and CAN_NOLINKS are set, as we neither need
44009         to resolve symlinks or test component existence.
44011 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
44013         doc: cover st_ino issues once; add OpenVMS etc.
44014         * doc/posix-functions/stat.texi (stat):
44015         * doc/posix-functions/lstat.texi (lstat):
44016         * doc/posix-functions/fstatat.texi (fstatat):
44017         * doc/posix-functions/fstat.texi (fstat):
44018         Move general 'struct stat' stuff to sys_stat.texi,
44019         leaving behind a pointer.
44020         * doc/posix-headers/sys_stat.texi (sys/stat.h):
44021         Merge duplicate info about 'struct stat' problems into here.
44022         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
44023         and suggest partial workarounds.
44025         same-inode: port to OpenVMS
44026         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
44027         three st_ino values.
44029 2011-12-30  Pádraig Brady  <P@draigBrady.com>
44031         canonicalize: fix references to stat() and lstat()
44032         * lib/canonicalize.c (canonicalize_filename_mode):
44033         Ensure references always resolve to a replacement
44034         function if required (even via a macro).
44036 2011-12-30  Jim Meyering  <meyering@redhat.com>
44038         gitlog-to-changelog: remove a little duplication
44039         * build-aux/gitlog-to-changelog (main): Grep @lines once,
44040         rather than twice.
44042 2011-12-29  Pádraig Brady  <P@draigBrady.com>
44044         canonicalize: add support for not resolving symlinks
44045         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
44046         indicate we don't want to follow symlinks.  Also
44047         provide CAN_MODE_MASK to aid setting these existing
44048         mutually exclusive values.
44049         * lib/canonicalize.c (canonicalize_filename_mode):
44050         Extract the flags from can_mode parameter, which
44051         are currently just used to select between stat()
44052         and lstat().  Also ensure that mutually exclusive
44053         values are flagged immediately as invalid.
44054         * tests/test-canonicalize.c: Verify symlinks are
44055         not followed, and that invalid flag combinations
44056         are diagnosed.
44058 2011-12-25  Jim Meyering  <meyering@redhat.com>
44060         gitlog-to-changelog: do not clump multi-paragraph entries
44061         Identical header lines (date,name,email+coauthors) are suppressed,
44062         thus putting all entries with those same characteristics under
44063         a single header.  However, when a log entry consists of two or
44064         more paragraphs, it may not be clear where it starts and ends.
44065         This change makes it so that such an entry is always separated
44066         from others by a header line, even when that header would
44067         otherwise be suppressed.
44068         * build-aux/gitlog-to-changelog: Implement the above.
44069         Inspired by a related request from Stefano Lattarini in
44070         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
44072 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44074         announce-gen: fix `cmd' typo in diagnostic
44075         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
44076         diagnostic: a missing '$' meant that the command was not output.
44078 2011-12-23  Jim Meyering  <meyering@redhat.com>
44080         test-framework-sh: distribute init.sh
44081         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
44082         Otherwise, "make -C gnulib-tests check" (at least in grep) would
44083         fail due to the lack of init.sh.
44085         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
44086         * modules/atexit-tests: Rather than listing tests/init.sh,
44087         now that there's a module for it, simply depend on that new module.
44088         * modules/closein-tests: Likewise.
44089         * modules/exclude-tests: Likewise.
44090         * modules/getcwd-tests: Likewise.
44091         * modules/perror-tests: Likewise.
44092         * modules/pread-tests: Likewise.
44093         * modules/pwrite-tests: Likewise.
44094         * modules/vc-list-files-tests: Likewise.
44095         * modules/verify-tests: Likewise.
44096         * modules/xalloc-die-tests: Likewise.
44097         * modules/xstrtoimax-tests: Likewise.
44098         * modules/xstrtol-tests: Likewise.
44099         * modules/xstrtoll-tests: Likewise.
44100         * modules/xstrtoumax-tests: Likewise.
44101         * modules/yesno-tests: Likewise.
44103 2011-12-22  Jim Meyering  <meyering@redhat.com>
44105         test-framework-sh: add minimal tests of init.sh's compare function
44106         * modules/test-framework-sh-tests: New file.
44107         * tests/test-init.sh: New file.
44109         test-framework-sh: new module
44110         * modules/test-framework-sh: New file.
44111         * MODULES.html.sh (Support for maintaining and releasing projects):
44112         List it.
44114         init.sh: do not emit simulated diff output to stderr
44115         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
44117 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44119         .gitignore: ignore gnulib.dvi and regex.info
44120         * doc/.gitignore:add gnulib.dvi and regex.info
44122 2011-12-22  Jim Meyering  <meyering@redhat.com>
44124         init.sh: correct previous change
44125         * tests/init.sh (compare): My previous change was wrong.
44126         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
44128         init.sh: avoid unwarranted test failure when using "set -e"
44129         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
44130         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
44131         a use like "compare exp out" would get evoke an unconditional failure.
44133 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
44135         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
44136         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
44137         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
44138         autoreconf that did not.
44139         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
44140         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44142 2011-12-17  Jim Meyering  <meyering@redhat.com>
44144         bootstrap: remove some now-unneeded code
44145         This script arose back when gnulib-tool was young.
44146         Since then, it has seen improvements that render much of this
44147         script unnecessary.  In particular, it can now make symlinks
44148         to the files it uses.  Also, I no longer see as much value in
44149         marking files as read-only via comments.
44150         If you relied on the symlink-creation feature of the preceding
44151         version of this script, you can get most of that functionality
44152         by adding the --symlink option to the definition of
44153         gnulib_tool_option_extras in your bootstrap.conf file.
44154         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
44155         Run autopoint and libtoolize *before* gnulib-tool.
44156         After it, run an abbreviated autoreconf, rather than a loop around
44157         all tools.
44158         (slirp, bt_mark_as_generated): Remove functions.
44160 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44162         ftoastr: fix typo
44163         * lib/ftoastr.h: Fix misspelling in comment.
44165 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
44167         * top/README-release: fix punctuation.
44169 2011-12-17  Jim Meyering  <meyering@redhat.com>
44171         bootstrap: correct the recent buildreq change
44172         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44173         had no effect.
44174         * build-aux/bootstrap (buildreq): Bracket each search term with
44175         "*...*", so that the shell "case" statement works as intended.
44176         Add comments.
44178 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
44180         build: let bootstrap resort to wget when downloading .po files
44181         * build-aux/bootstrap (download_po_files): Fallback to wget when
44182         downloading the .po files via rsync fails.  This is necessary to
44183         bootstrap from behind a strict firewall.
44185 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44187         stdint: don't assume C++11 when compiling with g++
44188         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
44189         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
44190         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
44191         work also in C++ before C++11, as that improperly inhibits
44192         generating a substitute stdint.h for that case.
44194 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44196         alloca: protect comment from gnulib-tool
44197         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
44198         that gnulib-tool doesn't think it's a license, and munge it to
44199         say "GCC version 3".
44201 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
44203         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
44204         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
44205         $(abs_top_builddir) instead of $(top_builddir).
44207 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44209         strftime-tests: also test nanoseconds
44210         * tests/test-strftime.c (T): Add a test of %N.
44212 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
44214         inttypes, stdint: add C++11 support
44215         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
44216         when including inttypes.h and stdint.h.  Support this change to
44217         the standard.
44218         * doc/posix-headers/inttypes.texi (inttypes.h):
44219         * doc/posix-headers/stdint.texi (stdint.h): Document this.
44220         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44221         Define if not defined already, for the benefit of pre-C++11 hosts.
44222         Define the standard format macros (e.g., PRId8) always.
44223         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
44224         Likewise, if __cpluspus.  Define the standard constant and limit
44225         macros (e.g., INT8_C, INT8_MAX) always.
44226         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
44227         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
44228         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
44229         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
44230         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
44231         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
44232         Likewise.
44234 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44236         nonblocking tests: Fix test failure on Linux/PPC.
44237         Suggested by Prerna Saxena in
44238         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
44239         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
44240         Set to 1100000.
44242 2011-12-12  Jim Meyering  <meyering@redhat.com>
44244         argmatch: don't hard-code `' when listing valid option arguments
44245         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
44246         use the quote function to add quotes.  Use fputs rather than
44247         fprintf for the format string with no format directive.
44249 2011-12-07  Eric Blake  <eblake@redhat.com>
44251         bootstrap: detect tools required by gnulib-tool
44252         * build-aux/bootstrap (buildreq): Provide minimum implicit
44253         dependencies.
44254         * DEPENDENCIES: Mention patch as a prereq.
44256 2011-12-04  Bruno Haible  <bruno@clisp.org>
44258         sethostname: Port to Windows platforms.
44259         * lib/sethostname.c: Provide an alternate implementation for Windows
44260         platforms.
44261         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
44262         (main): Skip the test if sethostname() fails with EPERM. On Windows
44263         platforms, don't check the result of gethostname().
44265 2011-12-04  Bruno Haible  <bruno@clisp.org>
44266             Jim Meyering  <meyering@redhat.com>
44268         tests: Avoid spurious error message on platforms without mktemp program.
44269         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
44271 2011-12-04  Bruno Haible  <bruno@clisp.org>
44273         sethostname: Fix documentation.
44274         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
44275         "not fixed" section.
44277 2011-12-03  Bruno Haible  <bruno@clisp.org>
44279         gnulib-tool: Verify that the License field is present and non-empty.
44280         * gnulib-tool (func_get_license_raw): New function, extracted from
44281         func_get_license.
44282         (func_get_license): Use it. Warn if the module is not a test module and
44283         has no license.
44284         Suggested by Jim Meyering.
44286 2011-12-03  Bruno Haible  <bruno@clisp.org>
44288         sethostname tests: Fix link error on mingw.
44289         * tests/test-sethostname1.c: New file, extracted from
44290         tests/test-sethostname.c.
44291         * tests/test-sethostname2.c: New file, extracted from
44292         tests/test-sethostname.c.
44293         * tests/test-sethostname.c: Remove file.
44294         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
44295         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
44296         (Depends-on): Add gethostname.
44297         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
44298         Link the latter with $(GETHOSTNAME_LIB).
44300         sethostname tests: Fix compilation error on mingw.
44301         * tests/test-sethostname.c: Don't include <sys/types.h>.
44302         (geteuid): Use a dummy value without uid_t.
44303         * modules/sethostname-tests (Depends-on): Remove sys_types.
44305         sethostname tests: Avoid a gcc warning.
44306         * tests/test-sethostname.c (main): Remove an unused variable.
44308         Tweak last commit.
44309         * modules/sethostname-tests (Files): Sort by decreasing importance.
44310         (configure.ac): Check for geteuid.
44311         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
44312         the test when there's nothing to test. Drop an unnecessary cast.
44313         Improve an error message. Verify that the final sethostname() call
44314         succeeds.
44316 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44318         Add a test suite for the sethostname module.
44319         * modules/sethostname-tests: New file.  A test program
44320         for the sethostname module.
44321         * tests/test-sethostname.c: Likewise.
44323 2011-12-03  Bruno Haible  <bruno@clisp.org>
44325         Tweak last commit.
44326         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
44327         Fix preprocessor directives indentation. Fix typos.
44328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
44329         * modules/unistd (Makefile): Likewise.
44331 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44333         Integrate the sethostname module into unistd.
44334         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
44335         into the unistd.h header.
44336         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
44337         preprocessor directives.
44338         * modules/unistd: Setup the Makefile substitutions of the
44339         SETHOSTNAME preprocessor directives.
44341 2011-12-03  Bruno Haible  <bruno@clisp.org>
44343         Tweak last commit.
44344         * lib/sethostname.c: Don't include <string.h>.
44345         (sethostname): No need to copy the argument string to the stack. Don't
44346         call clearerr. Preserve errno when fprintf failed.
44347         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44348         Don't invoke AC_REPLACE_FUNCS.
44349         * modules/sethostname (Link): Remove empty section.
44350         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44351         failure problem.
44353 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44355         New module 'sethostname'.
44356         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44357         for systems that lack it.
44358         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44359         sethostname declaration and function.
44360         * modules/sethostname: New file.  Define the sethostname module.
44362 2011-12-03  Bruno Haible  <bruno@clisp.org>
44364         Tweak last commit.
44365         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44367 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44369         Split the HOST_NAME_MAX detection into a separate m4 macro.
44370         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44371         macro so it can be used by the pending sethostname module.
44373 2011-12-03  Bruno Haible  <bruno@clisp.org>
44375         Fix module descriptions syntax.
44376         * modules/argv-iter (License): Fix syntax.
44377         * modules/di-set (License): Likewise.
44378         * modules/ino-map (License): Likewise.
44379         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44381 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44383         stdalign: port to Clang 3.0
44384         Problem reported by Simon Josefsson in
44385         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44386         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44387         which has <stdalign.h> but which does not define alignof.
44388         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44390 2011-12-01  Eric Blake  <eblake@redhat.com>
44392         mktempd: silence dd usage
44393         * build-aux/mktempd (rand_bytes): Silence dd.
44395 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44397         manywarnings: Don't mention gcc version in docstring.
44398         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44399         Jim Meyering <meyering@redhat.com>.
44401 2011-11-30  Jim Meyering  <meyering@redhat.com>
44403         hash: mark a few floating point constants with "f" suffix
44404         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44405         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44406         floating point constants with "f", since they're destined to be
44407         saved/used as "float"s.
44409 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44411         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44412         * tests/test-float.c (test_long_double): Correct and re-enable the
44413         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44415 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44417         Avoid subtracting two pointers that don't point into the same block.
44418         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44419         only pointers into the same memory block are subtracted. We cannot
44420         assume that sizeof (ptrdiff_t) == sizeof (void *).
44422 2011-11-29  Eric Blake  <eblake@redhat.com>
44424         maint.mk: add syntax check for use of compare from init.sh
44425         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44426         moved here from coreutils.
44428         manywarnings: drop -Wunsuffixed-float-constants
44429         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44430         '1.0D', which is the only way to silence this warning for 'double'.
44432 2011-11-29  Jim Meyering  <meyering@redhat.com>
44434         hash: mark compute_bucket_size with the pure attribute
44435         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44437         quotearg, propername: correct pragma guard expression
44438         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44439         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44441 2011-11-28  Jim Meyering  <meyering@redhat.com>
44443         propername: do not mark proper_name with the const attribute
44444         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44445         since it examines data pointed to by its parameter.
44446         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44447         the suggestion from -Wsuggest-attribute=const.
44449         propername: mark one more function as const
44450         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44452 2011-11-27  Jim Meyering  <meyering@redhat.com>
44454         mark functions with const and pure attributes
44456         Mark functions per suggestions from gcc-4.6 when using these options:
44457         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
44458         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
44459         Follow these guidelines: when possible, apply the attribute to
44460         an extern declaration, not to its definition.  Apply it to the
44461         definition only when the definition is static.
44462         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
44463         * lib/argv-iter.h (argv_iter_n_args): Likewise.
44464         * lib/base64.h (isbase64): Likewise.
44465         * lib/basename-lgpl.c (last_component, base_len): Likewise.
44466         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
44467         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
44468         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44469         (c_tolower, c_toupper): Likewise.
44470         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
44471         * lib/chdir-long.c (find_non_slash): Likewise.
44472         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
44473         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
44474         * lib/file-type.h (file_type): Likewise.
44475         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
44476         * lib/filevercmp.c (verrevcmp): Likewise.
44477         * lib/freadahead.h (freadahead): Likewise.
44478         * lib/fts.c (fts_maxarglen): Likewise.
44479         * lib/hash-pjw.h (hash_pjw): Likewise.
44480         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
44481         * lib/hash.c (is_prime, next_prime): Likewise.
44482         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
44483         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
44484         (hash_table_ok, hash_get_first, hash_string): Likewise.
44485         (compute_bucket_size): Likewise.
44486         * lib/i-ring.h (i_ring_empty): Likewise.
44487         * lib/isnan.c (isnanl): Likewise.
44488         * lib/math.h (isnanl, rpl_isnanl): Likewise.
44489         * lib/memcasecmp.h (memcasecmp): Likewise.
44490         * lib/memchr2.h (memchr2): Likewise.
44491         * lib/memcmp2.h (memcmp2): Likewise.
44492         * lib/parse-datetime.y (lookup_zone): Likewise.
44493         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
44494         [!WINDOWS_SOCKETS]: Likewise.
44495         * lib/strnlen1.h (strnlen1): Likewise.
44496         * lib/uniwidth.in.h (uc_width): Likewise.
44497         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
44498         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
44499         (quoting_options_from_style): Add a comment.
44500         * lib/propername.h (proper_name): Add a comment.
44502 2011-11-27  Bruno Haible  <bruno@clisp.org>
44504         Remove unused macros from !_LIBC code in glibc-borrowed files.
44505         * lib/fnmatch.c (STRCOLL): Remove macro.
44506         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
44507         * lib/glob.c (__stat, __readdir64): Remove macros.
44508         * lib/tempname.c (__open64, __xstat64): Remove macros.
44509         Suggested by Paul Eggert.
44511 2011-11-27  Bruno Haible  <bruno@clisp.org>
44513         getcwd: Fix link error on MSVC 9.
44514         * modules/getcwd (Depends-on): Add readdir, rewinddir.
44516 2011-11-27  Bruno Haible  <bruno@clisp.org>
44518         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
44519         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
44520         HAVE_OPENDIR is 0.
44521         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
44522         HAVE_CLOSEDIR is 0.
44523         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
44524         is 0.
44525         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
44527 2011-11-27  Bruno Haible  <bruno@clisp.org>
44529         getcwd: Fix bug from 2011-08-17.
44530         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
44531         platforms that need it.
44532         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
44533         code of 4 to be a failure, not a success. This ensures that
44534         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
44536 2011-11-27  Bruno Haible  <bruno@clisp.org>
44538         binary-io tests: Avoid test failure on mingw when libtool is used.
44539         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
44540         Don't verify the size of t-bin-out1.tmp here.
44541         * tests/test-binary-io.sh: Verify it here.
44542         Reported by Simon Josefsson.
44544 2011-11-26  Bruno Haible  <bruno@clisp.org>
44546         Fix conflict between two instantiations of module 'unistd'.
44547         * gnulib-tool (func_emit_autoconf_snippet): Substitute
44548         ${include_guard_prefix} also in the autoconf snippet.
44549         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
44550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
44551         GNULIB_UNISTD_H_GETOPT.
44552         * modules/getopt-posix (configure.ac): Set the
44553         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
44554         * modules/getopt-gnu (configure.ac): Likewise.
44555         * modules/unistd (Makefile.am): Change the substitution value of
44556         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
44557         Reported by Simon Josefsson.
44559 2011-11-25  Bruno Haible  <bruno@clisp.org>
44561         pagealign_alloc: Doc and comments.
44562         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
44563         module.
44564         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
44566 2011-11-25  Jim Meyering  <meyering@redhat.com>
44568         test-update-copyright.sh: avoid false-positive failure
44569         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44570         around false positive failure on Cygwin/Windows.  The latter was
44571         matching erroneously-created files with names like
44572         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
44574 2011-11-25  Simon Josefsson  <simon@josefsson.org>
44576         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
44577         * m4/valgrind-tests.m4: Check that the parameters that will be
44578         used works, not just a subset of them.  Reported by Bruno Haible
44579         <bruno@clisp.org>.
44581 2011-11-24  Jim Meyering  <meyering@redhat.com>
44583         test-stdalign.c: comment out long double tests
44584         * tests/test-stdalign.c: Don't try to reduce alignment of long double
44585         variables.  That provokes errors like this from gcc-4.7.0 20111124:
44586         error: '_Alignas' specifiers cannot reduce alignment of \
44587         'static_longdouble_alignas'.
44589 2011-11-22  Jim Meyering  <meyering@redhat.com>
44591         init.sh: make "compare /dev/null FILE" output more readable
44592         * tests/init.sh (compare_): Document the preferred order of arguments.
44593         (emit_diff_u_header_): New function.
44594         (compare_dev_null_): Emit a simulated diff, rather than just the
44595         contents of the unexpected file.  Suggestion from Bruno Haible.
44597 2011-11-21  Jim Meyering  <meyering@redhat.com>
44598             Eric Blake  <eblake@redhat.com>
44600         init.sh: work around OSF/1 5.1's mishandling of /dev/null
44601         * tests/init.sh: Make our compare function slightly more portable.
44602         Reported by Bruno Haible in
44603         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
44605 2011-11-21  Simon Josefsson  <simon@josefsson.org>
44607         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
44608         before using it, in code that ends up in config.h.
44610 2011-11-20  Bruno Haible  <bruno@clisp.org>
44612         getcwd: Work around getcwd bug on AIX 5..7.
44613         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
44614         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
44615         Use a different value for gl_cv_func_getcwd_path_max. Move the
44616         definition of HAVE_PARTLY_WORKING_GETCWD from here...
44617         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
44618         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
44619         Define HAVE_MINIMALLY_WORKING_GETCWD.
44620         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
44621         where it is not even minimally working, that is, on AIX.
44622         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
44623         m4/getcwd-path-max.m4.
44624         (main): Update exit code computation.
44625         * doc/posix-functions/getcwd.texi: Mention list of platforms where
44626         getcwd does not handle long file names.
44628 2011-11-20  Bruno Haible  <bruno@clisp.org>
44630         getcwd: Fix bug from 2009-09-10.
44631         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
44632         like "no".
44634 2011-11-20  Simon Josefsson  <simon@josefsson.org>
44636         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
44638 2011-11-20  Bruno Haible  <bruno@clisp.org>
44640         fma tests: Avoid shadowing local variables.
44641         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
44642         expected.
44644 2011-11-20  Bruno Haible  <bruno@clisp.org>
44646         copysignf tests: Fix.
44647         * tests/test-copysignf.c: Fix signature check.
44649 2011-11-20  Bruno Haible  <bruno@clisp.org>
44651         fma: Remove unused code.
44652         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44653         unused macros.
44655 2011-11-20  Bruno Haible  <bruno@clisp.org>
44657         sethostname: Fix doc about AIX.
44658         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
44659         sethostname; it has it.
44661         sethostname: Mention more portability problems.
44662         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44663         problem.
44664         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44666 2011-11-19  Bruno Haible  <bruno@clisp.org>
44668         Depend on module fcntl-h when AT_FDCWD is used.
44669         * modules/utimens (Depends-on): Add fcntl-h.
44670         * modules/areadlinkat (Depends-on): Likewise.
44671         * modules/areadlinkat-with-size (Depends-on): Likewise.
44672         * modules/faccessat (Depends-on): Likewise.
44673         * modules/fchmodat (Depends-on): Likewise.
44674         * modules/fchownat (Depends-on): Likewise.
44675         * modules/getcwd (Depends-on): Likewise.
44676         * modules/mkdirat (Depends-on): Likewise.
44677         * modules/mkfifoat (Depends-on): Likewise.
44678         * modules/readlinkat (Depends-on): Likewise.
44679         * modules/symlinkat (Depends-on): Likewise.
44680         * modules/dup2-tests (Depends-on): Likewise.
44681         * modules/fdutimensat-tests (Depends-on): Likewise.
44682         * modules/futimens-tests (Depends-on): Likewise.
44684 2011-11-19  Bruno Haible  <bruno@clisp.org>
44686         euidaccess: Update a comment.
44687         * lib/euidaccess.c: Update comment about platforms with faccessat.
44689 2011-11-19  Bruno Haible  <bruno@clisp.org>
44691         openat: Fix file list.
44692         * modules/openat (Files): Remove lib/at-func.c.
44694 2011-11-19  Bruno Haible  <bruno@clisp.org>
44696         fstatat: Simplify.
44697         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44698         gnulib should define rpl_fstatat, there is a
44699         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44701 2011-11-19  Bruno Haible  <bruno@clisp.org>
44703         Ensure 'inline' can be used in tests/test-utimens-common.h.
44704         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44705         * modules/futimens-tests (configure.ac): Likewise.
44706         * modules/utimens-tests (configure.ac): Likewise.
44707         * modules/utimensat-tests (configure.ac): Likewise.
44709 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44711         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44712         not hash_insert0.
44713         (hash_insert_if_absent): Doc fix.
44715 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44717         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44719 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44721         test-getcwd: disambiguate exit status
44722         * tests/test-getcwd.c (test_long_name): Return 0..7.
44723         (main): Exit with an unambiguous exit status.  The old
44724         code yielded a mysterious mixture of two failure codes.
44726         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44727         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44728         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44729         rpl_fstatat or fstatat.  This should fix the other problem
44730         reported by Kai Habel in
44731         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44732         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44733         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44734         and I reproduced it on a Solaris 8 host we still have in production.
44736 2011-11-18  Jim Meyering  <meyering@redhat.com>
44738         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44739         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44740         Add a sentence to the comment.
44741         (hash_insert0): New function that simply calls hash_insert_if_absent.
44742         * lib/hash.h (hash_insert_if_absent): Declare it.
44743         (hash_insert0): Add deprecation attribute.
44744         (_GL_ATTRIBUTE_DEPRECATED): Define.
44745         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44746         not hash_insert0.
44747         * NEWS: Mention it, even though it's not really an incompatible change.
44749 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44751         openat: avoid compilation failure due to lack of <errno.h> inclusion
44752         * lib/openat.c: Include <errno.h>.
44754 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44756         * modules/getcwd (Depends-on): Add fdopendir.
44757         This fixes one of the two problems reported by Kai Habel in
44758         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44760         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44761         stdalign problem reported by Ian Beckwith in
44762         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44763         * modules/crypto/gc-arcfour (Depends-on):
44764         Depend conditionally on crypto/arcfour.
44765         * modules/crypto/gc-arctwo (Depends-on):
44766         Depend conditionally on crypto/arctwo.
44767         * modules/crypto/gc-des (Depends-on):
44768         Depend conditionally on crypto/des.
44769         * modules/crypto/gc-hmac-md5 (Depends-on):
44770         Depend conditionally on crypto/hmac-md5.
44771         * modules/crypto/gc-hmac-sha1 (Depends-on):
44772         Depend conditionally on crypto/hmac-sha1.
44773         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44774         * modules/crypto/gc-md4 (Depends-on):
44775         Depend conditionally on crypto/md4.
44776         * modules/crypto/gc-md5 (Depends-on):
44777         Depend conditionally on crypto/md5.
44778         * modules/crypto/gc-rijndael (Depends-on):
44779         Depend conditionally on crypto/rijndael.
44780         * modules/crypto/gc-sha1 (Depends-on):
44781         Depend conditionally on crypto/sha1.
44782         * modules/crypto/gc-arcfour:
44783         * modules/crypto/gc-arctwo:
44784         * modules/crypto/gc-des:
44785         * modules/crypto/gc-hmac-md5:
44786         * modules/crypto/gc-hmac-sha1:
44787         * modules/crypto/gc-md2:
44788         * modules/crypto/gc-md4:
44789         * modules/crypto/gc-md5:
44790         * modules/crypto/gc-rijndael:
44791         * modules/crypto/gc-sha1:
44792         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44793         now that the conditional dependencies do the work for us.
44795 2011-11-17  Jim Meyering  <meyering@redhat.com>
44797         tests: factor st_ctime-comparison out of two headers
44798         * tests/test-utimens-common.h (ctime_compare): Define.
44799         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44800         * tests/test-lutimens.h (test_lutimens): Likewise.
44801         * tests/test-utimens.h (test_utimens): Likewise.
44803         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44804         Invoke the test program via an init.sh-using wrapper.
44805         * tests/test-getcwd.sh: New file.
44806         * modules/getcwd-tests (Files): Add it.
44807         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44809 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44811         gitlog-to-changelog: support multi-author commits.
44812         The FSF cares about keeping track of all authors of patches to its
44813         projects, but Git doesn't provide obvious support for multi-author
44814         changesets. Consensus seems to be forming around the use of extra
44815         Signed-off-by inspired lines in the log message formatted as
44816         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44817         multi-author commits between version control systems.
44818         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44819         log message and output in standard ChangeLog multi-author format.
44820         Reported by Peter Rosin <peda@lysator.liu.se>
44822 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44823             Bruno Haible  <bruno@clisp.org>
44825         Fix some modules' file list.
44826         * modules/fstatat (Files): Add m4/lstat.m4.
44827         * modules/openat (Files): Likewise.
44828         * modules/unlinkat (Files): Likewise.
44830 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44832         maint.mk: fix tight-scope.mk generation in VPATH builds.
44833         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44834         reference with $(srcdir) so that the file is found correctly even
44835         when running `make syntax-check' in a VPATH build.
44837 2011-11-13  Bruno Haible  <bruno@clisp.org>
44838             Jim Meyering  <meyering@redhat.com>
44840         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44841         * tests/init.sh (compare): Remove "No differences encountered" or
44842         synonymous output from the 'diff' program.
44844 2011-11-13  Bruno Haible  <bruno@clisp.org>
44846         Makefile: Tweak indentation.
44847         * Makefile: Use tab as first character in every line that contains rule
44848         commands.
44850 2011-11-13  Bruno Haible  <bruno@clisp.org>
44852         Syntax check for copyright statements.
44853         * check-copyright: New file.
44854         * Makefile (sc_check_copyright): New rule.
44856 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44858         * build-aux/git-version-gen: Add --prefix to configure the tag
44859         match string.
44861 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44863         * build-aux/git-version-gen: Add --help and --version.
44865 2011-11-12  Jim Meyering  <meyering@redhat.com>
44867         revamp the other test-exclude?.sh scripts to use init.sh, too
44868         * tests/test-exclude1.sh: Use init.sh.
44869         * tests/test-exclude2.sh: Likewise.
44870         * tests/test-exclude3.sh: Likewise.
44871         * tests/test-exclude4.sh: Likewise.
44872         * tests/test-exclude5.sh: Likewise.
44873         * tests/test-exclude6.sh: Likewise.
44874         * tests/test-exclude7.sh: Likewise.
44875         * tests/test-exclude8.sh: Likewise.
44876         * modules/exclude-tests (Files): List init.sh.
44878         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44879         These shell scripts ignored failure of the binary test-exclude,
44880         so making the latter return 77 didn't cause them to be skipped.
44881         * tests/test-exclude5.sh: Exit with test-exclude's error status
44882         when that program fails.  Revamp to use init.sh.
44883         * tests/test-exclude2.sh: Likewise.
44885         test-exclude: fix a typo
44886         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44888 2011-11-11  Bruno Haible  <bruno@clisp.org>
44890         obstack: Fix compilation error on MSVC 9.
44891         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44893 2011-11-11  Jim Meyering  <meyering@redhat.com>
44895         test-exclude: skip tests rather than failing on deficient systems
44896         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44897         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44898         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44899         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44901 2011-11-10  Bruno Haible  <bruno@clisp.org>
44903         ptsname_r test: Avoid gcc warning on glibc systems.
44904         * tests/test-ptsname_r.c (null_ptr): New function.
44905         (test_errors): Use it.
44907 2011-11-10  Bruno Haible  <bruno@clisp.org>
44909         ptsname_r: Avoid compilation error on OSF/1 5.1.
44910         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44912         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44913         function is not declared or incompatibly declared.
44914         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44915         * modules/ptsname_r (Depends-on, configure.ac): Update.
44916         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44918 2011-11-10  Bruno Haible  <bruno@clisp.org>
44920         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44921         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44922         When cross-compiling, guess yes on all platforms except AIX.
44923         Reported by Ludovic Courtès <ludo@gnu.org>.
44925 2011-11-09  Bruno Haible  <bruno@clisp.org>
44927         ptsname_r tests: Fix bugs.
44928         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44929         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44931 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44933         fstatat: work with cross-compilation
44934         Problem reported by Ludovic Courtès in
44935         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44936         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44937         "cross-compiling" and assume the bug is present.  Replace
44938         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44939         an inverted sense, to be more conservative about our assumptions.
44940         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44942 2011-11-09  Bruno Haible  <bruno@clisp.org>
44944         Improve MODULES.html output.
44945         * modules/mkfifoat (Description): Use the word "function".
44946         * modules/readlinkat (Description): Likewise.
44947         * modules/symlinkat (Description): Likewise.
44949 2011-11-09  Eric Blake  <eblake@redhat.com>
44951         ptsname_r-tests: new test module
44952         * modules/ptsname_r-tests: New module.
44953         * tests/test-ptsname_r.c: New file.
44955         ptsname_r: new module
44956         * modules/ptsname_r: New module.
44957         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44958         * lib/ptsname.c (__ptsname_r): Split...
44959         * lib/ptsname_r.c: ...into new file.
44960         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44961         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44962         * modules/stdlib (Makefile.am): Substitute witnesses.
44963         * lib/stdlib.in.h (ptsname_r): Declare it.
44964         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44965         * MODULES.html.sh (Misc): Likewise.
44966         * modules/ptsname (Depends-on): Alter dependency.
44967         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44969 2011-11-09  Jim Meyering  <meyering@redhat.com>
44971         announce-gen: be more concise when there's only one URL+tarball
44972         * build-aux/announce-gen (get_tool_versions): When you distribute
44973         only one type of tarball, combine the first two "Here are..."
44974         sections and make the key-checking grammar independent of
44975         how many tarballs there are.
44977 2011-11-09  Eric Blake  <eblake@redhat.com>
44979         openpty: provide a stub on mingw
44980         * lib/pty.in.h (includes): Provide forward declarations.
44981         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44983         raise: fix mingw handling of SIGPIPE
44984         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44986 2011-11-08  Bruno Haible  <bruno@clisp.org>
44988         More conditional dependencies.
44989         * modules/faccessat (Depends-on): Add conditions.
44990         * modules/fchmodat (Depends-on): Likewise.
44991         * modules/fchownat (Depends-on): Likewise.
44992         * modules/fstatat (Depends-on): Likewise.
44993         * modules/mkfifoat (Depends-on): Likewise.
44994         * modules/readlinkat (Depends-on): Likewise.
44995         * modules/symlinkat (Depends-on): Likewise.
44996         * modules/unlinkat (Depends-on): Likewise.
44997         * modules/utimensat (Depends-on): Likewise.
44998         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44999         * modules/linkat (Depends-on): Refine the conditions.
45000         * modules/renameat (Depends-on): Likewise.
45002 2011-11-08  Bruno Haible  <bruno@clisp.org>
45004         faccessat: Move AC_LIBOBJ invocation to module description.
45005         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
45006         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
45007         invocation from here...
45008         * modules/faccessat (configure.ac): ... to here. Invoke
45009         gl_PREREQ_FACCESSAT.
45011 2011-11-08  Bruno Haible  <bruno@clisp.org>
45013         faccessat: Simplify autoconf macro.
45014         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
45015         gl_FUNC_EUIDACCESS.
45017 2011-11-08  Bruno Haible  <bruno@clisp.org>
45019         renameat: Fix dependencies.
45020         * modules/renameat (Depends-on): Add stdbool.
45022 2011-11-08  Bruno Haible  <bruno@clisp.org>
45024         mkfifoat: Fix module description.
45025         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
45026         not gl_UNISTD_MODULE_INDICATOR.
45028 2011-11-08  Bruno Haible  <bruno@clisp.org>
45030         fstatat: Remove unused dependency.
45031         * modules/fstatat (Depends-on): Remove fstat.
45033 2011-11-08  Simon Josefsson  <simon@josefsson.org>
45035         GNUmakefile: behave when Makefile is missing.
45036         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
45038 2011-11-08  Bruno Haible  <bruno@clisp.org>
45040         openat: Conditionalize dependencies.
45041         * lib/openat.c: Reduce the scope of some #includes.
45042         * modules/openat (Depends-on): Add conditions.
45044 2011-11-07  Jim Meyering  <meyering@redhat.com>
45046         maint.mk: extract GPG key ID without using a temporary file
45047         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
45048         without using a temporary file.  Based on a suggestion from Werner Koch
45049         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
45051 2011-11-07  Eric Blake  <eblake@redhat.com>
45053         grantpt: fix typo
45054         * lib/stdlib.in.h (grantpt): Check correct function.
45056         maint.mk: silence new syntax check
45057         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
45059 2011-11-06  Bruno Haible  <bruno@clisp.org>
45061         Doc about floating-point and math API.
45062         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
45063         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
45065 2011-11-06  Bruno Haible  <bruno@clisp.org>
45067         stdalign tests: Skip the test when compiled by Sun C.
45068         * tests/test-stdalign.c (main): Skip the test on Sun C.
45070 2011-11-06  Bruno Haible  <bruno@clisp.org>
45072         ansi-c++-opt: Complete the 2011-06-05 change.
45073         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
45074         does not support namespaces, set the variable to "no", not to ":".
45076 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45078         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
45080 2011-11-06  Bruno Haible  <bruno@clisp.org>
45082         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
45083         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
45084         (minus_zerol) [HP-UX]: New macro.
45085         (unary_minus) [HP-UX]: New function.
45086         (copysignl) [HP-UX]: Use unary_minus function.
45088 2011-11-06  Bruno Haible  <bruno@clisp.org>
45090         ldexp, ldexpf, ldexpl: Enhance tests.
45091         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
45092         and tests/test-ldexpl.c.
45093         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
45094         LDEXP, MIN_EXP, MAX_EXP): New macros.
45095         Include test-ldexp.h.
45096         (main): Just call test_function.
45097         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
45098         infinity.h, nan.h.
45099         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45100         MAX_EXP): New macros.
45101         Include test-ldexp.h.
45102         (x, y): Remove variables.
45103         (main): Just call test_function.
45104         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
45105         infinity.h, nan.h.
45106         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45107         MAX_EXP): New macros.
45108         Include test-ldexp.h.
45109         (x, y): Remove variables.
45110         (main): Just call test_function.
45111         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
45112         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
45113         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45114         (Depends-on): Add isnand-nolibm, signbit, float.
45115         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
45116         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45117         (Depends-on): Add isnanf-nolibm, signbit, float.
45119 2011-11-06  Bruno Haible  <bruno@clisp.org>
45121         math tests: Cosmetics.
45122         * tests/test-math-c++.cc: Reorder declarations.
45124 2011-11-05  Bruno Haible  <bruno@clisp.org>
45126         fma*: Simplify test.
45127         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
45128         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
45130         Tests for module 'fmal'.
45131         * modules/fmal-tests: New file.
45132         * tests/test-fmal1.c: New file.
45133         * tests/test-fmal2.c: New file.
45135         New module 'fmal'.
45136         * lib/math.in.h (fmal): New declaration.
45137         * lib/fmal.c: New file.
45138         * m4/fmal.m4: New file.
45139         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
45140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
45141         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
45142         REPLACE_FMAL.
45143         * modules/fmal: New file.
45144         * doc/posix-functions/fmal.texi: Mention the new module and the various
45145         bugs.
45147         Tests for module 'fmaf'.
45148         * modules/fmaf-tests: New file.
45149         * tests/test-fmaf1.c: New file.
45150         * tests/test-fmaf2.c: New file.
45152         New module 'fmaf'.
45153         * lib/math.in.h (fmaf): New declaration.
45154         * lib/fmaf.c: New file.
45155         * m4/fmaf.m4: New file.
45156         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
45157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
45158         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
45159         REPLACE_FMAF.
45160         * modules/fmaf: New file.
45161         * doc/posix-functions/fmaf.texi: Mention the new module and the various
45162         bugs.
45164         Tests for module 'fma'.
45165         * modules/fma-tests: New file.
45166         * tests/test-fma1.c: New file.
45167         * tests/test-fma1.h: New file.
45168         * tests/test-fma2.c: New file.
45169         * tests/test-fma2.h: New file.
45171         New module 'fma'.
45172         * lib/math.in.h (fma): New declaration.
45173         * lib/fma.c: New file.
45174         * m4/fma.m4: New file.
45175         * m4/fegetround.m4: New file.
45176         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
45177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
45178         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
45179         REPLACE_FMA.
45180         * modules/fma: New file.
45181         * doc/posix-functions/fma.texi: Mention the new module and the various
45182         bugs.
45184         Extend gl_MATHFUNC.
45185         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
45186         Support 'void' as argument type.
45187         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
45189 2011-11-05  Jim Meyering  <meyering@redhat.com>
45191         maint.mk: also prohibit inclusion of dirent.h without use
45192         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
45194 2011-11-05  Bruno Haible  <bruno@clisp.org>
45196         ldexpl tests: Avoid test failure on MSVC 9.
45197         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
45198         value. Needed in order to enforce the conversion from a value greater
45199         than LDBL_MAX to Infinity.
45201 2011-11-05  Bruno Haible  <bruno@clisp.org>
45203         New modules 'at-internal', 'openat-h', split off from module 'openat'.
45204         * modules/at-internal: New file, extracted from modules/openat.
45205         * modules/openat-h: New file.
45206         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
45207         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
45208         * modules/openat (Description): Add reference to POSIX function.
45209         (Files): Remove lib/openat.h, lib/openat-proc.c.
45210         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
45211         intprops, unistd.
45212         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
45213         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
45214         gl_FCNTL_MODULE_INDICATOR.
45215         (Include): Remove unistd.h, openat.h.
45216         * modules/areadlinkat (Files): Add lib/at-func.c.
45217         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45218         openat-die, openat-h, save-cwd.
45219         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
45220         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45221         openat-die, openat-h, save-cwd, unistd.
45222         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
45223         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45224         openat-h, save-cwd. Remove fcntl-h, openat.
45225         * modules/fchmodat (Files): Remove lib/openat.h.
45226         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45227         openat, stdbool, unistd.
45228         * modules/fchownat (Files): Remove lib/openat.h.
45229         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45230         openat, stdbool, sys_stat.
45231         * modules/fdopendir (Files): Remove lib/openat-priv.h,
45232         lib/openat-proc.c.
45233         (Depends-on): Add at-internal.
45234         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
45235         * modules/fstatat (Files): Remove lib/openat.h.
45236         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45237         stdbool, unistd.
45238         * modules/fts (Depends-on): Add openat-h.
45239         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
45240         openat.
45241         * modules/mkdirat (Files): Remove lib/openat.h.
45242         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45243         openat, stdbool, sys_stat.
45244         * modules/mkfifoat (Files): Add lib/at-func.c.
45245         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45246         openat-h, save-cwd. Remove fcntl-h, openat.
45247         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
45248         * modules/readlinkat (Files): Add lib/at-func.c.
45249         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45250         openat-h, save-cwd. Remove fcntl-h, openat.
45251         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
45252         openat.
45253         * modules/selinux-at (Files): Add lib/at-func.c.
45254         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45255         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
45256         * modules/symlinkat (Files): Add lib/at-func.c.
45257         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45258         openat-h, save-cwd. Remove fcntl-h, openat.
45259         * modules/unlinkat (Files): Remove lib/openat.h.
45260         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45261         stdbool.
45262         * modules/utimensat (Files): Add lib/at-func.c.
45263         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
45264         openat-die, openat-h, save-cwd.
45265         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
45266         * modules/fdutimensat-tests (Depends-on): Add openat.
45267         * modules/fstatat-tests (Depends-on): Add openat-h.
45268         * modules/readlinkat-tests (Depends-on): Add openat.
45269         * modules/symlinkat-tests (Depends-on): Add openat.
45271 2011-11-05  Bruno Haible  <bruno@clisp.org>
45273         openat: Include <stdbool.h>.
45274         * lib/openat.c: Include <stdbool.h>.
45276 2011-11-04  Bruno Haible  <bruno@clisp.org>
45278         fchownat, renameat, unlinkat: Fix dependencies.
45279         * modules/fchownat (Depends-on): Add fstatat.
45280         * modules/renameat (Depends-on): Likewise.
45281         * modules/unlinkat (Depends-on): Likewise.
45283 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
45285         openat: remove direct dependency on dirent
45286         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
45287         and hasn't been needed ever since fdopendir was split into its own
45288         module on 2009-08-31.
45289         * modules/openat (Depends-on): Remove dirent.
45291 2011-11-04  Bruno Haible  <bruno@clisp.org>
45293         renameat: Optimize code size.
45294         * modules/renameat (configure.ac): Don't compile at-func2.c if
45295         REPLACE_RENAMEAT is 1.
45297 2011-11-04  Bruno Haible  <bruno@clisp.org>
45299         openat tests: Fix file list.
45300         * modules/openat-tests (Files): Add tests/test-open.h.
45302 2011-11-04  Bruno Haible  <bruno@clisp.org>
45304         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
45305         * modules/fchmodat (Depends-on): Add openat-die.
45306         * modules/fchownat (Depends-on): Likewise.
45307         * modules/linkat (Depends-on): Likewise.
45308         * modules/renameat (Depends-on): Likewise.
45309         * modules/openat (Depends-on): Add dirent.
45311 2011-11-04  Jim Meyering  <meyering@redhat.com>
45313         at-func*.c: fix comments
45314         * lib/at-func2.c: Correct/improve first-line comment.
45315         * lib/at-func.c: Correct grammar in first-line comment.
45317 2011-11-04  Bruno Haible  <bruno@clisp.org>
45319         New module 'mkdirat', split off from module 'openat'.
45320         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
45321         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
45322         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
45323         * modules/mkdirat: New file, extracted from modules/openat.
45324         * modules/openat (Files): Remove lib/mkdirat.c.
45325         (Depends-on): Remove mkdir.
45326         (configure.ac): Remove AC_LIBOBJ of mkdirat.
45327         (Include): Remove <sys/stat.h>.
45328         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
45329         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
45330         tests/test-mkdir.h.
45331         (Depends-on): Remove ignore-value.
45332         (Makefile.am): Remove rules for test-mkdirat.
45333         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
45334         of module 'openat'.
45335         * NEWS: Mention the change.
45337 2011-11-04  Bruno Haible  <bruno@clisp.org>
45339         closedir: Avoid warning on mingw.
45340         * lib/closedir.c: Include <unistd.h>.
45342 2011-11-04  Bruno Haible  <bruno@clisp.org>
45344         New module 'fstatat', split off from module 'openat'.
45345         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45346         defined.
45347         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45348         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45349         gl_FUNC_FSTATAT.
45350         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45351         * modules/fstatat: New file, extracted from modules/openat.
45352         * modules/openat (Files): Remove lib/fstatat.c.
45353         (Depends-on): Remove lstat.
45354         (configure.ac): Remove AC_LIBOBJ of fstatat.
45355         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45356         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45357         tests/test-lstat.h, tests/test-stat.h.
45358         (Depends-on): Remove getcwd-lgpl.
45359         (Makefile.am): Remove rules for test-fstatat.
45360         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45361         of module 'openat'.
45362         * NEWS: Mention the change.
45363         * modules/getcwd (Depends-on): Add fstatat.
45364         * modules/linkat (Depends-on): Likewise.
45365         * modules/mkfifoat-tests (Depends-on): Likewise.
45366         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45368 2011-11-03  Bruno Haible  <bruno@clisp.org>
45370         New module 'unlinkat', split off from module 'openat'.
45371         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45372         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45373         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45374         * modules/unlinkat: New file, extracted from modules/openat. Correct
45375         the dependency conditions.
45376         * modules/openat (Files): Remove lib/unlinkat.c.
45377         (Depends-on): Remove rmdir, unlink.
45378         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45379         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45380         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45381         tests/test-rmdir.h, tests/test-unlink.h.
45382         (Depends-on): Remove unlinkdir.
45383         (Makefile.am): Remove rules for test-unlinkat.
45384         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45385         of module 'openat'.
45386         * NEWS: Mention the change.
45387         * modules/linkat-tests (Depends-on): Add unlinkat.
45388         * modules/mkfifoat-tests (Depends-on): Likewise.
45389         * modules/readlinkat-tests (Depends-on): Likewise.
45391 2011-11-02  Bruno Haible  <bruno@clisp.org>
45393         New module 'fchmodat', split off from module 'openat'.
45394         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45395         defined.
45396         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45397         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45398         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45399         * modules/fchmodat: New file, extracted from modules/openat.
45400         * modules/openat (Files): Remove lib/fchmodat.c.
45401         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45402         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45403         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45404         (Makefile.am): Remove rules for test-fchmodat.
45405         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45406         of module 'openat'.
45407         * NEWS: Mention the change.
45409 2011-11-02  Jim Meyering  <meyering@redhat.com>
45411         putenv: indent #definition of "environ" to placate cppi
45412         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45414         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45415         Git logs are often treated as immutable, because editing them
45416         changes the SHA1 checksums of all descendants.  Thus, errors in
45417         git logs tend to stay there forever.  However, when we generate
45418         a ChangeLog file -- typically for distribution -- from that git log,
45419         we can actually make corrections in the generated file.  The key
45420         lies in recording in machine-readable/applicable form the desired
45421         corrections.  See --help for description and an example.
45422         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45423         (usage): Describe it; alphabetize option descriptions.
45424         (main): Honor the new option, carefully.
45426 2011-11-01  Jim Meyering  <meyering@redhat.com>
45428         gitlog-to-changelog: avoid an infloop
45429         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45430         that ends up being empty.
45432 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45434         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45435         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45436         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45437         contains (possibly-quoted) backslashes.  This should avoid
45438         all-too-common shell bugs if COMPLICATED contains backslashes in
45439         the "wrong" places.  Reported by David Evans in
45440         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45441         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45442         because we want ASCII ranges.  Is there some reason we don't use
45443         the C locale everywhere in this script?
45444         (func_module, top level): Avoid unwanted pathname expansion when
45445         $repo_url_prefix or $repo_url_suffix_repl contain shell
45446         metacharacters like '?' and '*'.
45448 2011-11-01  Bruno Haible  <bruno@clisp.org>
45450         fchownat: Improve description.
45451         * modules/fchownat (Description): Add link to function.
45453 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45455         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
45456         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
45457         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
45458         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
45460 2011-11-01  Bruno Haible  <bruno@clisp.org>
45462         alignof: Avoid collision with stdalign module.
45463         * lib/alignof.h (alignof): Remove macro.
45464         * NEWS: Mention the change.
45465         Reported by Paul Eggert.
45467 2011-11-01  Bruno Haible  <bruno@clisp.org>
45469         New module 'fchownat', split off from module 'openat'.
45470         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
45471         defined.
45472         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
45473         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
45474         invoke gl_FUNC_FCHOWNAT.
45475         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
45476         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
45477         * modules/fchownat: New file, extracted from modules/openat.
45478         * modules/openat (Files): Remove lib/fchownat.c.
45479         (Depends-on): Remove lchown.
45480         (configure.ac): Remove AC_LIBOBJ of fchownat.
45481         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
45482         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
45483         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
45484         (Depends-on): Remove mgetgroups, usleep, stat-time.
45485         (configure.ac): Remove test for getegid.
45486         (Makefile.am): Remove rules for test-fchownat.
45487         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
45488         of module 'openat'.
45489         * NEWS: Mention the change.
45491 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45493         stdalign: port better to MSVC and to Sun C 5.11
45494         This fixes some of the problems reported by Bruno Haible in
45495         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
45496         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
45497         shortcomings of MSVC and of Sun C 5.11.
45498         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
45499         around __declspec arg.
45500         * modules/stdalign-tests (Files): Add tests/macros.h.
45501         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
45502         Include macros.h, for ASSERT.
45503         (DECLARE_ALIGNED): Remove.
45504         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
45505         to catch bug), and to 1 if not (simplifies the rest of the code).
45506         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
45507         (CHECK_AUTO): Remove.
45508         (CHECK_ALIGNED): Check only the alignment of the static vars,
45509         since auto var alignment isn't supported by Sun C 5.11.
45510         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
45511         ASSERT failures are easier to diagnose.
45513 2011-10-31  Bruno Haible  <bruno@clisp.org>
45515         doc about some IRIX 5.3 problems.
45516         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
45517         on IRIX 5.3.
45518         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
45519         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
45520         5.3.
45521         * doc/posix-functions/grantpt.texi: Likewise.
45522         * doc/posix-functions/unlockpt.texi: Likewise.
45523         * doc/posix-functions/lgamma.texi: Likewise.
45524         * doc/posix-functions/nextafter.texi: Likewise.
45525         * doc/posix-functions/remainder.texi: Likewise.
45526         * doc/posix-functions/select.texi: Mention misplaced declaration on
45527         IRIX 5.3.
45528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45530 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
45532         gitlog-to-changelog: fix git-log invocation.
45533         git-log mishandles date strings before 1970-01-01 UTC, and there is
45534         no use to specify --since=1970-01-01 by default anyway.
45535         * build-aux/gitlog-to-changelog: By default, when no --since option
45536         was given, do not specify explicit --since option to git-log.
45538 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
45540         gitlog-to-changelog: new option --append-dot.
45541         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
45542         first non-blank line of each commit message terminated with a dot.
45544 2011-10-30  Bruno Haible  <bruno@clisp.org>
45546         ffsl, ffsll: Avoid compilation error due to 'restrict'.
45547         * lib/ffsl.h: Include <config.h>.
45548         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
45550 2011-10-30  Jim Meyering  <meyering@redhat.com>
45552         GNUmakefile: reenable "make syntax-check" for most projects
45553         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
45554         build-aux variable", "syntax-check" would do nothing but succeed with
45555         the "No version control files detected..." diagnostic (unless you
45556         happened to override _build-aux via cfg.mk).
45557         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
45558         to precede inclusion of maint.mk.  Otherwise, these variables would
45559         be used undefined in any project that does not override the default.
45561 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
45563         gitlog-to-changelog: treat a message with only blank lines as empty.
45564         * build-aux/gitlog-to-changelog: Move the code that removes leading and
45565         trailing blank lines before the code that issues a warning about an
45566         empty commit message.
45568 2011-10-30  Jim Meyering  <meyering@redhat.com>
45570         test-parse-datetime.c: avoid new DST-related false positive test failure
45571         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
45572         based on the time/date we'll convert, not the current time.
45573         Otherwise, the moment we cross a DST boundary like today's in
45574         Europe, (CEST to CET), that offset ends up being one hour off.
45576 2011-10-27  Bruno Haible  <bruno@clisp.org>
45578         fstat: Tweak documentation.
45579         * modules/fstat (Description): More precise description.
45581 2011-10-27  Bruno Haible  <bruno@clisp.org>
45583         Update documentation regarding 'largefile' module.
45584         * doc/posix-functions/fstat.texi: Tweak wording.
45585         * doc/posix-functions/opendir.texi: Mention that the module fixes the
45586         problems with huge directories and/or small ino_t types.
45587         * doc/posix-functions/readdir.texi: Likewise.
45588         * doc/posix-functions/rewinddir.texi: Likewise.
45590 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45592         maint.mk: don't maintain a second build-aux variable.
45593         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45594         depends on GNUmakefile, which already maintains a cfg.mk
45595         overridable $(_build-aux) for projects with a non-standard
45596         build-aux directory location, although without the $(srcdir)
45597         prefix.  Use that variable consistently instead of introducing a
45598         second one.  Adjust all call sites.
45600 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45602         Add stdalign module and use it in other modules.
45603         This is based on a previous proposal by Bruno Haible
45604         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
45606         stdalign: new module
45607         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
45608         * modules/stdalign: New files.
45609         * MODULES.html.sh (c1x_core_properties): Add stdalign.
45610         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
45612         stdalign-tests: new module
45613         * modules/stdalign-tests, tests/test-stdalign.c: New files.
45615         argp: use stdalign
45616         * lib/argp-parse.c: Include <stdalign.h>.
45617         (alignof): Remove.
45618         * modules/argp (Depends-on): Add stdalign.
45620         crypto libraries: use stdalign
45621         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
45622         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
45623         Do not include <stdlib.h> twice, in md4.c.
45624         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
45625         because we are accessing a pointer's bit-pattern, not a size.
45626         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
45627         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
45628         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
45629         * modules/crypto/sha512: Likewise.
45631         sys_socket: use stdalign, not alignof
45632         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
45633         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45635 2011-10-27  Bruno Haible  <bruno@clisp.org>
45637         raise test: Avoid a test failure on Linux/MIPS.
45638         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
45639         because 99 is a valid signal on Linux/MIPS.
45641 2011-10-27  Bruno Haible  <bruno@clisp.org>
45643         nonblocking tests: Fix test failure on Linux/MIPS.
45644         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
45645         Set to 270000.
45647 2011-10-27  Bruno Haible  <bruno@clisp.org>
45649         utimensat: Work around problem on Linux/hppa.
45650         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
45651         values.
45652         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
45654 2011-10-25  Jim Meyering  <meyering@redhat.com>
45656         maint.mk: fix a bug in sc_prohibit_stddef_without_use
45657         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
45658         after symbols like NULL, size_t, etc.
45659         Reported by Alfred M. Szmidt.
45661         maint.mk: exempt ENODATA from a syntax-check rule
45662         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45663         from the sc_prohibit_always-defined_macros syntax-check rule.
45664         Add a comment.  See this for more details:
45665         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45667 2011-10-23  Jim Meyering  <meyering@redhat.com>
45669         fts: close parent dir FD before returning from post-traversal fts_read
45670         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45671         unlink A, even though an FD open on A remained.  This is suboptimal
45672         (holding a file descriptor open longer than needed), but otherwise not
45673         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45674         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45675         that represents a real problem: it causes the removal of A to fail
45676         with e.g., "rm: cannot remove `A': Device or resource busy"
45678         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45679         directory file descriptors.  After completing the final, FTS_DP,
45680         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45681         cache, but then proceeded to add a new FD to it via the subsequent
45682         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45683         final file descriptor would be closed only via fts_close's call to
45684         fd_ring_clear.  Now, it is usually closed earlier, via the final
45685         FTS_DP-returning fts_read call.
45686         * lib/fts.c (restore_initial_cwd): New function, converted from
45687         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45688         Update callers.
45689         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45690         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45692 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45693             Bruno Haible  <bruno@clisp.org>
45694             Jim Meyering  <jim@meyering.net>
45696         readme-release: improve safety of release prep instructions.
45697         * README-release: Don't git pull all branches when only master
45698         is needed for the release process.
45699         Run make maintainer-clean before changing trees and merging.
45700         Don't try to run ./configure right after git pull in case files
45701         that influence the bootstrap process have changed, move the
45702         ./configure step to after running ./bootstrap.
45703         Don't bootstrap "one last time"... it's the first time!
45705 2011-10-22  Bruno Haible  <bruno@clisp.org>
45707         errno, strerror-override: Support for MSVC 10.
45708         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45709         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45710         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45711         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45712         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45713         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45714         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45715         Assign values compatible with MSVC 10.
45716         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45717         New macros.
45718         (GNULIB_defined_EWINSOCK): New macro.
45719         * lib/strerror-override.c (strerror_override): Update accordingly.
45720         * lib/strerror-override.h: Likewise.
45721         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45722         longer equal to the corresponding errno value.
45723         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45725 2011-10-22  Bruno Haible  <bruno@clisp.org>
45727         perror: Recognize when test program crashes.
45728         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45729         strerror, set gl_cv_func_perror_works to no.
45730         Reported by Daniel Richard G. <skunk@iskunk.org>.
45732         perror: Fix indentation.
45733         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45735 2011-10-22  Bruno Haible  <bruno@clisp.org>
45737         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45738         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45739         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45740         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45741         functions, not as a macro.
45742         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45743         macros.
45744         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45745         absence of macro.
45746         Suggested by Eric Blake.
45747         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45749 2011-10-21  Bruno Haible  <bruno@clisp.org>
45751         relocatable-prog-wrapper: Don't leave object files behind.
45752         * build-aux/install-reloc: Re-synchronize list of .o files to be
45753         removed with list of compilation units.
45755 2011-10-20  Bruno Haible  <bruno@clisp.org>
45757         openpty, posix_openpt: Remove code duplication.
45758         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45759         * lib/openpty.c: Include <stdlib.h>.
45760         (openpty): Use posix_openpt on all platforms except IRIX.
45761         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45763 2011-10-20  Bruno Haible  <bruno@clisp.org>
45765         unlockpt: Detect invalid argument.
45766         * lib/unlockpt.c: Include <fcntl.h>.
45767         (unlockpt): Check whether fd is valid, using fcntl().
45768         * modules/unlockpt (Depends-on): Add fcntl-h.
45770 2011-10-20  Bruno Haible  <bruno@clisp.org>
45772         openpty: Avoid compilation error on AIX 6.1.
45773         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45775 2011-10-20  Bruno Haible  <bruno@clisp.org>
45777         posix_openpt: Support for OpenBSD.
45778         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45779         (posix_openpt) [OpenBSD]: New code.
45780         * lib/grantpt.c: Include <fcntl.h>.
45781         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45782         * modules/grantpt (Depends-on): Add fcntl-h.
45784 2011-10-20  Bruno Haible  <bruno@clisp.org>
45786         posix_openpt test: Coding style.
45787         * tests/test-posix_openpt.c: Use GNU coding style.
45789 2011-10-20  Bruno Haible  <bruno@clisp.org>
45791         grantpt: Support --avoid=pt_chown.
45792         * modules/grantpt (Files): Add lib/pty-private.h.
45794 2011-10-20  Bruno Haible  <bruno@clisp.org>
45796         posix_openpt: Fix autoconf macro.
45797         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45798         unneeded check for _getpty.
45800 2011-10-20  Bruno Haible  <bruno@clisp.org>
45802         openpty: Update comments.
45803         * lib/openpty.c: Add comments about Minix.
45805 2011-10-19  Eric Blake  <eblake@redhat.com>
45807         openpty: relax license
45808         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45810         pt_chown: use configmake to simplify build
45811         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45813         ptsname and others: relax license
45814         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45815         * modules/unlockpt (License): Likewise.
45816         * modules/pt_chown (License): Likewise.
45817         * modules/ptsname (License): Likewise.
45818         * modules/ttyname_r (License): Likewise.
45820 2011-10-19  Jim Meyering  <meyering@redhat.com>
45822         posix_openpt: remove spurious #endif
45823         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45825 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45827         maint.mk: Respect $(build_aux) in web-manual rule.
45828         * top/maint.mk (web-manual): Find gen-announce script in user's
45829         $(build_aux) directory instead of hard-coding 'build-aux'.
45831 2011-10-19  Bruno Haible  <bruno@clisp.org>
45833         posix_openpt: Fix compilation error.
45834         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45835         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45836         Mention the openpty module as an alternative.
45838 2011-10-19  Bruno Haible  <bruno@clisp.org>
45840         Support for old NeXTstep 3.3 frexp().
45841         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45842         execution time of the test to 5 seconds.
45843         Reported by Daniel Richard G. <skunk@iskunk.org>.
45845 2011-10-19  Bruno Haible  <bruno@clisp.org>
45847         Support for old NeXTstep 3.3 sed.
45848         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45849         part, use /.../, not \|...|. Escape periods in the header file name.
45850         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45851         Reported by Daniel Richard G. <skunk@iskunk.org>.
45853 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45855         Support for old NeXTstep 3.3 gcc.
45856         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45857         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45858         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45859         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45860         * lib/regex.h (_Restrict_arr_): Likewise.
45861         * lib/regex_internal.h (re_token_t): Likewise.
45862         * lib/regexec.c (check_node_accept_bytes): Likewise.
45863         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45865 2011-10-18  Eric Blake  <eblake@redhat.com>
45867         posix_openpt: new module
45868         * modules/posix_openpt: New module.
45869         * m4/posix_openpt.m4: New file.
45870         * lib/posix_openpt.c: Likewise.
45871         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45872         (gl_STDLIB_H_DEFAULTS): Set defaults.
45873         * modules/stdlib (Makefile.am): Substitute macros.
45874         * lib/stdlib.in.h (posix_openpt): Declare.
45875         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45876         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45877         * modules/posix_openpt-tests: New test module.
45878         * tests/test-posix_openpt.c: New test.
45880 2011-10-15  Bruno Haible  <bruno@clisp.org>
45882         xstrtoll: Fix compilation failure.
45883         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45884         from lib/strtol.c.
45885         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45886         some platforms.
45887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45889 2011-10-15  Bruno Haible  <bruno@clisp.org>
45891         vasnprintf: Optimize bit search operation.
45892         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45894         gl_DOUBLE_EXPONENT_LOCATION.
45895         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45896         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45897         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45898         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45899         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45900         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45901         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45902         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45903         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45905 2011-10-15  Bruno Haible  <bruno@clisp.org>
45907         vasnprintf: Fix comments.
45908         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45910 2011-10-14  Bruno Haible  <bruno@clisp.org>
45912         Tests for module 'integer_length_ll'.
45913         * modules/integer_length_ll-tests: New file.
45914         * tests/test-integer_length_ll.c: New file.
45916         New module 'integer_length_ll'.
45917         * lib/integer_length_ll.c: New file.
45918         * modules/integer_length_ll: New file.
45920 2011-10-14  Bruno Haible  <bruno@clisp.org>
45922         Tests for module 'integer_length_l'.
45923         * modules/integer_length_l-tests: New file.
45924         * tests/test-integer_length_l.c: New file.
45926         New module 'integer_length_l'.
45927         * lib/integer_length_l.c: New file.
45928         * modules/integer_length_l: New file.
45930 2011-10-14  Bruno Haible  <bruno@clisp.org>
45932         Tests for module 'integer_length'.
45933         * modules/integer_length-tests: New file.
45934         * tests/test-integer_length.c: New file.
45936         New module 'integer_length'.
45937         * lib/integer_length.h: New file.
45938         * lib/integer_length.c: New file.
45939         * modules/integer_length: New file.
45941 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45943         popen: Fix dependency conditions.
45944         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45946 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45948         perror: Fix autoconf test.
45949         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45950         <stdlib.h> and <string.h>.
45952 2011-10-14  Bruno Haible  <bruno@clisp.org>
45954         ffsl: Optimize on 64-bit platforms.
45955         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45956         unrolling.
45958 2011-10-13  Bruno Haible  <bruno@clisp.org>
45960         ffsl: Optimize on 32-bit platforms.
45961         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45962         use ffs() without a loop.
45964         ffsl, ffsll: Optimize for GCC.
45965         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45966         * lib/ffsl.c (GCC_BUILTIN): New macro.
45967         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45969 2011-10-13  Bruno Haible  <bruno@clisp.org>
45971         ffs, bcopy, memset: Support symbol renaming via config.h.
45972         * lib/ffs.c: Include <config.h>.
45973         * lib/bcopy.c: Likewise.
45974         * lib/memset.c: Likewise.
45976 2011-10-10  Bruno Haible  <bruno@clisp.org>
45978         atanl: Simplify for platforms where 'long double' == 'double'.
45979         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45980         alternative implementation.
45981         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45982         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45983         * modules/atanl (Depends-on): Add atan. Update conditions.
45985 2011-10-10  Bruno Haible  <bruno@clisp.org>
45987         acosl: Simplify for platforms where 'long double' == 'double'.
45988         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45989         alternative implementation.
45990         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45991         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45992         * modules/acosl (Depends-on): Add acos. Update conditions.
45994 2011-10-10  Bruno Haible  <bruno@clisp.org>
45996         asinl: Simplify for platforms where 'long double' == 'double'.
45997         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45998         alternative implementation.
45999         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46000         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46001         * modules/asinl (Depends-on): Add asin. Update conditions.
46003 2011-10-10  Bruno Haible  <bruno@clisp.org>
46005         tanl: Simplify for platforms where 'long double' == 'double'.
46006         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46007         implementation.
46008         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46009         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46010         * modules/tanl (Depends-on): Add tan. Update conditions.
46011         (configure.ac): Don't compile trigl.c if
46012         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46014 2011-10-10  Bruno Haible  <bruno@clisp.org>
46016         cosl: Simplify for platforms where 'long double' == 'double'.
46017         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46018         implementation.
46019         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46020         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46021         * modules/cosl (Depends-on): Add cos. Update conditions.
46022         (configure.ac): Don't compile sincosl.c and trigl.c if
46023         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46025 2011-10-10  Bruno Haible  <bruno@clisp.org>
46027         sinl: Simplify for platforms where 'long double' == 'double'.
46028         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46029         implementation.
46030         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46031         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46032         * modules/sinl (Depends-on): Add sin. Update conditions.
46033         (configure.ac): Don't compile sincosl.c and trigl.c if
46034         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46036 2011-10-10  Bruno Haible  <bruno@clisp.org>
46038         logl: Simplify for platforms where 'long double' == 'double'.
46039         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46040         implementation.
46041         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46042         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46043         * modules/logl (Depends-on): Add log. Update conditions.
46045 2011-10-10  Bruno Haible  <bruno@clisp.org>
46047         expl: Simplify for platforms where 'long double' == 'double'.
46048         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46049         implementation.
46050         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46051         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46052         * modules/expl (Depends-on): Add exp. Update conditions.
46054 2011-10-10  Bruno Haible  <bruno@clisp.org>
46056         sqrtl: Simplify for platforms where 'long double' == 'double'.
46057         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46058         alternative implementation.
46059         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46060         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46061         * modules/sqrtl (Depends-on): Update conditions.
46063 2011-10-10  Bruno Haible  <bruno@clisp.org>
46065         ldexpl: Simplify for platforms where 'long double' == 'double'.
46066         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46067         alternative implementation.
46068         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46069         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46070         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
46072 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
46074         ffsll: set correct witness
46075         * modules/ffsll (configure.ac): Fix typo.
46077 2011-10-10  Bruno Haible  <bruno@clisp.org>
46079         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
46080         * lib/printf-frexpl.c: Include <config.h>.
46081         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46082         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
46083         second time.
46084         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
46085         gl_LONG_DOUBLE_VS_DOUBLE.
46086         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
46087         conditions.
46089 2011-10-10  Bruno Haible  <bruno@clisp.org>
46091         frexpl: Simplify for platforms where 'long double' == 'double'.
46092         * lib/frexpl.c: Include <config.h>.
46093         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46094         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46095         time.
46096         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46097         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46098         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
46099         * modules/frexpl (Depends-on): Add frexp. Update conditions.
46100         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
46101         conditions.
46103 2011-10-10  Jim Meyering  <meyering@redhat.com>
46105         test-renameat: don't leave behind a temporary file
46106         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
46107           ERROR: files left in build directory after distclean:
46108           ./gltests/test-renameat.too
46109           make[1]: *** [distcleancheck] Error 1
46110         Reported by Tom G. Christensen.
46112 2011-10-09  Bruno Haible  <bruno@clisp.org>
46114         rint: Determine RINT_LIBM correctly on AIX 7.
46115         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
46116         directly, not only through a function pointer. Also accept an optional
46117         4th argument with extra code.
46118         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
46119         rintf() call by gcc when optimizing.
46121         mathfunc.m4: Refactor.
46122         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
46123         m4 variable.
46125 2011-10-09  Bruno Haible  <bruno@clisp.org>
46127         rintl: Simplify for platforms where 'long double' == 'double'.
46128         * lib/rintl.c: Include <config.h>.
46129         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46130         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46131         time.
46132         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46133         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46134         * modules/rintl (Depends-on): Add rint. Update conditions.
46136 2011-10-09  Bruno Haible  <bruno@clisp.org>
46138         roundl: Simplify for platforms where 'long double' == 'double'.
46139         * lib/roundl.c: Include <config.h>.
46140         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46141         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46142         time.
46143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46144         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46145         * modules/roundl (Depends-on): Add round. Update conditions.
46147 2011-10-09  Bruno Haible  <bruno@clisp.org>
46149         truncl: Simplify for platforms where 'long double' == 'double'.
46150         * lib/truncl.c: Include <config.h>.
46151         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46152         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46153         time.
46154         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46155         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46156         * modules/truncl (Depends-on): Add trunc. Update conditions.
46158 2011-10-09  Bruno Haible  <bruno@clisp.org>
46160         ceill: Simplify for platforms where 'long double' == 'double'.
46161         * lib/ceill.c: Include <config.h>.
46162         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46163         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46164         time.
46165         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46166         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46167         * modules/ceill (Depends-on): Add ceil. Update conditions.
46169 2011-10-09  Bruno Haible  <bruno@clisp.org>
46171         floorl: Simplify for platforms where 'long double' == 'double'.
46172         * lib/floorl.c: Include <config.h>.
46173         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46174         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46175         time.
46176         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46177         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46178         * modules/floorl (Depends-on): Add floor. Update conditions.
46180 2011-10-09  Bruno Haible  <bruno@clisp.org>
46182         rint: Fix ordering constraints.
46183         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
46184         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
46185         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
46187 2011-10-09  Bruno Haible  <bruno@clisp.org>
46189         copysignl: Simplify for platforms where 'long double' == 'double'.
46190         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46191         alternative.
46192         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46193         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46194         * modules/copysignl (Depends-on): Add copysign. Update conditions.
46196 2011-10-09  Bruno Haible  <bruno@clisp.org>
46198         Tests for module 'rintl'.
46199         * modules/rintl-tests: New file.
46200         * tests/test-rintl.c: New file.
46202         New module 'rintl'.
46203         * lib/math.in.h (rintl): New declaration.
46204         * lib/rintl.c: New file.
46205         * m4/rintl.m4: New file.
46206         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
46207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
46208         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
46209         * modules/rintl: New file.
46210         * tests/test-math-c++.cc: Check the declaration of rintl.
46211         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46212         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
46213         * doc/posix-functions/rintl.texi: Mention the new module.
46215 2011-10-09  Bruno Haible  <bruno@clisp.org>
46217         Tests for module 'rintf'.
46218         * modules/rintf-tests: New file.
46219         * tests/test-rintf.c: New file.
46221         New module 'rintf'.
46222         * lib/math.in.h (rintf): New declaration.
46223         * lib/rintf.c: New file.
46224         * m4/rintf.m4: New file.
46225         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
46226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
46227         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
46228         * modules/rintf: New file.
46229         * tests/test-math-c++.cc: Check the declaration of rintf.
46230         * doc/posix-functions/rintf.texi: Mention the new module.
46232 2011-10-09  Bruno Haible  <bruno@clisp.org>
46234         rint: Support for MSVC.
46235         * lib/math.in.h (rint): New declaration.
46236         * lib/rint.c: New file.
46237         * m4/rint.m4: New file.
46238         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
46239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
46240         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
46241         * modules/rint (Description): Fix.
46242         (Files): Add lib/rint.c, m4/rint.m4.
46243         (Depends-on): Add math.
46244         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
46245         gl_MATH_MODULE_INDICATOR.
46246         * tests/test-math-c++.cc: Check the declaration of rint.
46247         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46248         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
46249         * doc/posix-functions/rint.texi: Mention the replacement provided by
46250         the module.
46252         rint tests: More tests.
46253         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
46254         minus-zero.h, infinity.h, nan.h.
46255         (main): Skip the test if the current rounding mode is not standard. Add
46256         tests for negative numbers, minus zero, infinity, NaN.
46257         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
46258         tests/nan.h.
46259         (Depends-on): Add isnand-nolibm.
46261 2011-10-09  Bruno Haible  <bruno@clisp.org>
46263         Tests for module 'copysignl'.
46264         * modules/copysignl-tests: New file.
46265         * tests/test-copysignl.c: New file.
46267         New module 'copysignl'.
46268         * lib/math.in.h (copysignl): New declaration.
46269         * lib/copysignl.c: New file.
46270         * m4/copysignl.m4: New file.
46271         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
46272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
46273         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
46274         HAVE_COPYSIGNL.
46275         * modules/copysignl: New file.
46276         * tests/test-math-c++.cc: Check the declaration of copysignl.
46277         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46278         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
46279         * doc/posix-functions/copysignl.texi: Mention the new module.
46281 2011-10-09  Bruno Haible  <bruno@clisp.org>
46283         Tests for module 'copysignf'.
46284         * modules/copysignf-tests: New file.
46285         * tests/test-copysignf.c: New file.
46287         New module 'copysignf'.
46288         * lib/math.in.h (copysignf): New declaration.
46289         * lib/copysignf.c: New file.
46290         * m4/copysignf.m4: New file.
46291         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
46292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
46293         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
46294         HAVE_COPYSIGNF.
46295         * modules/copysignf: New file.
46296         * tests/test-math-c++.cc: Check the declaration of copysignf.
46297         * doc/posix-functions/copysignf.texi: Mention the new module.
46299 2011-10-09  Bruno Haible  <bruno@clisp.org>
46301         Ensure that HAVE_* variables are set to 1 before they are set to 0.
46302         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
46303         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
46304         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46305         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
46306         gl_SIGNAL_H_DEFAULTS.
46308 2011-10-09  Bruno Haible  <bruno@clisp.org>
46310         poll: Make macro safer.
46311         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
46312         ac_cv_header_poll_h is not set.
46314 2011-10-09  Bruno Haible  <bruno@clisp.org>
46316         copysign: Provide replacement.
46317         * lib/math.in.h (copysign): New declaration.
46318         * lib/copysign.c: New file.
46319         * m4/copysign.m4: New file.
46320         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
46321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
46322         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
46323         HAVE_COPYSIGN.
46324         * modules/copysign (Description): Clarify.
46325         (Files): Add lib/copysign.c, m4/copysign.m4.
46326         (Depends-on): Add math, signbit.
46327         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
46328         gl_MATH_MODULE_INDICATOR.
46329         * tests/test-math-c++.cc: Check the declaration of copysign.
46330         * doc/posix-functions/copysign.texi: Mention the effects of the module
46331         on Minix and MSVC.
46333 2011-10-09  Bruno Haible  <bruno@clisp.org>
46335         isinf: Ensure macro on AIX 5.1.
46336         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
46337         macro.
46338         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
46340 2011-10-09  Bruno Haible  <bruno@clisp.org>
46342         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46343         * modules/snprintf-posix-tests (configure.ac): Require
46344         gl_LONG_DOUBLE_VS_DOUBLE.
46345         * modules/sprintf-posix-tests (configure.ac): Likewise.
46346         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46347         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46348         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46349         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46350         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46351         tests on platforms where 'long double' is the same as 'double'.
46352         * tests/test-sprintf-posix.h (test_function): Likewise.
46353         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46354         * tests/test-vasprintf-posix.c (test_function): Likewise.
46356         *printf: Fix for platforms where 'long double' == 'double'.
46357         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46358         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46359         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46360         * modules/fprintf-posix (Files): Likewise.
46361         * modules/obstack-printf-posix (Files): Likewise.
46362         * modules/snprintf-posix (Files): Likewise.
46363         * modules/sprintf-posix (Files): Likewise.
46364         * modules/vasnprintf (Files): Likewise.
46365         * modules/vasnprintf-posix (Files): Likewise.
46366         * modules/vasprintf-posix (Files): Likewise.
46367         * modules/vdprintf-posix (Files): Likewise.
46368         * modules/vfprintf-posix (Files): Likewise.
46369         * modules/vsnprintf-posix (Files): Likewise.
46370         * modules/vsprintf-posix (Files): Likewise.
46371         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46372         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46373         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46374         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46375         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46376         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46377         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46379         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46380         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46381         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46382         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46383         'long double'.
46384         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46386         isinf: Fix for platforms where 'long double' == 'double'.
46387         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46388         Don't blindly assume 80-bit 'long double'.
46390         isfinite: Fix for platforms where 'long double' == 'double'.
46391         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46392         Don't blindly assume 80-bit 'long double'.
46394         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46395         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46396         * modules/isfinite-tests (configure.ac): Require
46397         gl_LONG_DOUBLE_VS_DOUBLE.
46398         * modules/isinf-tests (configure.ac): Likewise.
46399         * modules/isnan-tests (configure.ac): Likewise.
46400         * modules/isnanl-tests (configure.ac): Likewise.
46401         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46402         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46403         tests on platforms where 'long double' is the same as 'double'.
46404         * tests/test-isinf.c (test_isinfl): Likewise.
46405         * tests/test-isnan.c (test_long_double): Likewise.
46406         * tests/test-isnanl.h (main): Likewise.
46408 2011-10-08  Bruno Haible  <bruno@clisp.org>
46410         Tests for module 'tanhf'.
46411         * modules/tanhf-tests: New file.
46412         * tests/test-tanhf.c: New file.
46414         New module 'tanhf'.
46415         * lib/math.in.h (tanhf): New declaration.
46416         * lib/tanhf.c: New file.
46417         * m4/tanhf.m4: New file.
46418         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46420         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46421         * modules/tanhf: New file.
46422         * tests/test-math-c++.cc: Check the declaration of tanhf.
46423         * doc/posix-functions/tanhf.texi: Mention the new module.
46425         tanh: Use a .m4 file.
46426         * m4/tanh.m4: New file.
46427         * modules/tanh (Files): Add it.
46428         (configure.ac): Just invoke gl_FUNC_TANH.
46430 2011-10-08  Bruno Haible  <bruno@clisp.org>
46432         Tests for module 'coshf'.
46433         * modules/coshf-tests: New file.
46434         * tests/test-coshf.c: New file.
46436         New module 'coshf'.
46437         * lib/math.in.h (coshf): New declaration.
46438         * lib/coshf.c: New file.
46439         * m4/coshf.m4: New file.
46440         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46442         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46443         * modules/coshf: New file.
46444         * tests/test-math-c++.cc: Check the declaration of coshf.
46445         * doc/posix-functions/coshf.texi: Mention the new module.
46447         cosh: Use a .m4 file.
46448         * m4/cosh.m4: New file.
46449         * modules/cosh (Files): Add it.
46450         (configure.ac): Just invoke gl_FUNC_COSH.
46452 2011-10-08  Bruno Haible  <bruno@clisp.org>
46454         Tests for module 'sinhf'.
46455         * modules/sinhf-tests: New file.
46456         * tests/test-sinhf.c: New file.
46458         New module 'sinhf'.
46459         * lib/math.in.h (sinhf): New declaration.
46460         * lib/sinhf.c: New file.
46461         * m4/sinhf.m4: New file.
46462         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
46463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
46464         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
46465         * modules/sinhf: New file.
46466         * tests/test-math-c++.cc: Check the declaration of sinhf.
46467         * doc/posix-functions/sinhf.texi: Mention the new module.
46469         sinh: Use a .m4 file.
46470         * m4/sinh.m4: New file.
46471         * modules/sinh (Files): Add it.
46472         (configure.ac): Just invoke gl_FUNC_SINH.
46474 2011-10-08  Bruno Haible  <bruno@clisp.org>
46476         Tests for module 'atan2f'.
46477         * modules/atan2f-tests: New file.
46478         * tests/test-atan2f.c: New file.
46480         New module 'atan2f'.
46481         * lib/math.in.h (atan2f): New declaration.
46482         * lib/atan2f.c: New file.
46483         * m4/atan2f.m4: New file.
46484         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
46485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
46486         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
46487         * modules/atan2f: New file.
46488         * tests/test-math-c++.cc: Check the declaration of atan2f.
46489         * doc/posix-functions/atan2f.texi: Mention the new module.
46491         atan2: Use a .m4 file.
46492         * m4/atan2.m4: New file.
46493         * modules/atan2 (Files): Add it.
46494         (configure.ac): Just invoke gl_FUNC_ATAN2.
46496 2011-10-08  Bruno Haible  <bruno@clisp.org>
46498         Tests for module 'atanf'.
46499         * modules/atanf-tests: New file.
46500         * tests/test-atanf.c: New file.
46502         New module 'atanf'.
46503         * lib/math.in.h (atanf): New declaration.
46504         * lib/atanf.c: New file.
46505         * m4/atanf.m4: New file.
46506         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
46507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
46508         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
46509         * modules/atanf: New file.
46510         * tests/test-math-c++.cc: Check the declaration of atanf.
46511         * doc/posix-functions/atanf.texi: Mention the new module.
46513         atan: Use a .m4 file.
46514         * m4/atan.m4: New file.
46515         * modules/atan (Files): Add it.
46516         (configure.ac): Just invoke gl_FUNC_ATAN.
46518 2011-10-08  Bruno Haible  <bruno@clisp.org>
46520         Tests for module 'acosf'.
46521         * modules/acosf-tests: New file.
46522         * tests/test-acosf.c: New file.
46524         New module 'acosf'.
46525         * lib/math.in.h (acosf): New declaration.
46526         * lib/acosf.c: New file.
46527         * m4/acosf.m4: New file.
46528         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
46529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
46530         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
46531         * modules/acosf: New file.
46532         * tests/test-math-c++.cc: Check the declaration of acosf.
46533         * doc/posix-functions/acosf.texi: Mention the new module.
46535         acos: Use a .m4 file.
46536         * m4/acos.m4: New file.
46537         * modules/acos (Files): Add it.
46538         (configure.ac): Just invoke gl_FUNC_ACOS.
46540 2011-10-08  Bruno Haible  <bruno@clisp.org>
46542         Tests for module 'asinf'.
46543         * modules/asinf-tests: New file.
46544         * tests/test-asinf.c: New file.
46546         New module 'asinf'.
46547         * lib/math.in.h (asinf): New declaration.
46548         * lib/asinf.c: New file.
46549         * m4/asinf.m4: New file.
46550         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
46551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
46552         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
46553         * modules/asinf: New file.
46554         * tests/test-math-c++.cc: Check the declaration of asinf.
46555         * doc/posix-functions/asinf.texi: Mention the new module.
46557         asin: Use a .m4 file.
46558         * m4/asin.m4: New file.
46559         * modules/asin (Files): Add it.
46560         (configure.ac): Just invoke gl_FUNC_ASIN.
46562 2011-10-08  Bruno Haible  <bruno@clisp.org>
46564         Tests for module 'tanf'.
46565         * modules/tanf-tests: New file.
46566         * tests/test-tanf.c: New file.
46568         New module 'tanf'.
46569         * lib/math.in.h (tanf): New declaration.
46570         * lib/tanf.c: New file.
46571         * m4/tanf.m4: New file.
46572         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
46573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
46574         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
46575         * modules/tanf: New file.
46576         * tests/test-math-c++.cc: Check the declaration of tanf.
46577         * doc/posix-functions/tanf.texi: Mention the new module.
46579         tan: Use a .m4 file.
46580         * m4/tan.m4: New file.
46581         * modules/tan (Files): Add it.
46582         (configure.ac): Just invoke gl_FUNC_TAN.
46584 2011-10-08  Bruno Haible  <bruno@clisp.org>
46586         Tests for module 'cosf'.
46587         * modules/cosf-tests: New file.
46588         * tests/test-cosf.c: New file.
46590         New module 'cosf'.
46591         * lib/math.in.h (cosf): New declaration.
46592         * lib/cosf.c: New file.
46593         * m4/cosf.m4: New file.
46594         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46596         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
46597         * modules/cosf: New file.
46598         * tests/test-math-c++.cc: Check the declaration of cosf.
46599         * doc/posix-functions/cosf.texi: Mention the new module.
46601         cos: Use a .m4 file.
46602         * m4/cos.m4: New file.
46603         * modules/cos (Files): Add it.
46604         (configure.ac): Just invoke gl_FUNC_COS.
46606 2011-10-08  Bruno Haible  <bruno@clisp.org>
46608         Tests for module 'sinf'.
46609         * modules/sinf-tests: New file.
46610         * tests/test-sinf.c: New file.
46612         New module 'sinf'.
46613         * lib/math.in.h (sinf): New declaration.
46614         * lib/sinf.c: New file.
46615         * m4/sinf.m4: New file.
46616         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
46617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
46618         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
46619         * modules/sinf: New file.
46620         * tests/test-math-c++.cc: Check the declaration of sinf.
46621         * doc/posix-functions/sinf.texi: Mention the new module.
46623         sin: Use a .m4 file.
46624         * m4/sin.m4: New file.
46625         * modules/sin (Files): Add it.
46626         (configure.ac): Just invoke gl_FUNC_SIN.
46628 2011-10-08  Bruno Haible  <bruno@clisp.org>
46630         Tests for module 'powf'.
46631         * modules/powf-tests: New file.
46632         * tests/test-powf.c: New file.
46634         New module 'powf'.
46635         * lib/math.in.h (powf): New declaration.
46636         * lib/powf.c: New file.
46637         * m4/powf.m4: New file.
46638         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
46639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
46640         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
46641         * modules/powf: New file.
46642         * tests/test-math-c++.cc: Check the declaration of powf.
46643         * doc/posix-functions/powf.texi: Mention the new module.
46645         pow: Use a .m4 file.
46646         * m4/pow.m4: New file.
46647         * modules/pow (Files): Add it.
46648         (configure.ac): Just invoke gl_FUNC_POW.
46650 2011-10-08  Bruno Haible  <bruno@clisp.org>
46652         Tests for module 'log10f'.
46653         * modules/log10f-tests: New file.
46654         * tests/test-log10f.c: New file.
46656         New module 'log10f'.
46657         * lib/math.in.h (log10f): New declaration.
46658         * lib/log10f.c: New file.
46659         * m4/log10f.m4: New file.
46660         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46662         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46663         * modules/log10f: New file.
46664         * tests/test-math-c++.cc: Check the declaration of log10f.
46665         * doc/posix-functions/log10f.texi: Mention the new module.
46667         log10: Use a .m4 file.
46668         * m4/log10.m4: New file.
46669         * modules/log10 (Files): Add it.
46670         (configure.ac): Just invoke gl_FUNC_LOG10.
46672 2011-10-08  Bruno Haible  <bruno@clisp.org>
46674         Tests for module 'logf'.
46675         * modules/logf-tests: New file.
46676         * tests/test-logf.c: New file.
46678         New module 'logf'.
46679         * lib/math.in.h (logf): New declaration.
46680         * lib/logf.c: New file.
46681         * m4/logf.m4: New file.
46682         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46684         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46685         * modules/logf: New file.
46686         * tests/test-math-c++.cc: Check the declaration of logf.
46687         * doc/posix-functions/logf.texi: Mention the new module.
46689         log: Use a .m4 file.
46690         * m4/log.m4: New file.
46691         * modules/log (Files): Add it.
46692         (configure.ac): Just invoke gl_FUNC_LOG.
46694 2011-10-08  Bruno Haible  <bruno@clisp.org>
46696         Tests for module 'expf'.
46697         * modules/expf-tests: New file.
46698         * tests/test-expf.c: New file.
46700         New module 'expf'.
46701         * lib/math.in.h (expf): New declaration.
46702         * lib/expf.c: New file.
46703         * m4/expf.m4: New file.
46704         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46706         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46707         * modules/expf: New file.
46708         * tests/test-math-c++.cc: Check the declaration of expf.
46709         * doc/posix-functions/expf.texi: Mention the new module.
46711         exp: Use a .m4 file.
46712         * m4/exp.m4: New file.
46713         * modules/exp (Files): Add it.
46714         (configure.ac): Just invoke gl_FUNC_EXP.
46716 2011-10-08  Bruno Haible  <bruno@clisp.org>
46718         Tests for module 'sqrtf'.
46719         * modules/sqrtf-tests: New file.
46720         * tests/test-sqrtf.c: New file.
46722         New module 'sqrtf'.
46723         * lib/math.in.h (sqrtf): New declaration.
46724         * lib/sqrtf.c: New file.
46725         * m4/sqrtf.m4: New file.
46726         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46728         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46729         * modules/sqrtf: New file.
46730         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46731         * doc/posix-functions/sqrtf.texi: Mention the new module.
46733 2011-10-08  Bruno Haible  <bruno@clisp.org>
46735         Tests: Avoid link failures w.r.t. libintl.
46736         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46737         $(LIBINTL).
46738         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46739         $(LIBINTL).
46740         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46741         against $(LIBINTL).
46742         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46743         $(LIBINTL).
46744         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46745         $(LIBINTL).
46746         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46748 2011-10-08  Bruno Haible  <bruno@clisp.org>
46750         pow tests: Defeat compiler optimizations.
46751         * tests/test-pow.c (main): Assign arguments to x and y before use.
46753 2011-10-08  Bruno Haible  <bruno@clisp.org>
46755         gnulib-tool: Improve last commit.
46756         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46757         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46758         ignore dependencies that are not among the modules list.
46760 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46762         gnulib-tool: don't follow dependencies to avoided modules
46763         This fixes a bug that is related to the previous one.
46764         * gnulib-tool (func_modules_transitive_closure)
46765         (func_emit_autoconf_snippets):
46766         Check whether a dependency is acceptable before using it.
46767         (--extract-dependencies): Report an error if --avoid is also used,
46768         since this combination of options is not yet supported.
46770         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46771         Problem reported by Peter Dyballa in
46772         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46773         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46774         when echoing "$condition".
46776 2011-10-07  Bruno Haible  <bruno@clisp.org>
46778         Fix documentation about math functions on MacOS X.
46779         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46780         MacOS X 10.5.
46781         * doc/posix-functions/fdim.texi: Likewise.
46782         * doc/posix-functions/feclearexcept.texi: Likewise.
46783         * doc/posix-functions/fegetenv.texi: Likewise.
46784         * doc/posix-functions/fegetround.texi: Likewise.
46785         * doc/posix-functions/feholdexcept.texi: Likewise.
46786         * doc/posix-functions/feraiseexcept.texi: Likewise.
46787         * doc/posix-functions/fesetenv.texi: Likewise.
46788         * doc/posix-functions/fesetround.texi: Likewise.
46789         * doc/posix-functions/fetestexcept.texi: Likewise.
46790         * doc/posix-functions/feupdateenv.texi: Likewise.
46791         * doc/posix-functions/fmax.texi: Likewise.
46792         * doc/posix-functions/fmin.texi: Likewise.
46793         * doc/posix-functions/log2.texi: Likewise.
46794         * doc/posix-functions/modff.texi: Likewise.
46795         * doc/posix-functions/nan.texi: Likewise.
46796         * doc/posix-functions/nanf.texi: Likewise.
46797         * doc/posix-functions/nextafterf.texi: Likewise.
46798         * doc/posix-functions/remquo.texi: Likewise.
46800 2011-10-07  Bruno Haible  <bruno@clisp.org>
46802         modff: Drop assumption about library that defines modff.
46803         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46804         AC_CHECK_FUNCS.
46805         * modules/modff (Files): Add m4/mathfunc.m4.
46807 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46809         raise tests: Avoid a GCC warning.
46810         * tests/test-raise.c (handler): Use _Noreturn.
46812 2011-10-07  Bruno Haible  <bruno@clisp.org>
46814         Tests for module 'ldexpf'.
46815         * modules/ldexpf-tests: New file.
46816         * tests/test-ldexpf.c: New file.
46818         New module 'ldexpf'.
46819         * lib/math.in.h (ldexpf): New declaration.
46820         * lib/ldexpf.c: New file.
46821         * m4/ldexpf.m4: New file.
46822         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46824         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46825         * modules/ldexpf: New file.
46826         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46827         * doc/posix-functions/ldexpf.texi: Mention the new module.
46829 2011-10-06  Bruno Haible  <bruno@clisp.org>
46831         frexpf: Work around problems on IRIX and mingw.
46832         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46834         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46835         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46836         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46837         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46838         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46840 2011-10-06  Bruno Haible  <bruno@clisp.org>
46842         fabsf: Drop assumption about library that defines fabsf.
46843         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46844         AC_CHECK_FUNCS.
46845         * modules/fabsf (Files): Add m4/mathfunc.m4.
46847 2011-10-06  Bruno Haible  <bruno@clisp.org>
46849         frexpf: Drop assumption about library that defines frexpf.
46850         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46851         'int *', 'float *', 'long double *', 'float', 'long double'.
46852         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46853         AC_CHECK_FUNCS.
46854         * modules/frexpf (Files): Add m4/mathfunc.m4.
46856         Tests for module 'frexpf'.
46857         * modules/frexpf-tests: New file.
46858         * tests/test-frexpf.c: New file.
46860         New module 'frexpf'.
46861         * lib/math.in.h (frexpf): New declaration.
46862         * lib/frexpf.c: New file.
46863         * m4/frexpf.m4: New file.
46864         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46866         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46867         * modules/frexpf: New file.
46868         * tests/test-math-c++.cc: Check the declaration of frexpf.
46869         * doc/posix-functions/frexpf.texi: Mention the new module.
46871 2011-10-06  Bruno Haible  <bruno@clisp.org>
46873         math: Sort function declarations of math.in.h.
46874         * lib/math.in.h (frexp, logb): Move declarations.
46876 2011-10-05  Bruno Haible  <bruno@clisp.org>
46878         Tests for module 'modff'.
46879         * modules/modff-tests: New file.
46880         * tests/test-modff.c: New file.
46882         New module 'modff'.
46883         * lib/math.in.h (modff): New declaration.
46884         * lib/modff.c: New file.
46885         * m4/modff.m4: New file.
46886         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46888         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46889         * modules/modff: New file.
46890         * tests/test-math-c++.cc: Check the declaration of modff.
46891         * doc/posix-functions/modff.texi: Mention the new module.
46893         modf tests: Make test sharper.
46894         * tests/test-modf.c (main): Strengthen upper bound.
46896         modf: Use a .m4 file.
46897         * m4/modf.m4: New file.
46898         * modules/modf (Files): Add it.
46899         (configure.ac): Just invoke gl_FUNC_MODF.
46901 2011-10-05  Bruno Haible  <bruno@clisp.org>
46903         Tests for module 'fmodf'.
46904         * modules/fmodf-tests: New file.
46905         * tests/test-fmodf.c: New file.
46907         New module 'fmodf'.
46908         * lib/math.in.h (fmodf): New declaration.
46909         * lib/fmodf.c: New file.
46910         * m4/fmodf.m4: New file.
46911         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46913         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46914         * modules/fmodf: New file.
46915         * tests/test-math-c++.cc: Check the declaration of fmodf.
46916         * doc/posix-functions/fmodf.texi: Mention the new module.
46918         fmod: Use a .m4 file.
46919         * m4/fmod.m4: New file.
46920         * modules/fmod (Files): Add it.
46921         (configure.ac): Just invoke gl_FUNC_FMOD.
46923 2011-10-05  Bruno Haible  <bruno@clisp.org>
46925         Tests for module 'fabsf'.
46926         * modules/fabsf-tests: New file.
46927         * tests/test-fabsf.c: New file.
46929         New module 'fabsf'.
46930         * lib/math.in.h (fabsf): New declaration.
46931         * lib/fabsf.c: New file.
46932         * m4/fabsf.m4: New file.
46933         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46935         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46936         * modules/fabsf: New file.
46937         * tests/test-math-c++.cc: Check the declaration of fabsf.
46938         * doc/posix-functions/fabsf.texi: Mention the new module.
46940         fabs: Use a .m4 file.
46941         * m4/fabs.m4: New file.
46942         * modules/fabs (Files): Add it.
46943         (configure.ac): Just invoke gl_FUNC_FABS.
46945 2011-10-05  Jim Meyering  <meyering@redhat.com>
46947         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46948         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46949         ls -lL regression introduced in coreutils-8.12, it does so at the
46950         cost of an additional stat call in the common case.  Besides, now
46951         that the kernel change that prompted commit 95f7c57f has been reverted
46952         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46953         we have no use for commit 95f7c57f, "file-has-acl: use
46954         acl_extended_file_nofollow if available".
46956 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46958         file-has-acl: revert unintended change in behavior of ls -L
46959         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46960         derived from...
46961         (file_has_acl): ...code here.  Call it.
46962         This problem was introduced with 2011-07-22 commit 95f7c57f,
46963         "file-has-acl: use acl_extended_file_nofollow if available".
46964         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46966 2011-10-03  Bruno Haible  <bruno@clisp.org>
46968         poll: Avoid link errors on MSVC.
46969         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46970         * modules/poll (Depends-on): Add sockets.
46971         (Link): New section.
46972         * NEWS: Mention the change.
46973         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46974         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46975         $(LIB_POLL) instead of $(LIBSOCKET).
46977 2011-10-03  Bruno Haible  <bruno@clisp.org>
46979         sys_select tests: Fix link error on MSVC 9.
46980         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46981         with $(LIB_SELECT) instead of $(LIBSOCKET).
46983 2011-10-03  Bruno Haible  <bruno@clisp.org>
46985         sys_select: Fix compilation error on mingw.
46986         * lib/sys_select.in.h: On native Windows, include <io.h>.
46988 2011-10-03  Bruno Haible  <bruno@clisp.org>
46990         wmemset: Support for MSVC.
46991         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46992         whether wmemset() exists.
46994 2011-10-03  Bruno Haible  <bruno@clisp.org>
46996         wmemmove: Support for MSVC.
46997         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46998         whether wmemmove() exists.
47000 2011-10-03  Bruno Haible  <bruno@clisp.org>
47002         wmemcpy: Support for MSVC.
47003         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
47004         whether wmemcpy() exists.
47006 2011-10-03  Bruno Haible  <bruno@clisp.org>
47008         wmemcmp: Support for MSVC.
47009         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
47010         whether wmemcmp() exists.
47012 2011-10-03  Bruno Haible  <bruno@clisp.org>
47014         wmemchr: Support for MSVC.
47015         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
47016         whether wmemchr() exists.
47018 2011-10-03  Bruno Haible  <bruno@clisp.org>
47020         glthread/*, strsignal: Support for MSVC.
47021         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
47022         including <winsock.h> on MSVC 9.
47023         * lib/glthread/lock.h: Likewise.
47024         * lib/glthread/thread.h: Likewise.
47025         * lib/glthread/tls.h: Likewise.
47026         * lib/glthread/yield.h: Likewise.
47027         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
47028         if HAVE_UNISTD_H is false.
47029         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
47031 2011-10-03  Bruno Haible  <bruno@clisp.org>
47033         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
47034         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
47035         Set to 100000.
47037 2011-10-03  Bruno Haible  <bruno@clisp.org>
47039         acl: Fix specification.
47040         * lib/file-has-acl.c (file_has_acl): Fix specification.
47042 2011-10-03  Bruno Haible  <bruno@clisp.org>
47044         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
47045         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
47046         (compute_curr_prefix, shared_library_fullname,
47047         find_shared_library_fullname, get_shared_library_fullname, relocate):
47048         Use it together with PIC && INSTALLDIR.
47049         Reported by <jojelino@gmail.com>
47050         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
47052 2011-10-01  Jim Meyering  <meyering@redhat.com>
47054         maint.mk: adjust a release-related rule not to require use of gzip
47055         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
47056         Instead, check each file in $(DIST_ARCHIVES).  This is better for
47057         projects that build only .tar.xz files.  Also fix an erroneous test.
47059         test-linkat: don't leave behind a temporary file
47060         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
47061         Otherwise, coreutils' "make distcheck" would fail with this:
47062           Only in /c/cu/tests/torture/coreutils/test/\
47063             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
47064           make[2]: *** [my-distcheck] Error 1
47066         float, math: add omitted file
47067         * lib/itold.c: Add file, required for yesterday's float change.
47069 2011-10-01  Bruno Haible  <bruno@clisp.org>
47071         isinf: Fix for OpenBSD/x86.
47072         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
47073         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
47074         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
47076 2011-10-01  Bruno Haible  <bruno@clisp.org>
47078         isfinite: Fix syntax error in configure test.
47079         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
47081         isfinite: Fix typo.
47082         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47083         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
47085 2011-10-01  Bruno Haible  <bruno@clisp.org>
47087         nonblocking tests: Fix test failure on Linux/IA-64.
47088         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
47089         Set to 270000.
47091 2011-10-01  Bruno Haible  <bruno@clisp.org>
47093         mkfifoat tests: Fix a test failure on mingw.
47094         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
47095         with error ENOSYS.
47097 2011-09-30  Bruno Haible  <bruno@clisp.org>
47099         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
47100         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
47101         'long double'. Set REPLACE_ITOLD.
47102         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
47103         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
47104         * lib/itold.c: New file.
47105         * modules/float (Files): Add lib/itold.c.
47106         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
47107         (Makefile.am): Substitute REPLACE_ITOLD.
47108         * modules/math (Depends-on): Add float.
47109         (Makefile.am): Substitute REPLACE_ITOLD.
47110         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
47111         * doc/posix-headers/math.texi: Likewise.
47112         * doc/posix-functions/logl.texi: Likewise.
47114 2011-09-30  Bruno Haible  <bruno@clisp.org>
47116         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
47117         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
47118         Set to 140000.
47120 2011-09-30  Bruno Haible  <bruno@clisp.org>
47122         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
47123         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
47124         invocation, say "right after AC_PROG_CC_STDC", not "right after
47125         AC_PROG_CC".
47126         Reported by Gary V. Vaughan <gary@gnu.org>.
47128 2011-09-30  Bruno Haible  <bruno@clisp.org>
47130         Centralize C99 requirement.
47131         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
47132         * modules/stdarg (configure.ac-early): Invoke it instead of
47133         AC_PROG_CC_STDC.
47134         Reported by Gary V. Vaughan and Paul Eggert.
47136 2011-09-29  Bruno Haible  <bruno@clisp.org>
47138         float: Fix LDBL_MAX value on Linux/PowerPC.
47139         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
47140         on Linux/PowerPC.
47141         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
47142         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
47143         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
47144         platform.
47145         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
47147 2011-09-29  Bruno Haible  <bruno@clisp.org>
47149         doc: Improve doc about gl_EARLY.
47150         * doc/gnulib-tool.texi (Initial import): Mention where to place an
47151         AC_PROG_CC_STDC invocation.
47152         Reported by Gary V. Vaughan <gary@gnu.org>.
47154 2011-09-28  Bruno Haible  <bruno@clisp.org>
47156         fgetc, fputc, fread, fwrite tests: Fix link error.
47157         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
47158         on non-MSVC platforms.
47159         * tests/test-fputc.c (main): Likewise.
47160         * tests/test-fread.c (main): Likewise.
47161         * tests/test-fwrite.c (main): Likewise.
47162         Reported by Jim Meyering.
47164 2011-09-27  Bruno Haible  <bruno@clisp.org>
47166         fputc, fwrite tests: Avoid test failure on MSVC.
47167         * tests/test-fgetc.c: Include msvc-inval.h.
47168         (main): Invoke gl_msvc_inval_ensure_handler.
47169         * tests/test-fputc.c: Include msvc-inval.h.
47170         (main): Invoke gl_msvc_inval_ensure_handler.
47171         * tests/test-fread.c: Include msvc-inval.h.
47172         (main): Invoke gl_msvc_inval_ensure_handler.
47173         * tests/test-fwrite.c: Include msvc-inval.h.
47174         (main): Invoke gl_msvc_inval_ensure_handler.
47175         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47176         * modules/fputc-tests (Depends-on): Likewise.
47177         * modules/fread-tests (Depends-on): Likewise.
47178         * modules/fwrite-tests (Depends-on): Likewise.
47180 2011-09-27  Bruno Haible  <bruno@clisp.org>
47182         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
47183         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
47184         (raise): Remove older, duplicated declaration.
47185         (_gl_raise_SIGPIPE): New declaration.
47186         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
47187         (rpl_raise): Remove function.
47188         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
47189         a gnulib-defined SIGPIPE here.
47190         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
47191         'sigprocmask' has detected missing signal-blocking and the module
47192         'sigpipe' is enabled.
47193         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47195 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
47197         base64-tests: avoid memory leak
47198         * tests/test-base64.c (main): Plug memory leak.
47200         base32: new module
47201         * modules/base32: New module.
47202         * lib/base32.c: New file.
47203         * lib/base32.h: Likewise.
47204         * m4/base32.m4: Likewise.
47205         * modules/base32-tests: New test.
47206         * tests/test-base32.c: Likewise.
47207         * MODULES.html.sh (Misc): Mention it.
47209 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47211         gnulib: use more-standard license notice wording
47212         * gnulib-tool (func_emit_copyright_notice): When emitting a
47213         license notice into a file, use the standard wording as suggested
47214         by the current information for GNU maintainers, except say "file"
47215         rather than "program".  The new wording gives a license version
47216         number, which addresses an issue raised by Glenn Morris in
47217         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
47218         * m4/onceonly.m4: Use that same wording here, too.
47220         dup2: minor simplification
47221         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
47222         as lib/dup2.c no longer uses 'inline'.
47224 2011-09-25  Bruno Haible  <bruno@clisp.org>
47226         strings: Fix compilation error on MSVC.
47227         * lib/strings.in.h: Include <stddef.h> for size_t.
47229 2011-09-25  Bruno Haible  <bruno@clisp.org>
47231         fflush et al.: Document limitation on MSVC.
47232         * doc/posix-functions/fflush.texi: Document possible crash in handling
47233         mode other than DEFAULT_HANDLING.
47234         * doc/posix-functions/fgetc.texi: Likewise.
47235         * doc/posix-functions/fputc.texi: Likewise.
47236         * doc/posix-functions/fread.texi: Likewise.
47237         * doc/posix-functions/fwrite.texi: Likewise.
47239 2011-09-25  Bruno Haible  <bruno@clisp.org>
47241         msvc-inval: Allow three invalid parameter handling modes.
47242         * lib/msvc-inval.h: Don't include <stdlib.h> here.
47243         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
47244         macros.
47245         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
47246         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
47247         SANE_LIBRARY_HANDLING as a no-op.
47248         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
47249         <stdlib.h>.
47250         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
47252 2011-09-25  Bruno Haible  <bruno@clisp.org>
47254         msvc-inval: Make handler multithread-safe.
47255         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
47256         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
47257         declarations.
47258         (gl_msvc_inval_current): New declaration.
47259         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47260         Operate on the structure returned by gl_msvc_inval_current().
47261         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
47262         Remove varaiables.
47263         (tls_index, tls_initialized): New variables.
47264         (not_per_thread): New variable.
47265         (gl_msvc_inval_current): New function.
47266         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
47267         returned by gl_msvc_inval_current().
47269 2011-09-25  Bruno Haible  <bruno@clisp.org>
47271         msvc-inval: Install handler globally.
47272         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
47273         !_MSC_VER.
47274         (gl_msvc_invalid_parameter_handler): Remove declaration.
47275         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
47276         declarations.
47277         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47278         Install the handler globally, don't uninstall it.
47279         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
47280         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
47281         currently valid, call RaiseException instead.
47282         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
47283         for !_MSC_VER.
47285 2011-09-25  Bruno Haible  <bruno@clisp.org>
47287         strerror_r-posix: Fix for MSVC 9.
47288         * lib/strerror_r.c (local_snprintf): New function.
47289         (snprintf): Define to local_snprintf, not to _snprintf.
47291 2011-09-25  Bruno Haible  <bruno@clisp.org>
47293         ftruncate: Support for MSVC 9.
47294         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
47295         (chsize_nothrow): New function.
47296         (chsize): Redefine as a macro.
47297         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47298         * modules/ftruncate (Depends-on): Add msvc-inval.
47300 2011-09-25  Bruno Haible  <bruno@clisp.org>
47302         New module 'fstat'.
47303         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
47304         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
47305         * lib/fchdir.c (rpl_fstat): Remove function.
47306         * m4/fstat.m4: New file.
47307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
47308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
47309         declared.
47310         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
47311         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
47312         * modules/fstat: New file.
47313         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
47314         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
47315         is set.
47316         * doc/posix-functions/fstat.texi: Mention the new module and the
47317         problem on MSVC.
47318         * NEWS: Mention the change.
47319         * modules/acl (Depends-on): Add fstat.
47320         * modules/chdir-safer (Depends-on): Likewise.
47321         * modules/chown (Depends-on): Likewise.
47322         * modules/copy-file (Depends-on): Likewise.
47323         * modules/fchdir (Depends-on): Likewise.
47324         * modules/fdopendir (Depends-on): Likewise.
47325         * modules/fopen (Depends-on): Likewise.
47326         * modules/fts (Depends-on): Likewise.
47327         * modules/getcwd (Depends-on): Likewise.
47328         * modules/isapipe (Depends-on): Likewise.
47329         * modules/linkat (Depends-on): Likewise.
47330         * modules/lseek (Depends-on): Likewise.
47331         * modules/mkdir-p (Depends-on): Likewise.
47332         * modules/open (Depends-on): Likewise.
47333         * modules/openat (Depends-on): Likewise.
47334         * modules/read-file (Depends-on): Likewise.
47335         * modules/renameat (Depends-on): Likewise.
47336         * modules/utimens (Depends-on): Likewise.
47338 2011-09-25  Bruno Haible  <bruno@clisp.org>
47340         linkat: Fix compilation on MSVC 9.
47341         * lib/linkat.c: Don't include <stdint.h>.
47343 2011-09-25  Bruno Haible  <bruno@clisp.org>
47345         fclose: Support for MSVC 9.
47346         * lib/fclose.c: Include msvc-inval.h.
47347         (fclose_nothrow): New function.
47348         (rpl_fclose): Use it.
47349         * modules/fclose (Depends-on): Add msvc-inval.
47350         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47352 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47354         dup2: minor simplifications
47355         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47356         that it's a performance win.
47357         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47358         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47360 2011-09-24  Jim Meyering  <meyering@redhat.com>
47362         test-futimens: avoid a warning from gcc -Wshadow
47363         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47364         to avoid a shadowing warning.
47366 2011-09-24  Bruno Haible  <bruno@clisp.org>
47368         fdopen: Support for MSVC 9.
47369         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47370         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47371         * lib/fdopen.c: Include msvc-inval.h.
47372         (fdopen_nothrow): New function.
47373         (rpl_fdopen): Use it.
47374         * modules/fdopen (Depends-on): Add msvc-inval.
47375         * modules/fclose-tests (Depends-on): Add fdopen.
47376         * modules/fflush-tests (Depends-on): Likewise.
47377         * modules/fgetc-tests (Depends-on): Likewise.
47378         * modules/fputc-tests (Depends-on): Likewise.
47379         * modules/fread-tests (Depends-on): Likewise.
47380         * modules/freopen-tests (Depends-on): Likewise.
47381         * modules/fseeko-tests (Depends-on): Likewise.
47382         * modules/ftello-tests (Depends-on): Likewise.
47383         * modules/fwrite-tests  (Depends-on): Likewise.
47384         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47386 2011-09-24  Bruno Haible  <bruno@clisp.org>
47388         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47389         * modules/fgetc-tests (Depends-on): Add unistd.
47390         * modules/fputc-tests (Depends-on): Likewise.
47391         * modules/fread-tests (Depends-on): Likewise.
47392         * modules/fwrite-tests (Depends-on): Likewise.
47394 2011-09-24  Bruno Haible  <bruno@clisp.org>
47396         dup: Simplify autoconf test.
47397         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47398         on gl_MSVC_INVAL's result.
47400 2011-09-24  Bruno Haible  <bruno@clisp.org>
47402         Tests for function fwrite().
47403         * modules/fwrite-tests: New file.
47404         * tests/test-fwrite.c: New file.
47405         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47407         Tests for function fread().
47408         * modules/fread-tests: New file.
47409         * tests/test-fread.c: New file.
47410         * modules/stdio-tests (Depends-on): Add fread-tests.
47412         Activate fputc tests.
47413         * modules/stdio-tests (Depends-on): Add fputc-tests.
47415         Enhance fgetc, fputc tests.
47416         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47417         * tests/test-fputc.c (main): Likewise.
47419 2011-09-24  Bruno Haible  <bruno@clisp.org>
47421         write: Support for MSVC 9.
47422         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47423         is not 1.
47424         * lib/write.c (write_nothrow): New function.
47425         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47426         not 1. Use write_nothrow.
47427         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47428         invalid parameter handler.
47429         (gl_PREREQ_WRITE): New macro.
47430         * modules/write (Depends-on): Add msvc-inval.
47431         (configure.ac): Invoke gl_PREREQ_WRITE.
47432         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47434 2011-09-24  Bruno Haible  <bruno@clisp.org>
47436         read: Fix last commit.
47437         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47439 2011-09-24  Bruno Haible  <bruno@clisp.org>
47441         dup2: Fix last commit.
47442         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47443         (rpl_dup2): Disable fcntl workaround on native Windows.
47445         sigprocmask: Make code safer.
47446         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47447         section that changes macro definitions for this compilation unit.
47449 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47451         dup2: clarify by coalescing Windows-specific material
47452         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
47453         "msvc-nothrow.h"' to the Windows-specific section, so that the
47454         Emacs source need not contain these include files.
47455         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
47456         Windows-specific fixes into this function rather than just the
47457         nothrow fix, as this shortens and clarifies the code.  Always
47458         define as a function, as that's a bit cleaner than having it be
47459         sometimes a function and sometimes a macro.
47460         (rpl_dup2): Move the Windows-specific stuff out of here and into
47461         ms_windows_dup2.  Don't protect the Haiku-related fix with
47462         "#if !defined __linux__", as the same code also works around
47463         a Linux kernel bug, and it doesn't add any system calls on any
47464         platform.  Add comment about FreeBSD 6.1.
47466         sigprocmask: move #include directive
47467         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
47468         Windows-specific section, so that the Emacs source need not
47469         contain msvc-inval.h.
47471 2011-09-23  Bruno Haible  <bruno@clisp.org>
47473         read: Support for MSVC 9.
47474         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47475         is not 1.
47476         * lib/read.c (read_nothrow): New function.
47477         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
47478         read_nothrow.
47479         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
47480         invalid parameter handler.
47481         (gl_PREREQ_READ): New macro.
47482         * modules/read (Depends-on): Add msvc-inval.
47483         (configure.ac): Invoke gl_PREREQ_READ.
47484         * doc/posix-functions/read.texi: Mention the problem on MSVC.
47486 2011-09-23  Bruno Haible  <bruno@clisp.org>
47488         close: Support for MSVC 9.
47489         * lib/close.c: Include <errno.h>, msvc-inval.h.
47490         (close_nothrow): New function.
47491         (rpl_close): Use it.
47492         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
47493         invalid parameter handler.
47494         * modules/close (Depends-on): Add msvc-inval.
47495         * modules/dup2-tests (Depends-on): Add close.
47496         * modules/dup3-tests (Depends-on): Likewise.
47497         * modules/fcntl-tests (Depends-on): Likewise.
47498         * modules/spawn-pipe-tests (Depends-on): Likewise.
47499         * modules/unistd-safer-tests (Depends-on): Likewise.
47500         * doc/posix-functions/close.texi: Mention the problem on MSVC.
47502 2011-09-23  Bruno Haible  <bruno@clisp.org>
47504         New module 'dup'.
47505         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
47506         Allow replacement.
47507         * lib/dup.c: New file.
47508         * lib/fchdir.c (rpl_dup): Remove function.
47509         * m4/dup.m4: New file.
47510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
47511         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
47512         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
47513         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
47514         * modules/dup: New file.
47515         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
47516         'dup' module is in use.
47517         * modules/fdopendir (Depends-on): Add dup.
47518         * modules/fdutimensat-tests (Depends-on): Likewise.
47519         * modules/fts (Depends-on): Likewise.
47520         * modules/futimens-tests (Depends-on): Likewise.
47521         * modules/posix_spawnp-tests (Depends-on): Likewise.
47522         * modules/unistd-safer-tests (Depends-on): Likewise.
47523         * modules/utimens-tests (Depends-on): Likewise.
47524         * doc/posix-functions/dup.texi: Mention the new module and the problem
47525         on MSVC.
47527 2011-09-23  Bruno Haible  <bruno@clisp.org>
47529         getdtablesize: Support for MSVC 9.
47530         * lib/getdtablesize.c: Include msvc-inval.h.
47531         (_setmaxstdio_nothrow): New function.
47532         (_setmaxstdio): Redefine it.
47533         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
47534         * modules/getdtablesize (Depends-on): Add msvc-inval.
47535         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
47537 2011-09-23  Bruno Haible  <bruno@clisp.org>
47539         signal-h: Rename from signal.
47540         * modules/signal-h: Renamed from modules/signal.
47541         * modules/pthread_sigmask (Depends-on): Update.
47542         * modules/raise (Depends-on): Likewise.
47543         * modules/sigaction (Depends-on): Likewise.
47544         * modules/sigpipe (Depends-on): Likewise.
47545         * modules/sigprocmask (Depends-on): Likewise.
47546         * modules/sys_select (Depends-on): Likewise.
47547         * modules/signal-h-tests: Renamed from modules/signal-tests.
47548         (Files, Depends-on, Makefile.am): Update.
47549         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
47550         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
47551         (Files, Makefile.am): Update.
47552         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
47553         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
47554         * modules/signal: New placeholder file.
47555         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
47556         * doc/posix-headers/signal.texi: Update.
47557         * NEWS: Mention the change.
47559 2011-09-23  Bruno Haible  <bruno@clisp.org>
47561         sigprocmask: Avoid crashes through signal() on MSVC 9.
47562         * lib/sigprocmask.c: Include msvc-inval.h.
47563         (signal_nothrow): New function.
47564         (signal): Redefine it.
47565         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
47566         * modules/sigprocmask (Depends-on): Add msvc-inval.
47567         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
47569 2011-09-23  Bruno Haible  <bruno@clisp.org>
47571         Tests for module 'raise'.
47572         * modules/raise-tests: New file.
47573         * tests/test-raise.c: New file.
47575         raise: Support for MSVC.
47576         * lib/signal.in.h (raise): New declaration.
47577         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
47578         for native Windows platforms.
47579         * m4/raise.m4: New file.
47580         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
47581         HAVE_RAISE, REPLACE_RAISE.
47582         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
47583         REPLACE_RAISE.
47584         * modules/raise (Status, Notice): Remove fields.
47585         (Files): Add m4/raise.m4.
47586         (Depends-on): Add signal, msvc-inval.
47587         (configure.ac): Use the common idioms.
47588         (Maintainer): Add me.
47589         * tests/test-signal-c++.cc: Check the signature of raise.
47590         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47592 2011-09-23  Bruno Haible  <bruno@clisp.org>
47594         pipe2: Fix compilation on pre-C99 compilers.
47595         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
47597 2011-09-23  Bruno Haible  <bruno@clisp.org>
47599         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
47600         * lib/msvc-nothrow.h: New file.
47601         * lib/msvc-nothrow.c: New file.
47602         * m4/msvc-nothrow.m4: New file.
47603         * modules/msvc-nothrow: New file.
47604         * lib/dup2.c: Include msvc-nothrow.h.
47605         (rpl_dup2): No need to protect _get_osfhandle call here.
47606         * lib/accept4.c: Include msvc-nothrow.h.
47607         * lib/error.c: Likewise.
47608         * lib/fcntl.c: Likewise.
47609         * lib/lseek.c: Likewise.
47610         * lib/nonblocking.c: Likewise.
47611         * lib/poll.c: Likewise.
47612         * lib/read.c: Likewise.
47613         * lib/select.c: Likewise.
47614         * lib/sockets.h: Likewise.
47615         * lib/sockets.c: Likewise.
47616         * lib/stdio-read.c: Likewise.
47617         * lib/stdio-write.c: Likewise.
47618         * lib/write.c: Likewise.
47619         * lib/w32sock.h: Likewise.
47620         * lib/w32spawn.h: Likewise.
47621         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
47622         * lib/fsync.c: Likewise.
47623         * lib/isapipe.c: Likewise.
47624         * modules/dup2 (Depends-on): Add msvc-nothrow.
47625         * modules/accept4 (Depends-on): Likewise.
47626         * modules/error (Depends-on): Likewise.
47627         * modules/fcntl (Depends-on): Likewise.
47628         * modules/lseek (Depends-on): Likewise.
47629         * modules/nonblocking (Depends-on): Likewise.
47630         * modules/poll (Depends-on): Likewise.
47631         * modules/read (Depends-on): Likewise.
47632         * modules/select (Depends-on): Likewise.
47633         * modules/sockets (Depends-on): Likewise.
47634         * modules/sigpipe (Depends-on): Likewise.
47635         * modules/write (Depends-on): Likewise.
47636         * modules/accept (Depends-on): Likewise.
47637         * modules/bind (Depends-on): Likewise.
47638         * modules/connect (Depends-on): Likewise.
47639         * modules/gethostname (Depends-on): Likewise.
47640         * modules/getpeername (Depends-on): Likewise.
47641         * modules/getsockname (Depends-on): Likewise.
47642         * modules/getsockopt (Depends-on): Likewise.
47643         * modules/ioctl (Depends-on): Likewise.
47644         * modules/listen (Depends-on): Likewise.
47645         * modules/recv (Depends-on): Likewise.
47646         * modules/recvfrom (Depends-on): Likewise.
47647         * modules/send (Depends-on): Likewise.
47648         * modules/sendto (Depends-on): Likewise.
47649         * modules/setsockopt (Depends-on): Likewise.
47650         * modules/shutdown (Depends-on): Likewise.
47651         * modules/socket (Depends-on): Likewise.
47652         * modules/execute (Depends-on): Likewise.
47653         * modules/spawn-pipe (Depends-on): Likewise.
47654         * modules/flock (Depends-on): Likewise.
47655         * modules/fsync (Depends-on): Likewise.
47656         * modules/isapipe (Depends-on): Likewise.
47657         * tests/test-cloexec.c: Include msvc-nothrow.h.
47658         * tests/test-dup-safer.c: Likewise.
47659         * tests/test-dup2.c: Likewise.
47660         * tests/test-dup3.c: Likewise.
47661         * tests/test-fcntl.c: Likewise.
47662         * tests/test-pipe.c: Likewise.
47663         * tests/test-pipe2.c: Likewise.
47664         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47665         * modules/unistd-safer-tests (Depends-on): Likewise.
47666         * modules/dup2-tests (Depends-on): Likewise.
47667         * modules/dup3-tests (Depends-on): Likewise.
47668         * modules/fcntl-tests (Depends-on): Likewise.
47669         * modules/pipe-posix-tests (Depends-on): Likewise.
47670         * modules/pipe2-tests (Depends-on): Likewise.
47672 2011-09-23  Bruno Haible  <bruno@clisp.org>
47674         dup2: Make code more maintainable.
47675         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47676         (rpl_dup2): Use it.
47677         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47678         * modules/dup2 (configure.ac): Invoke it.
47679         Reported by Paul Eggert.
47681 2011-09-23  Bruno Haible  <bruno@clisp.org>
47683         msvc-inval: Fix compilation error.
47684         * lib/msvc-inval.h: Include <excpt.h>.
47686 2011-09-23  Bruno Haible  <bruno@clisp.org>
47688         mkdir: Tweak for MSVC 9.
47689         * lib/sys_stat.in.h: Update comments.
47690         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47692         Tests for module 'chdir'.
47693         * modules/chdir-tests: New file.
47694         * tests/test-chdir.c: New file.
47696         New module 'chdir'.
47697         * modules/chdir: New file.
47698         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47699         (chdir): New declaration.
47700         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47701         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47702         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47703         * tests/test-unistd-c++.cc: Check signature of chdir.
47704         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47705         * modules/chdir-long (Depends-on): Add chdir.
47706         * modules/fchdir (Depends-on): Likewise.
47707         * modules/rename (Depends-on): Likewise.
47708         * modules/savewd (Depends-on): Likewise.
47710         rmdir: Support for mingw, MSVC 9.
47711         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47712         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47714         getcwd: Tweak for MSVC 9.
47715         * lib/unistd.in.h: Update comments.
47716         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47718 2011-09-22  Bruno Haible  <bruno@clisp.org>
47720         strerror_r-posix: Avoid a link error on MSVC.
47721         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47722         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47724 2011-09-22  Bruno Haible  <bruno@clisp.org>
47726         select: Avoid link errors on MSVC.
47727         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47728         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47729         * modules/pselect (Link): Likewise.
47730         * NEWS: Mention the change.
47731         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47732         test-select-stdin against $(LIB_SELECT).
47733         * modules/pselect-tests (Makefile.am): Link test-pselect against
47734         $(LIB_SELECT).
47736 2011-09-22  Bruno Haible  <bruno@clisp.org>
47738         select: Avoid compilation error on MSVC.
47739         * lib/select.c: Don't include <stdbool.h>.
47741 2011-09-21  Bruno Haible  <bruno@clisp.org>
47743         Consolidate all uses of PATH_MAX in *.m4 files.
47744         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47745         macros.
47746         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47747         and gl_PATHMAX_SNIPPET.
47748         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47750         * modules/chdir-long (Files): Add m4/pathmax.m4.
47751         * modules/getcwd (Files): Likewise.
47753 2011-09-21  Bruno Haible  <bruno@clisp.org>
47755         ftruncate: Un-deprecate, concentrate on Win32 support.
47756         * modules/ftruncate (Status, Notice): Remove sections.
47757         (Depends-on): Add largefile.
47758         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47759         non-mingw platforms.
47760         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47761         include <io.h>.
47762         * modules/perror-tests (Depends-on): Add ftruncate.
47763         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47764         'ftruncate' module.
47766 2011-09-21  Bruno Haible  <bruno@clisp.org>
47768         Add dependencies to new dirent related modules.
47769         * modules/opendir (Depends-on): Add closedir.
47770         * modules/getcwd (Depends-on): Add opendir, closedir.
47771         * modules/dirent-safer-tests (Depends-on): Likewise.
47772         * modules/fdopendir-tests (Depends-on): Likewise.
47773         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47774         * modules/renameat-tests (Depends-on): Likewise.
47776 2011-09-21  Bruno Haible  <bruno@clisp.org>
47778         opendir: Avoid compilation error on mingw.
47779         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47780         * modules/opendir (Depends-on): Add unistd.
47782 2011-09-21  Bruno Haible  <bruno@clisp.org>
47784         ftruncate tests: Avoid a test failure on mingw.
47785         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47787 2011-09-21  Bruno Haible  <bruno@clisp.org>
47789         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47790         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47791         native Windows.
47793 2011-09-21  Bruno Haible  <bruno@clisp.org>
47795         New module 'fdopen'.
47796         * lib/stdio.in.h (fdopen): New declaration.
47797         * lib/fdopen.c: New file.
47798         * m4/fdopen.m4: New file.
47799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47800         REPLACE_FDOPEN.
47801         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47802         REPLACE_FDOPEN.
47803         * modules/fdopen: New file.
47804         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47805         * tests/test-stdio-c++.cc: Check signature of fdopen.
47806         * doc/posix-functions/fdopen.texi: Mention the new module.
47808 2011-09-21  Bruno Haible  <bruno@clisp.org>
47810         unlockpt tests: Avoid test failure on NetBSD 5.1.
47811         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47812         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47814 2011-09-21  Bruno Haible  <bruno@clisp.org>
47816         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47817         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47818         * tests/test-getlogin_r.c (main): Likewise.
47820 2011-09-20  Bruno Haible  <bruno@clisp.org>
47822         time tests: Don't require pid_t.
47823         * doc/posix-headers/time.texi: Revert last change.
47824         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47825         * tests/test-time.c: Comment out the check for pid_t.
47827 2011-09-20  Bruno Haible  <bruno@clisp.org>
47829         fsync tests: Avoid a test failure on mingw.
47830         * tests/test-fsync.c (main): Allow a failure with EIO.
47832 2011-09-20  Bruno Haible  <bruno@clisp.org>
47834         euidaccess: Update comments.
47835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47837 2011-09-20  Bruno Haible  <bruno@clisp.org>
47839         Ensure EBADF returns for socket functions on mingw.
47840         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47841         descriptor is invalid.
47842         * lib/bind.c (rpl_bind): Likewise.
47843         * lib/connect.c (rpl_connect): Likewise.
47844         * lib/getpeername.c (rpl_getpeername): Likewise.
47845         * lib/getsockname.c (rpl_getsockname): Likewise.
47846         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47847         * lib/listen.c (rpl_listen): Likewise.
47848         * lib/recv.c (rpl_recv): Likewise.
47849         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47850         * lib/send.c (rpl_send): Likewise.
47851         * lib/sendto.c (rpl_sendto): Likewise.
47852         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47853         * lib/shutdown.c (rpl_shutdown): Likewise.
47855 2011-09-20  Bruno Haible  <bruno@clisp.org>
47857         select tests: EBADF tests.
47858         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47859         test_bad_fd): New functions.
47860         (test_function): Invoke also test_bad_fd.
47862 2011-09-20  Bruno Haible  <bruno@clisp.org>
47864         Tests for module 'posix_spawn_file_actions_addopen.
47865         * modules/posix_spawn_file_actions_addopen-tests: New file.
47866         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47868         Tests for module 'posix_spawn_file_actions_adddup2'.
47869         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47870         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47872         Tests for module 'posix_spawn_file_actions_addclose'.
47873         * modules/posix_spawn_file_actions_addclose-tests: New file.
47874         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47876 2011-09-20  Bruno Haible  <bruno@clisp.org>
47878         Tests for module 'unlockpt'.
47879         * modules/unlockpt-tests: New file.
47880         * tests/test-unlockpt.c: New file.
47881         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47883         Tests for module 'grantpt'.
47884         * modules/grantpt-tests: New file.
47885         * tests/test-grantpt.c: New file.
47886         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47888 2011-09-20  Bruno Haible  <bruno@clisp.org>
47890         freopen tests: EBADF tests.
47891         * tests/test-freopen.c: Include errno.h, unistd.h.
47892         (main): Add tests for EBADF, commented out for the moment.
47894         fclose tests: EBADF tests.
47895         * tests/test-fclose.c (main): Add tests for EBADF.
47897         fflush tests: EBADF tests.
47898         * tests/test-fflush.c: Include errno.h, macros.h.
47899         (main): Add tests for EBADF.
47901         ftello tests: EBADF tests.
47902         * tests/test-ftello4.sh: New file.
47903         * tests/test-ftello4.c: New file.
47904         * modules/ftello-tests (Files): Add them.
47905         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47907         fseeko tests: EBADF tests.
47908         * tests/test-fseeko4.sh: New file.
47909         * tests/test-fseeko4.c: New file.
47910         * modules/fseeko-tests (Files): Add them.
47911         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47913         Tests for function fputc().
47914         * modules/fputc-tests: New file.
47915         * tests/test-fputc.c: New file.
47916         * modules/stdio-tests (Depends-on): Add fputc-tests.
47918         Tests for function fgetc().
47919         * modules/fgetc-tests: New file.
47920         * tests/test-fgetc.c: New file.
47921         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47923         Tests for function fdopen().
47924         * modules/fdopen-tests: New file.
47925         * tests/test-fdopen.c: New file.
47926         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47928         Tests for module 'vdprintf'.
47929         * modules/vdprintf-tests: New file.
47930         * tests/test-vdprintf.c: New file.
47932         Tests for module 'dprintf'.
47933         * modules/dprintf-tests: New file.
47934         * tests/test-dprintf.c: New file.
47936 2011-09-20  Bruno Haible  <bruno@clisp.org>
47938         Tests for module 'ioctl'.
47939         * modules/ioctl-tests: New file.
47940         * tests/test-ioctl.c: New file.
47942 2011-09-20  Bruno Haible  <bruno@clisp.org>
47944         fcntl tests: EBADF tests.
47945         * tests/test-fcntl.c (main): Add more tests for EBADF.
47947 2011-09-20  Bruno Haible  <bruno@clisp.org>
47949         utimensat tests: EBADF tests.
47950         * tests/test-utimensat.c (main): Add tests for EBADF.
47952         renameat tests: EBADF tests.
47953         * tests/test-renameat.c (main): Add tests for EBADF.
47955         mkfifoat tests: EBADF tests.
47956         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47958         readlinkat tests: EBADF tests.
47959         * tests/test-readlinkat.c (main): Add tests for EBADF.
47961         symlinkat tests: EBADF tests.
47962         * tests/test-symlinkat.c (main): Add tests for EBADF.
47964         linkat tests: EBADF tests.
47965         * tests/test-linkat.c (main): Add tests for EBADF.
47967         Tests for module 'faccessat'.
47968         * modules/faccessat-tests: New file.
47969         * tests/test-faccessat.c: New file.
47971         fdopendir tests: EBADF tests.
47972         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47974         openat tests: EBADF tests.
47975         * tests/test-fchownat.c (main): Add tests for EBADF.
47976         * tests/test-fstatat.c (main): Likewise.
47977         * tests/test-mkdirat.c (main): Likewise.
47978         * tests/test-openat.c (main): Likewise.
47979         * tests/test-unlinkat.c (main): Likewise.
47980         * tests/test-fchmodat.c: New file.
47981         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47982         (Makefile.am): Also run 'test-fchmodat'.
47984 2011-09-20  Bruno Haible  <bruno@clisp.org>
47986         utimens, futimens, fdutimensat tests: EBADF tests.
47987         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47989         Tests for function fstat().
47990         * modules/fstat-tests: New file.
47991         * tests/test-fstat.c: New file.
47992         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47994 2011-09-20  Bruno Haible  <bruno@clisp.org>
47996         test-ttyname_r tests: EBADF tests.
47997         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47999         Tests for module 'isatty'.
48000         * modules/isatty-tests: New file.
48001         * tests/test-isatty.c: New file.
48003         Tests for module 'write'.
48004         * modules/write-tests: New file.
48005         * tests/test-write.c: New file.
48007         Tests for module 'read'.
48008         * modules/read-tests: New file.
48009         * tests/test-read.c: New file.
48011         pwrite tests: EBADF tests.
48012         * tests/test-pwrite.c (main): Add tests for EBADF.
48014         pread tests: EBADF tests.
48015         * tests/test-pread.c (main): Add tests for EBADF.
48017         lseek tests: EBADF tests.
48018         * tests/test-lseek.c (main): Add more tests for EBADF.
48020         Tests for module 'ftruncate'.
48021         * modules/ftruncate-tests: New file.
48022         * tests/test-ftruncate.sh: New file.
48023         * tests/test-ftruncate.c: New file.
48025         fsync tests: EBADF tests.
48026         * tests/test-fsync.c (main): Add more tests for EBADF.
48028         fdatasync tests: EBADF tests.
48029         * tests/test-fdatasync.c (main): Add more tests for EBADF.
48031         Tests for module 'fchown'.
48032         * modules/fchown-tests: New file.
48033         * tests/test-fchown.c: New file.
48035         Tests for module 'fchmod'.
48036         * modules/fchmod-tests: New file.
48037         * tests/test-fchmod.c: New file.
48039         fchdir tests: EBADF tests.
48040         * tests/test-fchdir.c (main): Add more tests for EBADF.
48042         dup2 tests: EBADF tests.
48043         * tests/test-dup2.c (main): Add more tests for EBADF.
48045         Tests for module 'dup'.
48046         * modules/dup-tests: New file.
48047         * tests/test-dup.c: New file.
48049         Tests for module 'close'.
48050         * modules/close-tests: New file.
48051         * tests/test-close.c: New file.
48053 2011-09-20  Bruno Haible  <bruno@clisp.org>
48055         Tests for module 'shutdown'.
48056         * modules/shutdown-tests: New file.
48057         * tests/test-shutdown.c: New file.
48059         Tests for module 'setsockopt'.
48060         * modules/setsockopt-tests: New file.
48061         * tests/test-setsockopt.c: New file.
48063         Tests for module 'sendto'.
48064         * modules/sendto-tests: New file.
48065         * tests/test-sendto.c: New file.
48067         Tests for module 'send'.
48068         * modules/send-tests: New file.
48069         * tests/test-send.c: New file.
48071         Tests for module 'recvfrom'.
48072         * modules/recvfrom-tests: New file.
48073         * tests/test-recvfrom.c: New file.
48075         Tests for module 'recv'.
48076         * modules/recv-tests: New file.
48077         * tests/test-recv.c: New file.
48079         Tests for module 'listen'.
48080         * modules/listen-tests: New file.
48081         * tests/test-listen.c: New file.
48083         Tests for module 'getsockopt'.
48084         * modules/getsockopt-tests: New file.
48085         * tests/test-getsockopt.c: New file.
48087         Tests for module 'getsockname'.
48088         * modules/getsockname-tests: New file.
48089         * tests/test-getsockname.c: New file.
48091         Tests for module 'getpeername'.
48092         * modules/getpeername-tests: New file.
48093         * tests/test-getpeername.c: New file.
48095         Tests for module 'connect'.
48096         * modules/connect-tests: New file.
48097         * tests/test-connect.c: New file.
48099         Tests for module 'bind'.
48100         * modules/bind-tests: New file.
48101         * tests/test-bind.c: New file.
48103         accept4 tests: Fix for native Windows.
48104         * tests/test-accept4.c: Include sockets.h.
48105         (main): Invoke gl_sockets_startup.
48106         * modules/accept4-tests (Depends-on): Add sockets.
48108         accept tests: Fix for native Windows.
48109         * tests/test-accept.c: Include sockets.h.
48110         (main): Invoke gl_sockets_startup.
48111         * modules/accept-tests (Depends-on): Add sockets.
48113 2011-09-19  Bruno Haible  <bruno@clisp.org>
48115         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
48116         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
48117         do...while(0).
48118         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
48119         Suggested by Paul Eggert.
48121 2011-09-19  Bruno Haible  <bruno@clisp.org>
48123         sched: Ensure pid_t is defined.
48124         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
48125         not define pid_t.
48126         * lib/sched.in.h: Include <sys/types.h>.
48127         * doc/posix-headers/sched.texi: Mention the pid_t problem.
48128         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48130 2011-09-19  Bruno Haible  <bruno@clisp.org>
48132         msvc-inval: Ensure the entire expansion is a single statement.
48133         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
48134         of braces.
48136 2011-09-19  Jim Meyering  <meyering@redhat.com>
48138         tests: use printf, not echo in init.sh's warn_ function
48139         * tests/init.sh (warn_): Use printf, not echo.  The latter would
48140         misbehave when given strings containing a backslash or starting
48141         with e.g., -n.  James Youngman suggested setting IFS.
48143 2011-09-19  Eric Blake  <eblake@redhat.com>
48145         futimens: enhance test
48146         * tests/test-futimens.h (test_futimens): Also check for EBADF on
48147         closed non-negative fd.
48149         date: accept 'hence' as opposite of 'ago'
48150         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
48151         * tests/test-parse-datetime.c (main): Enhance test.
48152         Suggested by Jesse Wilson.
48154 2011-09-19  Jim Meyering  <meyering@redhat.com>
48156         getcwd: don't fail in a deep directory on a system without openat
48157         Before this change, getcwd would fail when called from a directory
48158         of depth PATH_MAX / 3 or greater.  That was due to the fact that
48159         the non-openat implementation used "..", "../..", "../../..", etc.
48160         to access ancestor directories.  With too many, that string would
48161         be longer than PATH_MAX.
48162         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
48163         using gnulib's openat replacement.
48164         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
48165         we're using the replacement function.
48167 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
48169         maint.mk: avoid warnings from perl about missing files
48170         * top/maint.mk (def_sym_regex): Ignore files listed in
48171         $(gl_other_headers_) that do not exist, say because a project
48172         does not use a corresponding module.
48174 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48176         stat: use pathmax.h only if needed
48177         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
48178         This is better for Emacs, which does not have a mingw port and
48179         therefore can avoid the pathmax module.
48181         utimens: remove dependency on dup2
48182         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
48183         to work around the Linux kernel bug.
48184         * modules/utimens (Depends-on): Remove dup2.
48186 2011-09-18  Bruno Haible  <bruno@clisp.org>
48188         inet_ntop, inet_pton: Look for it also in libresolv.
48189         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
48190         libnsl, search for it in libresolv.
48191         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48192         Needed on Solaris 7.
48194 2011-09-18  Bruno Haible  <bruno@clisp.org>
48196         accept, accept4 tests: Avoid link error on Solaris.
48197         * modules/accept-tests (Makefile.am): Link test-accept against
48198         $(LIBSOCKET).
48199         * modules/accept4-tests (Makefile.am): Link test-accept4 against
48200         $(LIBSOCKET).
48202         accept4: Avoid link error on Solaris.
48203         * modules/accept4 (Link): New section.
48205         socket functions: Avoid link errors on Solaris.
48206         * modules/accept (Depends-on): Add socketlib.
48207         (Link): New section.
48208         * modules/bind (Depends-on): Add socketlib.
48209         (Link): New section.
48210         * modules/connect (Depends-on): Add socketlib.
48211         (Link): New section.
48212         * modules/getpeername (Depends-on): Add socketlib.
48213         (Link): New section.
48214         * modules/getsockname (Depends-on): Add socketlib.
48215         (Link): New section.
48216         * modules/getsockopt (Depends-on): Add socketlib.
48217         (Link): New section.
48218         * modules/listen (Depends-on): Add socketlib.
48219         (Link): New section.
48220         * modules/recv (Depends-on): Add socketlib.
48221         (Link): New section.
48222         * modules/recvfrom (Depends-on): Add socketlib.
48223         (Link): New section.
48224         * modules/send (Depends-on): Add socketlib.
48225         (Link): New section.
48226         * modules/sendto (Depends-on): Add socketlib.
48227         (Link): New section.
48228         * modules/setsockopt (Depends-on): Add socketlib.
48229         (Link): New section.
48230         * modules/shutdown (Depends-on): Add socketlib.
48231         (Link): New section.
48232         * modules/socket (Depends-on): Add socketlib.
48233         (Link): New section.
48235 2011-09-18  Bruno Haible  <bruno@clisp.org>
48237         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
48238         * tests/test-ptsname.c (main): Terminate the test if it takes longer
48239         than 5 seconds.
48240         * modules/ptsname-tests (configure.ac): Test for alarm.
48242 2011-09-18  Bruno Haible  <bruno@clisp.org>
48244         posix_spawn_file_actions_add*: Fix module dependencies.
48245         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
48246         posix_spawn_file_actions_init.
48247         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
48248         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
48250 2011-09-18  Bruno Haible  <bruno@clisp.org>
48252         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
48253         * tests/test-rename.h (test_rename): Allow error code EEXIST.
48254         * tests/test-renameat.c (main): Likewise.
48256 2011-09-18  Bruno Haible  <bruno@clisp.org>
48258         Tests for module 'accept4'.
48259         * modules/accept4-tests: New file.
48260         * tests/test-accept4.c: New file.
48262 2011-09-18  Bruno Haible  <bruno@clisp.org>
48264         Tests for module 'accept'.
48265         * modules/accept-tests: New file.
48266         * tests/test-accept.c: New file.
48268 2011-09-18  Bruno Haible  <bruno@clisp.org>
48270         dup2: Support for MSVC.
48271         * lib/dup2.c: Include msvc-inval.h.
48272         (rpl_dup2): Handle invalid parameter notifications during dup2 and
48273         _get_osfhandle calls.
48274         * modules/dup2 (Depends-on): Add msvc-inval.
48275         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
48277         New module 'msvc-inval'.
48278         * lib/msvc-inval.h: New file.
48279         * lib/msvc-inval.c: New file.
48280         * m4/msvc-inval.m4: New file.
48281         * modules/msvc-inval: New file.
48283 2011-09-17  Bruno Haible  <bruno@clisp.org>
48285         Tests for module 'pclose'.
48286         * modules/pclose-tests: New file.
48288         New module 'pclose'.
48289         * lib/stdio.in.h (pclose): New declaration.
48290         * lib/pclose.c: New file.
48291         * m4/pclose.m4: New file.
48292         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
48293         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
48294         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
48295         * modules/pclose: New file.
48296         * modules/popen-tests (Depends-on): Add pclose.
48297         * modules/popen-safer-tests (Depends-on): Likewise.
48298         * doc/posix-functions/pclose.texi: Mention the new module.
48300 2011-09-17  Bruno Haible  <bruno@clisp.org>
48302         popen: Support for MSVC.
48303         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
48304         * lib/popen.c (popen): Provide alternate definition for native Windows.
48305         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
48306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
48307         * modules/popen (Depends-on, configure.ac): Update condition.
48308         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
48309         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
48310         fixed.
48312 2011-09-17  Bruno Haible  <bruno@clisp.org>
48314         isnanl, isnand, isnanf: Work around MSVC bug.
48315         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
48317 2011-09-17  Bruno Haible  <bruno@clisp.org>
48319         sys_socket tests: Fix recent mistake.
48320         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
48322 2011-09-17  Bruno Haible  <bruno@clisp.org>
48324         putenv: Support for MSVC.
48325         * modules/putenv (Depends-on): Add environ.
48326         * lib/putenv.c (environ): Disable declaration.
48327         * lib/unistd.in.h: Update comment.
48329 2011-09-17  Bruno Haible  <bruno@clisp.org>
48331         math: Avoid macro redefinition warnings on MSVC.
48332         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
48333         Undefine before redefining.
48335 2011-09-17  Bruno Haible  <bruno@clisp.org>
48337         doc: Mention functions which are declared as macros.
48338         * doc/posix-functions/*[fl].texi: Mention that some functions are
48339         defined as macros with arguments only.
48341 2011-09-17  Bruno Haible  <bruno@clisp.org>
48343         Add dependencies to new dirent related modules.
48344         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48345         * modules/fts (Depends-on): Likewise.
48346         * modules/glob (Depends-on): Likewise.
48347         * modules/savedir (Depends-on): Likewise.
48348         * modules/scandir (Depends-on): Likewise.
48349         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48350         * modules/fdopendir (Depends-on): Add opendir.
48352 2011-09-17  Bruno Haible  <bruno@clisp.org>
48354         inet_pton: Support for MSVC on Windows Vista or newer.
48355         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48356         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48357         HAVE_DECL_INET_PTON is defined.
48358         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48359         On platforms with <winsock2.h>, test whether inet_pton is declared in
48360         <ws2tcpip.h>. If so, arrange to replace it.
48361         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48362         REPLACE_INET_PTON.
48363         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48364         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48365         (Depends-on, configure.ac): Update condition.
48366         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48368 2011-09-17  Bruno Haible  <bruno@clisp.org>
48370         inet_ntop: Support for MSVC on Windows Vista or newer.
48371         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48372         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48373         HAVE_DECL_INET_NTOP is defined.
48374         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48375         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48376         <ws2tcpip.h>. If so, arrange to replace it.
48377         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48378         REPLACE_INET_NTOP.
48379         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48380         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48381         (Depends-on, configure.ac): Update condition.
48382         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48384 2011-09-16  Eric Blake  <eblake@redhat.com>
48386         test-fsync: yet another enhancement
48387         * tests/test-fsync.c (main): Also test behavior on read-only text
48388         file.
48390 2011-09-16  Bruno Haible  <bruno@clisp.org>
48392         Enhance fsync, fdatasync tests.
48393         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48394         * tests/test-fdatasync.c (main): Likewise.
48396 2011-09-16  Bruno Haible  <bruno@clisp.org>
48398         Support for MSVC compiler: Ensure mode_t gets defined.
48399         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48400         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48402         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48403         * tests/test-fcntl-h.c: Check that mode_t is defined.
48404         * tests/test-sys_stat.c: Likewise.
48405         * tests/test-sys_types.c: Likewise.
48406         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48407         * doc/posix-headers/sys_stat.texi: Likewise.
48408         * doc/posix-headers/sys_types.texi: Likewise.
48410 2011-09-16  Bruno Haible  <bruno@clisp.org>
48412         sys_stat: Support for MSVC.
48413         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48414         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48415         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48416         MSVC.
48418 2011-09-16  Bruno Haible  <bruno@clisp.org>
48420         Support for MSVC compiler: Ensure off_t gets defined.
48421         * lib/unistd.in.h: Include <sys/types.h>.
48422         * tests/test-fcntl-h.c: Check that off_t is defined.
48423         * tests/test-sys_stat.c: Likewise.
48424         * tests/test-sys_types.c: Likewise.
48426 2011-09-16  Eric Blake  <eblake@redhat.com>
48428         fdatasync: port to Solaris
48429         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48430         * modules/fdatasync (Link): Document it.
48431         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48433         fdatasync: port to MacOS X 10.7
48434         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48435         declared.
48436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48437         * modules/unistd (Makefile.am): Substitute it.
48438         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48439         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48441         fdatasync: minor improvements
48442         * modules/fdatasync (Depends-on): Add condition for fsync.
48443         * lib/fdatasync.c (fdatasync): Add comment.
48444         * tests/test-unistd-c++.cc: Test fdatasync.
48446         unistd: update refs to newer POSIX
48447         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48448         Suggested by Bruno Haible.
48450         fdatasync: new module
48451         * modules/fsync (Description): Document difference to fdatasync.
48452         * modules/fdatasync: New module.
48453         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
48454         * lib/fdatasync.c (fdatasync): Likewise.
48455         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
48456         defaults.
48457         * modules/unistd (Makefile.am): Set witnesses.
48458         * lib/unistd.in.h (fdatasync): Declare.
48459         * MODULES.html.sh: Document it.
48460         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
48461         * modules/fdatasync-tests: New test.
48462         * tests/test-fdatasync.c: Likewise.
48464 2011-09-16  Eric Blake  <eblake@redhat.com>
48466         test-fsync: enhance tests
48467         * modules/fsync-tests (Depends-on): Add errno, for mingw.
48468         * tests/test-fsync.c (main): Enhance test.
48470 2011-09-15  Bruno Haible  <bruno@clisp.org>
48472         Support for MSVC compiler: Ensure ssize_t gets defined.
48473         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
48474         * doc/posix-headers/stdio.texi: Likewise.
48475         * modules/stdio (Depends-on): Add ssize_t.
48476         * modules/sys_socket (Depends-on): Likewise.
48477         * modules/sys_types (Depends-on): Likewise.
48478         * modules/sys_uio (Depends-on): Likewise.
48479         * modules/unistd (Depends-on): Likewise.
48480         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
48481         * tests/test-sys_types.c: Check that ssize_t is defined.
48483 2011-09-14  Bruno Haible  <bruno@clisp.org>
48485         Avoid using #, the m4 comment starter character, near brackets.
48486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
48487         delimiter character in sed expressions.
48488         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
48489         Suggested by Eric Blake.
48491         Properly quote AC_CHECK_DECLS' 4th argument.
48492         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
48493         argument.
48494         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48495         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48496         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48497         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48498         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48499         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
48500         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
48501         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
48502         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
48503         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48504         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
48505         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48506         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48507         * m4/isinf.m4 (gl_ISINF): Likewise.
48508         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48509         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48510         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48511         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48512         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48513         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48514         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48515         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
48516         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
48517         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48518         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
48521         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48523         Reported by Eric Blake.
48525         Properly quote AC_CHECK_DECL's 4th argument.
48526         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
48527         argument.
48528         * m4/argp.m4 (gl_ARGP): Likewise.
48529         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48530         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48531         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48532         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48533         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
48534         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
48535         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
48536         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48537         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48538         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48539         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48540         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48541         Reported by Eric Blake.
48543 2011-09-14  Eric Blake  <eblake@redhat.com>
48545         opendir: avoid compile warning
48546         * lib/opendir.c (includes): Always include errno.h.
48547         Reported by Tatsuro MATSUOKA.
48549 2011-09-14  Jim Meyering  <meyering@redhat.com>
48551         maint.mk: sc_tight_scope: propagate failure from sub-make
48552         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
48553         Reported by Martin von Gagern.
48555 2011-09-13  Bruno Haible  <bruno@clisp.org>
48557         tempname: Support for MSVC.
48558         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
48559         MSVC.
48560         * modules/tempname (Depends-on): Add fcntl-h.
48562 2011-09-13  Bruno Haible  <bruno@clisp.org>
48564         sys_time: Support for MSVC.
48565         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
48566         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
48567         include <winsock2.h>.
48568         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
48569         function declarations that collide with POSIX.
48570         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
48571         (Makefile.am): Substitute HAVE_WINSOCK2_H.
48573 2011-09-13  Bruno Haible  <bruno@clisp.org>
48575         stat: Support for MSVC.
48576         * lib/stat.c: Include pathmax.h.
48577         * modules/stat (Depends-on): Add pathmax.
48579         pathmax: Support for native Windows.
48580         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
48582 2011-09-12  Bruno Haible  <bruno@clisp.org>
48584         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
48585         * lib/dirent.in.h (struct dirent): New type.
48586         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
48587         DT_WHT): New macros.
48588         (DIR): New type.
48589         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48590         (readdir, rewinddir): New declarations.
48591         * lib/dirent-private.h: New file.
48592         * lib/opendir.c: New file.
48593         * lib/readdir.c: New file.
48594         * lib/rewinddir.c: New file.
48595         * lib/closedir.c: New file.
48596         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
48597         * m4/opendir.m4: New file.
48598         * m4/readdir.m4: New file.
48599         * m4/rewinddir.m4: New file.
48600         * m4/closedir.m4: New file.
48601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
48602         REPLACE_CLOSEDIR here.
48603         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
48604         readdir, rewinddir are declared.
48605         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
48606         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
48607         HAVE_REWINDDIR, HAVE_CLOSEDIR.
48608         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
48609         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
48610         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
48611         * modules/opendir: New file.
48612         * modules/readdir: New file.
48613         * modules/rewinddir: New file.
48614         * modules/closedir: New file.
48615         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
48616         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
48617         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
48618         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
48619         * NEWS: Mention the 'fchdir' change.
48621 2011-09-11  Bruno Haible  <bruno@clisp.org>
48623         asm-underscore.m4: Support for MSVC.
48624         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
48625         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
48627 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
48629         Doc about crypt functions.
48630         * doc/posix-functions/crypt.texi: Expand range of glibc versions
48631         needing for _GNU_SOURCE to get crypt.
48632         * doc/posix-functions/encrypt.texi: Likewise.
48633         * doc/posix-functions/setkey.texi: Likewise.
48635 2011-09-11  Bruno Haible  <bruno@clisp.org>
48637         doc: Update regarding MSVC 9.
48638         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
48639         tested".
48640         * doc/posix-functions/*.texi: Update with info about MSVC 9.
48641         * doc/posix-headers/*.texi: Likewise.
48642         * doc/pastposix-functions/*.texi: Likewise.
48643         * doc/glibc-functions/*.texi: Likewise.
48644         * doc/glibc-headers/*.texi: Likewise.
48646 2011-09-11  Bruno Haible  <bruno@clisp.org>
48648         unistd et al.: Don't assume <unistd.h> exists.
48649         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
48650         does not exist.
48651         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
48652         exist. But include <stdlib.h>.
48653         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
48654         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
48655         symlink() does not exist.
48656         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
48657         include <io.h> instead.
48658         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
48659         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
48660         include <direct.h> instead.
48661         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48663         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48664         <io.h> instead.
48665         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48666         correctly if the system does not have hard links.
48667         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48668         <direct.h> instead.
48669         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48670         it when looking for function declarations.
48671         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48672         <direct.h> and <io.h> instead.
48673         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48675 2011-09-11  Bruno Haible  <bruno@clisp.org>
48677         strcase: Support for MSVC.
48678         * modules/strcase (Status, Notice): Remove obsoletion mark.
48679         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48680         * doc/posix-functions/strncasecmp.texi: Likewise.
48682         strings: Don't assume <strings.h> exists.
48683         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48684         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48685         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48686         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48688 2011-09-11  Bruno Haible  <bruno@clisp.org>
48690         dirent: Don't assume <dirent.h> exists.
48691         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48692         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48693         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48694         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48696 2011-09-11  Bruno Haible  <bruno@clisp.org>
48698         Fix wint_t on MSVC.
48699         * lib/wchar.in.h (wint_t): On MSVC, override it.
48700         * lib/wctype.in.h (wint_t): Likewise.
48701         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48702         MSVC.
48703         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48704         * doc/posix-headers/wctype.texi: Likewise.
48706 2011-09-11  Bruno Haible  <bruno@clisp.org>
48708         sys_types: Fix typo.
48709         * lib/sys_types.in.h: Fix typo in comment.
48710         Reported by Paul Eggert.
48712         Support for MSVC compiler: Ensure size_t gets defined.
48713         * modules/strings (Depends-on): Add 'sys_types'.
48714         * modules/sys_uio (Depends-on): Likewise.
48715         * lib/sys_uio.in.h: Update comment.
48717         C++ tests for module 'sys_types'.
48718         * modules/sys_types-c++-tests: New file.
48719         * tests/test-sys_types-c++.cc: New file.
48721         Tests for module 'sys_types'.
48722         * modules/sys_types-tests: New file.
48723         * tests/test-sys_types.c: New file.
48725         New module 'sys_types'.
48726         * lib/sys_types.in.h: New file.
48727         * m4/sys_types_h.m4: New file.
48728         * modules/sys_types: New file.
48729         * doc/posix-headers/sys_types.texi: Mention the new module and the
48730         size_t problem on MSVC 9.
48732 2011-09-11  Bruno Haible  <bruno@clisp.org>
48734         Support for MSVC compiler: Avoid division by a literal 0.
48735         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48737         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48738         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48739         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48740         * tests/infinity.h: New file.
48741         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48742         on MSVC.
48743         * tests/test-ceilf1.c: Include infinity.h.
48744         (main): Use Infinityf.
48745         * tests/test-ceil1.c: Include infinity.h.
48746         (main): Use Infinityd.
48747         * tests/test-ceill.c: Include infinity.h.
48748         (main): Use Infinityl.
48749         * tests/test-dprintf-posix.c: Include infinity.h.
48750         (test_function): Use Infinityd.
48751         * tests/test-floorf1.c: Include infinity.h.
48752         (main): Use Infinityf.
48753         * tests/test-floor1.c: Include infinity.h.
48754         (main): Use Infinityd.
48755         * tests/test-floorl.c: Include infinity.h.
48756         (main): Use Infinityl.
48757         * tests/test-fprintf-posix.c: Include infinity.h.
48758         (test_function): Use Infinityd.
48759         * tests/test-frexp.c: Include infinity.h.
48760         (main): Use Infinityd.
48761         * tests/test-frexpl.c: Include infinity.h.
48762         (main): Use Infinityl.
48763         * tests/test-isfinite.c: Include infinity.h.
48764         (test_isfinitef): Use Infinityf.
48765         (test_isfinited): Use Infinityd.
48766         (test_isfinitel): Use Infinityl.
48767         * tests/test-isinf.c: Include infinity.h.
48768         (test_isinff): Use Infinityf.
48769         (test_isinfd): Use Infinityd.
48770         (test_isinfl): Use Infinityl.
48771         * tests/test-isnan.c: Include infinity.h.
48772         (test_float): Use Infinityf.
48773         (test_double): Use Infinityd.
48774         (test_long_double): Use Infinityl.
48775         * tests/test-isnanf.h: Include infinity.h.
48776         (main): Use Infinityf.
48777         * tests/test-isnand.h: Include infinity.h.
48778         (main): Use Infinityd.
48779         * tests/test-isnanl.h: Include infinity.h.
48780         (main): Use Infinityl.
48781         * tests/test-ldexpl.c: Include infinity.h.
48782         (main): Use Infinityl.
48783         * tests/test-printf-posix.h: Include infinity.h.
48784         (test_function): Use Infinityd.
48785         * tests/test-roundf1.c: Include infinity.h.
48786         (main): Use Infinityf.
48787         * tests/test-round1.c: Include infinity.h.
48788         (main): Use Infinityd.
48789         * tests/test-roundl.c: Include infinity.h.
48790         (main): Use Infinityl.
48791         * tests/test-signbit.c: Include infinity.h.
48792         (test_signbitf): Use Infinityf.
48793         (test_signbitd): Use Infinityd.
48794         (test_signbitl): Use Infinityl.
48795         * tests/test-snprintf-posix.h: Include infinity.h.
48796         (test_function): Use Infinityd, Infinityl.
48797         * tests/test-sprintf-posix.h: Include infinity.h.
48798         (test_function): Use Infinityd, Infinityl.
48799         * tests/test-truncf1.c: Include infinity.h.
48800         (main): Use Infinityf.
48801         * tests/test-trunc1.c: Include infinity.h.
48802         (main): Use Infinityd.
48803         * tests/test-truncl.c: Include infinity.h.
48804         (main): Use Infinityl.
48805         * tests/test-vasnprintf-posix.c: Include infinity.h.
48806         (test_function): Use Infinityd, Infinityl.
48807         * tests/test-vasprintf-posix.c: Include infinity.h.
48808         (test_function): Use Infinityd, Infinityl.
48809         * modules/ceilf-tests (Files): Add tests/infinity.h.
48810         * modules/ceil-tests (Files): Likewise.
48811         * modules/ceill-tests (Files): Likewise.
48812         * modules/dprintf-posix-tests (Files): Likewise.
48813         * modules/floorf-tests (Files): Likewise.
48814         * modules/floor-tests (Files): Likewise.
48815         * modules/floorl-tests (Files): Likewise.
48816         * modules/fprintf-posix-tests (Files): Likewise.
48817         * modules/frexp-tests (Files): Likewise.
48818         * modules/frexp-nolibm-tests (Files): Likewise.
48819         * modules/frexpl-tests (Files): Likewise.
48820         * modules/frexpl-nolibm-tests (Files): Likewise.
48821         * modules/isfinite-tests (Files): Likewise.
48822         * modules/isinf-tests (Files): Likewise.
48823         * modules/isnan-tests (Files): Likewise.
48824         * modules/isnanf-tests (Files): Likewise.
48825         * modules/isnanf-nolibm-tests (Files): Likewise.
48826         * modules/isnand-tests (Files): Likewise.
48827         * modules/isnand-nolibm-tests (Files): Likewise.
48828         * modules/isnanl-tests (Files): Likewise.
48829         * modules/isnanl-nolibm-tests (Files): Likewise.
48830         * modules/ldexpl-tests (Files): Likewise.
48831         * modules/printf-posix-tests (Files): Likewise.
48832         * modules/roundf-tests (Files): Likewise.
48833         * modules/round-tests (Files): Likewise.
48834         * modules/roundl-tests (Files): Likewise.
48835         * modules/signbit-tests (Files): Likewise.
48836         * modules/snprintf-posix-tests (Files): Likewise.
48837         * modules/sprintf-posix-tests (Files): Likewise.
48838         * modules/truncf-tests (Files): Likewise.
48839         * modules/trunc-tests (Files): Likewise.
48840         * modules/truncl-tests (Files): Likewise.
48841         * modules/vasnprintf-posix-tests (Files): Likewise.
48842         * modules/vasprintf-posix-tests (Files): Likewise.
48843         * modules/vdprintf-posix-tests (Files): Likewise.
48844         * modules/vfprintf-posix-tests (Files): Likewise.
48845         * modules/vprintf-posix-tests (Files): Likewise.
48846         * modules/vsnprintf-posix-tests (Files): Likewise.
48847         * modules/vsprintf-posix-tests (Files): Likewise.
48848         * modules/xprintf-posix-tests (Files): Likewise.
48850 2011-09-11  Bruno Haible  <bruno@clisp.org>
48852         Ensure pid_t gets defined.
48853         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48854         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48855         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48856         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48857         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48858         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48859         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48860         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48861         * tests/test-fcntl-h.c: Check that pid_t is defined.
48862         * tests/test-sched.c: Likewise.
48863         * tests/test-termios.c: Likewise.
48864         * tests/test-time.c: Likewise.
48865         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48866         * doc/posix-headers/signal.texi: Likewise.
48867         * doc/posix-headers/sys_types.texi: Likewise.
48868         * doc/posix-headers/time.texi: Likewise.
48870 2011-09-11  Bruno Haible  <bruno@clisp.org>
48872         acl: Fix compilation on Solaris 10 (older version).
48873         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48874         of ACE_EVERYONE.
48875         * lib/set-mode-acl.c (qset_acl): Likewise.
48876         Reported by Christian Jullien <eligis@orange.fr>.
48878 2011-09-10  Bruno Haible  <bruno@clisp.org>
48880         iconv, unsetenv: Add support for MSVC compiler.
48881         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48882         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48884 2011-09-10  Bruno Haible  <bruno@clisp.org>
48886         *printf: Add support for MSVC compiler.
48887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48888         handles the exception caused by the %n directive. When cross-compiling,
48889         guess no on native Windows.
48890         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48891         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48892         emulate it through vsnprintf.
48893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48894         * doc/posix-functions/dprintf.texi: Update documentation regarding
48895         MSVC 9.
48896         * doc/posix-functions/fprintf.texi: Likewise.
48897         * doc/posix-functions/printf.texi: Likewise.
48898         * doc/posix-functions/snprintf.texi: Likewise.
48899         * doc/posix-functions/sprintf.texi: Likewise.
48900         * doc/posix-functions/swprintf.texi: Likewise.
48901         * doc/posix-functions/vdprintf.texi: Likewise.
48902         * doc/posix-functions/vfprintf.texi: Likewise.
48903         * doc/posix-functions/vprintf.texi: Likewise.
48904         * doc/posix-functions/vsnprintf.texi: Likewise.
48905         * doc/posix-functions/vsprintf.texi: Likewise.
48906         * doc/glibc-functions/asprintf.texi: Likewise.
48907         * doc/glibc-functions/obstack_printf.texi: Likewise.
48908         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48909         * doc/glibc-functions/vasprintf.texi: Likewise.
48911 2011-09-10  Bruno Haible  <bruno@clisp.org>
48913         nocrash: Add support for native Windows.
48914         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48916 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48917             Bruno Haible  <bruno@clisp.org>
48919         absolute-header, include-next: Add support for MSVC compiler.
48920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48921         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48922         directory separator in #line directives.
48923         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48924         recognize also backslash as directory separator in #line directives.
48926 2011-09-08  Jim Meyering  <meyering@redhat.com>
48928         maint.mk: mark the post-release commit log with "maint: " prefix
48929         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48930         one-line commit-log summary.
48932 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48933             Bruno Haible  <bruno@clisp.org>
48935         Doc about crypt functions.
48936         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48937         systems.
48938         * doc/posix-functions/encrypt.texi: Likewise.
48939         * doc/posix-functions/setkey.texi: Likewise.
48941 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48943         * lib/gc.h: Fix copyright header.
48945 2011-09-07  Bruno Haible  <bruno@clisp.org>
48947         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48948         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48949         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48951 2011-09-07  Bruno Haible  <bruno@clisp.org>
48953         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48954         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48955         * lib/freopen.c: Likewise.
48956         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48957         * lib/lstat.c: Likewise.
48958         * lib/stat.c: Likewise.
48959         * lib/open.c: Use different syntax for include of <fcntl.h>.
48960         * lib/openat.c: Include fcntl.h again, explicitly.
48962 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48964         parse-datetime: document the newly accepted format
48965         * doc/parse-datetime.texi (Combined date and time of day items):
48966         New section.
48968 2011-09-06  Bruno Haible  <bruno@clisp.org>
48970         acl: Fix a test failure on newer Solaris 10 with ZFS.
48971         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48972         ENOSYS as no ACL.
48973         Reported by Jim Meyering.
48975 2011-09-06  Bruno Haible  <bruno@clisp.org>
48977         acl: Update for AIX >= 5.3 with NFS.
48978         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48979         ENOSYS as no ACL.
48981         acl: Fix a test failure on AIX >= 5.3 with NFS.
48982         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48983         as no ACL.
48985 2011-09-06  Bruno Haible  <bruno@clisp.org>
48987         acl: Fix a test failure on IRIX 6.5 with NFS.
48988         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48989         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48990         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48991         * lib/copy-acl.c (qcopy_acl): Likewise.
48993 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48995         openat: port to AIX 7.1 with large files
48996         AIX 7.1 does a "#define openat open64at" if large files are in use,
48997         so we can't simply #undef openat.  Use the orig_openat trick (similar
48998         to orig_open in lib/open.c) to work around the problem.  Problem
48999         reported by Kevin Brott for GNU tar, in the thread containing
49000         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
49001         * lib/openat.c (__need_system_fcntl_h): Define first.
49002         Include <fcntl.h> and <sys/types.h> before undefining.
49003         (orig_openat) [HAVE_OPENAT]: New inline function.
49004         (openat) [HAVE_OPENAT]: Do not undef.
49005         (rpl_openat): Use orig_openat, not openat.
49007 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
49008             Bruno Haible  <bruno@clisp.org>
49010         acl: Avoid errors on NonStop Kernel.
49011         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
49012         ENOTSUP errors.
49014 2011-09-05  Bruno Haible  <bruno@clisp.org>
49016         acl: Clean up Solaris code.
49017         * lib/acl-internal.h: Remove no-op #if.
49018         * lib/file-has-acl.c: Likewise.
49019         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
49020         * lib/copy-acl.c (qcopy_acl): Likewise.
49022 2011-09-05  Bruno Haible  <bruno@clisp.org>
49024         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
49025         binaries built on the original Solaris 10.
49026         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
49027         trivial.
49029 2011-09-05  Bruno Haible  <bruno@clisp.org>
49031         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49032         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
49033         10.
49034         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
49035         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
49036         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
49037         instead of acl_get, facl_get, acl_set, facl_set.
49039 2011-09-05  Bruno Haible  <bruno@clisp.org>
49041         copy-file: Try unit tests on more file systems.
49042         * tests/test-copy-file-1.sh: New file.
49043         * tests/test-copy-file-2.sh: New file.
49044         * modules/copy-file-tests (Files): Add them.
49045         (Makefile.am): Add them to TESTS.
49047         acl: Try unit tests on more file systems.
49048         * tests/test-file-has-acl-1.sh: New file.
49049         * tests/test-file-has-acl-2.sh: New file.
49050         * tests/test-set-mode-acl-1.sh: New file.
49051         * tests/test-set-mode-acl-2.sh: New file.
49052         * tests/test-copy-acl-1.sh: New file.
49053         * tests/test-copy-acl-2.sh: New file.
49054         * modules/acl-tests (Files): Add them.
49055         (Makefile.am): Add them to TESTS.
49057 2011-09-04  Bruno Haible  <bruno@clisp.org>
49059         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49060         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
49061         10.
49062         (OLD_ALLOW, OLD_DENY): New macros.
49063         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
49064         ACE_ACCESS_ALLOWED_ACE_TYPE.
49065         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
49066         ACE_ACCESS_DENIED_ACE_TYPE.
49067         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
49068         (NEW_ACE_EXECUTE): Fix value.
49069         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
49070         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
49071         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
49072         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
49073         NEW_ACE_SYNCHRONIZE): New macros.
49074         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
49075         instead of acl_fromtext, acl_set, facl_set.
49076         Fixes a coreutils/tests/cp/perm failure.
49078 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
49080         openat: test for fstatat (..., 0) bug
49081         Further testing with tar suggests that fstatat (..., 0)
49082         does not work in general, on AIX 7.1; see
49083         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
49084         So, give up entirely on AIX 7.1's fstatat, and fall back on our
49085         replacement fstatat (which is what older AIX releases were using
49086         anyway).
49087         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
49088         use is now changed to orig_fstatat.  This was probably the right
49089         thing to do anyway.
49090         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
49091         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
49092         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
49093         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
49094         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
49095         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
49096         if the bug is found.
49098         openat: test for fstatat (AT_FDCWD, ..., 0) bug
49099         This tests for another fstatat bug on AIX 7.1:
49100         fstatat (AT_FDCWD, ..., 0) does not work.  See
49101         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
49102         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
49103         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
49104         (rpl_fstatat): Adjust so that it works around either (or both)
49105         bugs if present.
49106         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
49108 2011-09-03  Karl Berry  <karl@gnu.org>
49110         * doc/regex.texi (Character Class Operators): Avoid literal ":"
49111         in index entries.
49113 2011-09-02  Bruno Haible  <bruno@clisp.org>
49115         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
49116         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
49117         values of AR, ARFLAGS, RANLIB.
49118         Reported by John W. Eaton <jwe@gnu.org> for Octave.
49120 2011-09-02  Bruno Haible  <bruno@clisp.org>
49122         Find 'ar' program that fits with --host argument.
49123         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
49125 2011-09-02  Bruno Haible  <bruno@clisp.org>
49127         tests: init.sh: Support any non-GNU diff.
49128         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
49129         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
49130         Solaris 8.
49132 2011-09-02  Bruno Haible  <bruno@clisp.org>
49134         tests: init.sh: work also with any non-GNU diff that supports -u
49135         * tests/init.sh: Relax check for diff -u support.
49136         Rather than checking for GNU diff via --version, simply check
49137         for support for -u itself.  Useful at least on OpenBSD 4.9,
49138         AIX 7.1, IRIX 6.5, and Solaris 10.
49140 2011-09-01  Bruno Haible  <bruno@clisp.org>
49142         strtoimax, strtoumax: Document problem on HP-UX 11.
49143         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
49144         * doc/posix-functions/strtoumax.texi: Likewise.
49146 2011-09-01  Bruno Haible  <bruno@clisp.org>
49148         strtoumax: Avoid link error on OSF/1 with DTK cc.
49149         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
49150         defined as a function.
49151         * modules/strtoumax (Depends-on, configure.ac): Test only whether
49152         strtoumax is defined, not whether it is declared.
49154 2011-09-01  Bruno Haible  <bruno@clisp.org>
49156         strtoimax: Avoid link error on OSF/1 with DTK cc.
49157         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
49158         defined as a function.
49159         * modules/strtoimax (Depends-on, configure.ac): Test only whether
49160         strtoimax is defined, not whether it is declared.
49162 2011-09-01  Bruno Haible  <bruno@clisp.org>
49164         imaxdiv: Avoid link error on OSF/1 with DTK cc.
49165         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
49166         as a function.
49167         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
49168         whether it is declared.
49170 2011-09-01  Bruno Haible  <bruno@clisp.org>
49172         imaxabs: Avoid link error on OSF/1 with DTK cc.
49173         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49174         as a function.
49175         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49176         whether it is declared.
49178 2011-09-01  Bruno Haible  <bruno@clisp.org>
49180         Tests for module 'strtoumax'.
49181         * modules/strtoumax-tests: New file.
49182         * tests/test-strtoumax.c: New file.
49184         Tests for module 'strtoimax'.
49185         * modules/strtoimax-tests: New file.
49186         * tests/test-strtoimax.c: New file.
49188         Tests for module 'imaxdiv'.
49189         * modules/imaxdiv-tests: New file.
49190         * tests/test-imaxdiv.c: New file.
49192         Tests for module 'imaxabs'.
49193         * modules/imaxabs-tests: New file.
49194         * tests/test-imaxabs.c: New file.
49196 2011-09-01  Bruno Haible  <bruno@clisp.org>
49198         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
49199         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
49200         pthread_create.
49202 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49204         openat: work around AIX 7.1 fstatat issue
49205         This should fix the problem that was not properly fixed
49206         in the previous change, dated 2011-08-30.
49207         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
49208         __need_system_stat_h defined.
49209         (orig_fstatat) [HAVE_FSTATAT]: New function.
49210         (rpl_fstatat): Go back to the old way of doing things,
49211         except call orig_fstatat instead of fstatat.
49212         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
49213         Remove unnecessary check whether fstatat fills in st_size etc.
49215 2011-09-01  Bruno Haible  <bruno@clisp.org>
49217         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
49218         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
49219         just include the system's header.
49221 2011-08-31  Jim Meyering  <meyering@redhat.com>
49223         tests: avoid spurious assertion failure in test-float.c on ppc64
49224         * tests/test-float.c (test_long_double): Comment out an assertion,
49225         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
49226         with gcc-4.4.4.
49228         maint: indent with spaces, not TABs
49229         I need to get in the habit of running gnulib's "make check".
49230         Both of these would have been caught.
49231         * m4/largefile.m4: Indent with spaces, not TABs.
49232         * lib/parse-datetime.y (iso_8601_time): Likewise.
49233         Spotted by Pádraig Brady.
49235         test-parse-datetime.c: accommodate a relatively strict gcc warning
49236         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
49237         to avoid a warning from gcc's -Werror=missing-declarations.
49238         Insert a few spaces-before-funcall-parenthesis.
49240 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
49242         parse-datetime: accept ISO 8601 date and time rep with "T" separator
49243         The parser now accepts ISO 8601 date-time strings with "T" as the
49244         separator.  It has long parsed dates like "2004-02-29 16:21:42"
49245         with a space between the date and time strings.  Now it also parses
49246         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
49247         variants like "2004-02-29T16:21:42.333-07:00"
49248         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
49249         of day representation using the 'T' separator character.
49250         * doc/parse-datetime.texi (General date syntax): replace use of
49251         deprecated --iso-8601 option with --rfc-3339 in example of date
49252         command output formats that can be parsed.
49253         * tests/test-parse-datetime.c (tm_diff): New function, taken from
49254         lib/parse-datetime.y.
49255         (gmt_offset): New function.
49256         (main): Add additional test cases to validate ISO8601 extended
49257         date and time of day parsing.
49259 2011-08-31  Bruno Haible  <bruno@clisp.org>
49261         freopen: Documentation.
49262         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
49263         name.
49264         Reported by Claudio Bley <claudio.bley@gmail.com>.
49266 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
49268         freopen: Don't crash if the filename argument is NULL.
49269         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
49270         NULL.
49272 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49274         openat: work around AIX 7.1 fstatat bug
49275         Problem reported by Kevin Brott for GNU tar, in the thread containing
49276         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
49277         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
49278         FSTATAT_ST_SIZE_ETC_BROKEN.
49279         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
49280         rpl_fstatat.
49281         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
49282         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
49283         AC_CHECK_FUNCS_ONCE for fstatat.
49284         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
49285         fchmodat, mkdirat, openat and unlinkat.
49287 2011-08-30  Bruno Haible  <bruno@clisp.org>
49289         Avoid endless recursions if config.h includes some header files.
49290         * lib/fopen.c (__need_FILE): Define already before including config.h.
49291         * lib/freopen.c (__need_FILE): Likewise.
49292         * lib/open.c (__need_system_fcntl_h): Likewise.
49293         * lib/stat.c (__need_system_sys_stat_h): Likewise.
49294         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
49295         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
49297 2011-08-25  Karl Berry  <karl@gnu.org>
49299         * config/srclist.txt (ylwrap): new try.
49300         * build-aux/ylwrap: new file.
49302 2011-08-23  Bruno Haible  <bruno@clisp.org>
49304         tmpdir: Use a good default directory on native Windows.
49305         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
49306         (P_tmpdir): Default to _P_tmpdir on native Windows.
49307         (path_search): On native Windows, try the value returned by GetTempPath
49308         before trying P_tmpdir.
49309         * modules/tmpdir (Depends-on): Add pathmax.
49310         Suggested by John Darrington <john@darrington.wattle.id.au>.
49312 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
49314         doc: fix typo in README-release
49315         * top/README-release: Capitalize first word of a sentence.
49317 2011-08-19  Jim Meyering  <meyering@redhat.com>
49319         fts: do not exhaust memory when processing million-entry directories
49320         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
49321         directory would require about 256*N bytes of memory.  Thus, it was
49322         easy to construct a directory too large to be processed by any of
49323         those tools.  With this change, fts' maximum memory utilization is
49324         now limited to around 30MB.
49325         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
49326         (fts_read): When we've processed the final entry (i.e., when
49327         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
49328         using the parent entry to read any remaining entries.  Dispatch
49329         depending on what fts_build returns:
49330         - NULL+stop, aka failure: stop
49331         - NULL otherwise: move up in the dir hierarchy
49332         - non-NULL: handle this new entry
49333         (fts_build): Declare and use new local, continue_readdir.
49334         Prepare to be called from fts_read, when the entries
49335         from a partially-read directory have just been exhausted.
49336         In that case, we'll skip the opendir and instead use the parent's
49337         fts_dirp and derive dir_fd from that.
49338         Finally, in the readdir loop, if we read max_entries entries,
49339         exit the loop ensuring *not* to call closedir.  This is required
49340         so that fts_dirp can be reused on a subsequent call.
49341         Prompted by Ben England's report of memory exhaustion in find
49342         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49344         maint: fts: move decl of `dp' down into while loop; split a long line
49345         * lib/fts.c (fts_build): No semantic change.
49347         fts: add/use new struct member, fts_dirp
49348         We are about to use this to manage any directory with
49349         too many entries to read all of them into memory at once.
49350         To do that, we'll need to save the DIR* pointer in each
49351         affected FTSENT struct.
49352         * lib/fts_.h: Include <dirent.h>.
49353         (struct FTSENT) [fts_dirp]: New member.
49354         * lib/fts.c (closedir_and_clear): Define.
49355         Use it in place of closedir so that we are sure to
49356         clear the new fts_dirp member when done with it.
49357         (fts_alloc): Initialize the new member.
49358         (fts_lfree): Free, if needed.
49360         maint: fts: give __opendir2 a new parameter and rename
49361         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49362         than surreptitiously using sole caller's "dir_fd".
49363         (fts_opendir): Rename from __opendir2.
49365         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49366         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49368         maint: fts.c: correct off-by-one indentation
49369         * lib/fts.c (fts_build): Correct indentation, change style
49370         of a couple of block comments, and bracing style.
49372         maint: fts.c: move __opendir2 #define "up" out of function body
49373         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49375         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49376         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49377         out for a long time and besides was useful only on BSD systems.
49379 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49381         regex: port to Stratus OpenVOS
49382         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49383         define to empty, rather than attempting nonportable optimizations.
49384         Problem reported by Paul Green in:
49385         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49386         and fix suggested by Eric Blake in:
49387         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49389 2011-08-17  Eric Blake  <eblake@redhat.com>
49391         getcwd: fix test failures on mingw
49392         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49393         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49394         test if long directory cannot be created, and allow mingw errno.
49396         getcwd-lgpl: fix m4 to match relaxed test for BSD
49397         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49398         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49399         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49400         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49401         signature problem.
49403         getcwd: fix compilation on mingw64
49404         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49405         getcwd.
49406         Reported by Marc-André Lureau.
49408         pipe2: silence compiler warning
49409         * lib/pipe2.c (pipe2): Hide label if it is not used.
49411 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49413         relocatable-prog: fix link error
49414         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49415         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49416         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49417         into modules/relocatable-lib without noticing that
49418         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49419         also needs to build relocatable.c.
49421 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49423         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49425         shell code: it contained a 'break' that was not in a loop.
49426         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49427         via a shell-language loop; this may have been true in old Autoconf
49428         versions, but it's not true in Autoconf 2.68.  I found this bug
49429         when testing coreutils git on Solaris 8, whose shell complains
49430         about the syntax error.
49432 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49434         * lib/base64.c: Fix comment to reference RFC 4648.
49435         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49436         <gvtulder@gmail.com>.
49438 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49440         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49442         po/Makefile.in.in: fix make -q problem
49443         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49444         rule, since there's no file named 'check-macro-version' and its
49445         use as a file breaks make -q.
49446         (all): Don't depend on check-macro-version.
49447         (CHECK_MACRO_VERSION): New macro.
49448         (stamp-po): Use it.
49450         configmake: fix make -q problem
49451         * modules/configmake (configmake.h): Update configmake.h's time stamp
49452         even if the file does not change.  Otherwise, 'make -q' fails.
49453         Problem reported by Simon Josefsson in
49454         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
49456 2011-08-11  Jim Meyering  <meyering@redhat.com>
49458         git-version-gen: correct the advice in a comment
49459         * build-aux/git-version-gen: Correct comment.
49460         Don't recommend to list .tarball-version in .gitignore.
49462 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49464         base64: fix off-by-one buffer size bug
49465         Problem and (trivial) fix reported by Gijs van Tulder in
49466         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
49467         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
49468         * tests/test-base64.c (main): Catch the bug.
49470 2011-08-10  Eric Blake  <eblake@redhat.com>
49472         closein: correct comments
49473         * lib/closein.c (close_stdin): Improve comments.
49475 2011-08-09  Bruno Haible  <bruno@clisp.org>
49477         More tests for 'fseeko'.
49478         * tests/test-fseeko3.c: New file, from Eric Blake.
49479         * tests/test-fseeko3.sh: New file.
49480         * modules/fseeko-tests (Files): Add them.
49481         (TESTS): Add test-fseeko3.sh.
49482         (check_PROGRAMS): Add test-fseeko3.
49484 2011-08-09  Eric Blake  <eblake@redhat.com>
49486         fseeko: remove unneeded hack
49487         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
49489         fseeko: fix bug on glibc
49490         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
49491         Reported by John W. Eaton.
49493 2011-08-08  Bruno Haible  <bruno@clisp.org>
49495         unictype/base: Fix interoperability with preinstalled libunistring.
49496         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
49497         Reported by Simon Josefsson.
49499 2011-08-08  Bruno Haible  <bruno@clisp.org>
49501         iswblank: Detect declaration correctly.
49502         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
49503         AC_CHECK_DECLS invocation.
49505 2011-08-08  Bruno Haible  <bruno@clisp.org>
49507         tcgetsid: Detect declaration correctly.
49508         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
49509         AC_CHECK_DECLS invocation.
49510         Reported by Simon Josefsson.
49512 2011-08-08  Eric Blake  <eblake@redhat.com>
49514         largefile: fix typo that regressed large file support
49515         * modules/largefile (configure.ac-early): Fix section name.
49517 2011-08-06  Karl Berry  <karl@gnu.org>
49519         * MODULES.html.sh (func_all_files): _Noreturn is no longer
49520         a separate module.
49522 2011-08-05  Simon Josefsson  <simon@josefsson.org>
49524         openat: Fix warnings and commens when building unlinkat.c on Hurd.
49525         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
49526         get prototype for free.
49528 2011-08-04  Bruno Haible  <bruno@clisp.org>
49530         Tests for module 'pathmax'.
49531         * modules/pathmax-tests: New file.
49532         * tests/test-pathmax.c: New file.
49534         canonicalize-lgpl: Support larger filenames on the Hurd.
49535         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
49536         Reported by Paul Eggert.
49538         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
49539         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
49540         * lib/chdir-long.h: Include pathmax.h.
49541         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
49542         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
49543         (PATH_MAX): Remove code that is done by pathmax.h.
49544         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
49545         * lib/tmpfile.c: Add a comment.
49546         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
49547         * modules/chdir-long (Depends-on): Add pathmax.
49548         * modules/getcwd (Depends-on): Add pathmax.
49549         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
49550         is not defined.
49551         * doc/posix-headers/limits.texi: Mention the pathmax module.
49552         * NEWS: Mention the change.
49554 2011-08-02  Bruno Haible  <bruno@clisp.org>
49556         pthread_sigmask: Actually use results of gl_THREADLIB.
49557         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
49558         gl_THREADLIB, not gl_[]THREADLIB.
49559         Reported by Eric Blake.
49561 2011-08-02  Jim Meyering  <meyering@redhat.com>
49563         maint.mk: relax the default _gl_TS_function_match regexp
49564         * top/maint.mk (_gl_TS_function_match): Don't require at least one
49565         space between function name and "(" in an "extern" declaration.
49566         That would fail to match a decl with no space there: extern void foo();
49568 2011-07-31  Iain Nicol  <iain@thenicols.net>
49570         git-version-gen: document that EXTRA_DIST must include .version
49571         * build-aux/git-version-gen: In the how-to-use comment, document
49572         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
49573         will fail when run from an unpacked distribution tarball.
49575 2011-08-01  Bruno Haible  <bruno@clisp.org>
49577         wctype-h: Fix last change.
49578         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
49579         REPLACE_TOWLOWER to 0.
49580         Reported by Sam Steingold <sds@gnu.org>.
49582 2011-07-31  Bruno Haible  <bruno@clisp.org>
49584         frexpl: Update autoconf test.
49585         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
49586         according to changes of 2011-06-20.
49588 2011-07-31  Bruno Haible  <bruno@clisp.org>
49590         sys_utsname: Add support for Minix.
49591         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49592         <sys/utsname.h>.
49593         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49594         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49596 2011-07-31  Bruno Haible  <bruno@clisp.org>
49598         strings: Add support for Minix.
49599         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
49600         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49601         * doc/posix-headers/strings.texi: Document the Minix problem.
49603 2011-07-31  Bruno Haible  <bruno@clisp.org>
49605         wctype-h: Add support for Minix.
49606         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
49607         REPLACE_TOWLOWER.
49608         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
49609         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
49610         REPLACE_ISWCNTRL.
49612 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
49614         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
49615         This is a performance improvement for 64-bit hosts: it causes the
49616         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
49618 2011-07-31  Bruno Haible  <bruno@clisp.org>
49620         stdioext: Add support for Minix.
49621         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
49622         * lib/fpurge.c (fpurge): Likewise.
49623         * lib/freadahead.c (freadahead): Likewise.
49624         * lib/freadable.c (freadable): Likewise.
49625         * lib/freading.c (freading): Likewise.
49626         * lib/freadptr.c (freadptr): Likewise.
49627         * lib/freadseek.c (freadptrinc): Likewise.
49628         * lib/fseeko.c (rpl_fseeko): Likewise.
49629         * lib/fseterr.c (fseterr): Likewise.
49630         * lib/fwritable.c (fwritable): Likewise.
49631         * lib/fwriting.c (fwriting): Likewise.
49632         * lib/fflush.c (clear_ungetc_buffer): Update comment.
49633         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
49635 2011-07-31  Bruno Haible  <bruno@clisp.org>
49637         errno: Port to Minix.
49638         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
49639         ECONNABORTED are defined.
49640         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
49641         GNULIB_defined_ECONNABORTED): New macros.
49642         * lib/strerror-override.h (strerror_override): Test also
49643         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
49644         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
49645         ECONNABORTED.
49646         * doc/posix-headers/errno.texi: Mention the Minix problem.
49648 2011-07-31  Bruno Haible  <bruno@clisp.org>
49650         Work around declaration collisions on Minix.
49651         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
49652         defined, set REPLACE_MBSINIT.
49653         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
49654         defined, set REPLACE_MBRTOWC.
49655         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
49656         set REPLACE_MBRLEN.
49657         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
49658         defined, set REPLACE_MBSRTOWCS.
49659         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
49660         defined, set REPLACE_WCRTOMB.
49661         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49662         defined, set REPLACE_WCSRTOMBS.
49664 2011-07-31  Bruno Haible  <bruno@clisp.org>
49666         Add support for Minix with ACK compiler.
49667         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49668         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49669         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49671 2011-07-31  Bruno Haible  <bruno@clisp.org>
49673         Documentation about Minix.
49674         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49675         * doc/glibc-headers/*.texi: Likewise.
49676         * doc/posix-functions/*.texi: Likewise.
49677         * doc/glibc-functions/*.texi: Likewise.
49679 2011-07-31  Bruno Haible  <bruno@clisp.org>
49681         snippet/warn-on-use: Fix indentation.
49682         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49684 2011-07-25  Jim Meyering  <meyering@redhat.com>
49686         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49687         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49688         commands.
49690 2011-07-27  Jim Meyering  <meyering@redhat.com>
49692         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49693         * top/maint.mk (gl_extract_significant_defines_): Now that
49694         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49695         gnulib/lib/signal.in.h, and now that we recommend to
49696         define-if-undefined those two symbols in application code,
49697         we must filter them out of the "significant" list.
49698         This avoids a "make syntax-check" failure in coreutils.
49700 2011-07-26  Eric Blake  <eblake@redhat.com>
49702         warnings: add comments about previous patch
49703         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49704         * m4/include_next.m4: Likewise.
49705         * m4/warn-on-use.m4: Likewise.
49706         * m4/warnings.m4: Likewise, and simplify use.
49707         Suggested by Stefano Lattarini.
49709         include-next, warnings: support older autoconf
49710         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49711         AS_VAR_PUSHDEF in a way that works with older autoconf.
49712         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49713         Reported by Daniel P. Berrange.
49715 2011-07-25  Bruno Haible  <bruno@clisp.org>
49717         fseek, ftell: Fix doc.
49718         * doc/posix-functions/fseek.texi: Reword statement about
49719         AC_SYS_LARGEFILE.
49720         * doc/posix-functions/ftell.texi: Likewise.
49722 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49723             Bruno Haible  <bruno@clisp.org>
49725         Add dependencies to the 'largefile' module.
49726         * modules/fopen (Depends-on): Add 'largefile'.
49727         * modules/freopen (Depends-on): Likewise.
49728         * modules/fseeko (Depends-on): Likewise.
49729         * modules/ftello (Depends-on): Likewise.
49730         * modules/glob (Depends-on): Likewise.
49731         * modules/lseek (Depends-on): Likewise.
49732         * modules/lstat (Depends-on): Likewise.
49733         * modules/mkostemp (Depends-on): Likewise.
49734         * modules/mkostemps (Depends-on): Likewise.
49735         * modules/mkstemp (Depends-on): Likewise.
49736         * modules/mkstemps (Depends-on): Likewise.
49737         * modules/open (Depends-on): Likewise.
49738         * modules/openat (Depends-on): Likewise.
49739         * modules/pread (Depends-on): Likewise.
49740         * modules/pwrite (Depends-on): Likewise.
49741         * modules/scandir (Depends-on): Likewise.
49742         * modules/stat (Depends-on): Likewise.
49743         * modules/tmpfile (Depends-on): Likewise.
49744         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49745         since the containing module now depends on the largefile module.
49746         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49747         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49748         off_t is fixed by gnulib.
49749         * doc/posix-functions/freopen.texi: Likewise.
49750         * doc/posix-functions/fseeko.texi: Likewise.
49751         * doc/posix-functions/fstatat.texi: Likewise.
49752         * doc/posix-functions/ftello.texi: Likewise.
49753         * doc/posix-functions/glob.texi: Likewise.
49754         * doc/posix-functions/lseek.texi: Likewise.
49755         * doc/posix-functions/lstat.texi: Likewise.
49756         * doc/posix-functions/mkstemp.texi: Likewise.
49757         * doc/posix-functions/open.texi: Likewise.
49758         * doc/posix-functions/openat.texi: Likewise.
49759         * doc/posix-functions/pread.texi: Likewise.
49760         * doc/posix-functions/pwrite.texi: Likewise.
49761         * doc/posix-functions/scandir.texi: Likewise.
49762         * doc/posix-functions/stat.texi: Likewise.
49763         * doc/posix-functions/tmpfile.texi: Likewise.
49764         * doc/glibc-functions/mkostemp.texi: Likewise.
49765         * doc/glibc-functions/mkostemps.texi: Likewise.
49766         * doc/glibc-functions/mkstemps.texi: Likewise.
49768 2011-07-25  Bruno Haible  <bruno@clisp.org>
49770         fcntl: Move AC_LIBOBJ invocation to module description.
49771         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49772         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49774         fcntl: Remove call-in from fchdir.m4.
49775         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49778         dup3: Remove potential call-in from fchdir.m4.
49779         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49782         dup2: Move AC_LIBOBJ invocation to module description.
49783         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49784         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49785         Don't invoke AC_LIBOBJ.
49786         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49788         dup2: Remove call-in from fchdir.m4.
49789         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49792         fclose: Move AC_LIBOBJ invocation to module description.
49793         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49794         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49795         to 1.
49796         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49798         fclose: Remove call-in from close.m4.
49799         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49800         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49802         close: Move AC_LIBOBJ invocation to module description.
49803         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49804         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49805         1.
49806         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49808         close: Remove call-in from fchdir.m4.
49809         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49812         open: Move AC_LIBOBJ invocation to module description.
49813         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49814         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49815         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49817         open: Remove call-in from fchdir.m4.
49818         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49821         fchdir: Start to remove gl_REPLACE_* idiom.
49822         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49823         (gl_FUNC_FCHDIR): Invoke it.
49825 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49827         * lib/ftell.c (ftell): Comment out cast.
49829         close: use gl_REPLACE_FCLOSE only if defined
49830         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49831         is defined.  The close module doesn't depend on the fclose module
49832         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49833         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49834         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49836 2011-07-24  Jim Meyering  <meyering@redhat.com>
49838         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49839         * tests/test-select.h (test_function): Declare as "static".
49841 2011-07-24  Bruno Haible  <bruno@clisp.org>
49843         doc: Mention the effects of AC_SYS_LARGEFILE.
49844         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49845         on this function.
49846         * doc/posix-functions/aio_error.texi: Likewise.
49847         * doc/posix-functions/aio_fsync.texi: Likewise.
49848         * doc/posix-functions/aio_read.texi: Likewise.
49849         * doc/posix-functions/aio_return.texi: Likewise.
49850         * doc/posix-functions/aio_suspend.texi: Likewise.
49851         * doc/posix-functions/aio_write.texi: Likewise.
49852         * doc/posix-functions/fgetpos.texi: Likewise.
49853         * doc/posix-functions/fopen.texi: Likewise.
49854         * doc/posix-functions/freopen.texi: Likewise.
49855         * doc/posix-functions/fsetpos.texi: Likewise.
49856         * doc/posix-functions/fstatvfs.texi: Likewise.
49857         * doc/posix-functions/ftruncate.texi: Likewise.
49858         * doc/posix-functions/ftw.texi: Likewise.
49859         * doc/posix-functions/getrlimit.texi: Likewise.
49860         * doc/posix-functions/glob.texi: Likewise.
49861         * doc/posix-functions/lio_listio.texi: Likewise.
49862         * doc/posix-functions/lockf.texi: Likewise.
49863         * doc/posix-functions/mkstemp.texi: Likewise.
49864         * doc/posix-functions/mmap.texi: Likewise.
49865         * doc/posix-functions/nftw.texi: Likewise.
49866         * doc/posix-functions/openat.texi: Likewise.
49867         * doc/posix-functions/opendir.texi: Likewise.
49868         * doc/posix-functions/posix_fadvise.texi: Likewise.
49869         * doc/posix-functions/posix_fallocate.texi: Likewise.
49870         * doc/posix-functions/pread.texi: Likewise.
49871         * doc/posix-functions/pwrite.texi: Likewise.
49872         * doc/posix-functions/readdir.texi: Likewise.
49873         * doc/posix-functions/readdir_r.texi: Likewise.
49874         * doc/posix-functions/rewinddir.texi: Likewise.
49875         * doc/posix-functions/scandir.texi: Likewise.
49876         * doc/posix-functions/seekdir.texi: Likewise.
49877         * doc/posix-functions/setrlimit.texi: Likewise.
49878         * doc/posix-functions/statvfs.texi: Likewise.
49879         * doc/posix-functions/telldir.texi: Likewise.
49880         * doc/posix-functions/tmpfile.texi: Likewise.
49881         * doc/posix-functions/truncate.texi: Likewise.
49882         * doc/glibc-functions/fallocate.texi: Likewise.
49883         * doc/glibc-functions/fstatfs.texi: Likewise.
49884         * doc/glibc-functions/fts_children.texi: Likewise.
49885         * doc/glibc-functions/fts_read.texi: Likewise.
49886         * doc/glibc-functions/getdirentries.texi: Likewise.
49887         * doc/glibc-functions/mkostemp.texi: Likewise.
49888         * doc/glibc-functions/mkostemps.texi: Likewise.
49889         * doc/glibc-functions/mkstemps.texi: Likewise.
49890         * doc/glibc-functions/preadv.texi: Likewise.
49891         * doc/glibc-functions/pwritev.texi: Likewise.
49892         * doc/glibc-functions/sendfile.texi: Likewise.
49893         * doc/glibc-functions/statfs.texi: Likewise.
49895 2011-07-24  Bruno Haible  <bruno@clisp.org>
49897         doc: Fix typo.
49898         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49900 2011-07-24  Bruno Haible  <bruno@clisp.org>
49902         doc: Mention fsusage.
49903         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49905 2011-07-24  Bruno Haible  <bruno@clisp.org>
49907         doc: Mention new glibc headers and functions.
49908         * doc/glibc-headers/gshadow.texi: New file.
49909         * doc/glibc-functions/endsgent.texi: New file.
49910         * doc/glibc-functions/fgetsgent.texi: New file.
49911         * doc/glibc-functions/fgetsgent_r.texi: New file.
49912         * doc/glibc-functions/getsgent.texi: New file.
49913         * doc/glibc-functions/getsgent_r.texi: New file.
49914         * doc/glibc-functions/getsgnam.texi: New file.
49915         * doc/glibc-functions/getsgnam_r.texi: New file.
49916         * doc/glibc-functions/putsgent.texi: New file.
49917         * doc/glibc-functions/setsgent.texi: New file.
49918         * doc/glibc-functions/sgetsgent.texi: New file.
49919         * doc/glibc-functions/sgetsgent_r.texi: New file.
49920         * doc/glibc-functions/malloc_info.texi: New file.
49921         * doc/glibc-functions/preadv.texi: New file.
49922         * doc/glibc-functions/pwritev.texi: New file.
49923         * doc/glibc-functions/register_printf_modifier.texi: New file.
49924         * doc/glibc-functions/register_printf_specifier.texi: New file.
49925         * doc/glibc-functions/register_printf_type.texi: New file.
49926         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49927         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49928         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49929         * doc/glibc-functions/pthread_getname_np.texi: New file.
49930         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49931         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49932         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49933         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49934         * doc/glibc-functions/pthread_setname_np.texi: New file.
49935         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49936         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49937         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49938         * doc/glibc-functions/qsort_r.texi: New file.
49939         * doc/glibc-functions/quick_exit.texi: New file.
49940         * doc/glibc-functions/syncfs.texi: New file.
49941         * doc/gnulib.texi: Include them.
49942         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49943         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49944         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49945         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49946         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49947         * doc/glibc-functions/execvpe.texi: Likewise.
49949 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49951         ftell: don't include <unistd.h>
49952         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49953         guaranteed to define off_t, and the ftell module depends on the
49954         stdio module.
49956         ftell: do not assume wraparound signed arithmetic
49957         * lib/ftell.c: Include <limits.h>.
49958         (ftell): Don't assume wraparound signed arithmetic.
49960 2011-07-24  Bruno Haible  <bruno@clisp.org>
49962         close: No longer depend on module 'fclose'.
49963         * modules/close (Depends-on): Remove fclose.
49964         * NEWS: Mention the change.
49965         Suggested by Sam Steingold <sds@gnu.org>.
49967 2011-07-24  Bruno Haible  <bruno@clisp.org>
49969         fsusage: Enable large volume support on AIX >= 5.2.
49970         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49971         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49972         instead of STAT_STATVFS.
49973         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49975         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49977         f_blocks field only on MacOS X.
49979         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49981         * modules/fsusage (Depends-on): Add largefile.
49983 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49985         * README: Modernize discussion of signed integers.
49986         Assuming overflow wraparound is no longer safe.
49987         Mention ones' complement and signed magnitude.
49989 2011-07-22  Bruno Haible  <bruno@clisp.org>
49991         select tests, pselect tests: Refactor.
49992         * tests/test-select.h: New file, extracted from tests/test-select.c.
49993         (select_fn): New type.
49994         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49995         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49996         test_pipe): Add my_select argument.
49997         (test_function): Renamed from main. Add my_select argument.
49998         * tests/test-select.c: Move most code to tests/test-select.h. Include
49999         test-select.h.
50000         * modules/select-tests (Files): Add tests/test-select.h.
50001         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
50002         (my_select, main): New functions.
50003         * modules/pselect-tests (Files): Add tests/test-select.h,
50004         tests/macros.h, tests/signature.h.
50005         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
50006         (configure.ac): Check for <sys/wait.h>.
50008 2011-07-22  Bruno Haible  <bruno@clisp.org>
50010         sys_select tests: Check the signature of FD_*.
50011         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
50012         signature tests from here...
50013         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
50014         here.
50015         * modules/sys_select-tests (Files): Add tests/signature.h.
50017 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50019         largefile: new module, replacing large-inode
50020         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
50021         * MODULES.html.sh: Add largefile, remove large-inode.
50022         * modules/largefile, m4/largefile.m4: New files.
50023         * modules/large-inode, m4/large-inode.m4: Remove.
50025         fsusage: port to MacOS X 10.7 with 4 TiB file systems
50026         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
50027         implementations that use only 32 bits to count blocks.
50028         On typical hosts with 1024-byte blocks, this fails with file
50029         systems as small as 4 TiB.  Problem reported by Herb Wartens
50030         <http://debbugs.gnu.org/9140> and this should also fix a similar
50031         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
50033         large-inode: New module
50034         * MODULES.html.sh: Add it.
50035         * modules/large-inode, m4/large-inode.m4: New files.
50037         extensions: Enable extensions on MacOS X 10.5 and later.
50038         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
50040 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
50042         file-has-acl: use acl_extended_file_nofollow if available
50043         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
50044         (acl_extended_file): New macro.
50045         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
50046         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
50048 2011-07-21  Bruno Haible  <bruno@clisp.org>
50050         Declare system functions in a way that works with C++.
50051         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
50052         declare fdopendir as extern "C".
50053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
50054         declare frexpl as extern "C".
50055         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
50056         declare gai_strerror as extern "C".
50057         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
50058         programs, declare gai_strerror as extern "C".
50059         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
50060         declare getlogin_r as extern "C".
50061         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
50062         as extern "C".
50063         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
50064         declare ldexpl as extern "C".
50065         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
50066         as extern "C".
50067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
50068         program, declare getmntinfo as extern "C".
50069         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
50070         stpncpy as extern "C".
50071         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
50072         program, declare __xpg_strerror_r as extern "C".
50073         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
50074         strndup as extern "C".
50075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
50076         declare memset and bzero as extern "C".
50077         Reported by Sam Steingold <sds@gnu.org>.
50079 2011-07-12  Jim Meyering  <meyering@redhat.com>
50081         maint.mk: prohibit inclusion of "verify.h" without use
50082         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
50084 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50086         timer-time: A new module to check for timer_settime()
50087         * m4/timer_time.m4: Check for the posix function.
50088         * modules/timer-time: Add the new module.
50089         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
50090         Mention it.
50092 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
50093             Bruno Haible  <bruno@clisp.org>
50095         pthread_sigmask: assume POSIX threads if --avoid=threadlib
50096         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
50097         not defined, assume POSIX threads and look for pthread_sigmask in
50098         $LIBS, without changing $CPPFLAGS.
50100 2011-07-19  Bruno Haible  <bruno@clisp.org>
50102         strstr: Update cross-compilation guess.
50103         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
50104         CPUs, guess no, in view of glibc
50105         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
50106         Suggested by Eric Blake. Reported by Reuben Thomas.
50108 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50110         getopt-gnu: suppress core dumps from detection code
50111         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
50112         to suppress core dumps that may well occur on glibc systems.
50113         * modules/getopt-gnu: Depend on nocrash.
50115 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50117         pthread_sigmask: ensure usleep is declared
50118         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
50119         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
50121 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50123         doc: Document NonStop portability issues.
50124         * doc/posix-functions/sigaction.texi (sigaction):
50125         * doc/posix-headers/signal.texi (signal.h):
50126         Document NonStop.  See Joachim Schmitz in
50127         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
50129 2011-07-15  Bruno Haible  <bruno@clisp.org>
50131         ffsl, ffsll: Avoid unportable behaviour.
50132         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
50134 2011-07-15  Bruno Haible  <bruno@clisp.org>
50136         ffs: More tests.
50137         * tests/test-ffs.c (NBITS): New macro.
50138         (main): Add more tests.
50139         * tests/test-ffsl.c (NBITS): New macro.
50140         (main): Add more tests.
50141         * tests/test-ffsll.c (NBITS): New macro.
50142         (main): Add more tests.
50144 2011-07-15  Eric Blake  <eblake@redhat.com>
50146         ffsl, ffsll: new modules
50147         * modules/ffsl: New file.
50148         * modules/ffsll: Likewise.
50149         * m4/ffsl.m4: Likewise.
50150         * m4/ffsll.m4: Likewise.
50151         * lib/ffsl.c: Likewise.
50152         * lib/ffsl.h: Likewise.
50153         * lib/ffsll.c: Likewise.
50154         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
50155         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
50156         * modules/string (Makefile.am): Substitute witnesses.
50157         * lib/strings.in.h (ffsl, ffsll): Declare.
50158         * modules/ffsl-tests: New test file.
50159         * modules/ffsll-tests: Likewise.
50160         * tests/test-ffsl.c: Likewise.
50161         * tests/test-ffsll.c: Likewise.
50162         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50163         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
50164         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
50166         ffs: fix m4 prerequisite
50167         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
50169         ffs: avoid undefined behavior
50170         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
50171         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50172         Reported by Bruno Haible.
50174 2011-07-12  Bruno Haible  <bruno@clisp.org>
50176         pthread_sigmask: Rely on module 'threadlib'.
50177         * modules/pthread_sigmask (Depends-on): Add threadlib.
50178         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
50179         is defined.
50181 2011-07-12  Bruno Haible  <bruno@clisp.org>
50183         regex: Depend on module 'strcase'.
50184         * modules/regex (Depends-on): Add strcase, for strcasecmp().
50186 2011-07-12  Jim Meyering  <meyering@redhat.com>
50188         warn-on-use: fix typo in file name
50189         * modules/snippet/warn-on-use (Files): Correct file name:
50190         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
50192 2011-07-12  Bruno Haible  <bruno@clisp.org>
50194         strings: Document module.
50195         * doc/posix-headers/strings.texi: Mention module 'strings'.
50197 2011-07-12  Bruno Haible  <bruno@clisp.org>
50199         Rename module '_Noreturn' to 'snippet/_Noreturn'.
50200         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
50201         (Files, Makefile.am): Update.
50202         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
50203         * modules/stdlib (Depends-on): Update.
50205 2011-07-12  Bruno Haible  <bruno@clisp.org>
50207         * NEWS: Mention the changes.
50209         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
50210         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
50211         (Files, Makefile.am): Update.
50212         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50213         * modules/arpa_inet (Depends-on): Update.
50214         * modules/ctype (Depends-on): Update.
50215         * modules/dirent (Depends-on): Update.
50216         * modules/fcntl-h (Depends-on): Update.
50217         * modules/glob (Depends-on): Update.
50218         * modules/iconv-h (Depends-on): Update.
50219         * modules/inttypes-incomplete (Depends-on): Update.
50220         * modules/langinfo (Depends-on): Update.
50221         * modules/locale (Depends-on): Update.
50222         * modules/math (Depends-on): Update.
50223         * modules/netdb (Depends-on): Update.
50224         * modules/poll-h (Depends-on): Update.
50225         * modules/pty (Depends-on): Update.
50226         * modules/search (Depends-on): Update.
50227         * modules/signal (Depends-on): Update.
50228         * modules/spawn (Depends-on): Update.
50229         * modules/stdio (Depends-on): Update.
50230         * modules/stdlib (Depends-on): Update.
50231         * modules/string (Depends-on): Update.
50232         * modules/strings (Depends-on): Update.
50233         * modules/sys_file (Depends-on): Update.
50234         * modules/sys_ioctl (Depends-on): Update.
50235         * modules/sys_select (Depends-on): Update.
50236         * modules/sys_socket (Depends-on): Update.
50237         * modules/sys_stat (Depends-on): Update.
50238         * modules/sys_time (Depends-on): Update.
50239         * modules/sys_times (Depends-on): Update.
50240         * modules/sys_utsname (Depends-on): Update.
50241         * modules/sys_wait (Depends-on): Update.
50242         * modules/termios (Depends-on): Update.
50243         * modules/time (Depends-on): Update.
50244         * modules/unistd (Depends-on): Update.
50245         * modules/wchar (Depends-on): Update.
50246         * modules/wctype-h (Depends-on): Update.
50247         * MODULES.html.sh (Support for building libraries and executables):
50248         Update.
50250         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
50251         * modules/snippet/unused-parameter: Renamed from
50252         modules/unused-parameter.
50253         (Files, Makefile.am): Update.
50254         * build-aux/snippet/unused-parameter.h: Renamed from
50255         build-aux/unused-parameter.h.
50256         * modules/selinux-h (Depends-on): Update.
50257         * modules/unistr/base (Depends-on): Update.
50258         * MODULES.html.sh (Core language properties): Update.
50260         Rename module 'link-warning' to 'snippet/link-warning'.
50261         * modules/snippet/link-warning: Renamed from modules/link-warning.
50262         (Files, Makefile.am): Update.
50263         * build-aux/snippet/link-warning.h: Renamed from
50264         build-aux/link-warning.h.
50265         * MODULES.html.sh (Support for building libraries and executables):
50266         Update.
50268         Rename module 'c++defs' to 'snippet/c++defs'.
50269         * modules/snippet/c++defs: Renamed from modules/c++defs.
50270         (Files, Makefile.am): Update.
50271         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
50272         * modules/arpa_inet (Depends-on): Update.
50273         * modules/ctype (Depends-on): Update.
50274         * modules/dirent (Depends-on): Update.
50275         * modules/fcntl-h (Depends-on): Update.
50276         * modules/glob (Depends-on): Update.
50277         * modules/iconv-h (Depends-on): Update.
50278         * modules/langinfo (Depends-on): Update.
50279         * modules/locale (Depends-on): Update.
50280         * modules/math (Depends-on): Update.
50281         * modules/netdb (Depends-on): Update.
50282         * modules/poll-h (Depends-on): Update.
50283         * modules/pty (Depends-on): Update.
50284         * modules/search (Depends-on): Update.
50285         * modules/signal (Depends-on): Update.
50286         * modules/spawn (Depends-on): Update.
50287         * modules/stdio (Depends-on): Update.
50288         * modules/stdlib (Depends-on): Update.
50289         * modules/string (Depends-on): Update.
50290         * modules/strings (Depends-on): Update.
50291         * modules/sys_ioctl (Depends-on): Update.
50292         * modules/sys_select (Depends-on): Update.
50293         * modules/sys_socket (Depends-on): Update.
50294         * modules/sys_stat (Depends-on): Update.
50295         * modules/sys_time (Depends-on): Update.
50296         * modules/sys_wait (Depends-on): Update.
50297         * modules/termios (Depends-on): Update.
50298         * modules/time (Depends-on): Update.
50299         * modules/unistd (Depends-on): Update.
50300         * modules/wchar (Depends-on): Update.
50301         * modules/wctype-h (Depends-on): Update.
50303         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
50304         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
50305         (Files, Makefile.am): Update.
50306         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
50307         * modules/argv-iter (Depends-on): Update.
50308         * modules/arpa_inet (Depends-on): Update.
50309         * modules/dirent (Depends-on): Update.
50310         * modules/fcntl-h (Depends-on): Update.
50311         * modules/fnmatch (Depends-on): Update.
50312         * modules/getopt-posix (Depends-on): Update.
50313         * modules/glob (Depends-on): Update.
50314         * modules/iconv-h (Depends-on): Update.
50315         * modules/inttypes-incomplete (Depends-on): Update.
50316         * modules/locale (Depends-on): Update.
50317         * modules/math (Depends-on): Update.
50318         * modules/netdb (Depends-on): Update.
50319         * modules/search (Depends-on): Update.
50320         * modules/signal (Depends-on): Update.
50321         * modules/spawn (Depends-on): Update.
50322         * modules/stdio (Depends-on): Update.
50323         * modules/stdlib (Depends-on): Update.
50324         * modules/string (Depends-on): Update.
50325         * modules/strings (Depends-on): Update.
50326         * modules/sys_socket (Depends-on): Update.
50327         * modules/sys_stat (Depends-on): Update.
50328         * modules/sys_time (Depends-on): Update.
50329         * modules/sys_times (Depends-on): Update.
50330         * modules/sys_utsname (Depends-on): Update.
50331         * modules/time (Depends-on): Update.
50332         * modules/unistd (Depends-on): Update.
50333         * modules/wchar (Depends-on): Update.
50334         * MODULES.html.sh (Support for building libraries and executables):
50335         Update.
50337 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50339         Improvements on _Noreturn and related modules.
50341         modules/_Exit-tests: test _Noreturn too
50342         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50343         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50344         (main): Use them.
50346         stdnoreturn, stdnoreturn-tests: remove modules
50347         They're not needed here and a bit premature for use elsewhere.  See
50348         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50349         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50350         * tests/test-stdnoreturn.c: Remove files.
50351         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50352         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50353         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50354         and using noreturn.
50355         * modules/openat, modules/sigpipe-die, modules/xalloc:
50356         * modules/xmemdup0, modules/xstrtol:
50357         Remove dependency on stdnoreturn.
50359         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50360         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50361         Reparenthesize to avoid GCC warning.
50362         Support Microsoft's syntax.
50363         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50365         _Noreturn-tests: remove module
50366         * modules/_Noreturn-tests: Remove.
50367         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50368         * tests/test-_Noreturn.c: Remove.
50369         * tests/test-stdnoreturn.c: Merge from the old
50370         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50372 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50374         _Noreturn, stdnoreturn, and related modules.
50376         * top/maint.mk: Adjust to new noreturn support.
50377         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50378         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50380         xalloc: use stdnoreturn.h
50381         * lib/xalloc.h: Include <stdnoreturn.h>.
50382         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50383         * modules/xalloc (Depends-on): Add stdnoreturn.
50385         xstrtol: use stdnoreturn.h
50386         * lib/xstrtol.h: Include <stdnoreturn.h>.
50387         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50388         * modules/xstrtol (Depends-on): Add stdnoreturn.
50390         xmemdup0: use stdnoreturn.h
50391         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50392         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50393         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50395         sigpipe-die: use stdnoreturn.h
50396         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50397         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50398         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50400         openat: use stdnoreturn.h
50401         * lib/openat.h: Include <stdnoreturn.h>.
50402         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50403         * modules/openat (Depends-on): Add stdnoreturn.
50405         * lib/openat-die.c (openat_save_fail): Modernize comment.
50407         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50409         * lib/glthread/thread.h: Modernize comment.
50411         obstack: use _Noreturn
50412         * lib/obstack.c (__attribute__): Remove macro.
50413         (print_and_abort): Use _Noreturn.
50415         c-stack: use _Noreturn
50416         * lib/c-stack.c (die, overflow_handler, segv_handler):
50417         Use _Noreturn rather than __attribute__((noreturn)).
50419         argmatch-tests, exclude_tests: use _Noreturn
50420         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50421         Remove.
50422         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50424         stdlib: use _Noreturn
50425         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50426         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50427         * modules/stdlib (Depends-on): Add _Noreturn.
50428         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50430         stdnoreturn-tests: new module
50431         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50433         stdnoreturn: new module
50434         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50435         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50437         _Noreturn-tests: new module
50438         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50440         _Noreturn: new module
50441         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50442         New section, mentioning it.
50443         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50445         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50447 2011-07-11  Eric Blake  <eblake@redhat.com>
50449         ffs: new module
50450         * modules/ffs: New file.
50451         * m4/ffs.m4: Likewise.
50452         * lib/ffs.c: Likewise.
50453         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
50454         * modules/strings (Makefile.am): Substitute witness.
50455         (Depends-on): Add c++defs.
50456         * lib/strings.in.h (ffs): Declare.
50457         * modules/ffs-tests: New test file.
50458         * tests/test-ffs.c: Test new module.
50459         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50460         * doc/posix-functions/ffs.texi (ffs): Likewise.
50462         regex: avoid compiler warning
50463         * lib/regex.c (includes): Include <strings.h>, for use of
50464         strcasecmp in regcomp.c.
50465         Reported by Joachim Schmitz.
50467 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50469         stdint: respect system's intmax_t if INTMAX_MAX
50470         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
50471         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
50472         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
50473         long but int64_t is long long, and where we will clash with the
50474         system intmax_t if we override it.  See
50475         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
50476         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
50477         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
50478         similarly for UINTMAX_C.
50480 2011-07-08  Bruno Haible  <bruno@clisp.org>
50482         pthread_sigmask tests: Avoid a compiler warning.
50483         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
50484         non-zero.
50486         sigprocmask tests: A better way to avoid a compiler warning.
50487         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
50488         (main): Complain if system() returns non-zero.
50489         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
50491 2011-07-08  Bruno Haible  <bruno@clisp.org>
50493         pthread_sigmask: Work around IRIX bug.
50494         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
50495         bug.
50496         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
50497         there may be unblocked pending signals.
50498         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
50500 2011-07-08  Bruno Haible  <bruno@clisp.org>
50502         pthread_sigmask: Work around Cygwin bug.
50503         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
50504         bug.
50505         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
50506         the system's pthread_sigmask function.
50507         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
50509 2011-07-08  Bruno Haible  <bruno@clisp.org>
50511         pthread_sigmask: Work around bug in single-threaded implementation.
50512         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
50513         FreeBSD, HP-UX, Solaris bug.
50514         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
50515         * lib/pthread_sigmask.c: Include <stddef.h>.
50516         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
50517         the system's pthread_sigmask function.
50518         * modules/pthread_sigmask (configure.ac): Invoke
50519         gl_PREREQ_PTHREAD_SIGMASK.
50520         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
50521         HP-UX, Solaris.
50523 2011-07-08  Eric Blake  <eblake@redhat.com>
50525         test-sigprocmask: avoid compiler warning
50526         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
50527         * tests/test-sigprocmask.c (main): Use it to silence warning.
50528         Reported by Jim Meyering.
50530         test-snprintf: avoid compiler warning
50531         * tests/test-snprintf.c (main): Avoid shadowed declaration.
50532         * tests/test-vsnprintf.c (main): Likewise.
50533         Reported by Jim Meyering.
50535 2011-07-08  Bruno Haible  <bruno@clisp.org>
50537         Tests for module 'pthread_sigmask'.
50538         * modules/pthread_sigmask-tests: New file.
50539         * tests/test-pthread_sigmask1.c: New file, based on
50540         tests/test-sigprocmask.c.
50541         * tests/test-pthread_sigmask2.c: New file.
50543 2011-07-08  Jim Meyering  <meyering@redhat.com>
50545         test-getopt.h: avoid warning about an unused variable
50546         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
50548 2011-07-07  Jim Meyering  <meyering@redhat.com>
50550         maint: reduce list of files exempt from sc_prohibit_leading_TABs
50551         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
50552         now that it no longer contains leading TABs.
50553         Remove unused "url=FIXME" statement.
50555 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50557         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
50558         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50559         When gl_THREADLIB is not in use, assume that the POSIX sematics
50560         are desired.  This is better for Emacs, which uses POSIX semantics
50561         on GNUish and/or POSIXish platforms, and does not use threads at
50562         all otherwise.
50564         pthread_sigmask: fix typo when testing for libraries
50565         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50566         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
50568 2011-07-08  Eric Blake  <eblake@redhat.com>
50570         fts: introduce FTS_NOATIME
50571         * lib/fts_.h (FTS_NOATIME): New bit flag.
50572         (FTS_OPTIONMASK): Adjust.
50573         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
50574         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
50576 2011-07-08  Bruno Haible  <bruno@clisp.org>
50578         Tests for module 'thread'.
50579         * modules/thread-tests: New file.
50580         * tests/test-thread_self.c: New file.
50581         * tests/test-thread_create.cc: New file.
50583 2011-07-08  Bruno Haible  <bruno@clisp.org>
50585         thread: Avoid gcc warnings when using gl_thread_self().
50586         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
50587         'void *'.
50588         (gl_thread_self_pointer): Update.
50590 2011-07-07  Bruno Haible  <bruno@clisp.org>
50592         signal-c++-tests: Check declaration of pthread_sigmask.
50593         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50594         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50595         $(LIB_PTHREAD_SIGMASK).
50597 2011-07-07  Bruno Haible  <bruno@clisp.org>
50599         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
50600         * lib/signal.in.h (pthread_sigmask): Override if
50601         REPLACE_PTHREAD_SIGMASK is 1.
50602         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50603         REPLACE_PTHREAD_SIGMASK.
50604         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
50605         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
50606         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
50607         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50608         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
50610 2011-07-07  Bruno Haible  <bruno@clisp.org>
50612         pthread_sigmask: Ensure declaration in <signal.h>.
50613         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
50614         include <pthread.h>.
50615         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
50616         problem.
50618 2011-07-07  Bruno Haible  <bruno@clisp.org>
50620         pthread_sigmask: Document the module.
50621         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
50623 2011-07-07  Bruno Haible  <bruno@clisp.org>
50625         pthread_sigmask: Follow gnulib conventions.
50626         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
50627         gl_PTHREAD_SIGMASK.
50628         * modules/pthread_sigmask (configure.ac): Update.
50630 2011-07-07  Bruno Haible  <bruno@clisp.org>
50632         pthread_sigmask: Make declaration C++ safe.
50633         * lib/signal.in.h: In two special conditions, just do an #include_next.
50634         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50635         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
50636         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50637         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50638         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
50639         not REPLACE_PTHREAD_MASK.
50640         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
50641         not REPLACE_PTHREAD_MASK.
50642         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50644 2011-07-07  Bruno Haible  <bruno@clisp.org>
50646         pthread_sigmask: Fix return value.
50647         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
50648         * lib/pthread_sigmask.c: New file.
50649         * modules/pthread_sigmask (Files): Add it.
50650         (configure.ac): Invoke AC_LIBOBJ.
50652 2011-07-07  Eric Blake  <eblake@redhat.com>
50654         getopt: more portable argv creation
50655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
50656         const, use char arrays rather than strings.
50657         Suggested by Paul Eggert.
50659 2011-07-07  Bruno Haible  <bruno@clisp.org>
50661         Tests for module 'sigprocmask'.
50662         * modules/sigprocmask-tests: New file.
50663         * tests/test-sigprocmask.c: New file.
50665 2011-07-07  Bruno Haible  <bruno@clisp.org>
50667         float tests: Tweak.
50668         * tests/test-float.c (main): Tweak skip message.
50670 2011-07-07  Eric Blake  <eblake@redhat.com>
50672         getopt: avoid compiler warning during configure
50673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50674         assigning string literals to non-const pointer.
50676         getopt-gnu: avoid crash in glibc getopt
50677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50678         * tests/test-getopt.h (test_getopt): Enhance test.
50679         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50680         * doc/posix-functions/getopt.texi (getopt): Document it.
50681         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50682         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50683         Likewise.
50685 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50687         getopt: handle W; without long options in getopt [BZ #12922]
50688         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50689         but no long options are defined, just return 'W'.
50691 2011-07-07  Bruno Haible  <bruno@clisp.org>
50693         Avoid literal tabs.
50694         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50695         variable containing a tab instead of a literal tab.
50696         Reported by Jim Meyering.
50698 2011-07-07  Bruno Haible  <bruno@clisp.org>
50700         Comments.
50701         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50703 2011-07-06  Bruno Haible  <bruno@clisp.org>
50705         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50706         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50707         <winsock2.h>.
50708         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50709         lib/sys_socket.in.h.
50710         (close, gethostname): Hide declarations from <winsock2.h>.
50711         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50712         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50713         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50714         (select): Don't override if gnulib's <sys/select.h> was already
50715         included.
50716         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50717         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50718         setsockopt, shutdown, select): Tweak indentation.
50720 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50722         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50723         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50724         in an application that does not use the sys_select module.
50726 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50728         poll: do not return 0 on timeout=-1
50729         * lib/poll.c: Loop with yield if no events occurred.
50731 2011-07-06  Eric Blake  <eblake@redhat.com>
50733         pthread_sigmask: always replace when not using pthread
50734         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50735         replacement when using some threading other than pthread.  Fix
50736         logic bug.
50738 2011-07-06  Bruno Haible  <bruno@clisp.org>
50740         Comments.
50741         * m4/printf.m4: Update comments about mingw.
50743 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50745         sys_select: define sigset_t more portably
50746         * lib/sys_select.in.h: Always include <sys/types.h>, since
50747         we now need sigset_t and mingw defines it there.
50748         Include <signal.h> before split inclusion guard, to avoid
50749         mishaps on Solaris, whose <signal.h> eventually includes us.
50750         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50751         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50752         which come from ...
50753         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50754         gl_CHECK_TYPE_SIGSET_T.
50755         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50756         does the real work.
50757         * modules/sys_select (Depends-on): Add 'signal'.
50759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50760         Suggested by Bruno Haible.
50762         pselect: Use pthread_sigmask, not sigprocmask.
50763         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50764         multithreaded apps better than sigprocmask does.
50765         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50766         sigprocmask directly.
50768 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50770         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50771         Don't #undef,  since we don't need any underlying pselect.
50772         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50773         (Depends-on): Add select.
50774         (Link): Add $(LIBSOCKET).
50775         These changes suggested by Bruno Haible.
50777         pselect: document better
50778         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50779         * doc/posix-functions/pselect.texi (pselect): Document new module.
50781         pthread_sigmask: new module
50782         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50783         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50784         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50785         This is done only as a macro; I don't know how well that'll
50786         work for C++.  Move <sys/types.h> include before the include_next,
50787         to avoid mishap on Solaris.
50788         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50789         * modules/signal (Makefile.am): Substitute the check's results.
50790         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50792         test-pselect: new module
50793         * modules/pselect-tests, tests/test-pselect.c: New files.
50794         * tests/test-select.c, tests/test-sys_select-c++.cc:
50795         If TEST_PSELECT is defined, test pselect instead of testing select.
50797         * tests/test-sys_select.c (sigset_t): Test for it, too.
50798         Suggested by Bruno Haible.
50800 2011-07-05  Eric Blake  <eblake@redhat.com>
50802         snprintf: guarantee %1$d, for libintl
50803         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50804         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50805         * doc/posix-functions/snprintf.texi (snprintf): Update.
50806         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50807         * tests/test-snprintf.c (main): Enhance test.
50808         * tests/test-vsnprintf.c (main): Likewise.
50810 2011-07-05  Jim Meyering  <meyering@redhat.com>
50812         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50813         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50814         per Bruno's request, to accommodate this idiom (no space after "#")
50815         even when the function is inside an #if block:
50816         char *
50817         gets (char *s)
50818         #undef gets
50819         {
50820           ...
50821         }
50823 2011-07-04  Jim Meyering  <meyering@redhat.com>
50825         maint: indent with spaces, not TABs, and add a rule to check this
50826         * tests/test-userspec.c: Indent with spaces, not TABs.
50827         * tests/test-argp.c: Likewise.
50828         * tests/test-c-stack2.sh: Likewise.
50829         * tests/test-parse-duration.sh: Likewise
50830         * m4/strtod.m4: Likewise.
50831         * m4/alloca.m4: Likewise.
50832         * m4/pselect.m4: Likewise.
50833         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50835 2011-07-03  Jim Meyering  <meyering@redhat.com>
50837         maint.mk: correct omissions in prohibit_argmatch_without_use check
50838         This rule would mistakenly report that argmatch.h is included without
50839         use even when both the argmatch and invalid_arg macro were used.
50840         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50841         of argmatch and invalid_arg.
50843 2011-07-03  Bruno Haible  <bruno@clisp.org>
50845         Comments about EINTR.
50846         * lib/safe-read.h: Explain the purpose of this module.
50847         * lib/safe-write.h: Likewise.
50848         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50849         module.
50850         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50851         module.
50852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50854 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50856         xnanosleep: Rewrite to use new dtotimespec module.
50857         It has the conversion code that used to be in xnanosleep.
50858         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50859         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50860         (TIME_T_MAX): Remove.
50861         (xnanosleep): Rewrite in terms of dtotimespec.
50862         * modules/xnanosleep (Depends-on): Add dtotimespec.
50863         Remove intprops, stdbool.
50865         timespec-add, timespec-sub: new modules
50866         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50867         * lib/timespec-add.c, lib/timespec-sub.c:
50868         * modules/timespec-add, modules/timespec-sub: New files.
50870         dtotimespec: new module
50871         * lib/timespec.h (dtotimespec): New decl.
50872         * lib/dtotimespec.c, modules/dtotimespec: New files.
50874         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50876         pselect: new module
50877         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50878         (pselect): New decls.
50879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50880         since the standard pselect decl uses 'restrict'.
50881         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50882         HAVE_PSELECT, REPLACE_PSELECT.
50883         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50884         HAVE_PSELECT, REPLACE_PSELECT.
50885         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50887         sys_select: don't depend on sys_socket
50888         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50889         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50890         This fix works on GNU and GNU-like platforms, but has not been tested
50891         on native Windows.
50892         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50893         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50894         gl_HEADER_SYS_SOCKET.
50895         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50896         gl_PREREQ_SYS_H_WINSOCK2.
50898 2011-06-29  Eric Blake  <eblake@redhat.com>
50900         pipe2: fix C89 compile problem
50901         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50902         Reported by Bruno Haible.
50904         pipe, pipe2: don't corrupt fd on error
50905         * lib/pipe.c (pipe): Leave fd unchanged on error.
50906         * lib/pipe2.c (pipe2): Likewise.
50907         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50908         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50910 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50912         mmap-anon: do not use regular expressions inadvertently
50913         * m4/mmap-anon.m4: Remove trailing period from strings sought
50914         in the output.
50916 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50918         nanosleep: fix integer overflow problem
50919         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50920         arithmetic wraps around on overflow.
50922         nanosleep: simplify carrying
50923         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50924         first call to the underyling nanosleep, not for the last one.
50925         This doesn't fix any bugs, but it simplifies the computation of
50926         the remaining delay.  Found while auditing integer overflow issues.
50928         dup2: remove test for existence of fcntl
50929         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50930         "#if HAVE_FCNTL", in the configure-time test program.
50931         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50932         and therefore speeds up "configure" a bit.  Found while
50933         adding the dup2 module to Emacs.
50935 2011-06-24  Eric Blake  <eblake@redhat.com>
50937         maint.mk: enhance useless header checks
50938         * top/maint.mk (_sc_header_without_use): Check both include
50939         styles.
50940         (sc_prohibit_assert_without_use)
50941         (sc_prohibit_close_stream_without_use)
50942         (sc_prohibit_getopt_without_use)
50943         (sc_prohibit_quotearg_without_use)
50944         (sc_prohibit_quote_without_use)
50945         (sc_prohibit_long_options_without_use)
50946         (sc_prohibit_inttostr_without_use)
50947         (sc_prohibit_ignore_value_without_use)
50948         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50949         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50950         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50951         (sc_prohibit_hash_pjw_without_use)
50952         (sc_prohibit_safe_read_without_use)
50953         (sc_prohibit_argmatch_without_use)
50954         (sc_prohibit_canonicalize_without_use)
50955         (sc_prohibit_root_dev_ino_without_use)
50956         (sc_prohibit_openat_without_use)
50957         (sc_prohibit_c_ctype_without_use)
50958         (sc_prohibit_signal_without_use)
50959         (sc_prohibit_stdio--_without_use)
50960         (sc_prohibit_stdio-safer_without_use)
50961         (sc_prohibit_strings_without_use)
50962         (sc_prohibit_intprops_without_use)
50963         (sc_prohibit_stddef_without_use)
50964         (sc_prohibit_xfreopen_without_use): Update clients.
50966 2011-06-24  Jim Meyering  <meyering@redhat.com>
50968         syntax-check: keep one maint.mk rule in sync with its header
50969         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50970         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50971         I prefer to avoid temporary files here, so use <(...), but that
50972         is not supported by /bin/sh, so...
50973         (SHELL): Define to /bin/bash.
50975 2011-06-24  Eric Blake  <eblake@redhat.com>
50977         maint.mk: update sc_prohibit_intprops_without_use
50978         * top/maint.mk (_intprops_names): Match recent changes.
50980 2011-06-24  Bruno Haible  <bruno@clisp.org>
50982         strerror-override: No-op tweak.
50983         * lib/strerror-override.h (strerror_override): Reorder conditions,
50984         for consistency with lib/strerror-override.c.
50986 2011-06-23  Eric Blake  <eblake@redhat.com>
50988         maint.mk: test further PATH_MAX issues
50989         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50990         (sc_prohibit_path_max_allocation): ...and also test alloca.
50991         Suggested by Jim Meyering.
50993 2011-06-22  Eric Blake  <eblake@redhat.com>
50995         maint.mk: add syntax-check to avoid char[PATH_MAX]
50996         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50998         stat: be robust to PATH_MAX definition
50999         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
51000         * modules/stat (Depends-on): Add verify.
51002         link: work around IRIX bug
51003         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
51004         * lib/link.c (rpl_link): Work around it.
51005         * tests/test-link.h (test_link): Enhance test.
51006         * doc/posix-functions/link.texi (link): Document the bug.
51008         getopt: silence clang warning
51009         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
51010         dereference.
51011         Reported by Gustavo Martin Domato.
51013 2011-06-22  Jim Meyering  <meyering@redhat.com>
51015         bootstrap: do not insert a blank line into each .gitignore file
51016         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
51018 2011-06-21  Eric Blake  <eblake@redhat.com>
51020         perror: test for output mismatch
51021         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
51022         perror on IRIX.
51024         strerror_r: fix OpenBSD behavior on out-of-range
51025         * lib/strerror_r.c (strerror_r): Always use maximal string.
51026         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51028         strerror_r: fix OpenBSD behavior on 0
51029         * lib/strerror-override.c (strerror_override): Also override 0
51030         when needed.
51031         * lib/strerror-override.h (strerror_override): Likewise.
51032         * lib/strerror.c (strerror): Simplify, now that 0 override is done
51033         earlier.
51034         * lib/strerror_r.c (strerror_r): Likewise.
51035         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
51036         behavior...
51037         (gl_FUNC_STRERROR_0): ...into new macro.
51038         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
51039         is overridden.
51040         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
51041         * modules/strerror-override (Files): Add strerror.m4.
51042         (configure.ac): Also provide override for 0 when needed.
51043         * doc/posix-functions/strerror.texi (strerror): Document this.
51044         * doc/posix-functions/perror.texi (perror): Likewise.
51046         perror: adjust array size
51047         * modules/perror (Depends-on): Add strerror-override.
51048         * lib/perror.c (perror): Use it to avoid magic number.
51050         strerror-override: reduce size
51051         * lib/strerror-override.c (strerror_override): Use fewer lines.
51053 2011-06-20  Bruno Haible  <bruno@clisp.org>
51055         pathmax: Ensure correct value for PATH_MAX on HP-UX.
51056         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
51058 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51060         alloca: port to compilers that can optimize like GCC 4.6.0
51061         * lib/alloca.c (find_stack_direction): New signature, taken from
51062         Autoconf git.  This works with GCC 4.6.0.  This code should never
51063         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
51064         be used with other compilers that optimize as well as GCC 4.6.0 does.
51065         (alloca): Adjust to new signature.
51066         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
51067         New macro, which patches Autoconf in a similar way.
51069         c-stack: stop worrying about stack direction
51070         * lib/c-stack.c (find_stack_direction): Remove.
51071         (segv_handler): Don't worry about stack direction growth, as it's
51072         too much of a pain to configure this correctly, given how compilers
51073         are optimizing-away our stack-growth detection code.  Instead, assume
51074         that any access to just before or just after the stack is OK.
51075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51076         Don't require AC_FUNC_ALLOCA; no longer needed.
51078 2011-06-20  Eric Blake  <eblake@redhat.com>
51080         test-stat: don't allocate PATH_MAX bytes
51081         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
51082         PATH_MAX-sized buffer.
51083         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
51084         * modules/stat-tests (Depends-on): Likewise.
51085         * tests/test-fstatat.c (includes): Drop pathmax.h.
51086         * tests/test-stat.c (includes): Likewise.
51087         Reported by Bruno Haible.
51089 2011-06-20  Bruno Haible  <bruno@clisp.org>
51091         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
51092         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
51093         * lib/float.c: New file.
51094         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
51095         REPLACE_FLOAT_LDBL.
51096         * modules/float (Files): Add lib/float.c.
51097         (configure.ac): Invoke AC_LIBOBJ.
51098         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
51100 2011-06-20  Bruno Haible  <bruno@clisp.org>
51102         Tests for module 'float'.
51103         * modules/float-tests: New file.
51104         * tests/test-float.c: New file.
51106 2011-06-19  Bruno Haible  <bruno@clisp.org>
51108         isinf: Coding style.
51109         * lib/isinf.c: Use GNU coding style.
51111 2011-06-19  Bruno Haible  <bruno@clisp.org>
51113         linkat test: Avoid test failure on AIX 7.1.
51114         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
51115         * tests/test-link.h (test_link): Likewise.
51117 2011-06-19  Bruno Haible  <bruno@clisp.org>
51119         pread test: Avoid test failure on OpenBSD 4.9.
51120         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
51122 2011-06-19  Bruno Haible  <bruno@clisp.org>
51124         sprintf-posix: Fix test failure on AIX 7.1.
51125         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
51126         * doc/posix-functions/dprintf.texi: Mention limited precision problem
51127         on AIX.
51128         * doc/posix-functions/fprintf.texi: Likewise.
51129         * doc/posix-functions/printf.texi: Likewise.
51130         * doc/posix-functions/snprintf.texi: Likewise.
51131         * doc/posix-functions/sprintf.texi: Likewise.
51132         * doc/posix-functions/vdprintf.texi: Likewise.
51133         * doc/posix-functions/vfprintf.texi: Likewise.
51134         * doc/posix-functions/vprintf.texi: Likewise.
51135         * doc/posix-functions/vsnprintf.texi: Likewise.
51136         * doc/posix-functions/vsprintf.texi: Likewise.
51138 2011-06-19  Bruno Haible  <bruno@clisp.org>
51140         roundl-ieee: Fix test failure on AIX 7.1.
51141         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
51142         * doc/posix-functions/roundl.texi: Mention problem with negative
51143         arguments.
51145 2011-06-19  Bruno Haible  <bruno@clisp.org>
51147         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51148         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
51149         * doc/posix-functions/round.texi: Mention problem with negative
51150         arguments.
51151         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
51153 2011-06-19  Bruno Haible  <bruno@clisp.org>
51155         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51156         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
51157         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
51158         * doc/posix-functions/roundf.texi: Mention problem with negative
51159         arguments.
51160         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
51162 2011-06-19  Bruno Haible  <bruno@clisp.org>
51164         ceilf-ieee: Work around bug on MacOS X 10.5.
51165         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
51167         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
51168         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
51169         IEEE compliant, avoid compiler optimizations.
51170         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
51171         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51172         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51173         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51174         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51175         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51176         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51177         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
51178         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
51179         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51181 2011-06-19  Bruno Haible  <bruno@clisp.org>
51183         ceilf-ieee: Work around bug on AIX 7.1.
51184         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
51185         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
51187 2011-06-19  Bruno Haible  <bruno@clisp.org>
51189         ceil-ieee: Work around bug on AIX 7.1.
51190         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
51191         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
51193 2011-06-18  Bruno Haible  <bruno@clisp.org>
51195         fsync test: Avoid test failure on MacOS X and AIX.
51196         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
51197         EINVAL.
51199 2011-06-18  Bruno Haible  <bruno@clisp.org>
51201         openat, fdopendir tests: Fix link errors.
51202         * modules/openat-tests (Depends-on): Add progname.
51203         * modules/fdopendir-tests (Depends-on): Likewise.
51204         * tests/test-fchownat.c: Include progname.h.
51205         (main): Call set_program_name.
51206         * tests/test-fstatat.c: Include progname.h.
51207         (main): Call set_program_name.
51208         * tests/test-mkdirat.c: Include progname.h.
51209         (main): Call set_program_name.
51210         * tests/test-openat.c: Include progname.h.
51211         (main): Call set_program_name.
51212         * tests/test-unlinkat.c: Include progname.h.
51213         (main): Call set_program_name.
51214         * tests/test-fdopendir.c: Include progname.h.
51215         (main): Call set_program_name.
51217 2011-06-18  Bruno Haible  <bruno@clisp.org>
51219         Doc update.
51220         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
51221         HP-UX.
51222         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
51224 2011-06-18  Bruno Haible  <bruno@clisp.org>
51226         getcwd tests: Avoid compilation error on HP-UX 11.31.
51227         * modules/getcwd-tests (Depends-on): Add pathmax.
51228         * tests/test-getcwd.c: Include pathmax.h.
51230 2011-06-18  Bruno Haible  <bruno@clisp.org>
51232         isfinite, isinf: Fix link error on AIX 6 and 7.
51233         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
51234         needed, also test the macro with a 'float' argument.
51235         * m4/isinf.m4 (gl_ISINF): Likewise.
51237 2011-06-18  Bruno Haible  <bruno@clisp.org>
51239         getloadavg: Don't clobber LIBS. Regression from previous commit.
51240         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
51241         AC_CHECK_LIB from here...
51242         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
51243         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
51244         gl_func_getloadavg_done.
51245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51247 2011-06-18  Bruno Haible  <bruno@clisp.org>
51249         clean-temp: Improve documentation.
51250         * lib/clean-temp.h: Explain better how to use this module.
51251         Reported by John Darrington <john@darrington.wattle.id.au>.
51253 2011-06-17  Bruno Haible  <bruno@clisp.org>
51255         pread, pwrite: Avoid cc warning on AIX.
51256         * lib/unistd.in.h (pread): Undefine before defining as a macro.
51257         (pwrite): Likewise.
51259 2011-06-17  Bruno Haible  <bruno@clisp.org>
51261         spawn-pipe tests: Fix link error.
51262         * tests/test-spawn-pipe-child.c: Undefine fprintf.
51263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51265 2011-06-17  Bruno Haible  <bruno@clisp.org>
51267         Tests: Remove unnecessary dependency.
51268         * modules/canonicalize-tests (Depends-on): Remove progname.
51269         * modules/chown-tests (Depends-on): Likewise.
51270         * modules/dirname-tests (Depends-on): Likewise.
51271         * modules/fdopendir-tests (Depends-on): Likewise.
51272         * modules/fdutimensat-tests (Depends-on): Likewise.
51273         * modules/hash-tests (Depends-on): Likewise.
51274         * modules/lchown-tests (Depends-on): Likewise.
51275         * modules/linkat-tests (Depends-on): Likewise.
51276         * modules/renameat-tests (Depends-on): Likewise.
51277         * modules/spawn-pipe-tests (Depends-on): Likewise.
51278         * modules/utimensat-tests (Depends-on): Likewise.
51280 2011-06-17  Bruno Haible  <bruno@clisp.org>
51282         spawn-pipe tests: Fix link error.
51283         * tests/test-spawn-pipe-child.c: Undefine fflush.
51285 2011-06-17  Bruno Haible  <bruno@clisp.org>
51287         Fix tests link errors.
51288         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
51289         * modules/chown-tests (Makefile.am): Don't link test-chown with
51290         LIBINTL.
51291         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
51292         LIBINTL.
51293         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
51294         LIBINTL.
51295         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
51296         LIBINTL.
51298 2011-06-16  Bruno Haible  <bruno@clisp.org>
51300         crypto/gc-sha1: Fix recent regression.
51301         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
51302         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
51304         crypto/gc-md5: Fix recent regression.
51305         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
51307         crypto/gc-md4: Fix recent regression.
51308         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
51309         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
51311         crypto/gc-arctwo: Fix recent regression.
51312         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
51313         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
51315         crypto/gc-rijndael: Fix recent regression.
51316         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
51317         (configure.ac): Invoke AC_LIBOBJ here.
51318         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
51319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51321         crypto/gc-hmac-sha1: Fix recent regression.
51322         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
51323         (configure.ac): Invoke AC_LIBOBJ here.
51324         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
51325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51327         crypto/gc-hmac-md5: Fix recent regression.
51328         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
51329         (configure.ac): Invoke AC_LIBOBJ here.
51330         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
51331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51333         crypto/gc-des: Fix recent regression.
51334         * modules/crypto/gc-des (Files): Remove m4/des.m4.
51335         (configure.ac): Invoke AC_LIBOBJ here.
51336         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
51337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51339         crypto/gc-arcfour: Fix recent regression.
51340         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
51341         (configure.ac): Invoke AC_LIBOBJ here.
51342         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51345 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51347         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51348         After the 2011-05-21 change, this macro requires
51349         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51350         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51352 2011-06-16  Bruno Haible  <bruno@clisp.org>
51354         fprintftime: Move AC_LIBOBJ invocations to module description.
51355         * m4/fprintftime.m4: Remove file.
51356         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51357         (configure.ac): Remove gl_FPRINTFTIME call.
51358         (Makefile.am): Augment lib_SOURCES.
51359         Reported by Jim Meyering.
51361 2011-06-16  Bruno Haible  <bruno@clisp.org>
51363         tmpfile-safer: Finish 2011-05-23 commit.
51364         * m4/stdio-safer.m4: Really remove file.
51365         Reported by Jim Meyering.
51367 2011-06-16  Bruno Haible  <bruno@clisp.org>
51369         syntax-check: Fix typo.
51370         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51371         printf-posix.m4.
51372         Reported by Jim Meyering.
51374 2011-06-13  Jim Meyering  <meyering@redhat.com>
51376         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51377         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51379 2011-05-23  Bruno Haible  <bruno@clisp.org>
51381         yesno: Move AC_LIBOBJ invocations to module description.
51382         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51383         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51385 2011-05-23  Bruno Haible  <bruno@clisp.org>
51387         xstrtol: Move AC_LIBOBJ invocations to module description.
51388         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51389         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51391 2011-05-23  Bruno Haible  <bruno@clisp.org>
51393         xstrtold: Move AC_LIBOBJ invocations to module description.
51394         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51395         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51397 2011-05-23  Bruno Haible  <bruno@clisp.org>
51399         xstrtod: Move AC_LIBOBJ invocations to module description.
51400         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51401         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51403 2011-05-23  Bruno Haible  <bruno@clisp.org>
51405         xnanosleep: Move AC_LIBOBJ invocations to module description.
51406         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51407         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51409 2011-05-23  Bruno Haible  <bruno@clisp.org>
51411         xgetcwd: Move AC_LIBOBJ invocations to module description.
51412         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51413         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51415 2011-05-23  Bruno Haible  <bruno@clisp.org>
51417         xalloc: Move AC_LIBOBJ invocations to module description.
51418         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51419         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51421 2011-05-23  Bruno Haible  <bruno@clisp.org>
51423         write-any-file: Move AC_LIBOBJ invocations to module description.
51424         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51425         invocation.
51426         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51428 2011-05-23  Bruno Haible  <bruno@clisp.org>
51430         utimens: Move AC_LIBOBJ invocations to module description.
51431         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51432         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51434 2011-05-23  Bruno Haible  <bruno@clisp.org>
51436         utimecmp: Move AC_LIBOBJ invocations to module description.
51437         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51438         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51440 2011-05-23  Bruno Haible  <bruno@clisp.org>
51442         userspec: Move AC_LIBOBJ invocations to module description.
51443         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51444         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51446 2011-05-23  Bruno Haible  <bruno@clisp.org>
51448         unlinkdir: Move AC_LIBOBJ invocations to module description.
51449         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51450         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51452 2011-05-23  Bruno Haible  <bruno@clisp.org>
51454         unistd-safer: Move AC_LIBOBJ invocations to module description.
51455         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
51456         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
51458 2011-05-23  Bruno Haible  <bruno@clisp.org>
51460         tempname: Move AC_LIBOBJ invocations to module description.
51461         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
51462         * modules/tempname (Makefile.am): Augment lib_SOURCES.
51464 2011-05-23  Bruno Haible  <bruno@clisp.org>
51466         strftime: Move AC_LIBOBJ invocations to module description.
51467         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
51468         * modules/strftime (Makefile.am): Augment lib_SOURCES.
51470 2011-05-23  Bruno Haible  <bruno@clisp.org>
51472         stdlib-safer: Move AC_LIBOBJ invocations to module description.
51473         * m4/stdlib-safer.m4: Remove file.
51474         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
51475         (configure.ac): Remove gl_STDLIB_SAFER call.
51476         (Makefile.am): Augment lib_SOURCES.
51478 2011-05-23  Bruno Haible  <bruno@clisp.org>
51480         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
51481         * m4/stdio-safer.m4: Remove file.
51482         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
51483         (configure.ac): Remove gl_TMPFILE_SAFER call.
51484         (Makefile.am): Augment lib_SOURCES.
51486 2011-05-23  Bruno Haible  <bruno@clisp.org>
51488         popen-safer: Move AC_LIBOBJ invocations to module description.
51489         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51490         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
51491         (configure.ac): Remove gl_POPEN_SAFER call.
51492         (Makefile.am): Augment lib_SOURCES.
51494 2011-05-23  Bruno Haible  <bruno@clisp.org>
51496         freopen-safer: Move AC_LIBOBJ invocations to module description.
51497         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
51498         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
51499         (configure.ac): Remove gl_FREOPEN_SAFER call.
51500         (Makefile.am): Augment lib_SOURCES.
51502 2011-05-23  Bruno Haible  <bruno@clisp.org>
51504         fopen-safer: Move AC_LIBOBJ invocations to module description.
51505         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
51506         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
51507         (configure.ac): Remove gl_FOPEN_SAFER call.
51508         (Makefile.am): Augment lib_SOURCES.
51510 2011-05-23  Bruno Haible  <bruno@clisp.org>
51512         crypto/sha512: Move AC_LIBOBJ invocations to module description.
51513         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
51514         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
51516 2011-05-23  Bruno Haible  <bruno@clisp.org>
51518         crypto/sha256: Move AC_LIBOBJ invocations to module description.
51519         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
51520         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
51522 2011-05-23  Bruno Haible  <bruno@clisp.org>
51524         crypto/sha1: Move AC_LIBOBJ invocations to module description.
51525         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
51526         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
51528 2011-05-23  Bruno Haible  <bruno@clisp.org>
51530         settime: Move AC_LIBOBJ invocations to module description.
51531         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
51532         * modules/settime (Makefile.am): Augment lib_SOURCES.
51534 2011-05-23  Bruno Haible  <bruno@clisp.org>
51536         savedir: Move AC_LIBOBJ invocations to module description.
51537         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
51538         * modules/savedir (Makefile.am): Augment lib_SOURCES.
51540 2011-05-23  Bruno Haible  <bruno@clisp.org>
51542         save-cwd: Move AC_LIBOBJ invocations to module description.
51543         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
51544         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
51546 2011-05-23  Bruno Haible  <bruno@clisp.org>
51548         same: Move AC_LIBOBJ invocations to module description.
51549         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
51550         * modules/same (Makefile.am): Augment lib_SOURCES.
51552 2011-05-23  Bruno Haible  <bruno@clisp.org>
51554         safe-write: Move AC_LIBOBJ invocations to module description.
51555         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
51556         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
51557         instead of gl_SAFE_WRITE.
51558         (Makefile.am): Augment lib_SOURCES.
51560 2011-05-23  Bruno Haible  <bruno@clisp.org>
51562         safe-read: Move AC_LIBOBJ invocations to module description.
51563         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
51564         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
51565         of gl_SAFE_READ.
51566         (Makefile.am): Augment lib_SOURCES.
51568 2011-05-23  Bruno Haible  <bruno@clisp.org>
51570         safe-alloc: Move AC_LIBOBJ invocations to module description.
51571         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
51572         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
51574 2011-05-23  Bruno Haible  <bruno@clisp.org>
51576         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
51577         * m4/rijndael.m4: Remove file.
51578         * modules/crypto/rijndael (Files): Remove it.
51579         (configure.ac): Remove gl_RIJNDAEL call.
51580         (Makefile.am): Augment lib_SOURCES.
51582 2011-05-23  Bruno Haible  <bruno@clisp.org>
51584         readtokens: Move AC_LIBOBJ invocations to module description.
51585         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
51586         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
51588 2011-05-23  Bruno Haible  <bruno@clisp.org>
51590         read-file: Move AC_LIBOBJ invocations to module description.
51591         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51592         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51593         of gl_FUNC_READ_FILE.
51594         (Makefile.am): Augment lib_SOURCES.
51596 2011-05-23  Bruno Haible  <bruno@clisp.org>
51598         quotearg: Move AC_LIBOBJ invocations to module description.
51599         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
51600         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
51602 2011-05-23  Bruno Haible  <bruno@clisp.org>
51604         quote: Move AC_LIBOBJ invocations to module description.
51605         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
51606         * modules/quote (Makefile.am): Augment lib_SOURCES.
51608 2011-05-23  Bruno Haible  <bruno@clisp.org>
51610         posixver: Move AC_LIBOBJ invocations to module description.
51611         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
51612         * modules/posixver (Makefile.am): Augment lib_SOURCES.
51614 2011-05-23  Bruno Haible  <bruno@clisp.org>
51616         posixtm: Move AC_LIBOBJ invocations to module description.
51617         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
51618         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
51620 2011-05-23  Bruno Haible  <bruno@clisp.org>
51622         physmem: Move AC_LIBOBJ invocations to module description.
51623         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
51624         * modules/physmem (Makefile.am): Augment lib_SOURCES.
51626 2011-05-23  Bruno Haible  <bruno@clisp.org>
51628         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
51629         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
51630         invocation.
51631         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
51633 2011-05-23  Bruno Haible  <bruno@clisp.org>
51635         mpsort: Move AC_LIBOBJ invocations to module description.
51636         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
51637         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
51639 2011-05-23  Bruno Haible  <bruno@clisp.org>
51641         modechange: Move AC_LIBOBJ invocations to module description.
51642         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
51643         * modules/modechange (Makefile.am): Augment lib_SOURCES.
51645 2011-05-23  Bruno Haible  <bruno@clisp.org>
51647         mkdir-p: Move AC_LIBOBJ invocations to module description.
51648         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
51649         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
51651 2011-05-23  Bruno Haible  <bruno@clisp.org>
51653         mkancesdirs: Move AC_LIBOBJ invocations to module description.
51654         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
51655         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
51657 2011-05-23  Bruno Haible  <bruno@clisp.org>
51659         mgetgroups: Move AC_LIBOBJ invocations to module description.
51660         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51661         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51663 2011-05-23  Bruno Haible  <bruno@clisp.org>
51665         memxor: Move AC_LIBOBJ invocations to module description.
51666         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51667         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51669 2011-05-23  Bruno Haible  <bruno@clisp.org>
51671         memcoll: Move AC_LIBOBJ invocations to module description.
51672         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51673         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51675 2011-05-23  Bruno Haible  <bruno@clisp.org>
51677         memcasecmp: Move AC_LIBOBJ invocations to module description.
51678         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51679         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51681 2011-05-23  Bruno Haible  <bruno@clisp.org>
51683         crypto/md5: Move AC_LIBOBJ invocations to module description.
51684         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51685         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51687 2011-05-23  Bruno Haible  <bruno@clisp.org>
51689         crypto/md4: Move AC_LIBOBJ invocations to module description.
51690         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51691         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51693 2011-05-23  Bruno Haible  <bruno@clisp.org>
51695         crypto/md2: Move AC_LIBOBJ invocations to module description.
51696         * m4/md2.m4: Remove file.
51697         * modules/crypto/md2 (Files): Remove it.
51698         (configure.ac): Remove gl_MD2 call.
51699         (Makefile.am): Augment lib_SOURCES.
51701 2011-05-23  Bruno Haible  <bruno@clisp.org>
51703         long-options: Move AC_LIBOBJ invocations to module description.
51704         * m4/long-options.m4: Remove file.
51705         * modules/long-options (Files): Remove it.
51706         (configure.ac): Remove gl_LONG_OPTIONS call.
51707         (Makefile.am): Augment lib_SOURCES.
51709 2011-05-23  Bruno Haible  <bruno@clisp.org>
51711         i-ring: Move AC_LIBOBJ invocations to module description.
51712         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51713         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51715 2011-05-23  Bruno Haible  <bruno@clisp.org>
51717         idcache: Move AC_LIBOBJ invocations to module description.
51718         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51719         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51721 2011-05-23  Bruno Haible  <bruno@clisp.org>
51723         human: Move AC_LIBOBJ invocations to module description.
51724         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51725         * modules/human (Makefile.am): Augment lib_SOURCES.
51727 2011-05-23  Bruno Haible  <bruno@clisp.org>
51729         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51730         * m4/hmac-sha1.m4: Remove file.
51731         * modules/crypto/hmac-sha1 (Files): Remove it.
51732         (configure.ac): Remove gl_HMAC_SHA1 call.
51733         (Makefile.am): Augment lib_SOURCES.
51735 2011-05-23  Bruno Haible  <bruno@clisp.org>
51737         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51738         * m4/hmac-md5.m4: Remove file.
51739         * modules/crypto/hmac-md5 (Files): Remove it.
51740         (configure.ac): Remove gl_HMAC_MD5 call.
51741         (Makefile.am): Augment lib_SOURCES.
51743 2011-05-23  Bruno Haible  <bruno@clisp.org>
51745         hash: Move AC_LIBOBJ invocations to module description.
51746         * m4/hash.m4: Remove file.
51747         * modules/hash (Files): Remove it.
51748         (configure.ac): Remove gl_HASH call.
51749         (Makefile.am): Augment lib_SOURCES.
51751 2011-05-23  Bruno Haible  <bruno@clisp.org>
51753         hard-locale: Move AC_LIBOBJ invocations to module description.
51754         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51755         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51757 2011-05-23  Bruno Haible  <bruno@clisp.org>
51759         getugroups: Move AC_LIBOBJ invocations to module description.
51760         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51761         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51763 2011-05-23  Bruno Haible  <bruno@clisp.org>
51765         gettime: Move AC_LIBOBJ invocations to module description.
51766         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51767         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51769 2011-05-23  Bruno Haible  <bruno@clisp.org>
51771         getndelim2: Move AC_LIBOBJ invocations to module description.
51772         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51773         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51775 2011-05-23  Bruno Haible  <bruno@clisp.org>
51777         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51778         * m4/gc-pbkdf2-sha1.m4: Remove file.
51779         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51780         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51781         (Makefile.am): Augment lib_SOURCES.
51783 2011-05-23  Bruno Haible  <bruno@clisp.org>
51785         fts: Move AC_LIBOBJ invocations to module description.
51786         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51787         * modules/fts (configure.ac): ... to here.
51789 2011-05-23  Bruno Haible  <bruno@clisp.org>
51791         file-type: Move AC_LIBOBJ invocations to module description.
51792         * m4/file-type.m4: Remove file.
51793         * modules/file-type (Files): Remove it.
51794         (configure.ac): Remove gl_FILE_TYPE call.
51795         (Makefile.am): Augment lib_SOURCES.
51797 2011-05-23  Bruno Haible  <bruno@clisp.org>
51799         filenamecat*: Respect rules for use of AC_LIBOBJ.
51800         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51801         Remove AC_LIBOBJ invocation.
51802         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51803         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51805 2011-05-23  Bruno Haible  <bruno@clisp.org>
51807         filemode: Move AC_LIBOBJ invocations to module description.
51808         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51809         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51811 2011-05-23  Bruno Haible  <bruno@clisp.org>
51813         openat-safer: Move AC_LIBOBJ invocations to module description.
51814         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51815         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51817 2011-05-23  Bruno Haible  <bruno@clisp.org>
51819         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51820         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51821         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51823 2011-05-23  Bruno Haible  <bruno@clisp.org>
51825         exclude: Move AC_LIBOBJ invocations to module description.
51826         * m4/exclude.m4: Remove file.
51827         * modules/exclude (Files): Remove it.
51828         (configure.ac): Remove gl_EXCLUDE call.
51829         (Makefile.am): Augment lib_SOURCES.
51831 2011-05-23  Bruno Haible  <bruno@clisp.org>
51833         dirname*: Respect rules for use of AC_LIBOBJ.
51834         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51835         invocations.
51836         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51837         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51839 2011-05-23  Bruno Haible  <bruno@clisp.org>
51841         dirent-safer: Move AC_LIBOBJ invocations to module description.
51842         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51843         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51845 2011-05-23  Bruno Haible  <bruno@clisp.org>
51847         crypto/des: Move AC_LIBOBJ invocations to module description.
51848         * m4/des.m4: Remove file.
51849         * modules/crypto/des (Files): Remove it.
51850         (configure.ac): Remove gl_DES call.
51851         (Makefile.am): Augment lib_SOURCES.
51853 2011-05-23  Bruno Haible  <bruno@clisp.org>
51855         cycle-check: Move AC_LIBOBJ invocations to module description.
51856         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51857         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51859 2011-05-23  Bruno Haible  <bruno@clisp.org>
51861         c-strtold: Move AC_LIBOBJ invocations to module description.
51862         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51863         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51865 2011-05-23  Bruno Haible  <bruno@clisp.org>
51867         c-strtod: Move AC_LIBOBJ invocations to module description.
51868         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51869         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51871 2011-05-23  Bruno Haible  <bruno@clisp.org>
51873         crc: Move AC_LIBOBJ invocations to module description.
51874         * m4/crc.m4: Remove file.
51875         * modules/crc (Files): Remove it.
51876         (configure.ac): Remove gl_CRC call.
51877         (Makefile.am): Augment lib_SOURCES.
51879 2011-05-23  Bruno Haible  <bruno@clisp.org>
51881         close-stream: Move AC_LIBOBJ invocations to module description.
51882         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51883         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51885 2011-05-23  Bruno Haible  <bruno@clisp.org>
51887         closeout: Move AC_LIBOBJ invocations to module description.
51888         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51889         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51891 2011-05-23  Bruno Haible  <bruno@clisp.org>
51893         closein: Move AC_LIBOBJ invocations to module description.
51894         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51895         * modules/closein (Makefile.am): Augment lib_SOURCES.
51897 2011-05-23  Bruno Haible  <bruno@clisp.org>
51899         cloexec: Move AC_LIBOBJ invocations to module description.
51900         * m4/cloexec.m4: Remove file.
51901         * modules/cloexec (Files): Remove it.
51902         (configure.ac): Remove gl_CLOEXEC call.
51903         (Makefile.am): Augment lib_SOURCES.
51905 2011-05-23  Bruno Haible  <bruno@clisp.org>
51907         check-version: Move AC_LIBOBJ invocations to module description.
51908         * m4/check-version.m4: Remove file.
51909         * modules/check-version (Files): Remove it.
51910         (configure.ac): Remove gl_CHECK_VERSION call.
51911         (Makefile.am): Augment lib_SOURCES.
51913 2011-05-23  Bruno Haible  <bruno@clisp.org>
51915         chdir-safer: Move AC_LIBOBJ invocations to module description.
51916         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51917         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51919 2011-05-23  Bruno Haible  <bruno@clisp.org>
51921         canonicalize: Move AC_LIBOBJ invocations to module description.
51922         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51923         AC_LIBOBJ invocation.
51924         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51926 2011-05-23  Bruno Haible  <bruno@clisp.org>
51928         canon-host: Move AC_LIBOBJ invocations to module description.
51929         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51930         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51931         instead of gl_CANON_HOST.
51932         (Makefile.am): Augment lib_SOURCES.
51934 2011-05-23  Bruno Haible  <bruno@clisp.org>
51936         backupfile: Move AC_LIBOBJ invocations to module description.
51937         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51938         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51940 2011-05-23  Bruno Haible  <bruno@clisp.org>
51942         argmatch: Move AC_LIBOBJ invocations to module description.
51943         * m4/argmatch.m4: Remove file.
51944         * modules/argmatch (Files): Remove it.
51945         (configure.ac): Remove gl_ARGMATCH call.
51946         (Makefile.am): Augment lib_SOURCES.
51948 2011-05-23  Bruno Haible  <bruno@clisp.org>
51950         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51951         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51952         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51954 2011-05-23  Bruno Haible  <bruno@clisp.org>
51956         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51957         * m4/arcfour.m4: Remove file.
51958         * modules/crypto/arcfour (Files): Remove it.
51959         (configure.ac): Remove gl_ARCFOUR call.
51960         (Makefile.am): Augment lib_SOURCES.
51962 2011-05-22  Bruno Haible  <bruno@clisp.org>
51964         write: Move AC_LIBOBJ invocations to module description.
51965         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51966         * modules/write (configure.ac): ... to here.
51968 2011-05-22  Bruno Haible  <bruno@clisp.org>
51970         wmemset: Move AC_LIBOBJ invocations to module description.
51971         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51972         here...
51973         * modules/wmemset (configure.ac): ... to here.
51975 2011-05-22  Bruno Haible  <bruno@clisp.org>
51977         wmemmove: Move AC_LIBOBJ invocations to module description.
51978         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51979         here...
51980         * modules/wmemmove (configure.ac): ... to here.
51982 2011-05-22  Bruno Haible  <bruno@clisp.org>
51984         wmemcpy: Move AC_LIBOBJ invocations to module description.
51985         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51986         here...
51987         * modules/wmemcpy (configure.ac): ... to here.
51989 2011-05-22  Bruno Haible  <bruno@clisp.org>
51991         wmemcmp: Move AC_LIBOBJ invocations to module description.
51992         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51993         here...
51994         * modules/wmemcmp (configure.ac): ... to here.
51996 2011-05-22  Bruno Haible  <bruno@clisp.org>
51998         wmemchr: Move AC_LIBOBJ invocations to module description.
51999         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
52000         here...
52001         * modules/wmemchr (configure.ac): ... to here.
52003 2011-05-22  Bruno Haible  <bruno@clisp.org>
52005         wcswidth: Move AC_LIBOBJ invocations to module description.
52006         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
52007         here...
52008         * modules/wcswidth (configure.ac): ... to here.
52010 2011-05-22  Bruno Haible  <bruno@clisp.org>
52012         wcwidth: Respect rules for use of AC_LIBOBJ.
52013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
52014         invocation from here...
52015         * modules/wcwidth (configure.ac): ... to here.
52016         (Depends-on): Update conditions.
52018 2011-05-22  Bruno Haible  <bruno@clisp.org>
52020         wctype: Move AC_LIBOBJ invocations to module description.
52021         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
52022         invocation from here...
52023         * modules/wctype (configure.ac): ... to here.
52024         (Depends-on): Update conditions.
52026 2011-05-22  Bruno Haible  <bruno@clisp.org>
52028         wctrans: Move AC_LIBOBJ invocations to module description.
52029         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
52030         invocation from here...
52031         * modules/wctrans (configure.ac): ... to here.
52033 2011-05-22  Bruno Haible  <bruno@clisp.org>
52035         wctomb: Move AC_LIBOBJ invocations to module description.
52036         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
52037         invocations from here...
52038         * modules/wctomb (configure.ac): ... to here.
52040 2011-05-22  Bruno Haible  <bruno@clisp.org>
52042         wctob: Move AC_LIBOBJ invocations to module description.
52043         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
52044         gl_PREREQ_WCTOB invocations from here...
52045         * modules/wctob (configure.ac): ... to here.
52046         (Depends-on): Update conditions.
52048 2011-05-22  Bruno Haible  <bruno@clisp.org>
52050         wcsxfrm: Move AC_LIBOBJ invocations to module description.
52051         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
52052         here...
52053         * modules/wcsxfrm (configure.ac): ... to here.
52055 2011-05-22  Bruno Haible  <bruno@clisp.org>
52057         wcstok: Move AC_LIBOBJ invocations to module description.
52058         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
52059         * modules/wcstok (configure.ac): ... to here.
52061 2011-05-22  Bruno Haible  <bruno@clisp.org>
52063         wcsstr: Move AC_LIBOBJ invocations to module description.
52064         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
52065         * modules/wcsstr (configure.ac): ... to here.
52067 2011-05-22  Bruno Haible  <bruno@clisp.org>
52069         wcsspn: Move AC_LIBOBJ invocations to module description.
52070         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
52071         * modules/wcsspn (configure.ac): ... to here.
52073 2011-05-22  Bruno Haible  <bruno@clisp.org>
52075         wcsrtombs: Move AC_LIBOBJ invocations to module description.
52076         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
52077         gl_PREREQ_WCSRTOMBS invocations from here...
52078         * modules/wcsrtombs (configure.ac): ... to here.
52080 2011-05-22  Bruno Haible  <bruno@clisp.org>
52082         wcsrchr: Move AC_LIBOBJ invocations to module description.
52083         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
52084         here...
52085         * modules/wcsrchr (configure.ac): ... to here.
52087 2011-05-22  Bruno Haible  <bruno@clisp.org>
52089         wcspbrk: Move AC_LIBOBJ invocations to module description.
52090         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
52091         here...
52092         * modules/wcspbrk (configure.ac): ... to here.
52094 2011-05-22  Bruno Haible  <bruno@clisp.org>
52096         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
52097         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
52098         gl_PREREQ_WCSNRTOMBS invocations from here...
52099         * modules/wcsnrtombs (configure.ac): ... to here.
52101 2011-05-22  Bruno Haible  <bruno@clisp.org>
52103         wcsnlen: Move AC_LIBOBJ invocations to module description.
52104         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
52105         here...
52106         * modules/wcsnlen (configure.ac): ... to here.
52108 2011-05-22  Bruno Haible  <bruno@clisp.org>
52110         wcsncpy: Move AC_LIBOBJ invocations to module description.
52111         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
52112         here...
52113         * modules/wcsncpy (configure.ac): ... to here.
52115 2011-05-22  Bruno Haible  <bruno@clisp.org>
52117         wcsncmp: Move AC_LIBOBJ invocations to module description.
52118         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
52119         here...
52120         * modules/wcsncmp (configure.ac): ... to here.
52122 2011-05-22  Bruno Haible  <bruno@clisp.org>
52124         wcsncat: Move AC_LIBOBJ invocations to module description.
52125         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
52126         here...
52127         * modules/wcsncat (configure.ac): ... to here.
52129 2011-05-22  Bruno Haible  <bruno@clisp.org>
52131         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
52132         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
52133         from here...
52134         * modules/wcsncasecmp (configure.ac): ... to here.
52136 2011-05-22  Bruno Haible  <bruno@clisp.org>
52138         wcslen: Move AC_LIBOBJ invocations to module description.
52139         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
52140         * modules/wcslen (configure.ac): ... to here.
52142 2011-05-22  Bruno Haible  <bruno@clisp.org>
52144         wcsdup: Move AC_LIBOBJ invocations to module description.
52145         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
52146         * modules/wcsdup (configure.ac): ... to here.
52148 2011-05-22  Bruno Haible  <bruno@clisp.org>
52150         wcscspn: Move AC_LIBOBJ invocations to module description.
52151         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
52152         here...
52153         * modules/wcscspn (configure.ac): ... to here.
52155 2011-05-22  Bruno Haible  <bruno@clisp.org>
52157         wcscpy: Move AC_LIBOBJ invocations to module description.
52158         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
52159         * modules/wcscpy (configure.ac): ... to here.
52161 2011-05-22  Bruno Haible  <bruno@clisp.org>
52163         wcscoll: Move AC_LIBOBJ invocations to module description.
52164         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
52165         here...
52166         * modules/wcscoll (configure.ac): ... to here.
52168 2011-05-22  Bruno Haible  <bruno@clisp.org>
52170         wcscmp: Move AC_LIBOBJ invocations to module description.
52171         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52172         * modules/wcscmp (configure.ac): ... to here.
52174 2011-05-22  Bruno Haible  <bruno@clisp.org>
52176         wcschr: Move AC_LIBOBJ invocations to module description.
52177         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
52178         * modules/wcschr (configure.ac): ... to here.
52180 2011-05-22  Bruno Haible  <bruno@clisp.org>
52182         wcscat: Move AC_LIBOBJ invocations to module description.
52183         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
52184         * modules/wcscat (configure.ac): ... to here.
52186 2011-05-22  Bruno Haible  <bruno@clisp.org>
52188         wcscasecmp: Move AC_LIBOBJ invocations to module description.
52189         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
52190         here...
52191         * modules/wcscasecmp (configure.ac): ... to here.
52193 2011-05-22  Bruno Haible  <bruno@clisp.org>
52195         wcrtomb: Move AC_LIBOBJ invocations to module description.
52196         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
52197         invocations from here...
52198         * modules/wcrtomb (configure.ac): ... to here.
52200 2011-05-22  Bruno Haible  <bruno@clisp.org>
52202         wcpncpy: Move AC_LIBOBJ invocations to module description.
52203         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
52204         here...
52205         * modules/wcpncpy (configure.ac): ... to here.
52207 2011-05-22  Bruno Haible  <bruno@clisp.org>
52209         wcpcpy: Move AC_LIBOBJ invocations to module description.
52210         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
52211         * modules/wcpcpy (configure.ac): ... to here.
52213 2011-05-22  Bruno Haible  <bruno@clisp.org>
52215         waitpid: Move AC_LIBOBJ invocations to module description.
52216         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
52217         invocation from here...
52218         * modules/waitpid (configure.ac): ... to here.
52220 2011-05-22  Bruno Haible  <bruno@clisp.org>
52222         utimensat: Move AC_LIBOBJ invocations to module description.
52223         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
52224         here...
52225         * modules/utimensat (configure.ac): ... to here.
52227 2011-05-22  Bruno Haible  <bruno@clisp.org>
52229         usleep: Move AC_LIBOBJ invocations to module description.
52230         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
52231         here...
52232         * modules/usleep (configure.ac): ... to here.
52234 2011-05-22  Bruno Haible  <bruno@clisp.org>
52236         unlockpt: Move AC_LIBOBJ invocations to module description.
52237         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
52238         gl_PREREQ_UNLOCKPT invocations from here...
52239         * modules/unlockpt (configure.ac): ... to here.
52241 2011-05-22  Bruno Haible  <bruno@clisp.org>
52243         unlink: Respect rules for use of AC_LIBOBJ.
52244         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
52245         * modules/unlink (configure.ac): ... to here.
52247 2011-05-22  Bruno Haible  <bruno@clisp.org>
52249         uname: Move AC_LIBOBJ invocations to module description.
52250         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
52251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
52252         here...
52253         * modules/uname (configure.ac): ... to here.
52255 2011-05-22  Bruno Haible  <bruno@clisp.org>
52257         ttyname_r: Move AC_LIBOBJ invocations to module description.
52258         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
52259         gl_PREREQ_TTYNAME_R invocations from here...
52260         * modules/ttyname_r (configure.ac): ... to here.
52262 2011-05-22  Bruno Haible  <bruno@clisp.org>
52264         tsearch: Move AC_LIBOBJ invocations to module description.
52265         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
52266         invocations from here...
52267         * modules/tsearch (configure.ac): ... to here.
52269 2011-05-22  Bruno Haible  <bruno@clisp.org>
52271         towctrans: Move AC_LIBOBJ invocations to module description.
52272         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
52273         AC_LIBOBJ invocation from here...
52274         * modules/towctrans (configure.ac): ... to here.
52276 2011-05-22  Bruno Haible  <bruno@clisp.org>
52278         tmpfile: Move AC_LIBOBJ invocations to module description.
52279         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
52280         invocations from here...
52281         * modules/tmpfile (configure.ac): ... to here.
52283 2011-05-22  Bruno Haible  <bruno@clisp.org>
52285         times: Move AC_LIBOBJ invocations to module description.
52286         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
52287         * modules/times (configure.ac): ... to here.
52289 2011-05-22  Bruno Haible  <bruno@clisp.org>
52291         time_r: Move AC_LIBOBJ invocations to module description.
52292         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
52293         invocations from here...
52294         * modules/time_r (configure.ac): ... to here.
52296 2011-05-22  Bruno Haible  <bruno@clisp.org>
52298         timegm: Move AC_LIBOBJ invocations to module description.
52299         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
52300         invocations from here...
52301         * modules/timegm (configure.ac): ... to here.
52303 2011-05-22  Bruno Haible  <bruno@clisp.org>
52305         tcgetsid: Move AC_LIBOBJ invocations to module description.
52306         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
52307         and gl_PREREQ_TCGETSID invocations from here...
52308         * modules/tcgetsid (configure.ac): ... to here.
52309         (Depends-on): Update conditions.
52311 2011-05-22  Bruno Haible  <bruno@clisp.org>
52313         symlinkat: Move AC_LIBOBJ invocations to module description.
52314         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
52315         here...
52316         * modules/symlinkat (configure.ac): ... to here.
52318 2011-05-22  Bruno Haible  <bruno@clisp.org>
52320         symlink: Move AC_LIBOBJ invocations to module description.
52321         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
52322         here...
52323         * modules/symlink (configure.ac): ... to here.
52325 2011-05-22  Bruno Haible  <bruno@clisp.org>
52327         strverscmp: Move AC_LIBOBJ invocations to module description.
52328         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
52329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
52330         from here...
52331         * modules/strverscmp (configure.ac): ... to here.
52333 2011-05-22  Bruno Haible  <bruno@clisp.org>
52335         strtok_r: Move AC_LIBOBJ invocations to module description.
52336         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
52337         and gl_PREREQ_STRTOK_R invocations from here...
52338         * modules/strtok_r (configure.ac): ... to here.
52339         (Depends-on): Update conditions.
52341 2011-05-22  Bruno Haible  <bruno@clisp.org>
52343         strtoumax: Move AC_LIBOBJ invocations to module description.
52344         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52346         from here...
52347         * modules/strtoumax (configure.ac): ... to here.
52349 2011-05-22  Bruno Haible  <bruno@clisp.org>
52351         strtoimax: Move AC_LIBOBJ invocations to module description.
52352         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52354         from here...
52355         * modules/strtoimax (configure.ac): ... to here.
52357 2011-05-22  Bruno Haible  <bruno@clisp.org>
52359         strtoull: Move AC_LIBOBJ invocations to module description.
52360         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52362         from here...
52363         * modules/strtoull (configure.ac): ... to here.
52365 2011-05-22  Bruno Haible  <bruno@clisp.org>
52367         strtoll: Move AC_LIBOBJ invocations to module description.
52368         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52369         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52370         here...
52371         * modules/strtoll (configure.ac): ... to here.
52373 2011-05-22  Bruno Haible  <bruno@clisp.org>
52375         strtoul: Move AC_LIBOBJ invocations to module description.
52376         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52377         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52378         * modules/strtoul (configure.ac): ... to here.
52380 2011-05-22  Bruno Haible  <bruno@clisp.org>
52382         strtol: Move AC_LIBOBJ invocations to module description.
52383         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52384         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52385         * modules/strtol (configure.ac): ... to here.
52387 2011-05-22  Bruno Haible  <bruno@clisp.org>
52389         strtod: Move AC_LIBOBJ invocations to module description.
52390         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52391         invocations from here...
52392         * modules/strtod (configure.ac): ... to here.
52394 2011-05-22  Bruno Haible  <bruno@clisp.org>
52396         strstr*: Move AC_LIBOBJ invocations to module description.
52397         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52398         invocations from here...
52399         * modules/strstr-simple (configure.ac): ... to here.
52400         * modules/strstr (configure.ac): ... and here.
52402 2011-05-22  Bruno Haible  <bruno@clisp.org>
52404         strsignal: Move AC_LIBOBJ invocations to module description.
52405         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52406         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52407         * modules/strsignal (configure.ac): ... to here.
52408         (Depends-on): Update conditions.
52410 2011-05-22  Bruno Haible  <bruno@clisp.org>
52412         strsep: Move AC_LIBOBJ invocations to module description.
52413         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52414         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52415         here...
52416         * modules/strsep (configure.ac): ... to here.
52418 2011-05-22  Bruno Haible  <bruno@clisp.org>
52420         strptime: Move AC_LIBOBJ invocations to module description.
52421         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52422         gl_PREREQ_STRPTIME invocations from here...
52423         * modules/strptime (configure.ac): ... to here.
52425 2011-05-22  Bruno Haible  <bruno@clisp.org>
52427         strpbrk: Move AC_LIBOBJ invocations to module description.
52428         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52429         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52430         here...
52431         * modules/strpbrk (configure.ac): ... to here.
52433 2011-05-22  Bruno Haible  <bruno@clisp.org>
52435         strnlen: Move AC_LIBOBJ invocations to module description.
52436         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52437         invocations from here...
52438         * modules/strnlen (configure.ac): ... to here.
52440 2011-05-22  Bruno Haible  <bruno@clisp.org>
52442         strndup: Move AC_LIBOBJ invocations to module description.
52443         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52444         invocations from here...
52445         * modules/strndup (configure.ac): ... to here.
52446         (Depends-on): Update conditions.
52448 2011-05-22  Bruno Haible  <bruno@clisp.org>
52450         strncat: Move AC_LIBOBJ invocations to module description.
52451         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52452         invocations from here...
52453         * modules/strncat (configure.ac): ... to here.
52455 2011-05-22  Bruno Haible  <bruno@clisp.org>
52457         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
52458         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
52459         invocations from here...
52460         * modules/strdup (configure.ac): ... to here.
52461         * modules/strdup-posix (configure.ac): ... and here.
52463 2011-05-22  Bruno Haible  <bruno@clisp.org>
52465         strcspn: Move AC_LIBOBJ invocations to module description.
52466         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
52467         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
52468         here...
52469         * modules/strcspn (configure.ac): ... to here.
52471 2011-05-22  Bruno Haible  <bruno@clisp.org>
52473         strchrnul: Move AC_LIBOBJ invocations to module description.
52474         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
52475         gl_PREREQ_STRCHRNUL invocations from here...
52476         * modules/strchrnul (configure.ac): ... to here.
52478 2011-05-22  Bruno Haible  <bruno@clisp.org>
52480         strcasestr*: Move AC_LIBOBJ invocations to module description.
52481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52482         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
52483         * modules/strcasestr-simple (configure.ac): ... to here.
52484         * modules/strcasestr (configure.ac): ... and here.
52486 2011-05-22  Bruno Haible  <bruno@clisp.org>
52488         strcase: Move AC_LIBOBJ invocations to module description.
52489         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
52490         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
52491         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
52492         gl_PREREQ_STRNCASECMP invocations from here...
52493         * modules/strcase (configure.ac): ... to here.
52495 2011-05-22  Bruno Haible  <bruno@clisp.org>
52497         stpncpy: Move AC_LIBOBJ invocations to module description.
52498         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52499         here...
52500         * modules/stpncpy (configure.ac): ... to here.
52502 2011-05-22  Bruno Haible  <bruno@clisp.org>
52504         stpcpy: Move AC_LIBOBJ invocations to module description.
52505         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
52506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
52507         here...
52508         * modules/stpcpy (configure.ac): ... to here.
52510 2011-05-21  Bruno Haible  <bruno@clisp.org>
52512         stat: Move AC_LIBOBJ invocations to module description.
52513         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
52514         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
52515         here...
52516         * modules/stat (configure.ac): ... to here.
52518 2011-05-21  Bruno Haible  <bruno@clisp.org>
52520         sleep: Move AC_LIBOBJ invocations to module description.
52521         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
52522         * modules/sleep (configure.ac): ... to here.
52524 2011-05-21  Bruno Haible  <bruno@clisp.org>
52526         signbit: Move AC_LIBOBJ invocations to module description.
52527         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
52528         * modules/signbit (configure.ac): ... to here.
52530 2011-05-21  Bruno Haible  <bruno@clisp.org>
52532         sigprocmask: Move AC_LIBOBJ invocations to module description.
52533         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
52534         gl_PREREQ_SIGPROMASK invocations from here...
52535         * modules/sigprocmask (configure.ac): ... to here.
52537 2011-05-21  Bruno Haible  <bruno@clisp.org>
52539         sigaction: Move AC_LIBOBJ invocations to module description.
52540         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
52541         gl_PREREQ_SIGACTION invocations from here...
52542         * modules/sigaction (configure.ac): ... to here.
52544 2011-05-21  Bruno Haible  <bruno@clisp.org>
52546         sig2str: Move AC_LIBOBJ invocations to module description.
52547         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
52548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
52549         here...
52550         * modules/sig2str (configure.ac): ... to here.
52552 2011-05-21  Bruno Haible  <bruno@clisp.org>
52554         setlocale: Move AC_LIBOBJ invocations to module description.
52555         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
52556         gl_PREREQ_SETLOCALE invocations from here...
52557         * modules/setlocale (configure.ac): ... to here.
52559 2011-05-21  Bruno Haible  <bruno@clisp.org>
52561         unsetenv: Move AC_LIBOBJ invocations to module description.
52562         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
52563         and gl_PREREQ_UNSETENV invocations from here...
52564         * modules/unsetenv (configure.ac): ... to here.
52565         (Depends-on): Update.
52567 2011-05-21  Bruno Haible  <bruno@clisp.org>
52569         setenv: Move AC_LIBOBJ invocations to module description.
52570         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
52571         here...
52572         * modules/setenv (configure.ac): ... to here.
52574 2011-05-21  Bruno Haible  <bruno@clisp.org>
52576         selinux-h: Move AC_LIBOBJ invocations to module description.
52577         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
52578         AC_LIBOBJ invocation from here...
52579         * modules/selinux-h (configure.ac): ... to here.
52581 2011-05-21  Bruno Haible  <bruno@clisp.org>
52583         select: Respect rules for use of AC_LIBOBJ.
52584         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
52585         here...
52586         * modules/select (configure.ac): ... to here.
52588 2011-05-21  Bruno Haible  <bruno@clisp.org>
52590         scandir: Move AC_LIBOBJ invocations to module description.
52591         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52592         invocations from here...
52593         * modules/scandir (configure.ac): ... to here.
52595 2011-05-21  Bruno Haible  <bruno@clisp.org>
52597         rpmatch: Move AC_LIBOBJ invocations to module description.
52598         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
52599         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
52600         here...
52601         * modules/rpmatch (configure.ac): ... to here.
52603 2011-05-21  Bruno Haible  <bruno@clisp.org>
52605         rmdir: Respect rules for use of AC_LIBOBJ.
52606         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
52607         * modules/rmdir (configure.ac): ... to here.
52609 2011-05-21  Bruno Haible  <bruno@clisp.org>
52611         renameat: Move AC_LIBOBJ invocations to module description.
52612         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
52613         here...
52614         * modules/renameat (configure.ac): ... to here.
52616 2011-05-21  Bruno Haible  <bruno@clisp.org>
52618         rename: Respect rules for use of AC_LIBOBJ.
52619         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
52620         here...
52621         * modules/rename (configure.ac): ... to here.
52623 2011-05-21  Bruno Haible  <bruno@clisp.org>
52625         remove: Move AC_LIBOBJ invocations to module description.
52626         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
52627         here...
52628         * modules/remove (configure.ac): ... to here.
52630 2011-05-21  Bruno Haible  <bruno@clisp.org>
52632         relocatable-lib: Move AC_LIBOBJ invocations to module description.
52633         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
52634         macro.
52635         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
52636         * modules/relocatable-lib (configure.ac): ... to here.
52637         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52638         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
52640 2011-05-21  Bruno Haible  <bruno@clisp.org>
52642         relocatable-prog: Move AC_LIBOBJ invocations to module description.
52643         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
52644         here...
52645         * modules/relocatable-prog (configure.ac): ... to here.
52647 2011-05-21  Bruno Haible  <bruno@clisp.org>
52649         regex: Move AC_LIBOBJ invocations to module description.
52650         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
52651         invocations from here...
52652         * modules/regex (configure.ac): ... to here.
52654 2011-05-21  Bruno Haible  <bruno@clisp.org>
52656         realloc-*: Move AC_LIBOBJ invocations to module description.
52657         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
52658         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
52659         AC_LIBOBJ invocations from here...
52660         * modules/realloc-gnu (configure.ac): ... to here.
52661         * modules/realloc-posix (configure.ac): ... and here.
52663 2011-05-21  Bruno Haible  <bruno@clisp.org>
52665         readutmp: Move AC_LIBOBJ invocations to module description.
52666         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52667         * modules/readutmp (configure.ac): ... to here.
52669 2011-05-21  Bruno Haible  <bruno@clisp.org>
52671         readlinkat: Move AC_LIBOBJ invocations to module description.
52672         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52673         here...
52674         * modules/readlinkat (configure.ac): ... to here.
52676 2011-05-21  Bruno Haible  <bruno@clisp.org>
52678         readlink: Move AC_LIBOBJ invocations to module description.
52679         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52680         gl_PREREQ_READLINK invocations from here...
52681         * modules/readlink (configure.ac): ... to here.
52683 2011-05-21  Bruno Haible  <bruno@clisp.org>
52685         readline: Move AC_LIBOBJ invocations to module description.
52686         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52687         gl_PREREQ_READLINE invocations from here...
52688         * modules/readline (configure.ac): ... to here.
52690 2011-05-21  Bruno Haible  <bruno@clisp.org>
52692         read: Move AC_LIBOBJ invocations to module description.
52693         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52694         * modules/read (configure.ac): ... to here.
52696 2011-05-21  Bruno Haible  <bruno@clisp.org>
52698         rawmemchr: Move AC_LIBOBJ invocations to module description.
52699         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52701         from here...
52702         * modules/rawmemchr (configure.ac): ... to here.
52704 2011-05-21  Bruno Haible  <bruno@clisp.org>
52706         random_r: Move AC_LIBOBJ invocations to module description.
52707         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52708         gl_PREREQ_RANDOM_R invocations from here...
52709         * modules/random_r (configure.ac): ... to here.
52711 2011-05-21  Bruno Haible  <bruno@clisp.org>
52713         pwrite: Move AC_LIBOBJ invocations to module description.
52714         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52715         * modules/pwrite (configure.ac): ... to here.
52717 2011-05-21  Bruno Haible  <bruno@clisp.org>
52719         putenv: Move AC_LIBOBJ invocations to module description.
52720         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52721         * modules/putenv (configure.ac): ... to here.
52723 2011-05-21  Bruno Haible  <bruno@clisp.org>
52725         login_tty: Move AC_LIBOBJ invocations to module description.
52726         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52727         * modules/login_tty (configure.ac): ... to here.
52729 2011-05-21  Bruno Haible  <bruno@clisp.org>
52731         openpty: Move AC_LIBOBJ invocations to module description.
52732         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52733         * modules/openpty (configure.ac): ... to here.
52735 2011-05-21  Bruno Haible  <bruno@clisp.org>
52737         forkpty: Move AC_LIBOBJ invocations to module description.
52738         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52739         * modules/forkpty (configure.ac): ... to here.
52741 2011-05-21  Bruno Haible  <bruno@clisp.org>
52743         ptsname: Move AC_LIBOBJ invocations to module description.
52744         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52745         invocations from here...
52746         * modules/ptsname (configure.ac): ... to here.
52748 2011-05-21  Bruno Haible  <bruno@clisp.org>
52750         pread: Move AC_LIBOBJ invocations to module description.
52751         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52752         * modules/pread (configure.ac): ... to here.
52754 2011-05-21  Bruno Haible  <bruno@clisp.org>
52756         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52757         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52758         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52759         * modules/posix_spawn (configure.ac): ... to here.
52760         * modules/posix_spawnp (configure.ac): ... and here.
52762 2011-05-21  Bruno Haible  <bruno@clisp.org>
52764         popen: Move AC_LIBOBJ invocations to module description.
52765         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52766         invocations from here...
52767         * modules/popen (configure.ac): ... to here.
52769 2011-05-21  Bruno Haible  <bruno@clisp.org>
52771         poll: Move AC_LIBOBJ invocations to module description.
52772         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52773         invocations from here...
52774         * modules/poll (configure.ac): ... to here.
52776 2011-05-21  Bruno Haible  <bruno@clisp.org>
52778         pipe-posix: Move AC_LIBOBJ invocations to module description.
52779         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52780         * modules/pipe-posix (configure.ac): ... to here.
52782 2011-05-21  Bruno Haible  <bruno@clisp.org>
52784         openat: Respect rules for use of AC_LIBOBJ.
52785         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52786         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52787         * modules/openat (configure.ac): ... to here.
52789 2011-05-21  Bruno Haible  <bruno@clisp.org>
52791         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52792         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52793         invocation from here...
52794         * modules/obstack-printf (configure.ac): ... to here.
52795         * modules/obstack-printf-posix (configure.ac): ... and here.
52797 2011-05-21  Bruno Haible  <bruno@clisp.org>
52799         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52800         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52801         from here...
52802         * modules/nl_langinfo (configure.ac): ... to here.
52804 2011-05-21  Bruno Haible  <bruno@clisp.org>
52806         nanosleep: Move AC_LIBOBJ invocations to module description.
52807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52808         gl_PREREQ_NANOSLEEP invocations from here...
52809         * modules/nanosleep (configure.ac): ... to here.
52811 2011-05-21  Bruno Haible  <bruno@clisp.org>
52813         mountlist: Move AC_LIBOBJ invocations to module description.
52814         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52815         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52816         * modules/mountlist (configure.ac): ... to here.
52818 2011-05-21  Bruno Haible  <bruno@clisp.org>
52820         mktime: Respect rules for use of AC_LIBOBJ.
52821         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52822         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52823         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52824         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52825         * modules/mktime (configure.ac): ... to here.
52826         * modules/mktime-internal (configure.ac): ... and here.
52827         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52829 2011-05-21  Bruno Haible  <bruno@clisp.org>
52831         mkstemps: Move AC_LIBOBJ invocations to module description.
52832         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52833         here...
52834         * modules/mkstemps (configure.ac): ... to here.
52836 2011-05-21  Bruno Haible  <bruno@clisp.org>
52838         mkstemp: Move AC_LIBOBJ invocations to module description.
52839         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52840         gl_PREREQ_MKSTEMP invocations from here...
52841         * modules/mkstemp (configure.ac): ... to here.
52843 2011-05-21  Bruno Haible  <bruno@clisp.org>
52845         mkostemps: Move AC_LIBOBJ invocations to module description.
52846         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52847         here...
52848         * modules/mkostemps (configure.ac): ... to here.
52850 2011-05-21  Bruno Haible  <bruno@clisp.org>
52852         mkostemp: Move AC_LIBOBJ invocations to module description.
52853         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52854         gl_PREREQ_MKOSTEMP invocations from here...
52855         * modules/mkostemp (configure.ac): ... to here.
52857 2011-05-21  Bruno Haible  <bruno@clisp.org>
52859         mknod: Move AC_LIBOBJ invocations to module description.
52860         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52861         * modules/mknod (configure.ac): ... to here.
52863 2011-05-21  Bruno Haible  <bruno@clisp.org>
52865         mkfifoat: Move AC_LIBOBJ invocations to module description.
52866         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52867         here...
52868         * modules/mkfifoat (configure.ac): ... to here.
52870 2011-05-21  Bruno Haible  <bruno@clisp.org>
52872         mkfifo: Respect rules for use of AC_LIBOBJ.
52873         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52874         here...
52875         * modules/mkfifo (configure.ac): ... to here.
52877 2011-05-21  Bruno Haible  <bruno@clisp.org>
52879         mkdtemp: Move AC_LIBOBJ invocations to module description.
52880         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52881         invocations from here...
52882         * modules/mkdtemp (configure.ac): ... to here.
52884 2011-05-21  Bruno Haible  <bruno@clisp.org>
52886         mkdir: Move AC_LIBOBJ invocations to module description.
52887         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52888         * modules/mkdir (configure.ac): ... to here.
52890 2011-05-21  Bruno Haible  <bruno@clisp.org>
52892         memset: Move AC_LIBOBJ invocations to module description.
52893         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52894         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52895         here...
52896         * modules/memset (configure.ac): ... to here.
52898 2011-05-21  Bruno Haible  <bruno@clisp.org>
52900         memrchr: Move AC_LIBOBJ invocations to module description.
52901         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52903         here...
52904         * modules/memrchr (configure.ac): ... to here.
52906 2011-05-21  Bruno Haible  <bruno@clisp.org>
52908         mempcpy: Move AC_LIBOBJ invocations to module description.
52909         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52910         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52911         here...
52912         * modules/mempcpy (configure.ac): ... to here.
52914 2011-05-21  Bruno Haible  <bruno@clisp.org>
52916         memmove: Move AC_LIBOBJ invocations to module description.
52917         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52918         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52919         here...
52920         * modules/memmove (configure.ac): ... to here.
52922 2011-05-21  Bruno Haible  <bruno@clisp.org>
52924         memmem*: Move AC_LIBOBJ invocations to module description.
52925         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52926         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52927         here...
52928         (gl_FUNC_MEMMEM): ... and here...
52929         * modules/memmem-simple (configure.ac): ... to here.
52930         * modules/memmem (configure.ac): ... and here.
52932 2011-05-21  Bruno Haible  <bruno@clisp.org>
52934         memcpy: Move AC_LIBOBJ invocations to module description.
52935         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52937         here...
52938         * modules/memcpy (configure.ac): ... to here.
52940 2011-05-21  Bruno Haible  <bruno@clisp.org>
52942         memcmp: Simplify autoconf macro.
52943         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52944         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52945         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52947 2011-05-21  Bruno Haible  <bruno@clisp.org>
52949         memcmp: Move AC_LIBOBJ invocations to module description.
52950         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52951         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52952         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52953         * modules/memcmp (configure.ac): ... to here.
52954         (Depends-on): Update conditions.
52956 2011-05-21  Bruno Haible  <bruno@clisp.org>
52958         memchr: Respect rules for use of AC_LIBOBJ.
52959         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52960         invocations from here...
52961         * modules/memchr (configure.ac): ... to here.
52963 2011-05-21  Bruno Haible  <bruno@clisp.org>
52965         mbtowc: Move AC_LIBOBJ invocations to module description.
52966         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52967         invocations from here...
52968         * modules/mbtowc (configure.ac): ... to here.
52970 2011-05-21  Bruno Haible  <bruno@clisp.org>
52972         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52973         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52974         gl_PREREQ_MBSRTOWCS invocations from here...
52975         * modules/mbsrtowcs (configure.ac): ... to here.
52977 2011-05-21  Bruno Haible  <bruno@clisp.org>
52979         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52980         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52981         gl_PREREQ_MBSNRTOWCS invocations from here...
52982         * modules/mbsnrtowcs (configure.ac): ... to here.
52984 2011-05-21  Bruno Haible  <bruno@clisp.org>
52986         mbsinit: Move AC_LIBOBJ invocations to module description.
52987         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52988         invocations from here...
52989         * modules/mbsinit (configure.ac): ... to here.
52991 2011-05-21  Bruno Haible  <bruno@clisp.org>
52993         mbrlen: Move AC_LIBOBJ invocations to module description.
52994         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52995         invocations from here...
52996         * modules/mbrlen (configure.ac): ... to here.
52998 2011-05-21  Bruno Haible  <bruno@clisp.org>
53000         mbrtowc: Respect rules for use of AC_LIBOBJ.
53001         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
53002         invocations from here...
53003         * modules/mbrtowc (configure.ac): ... to here.
53005 2011-05-21  Bruno Haible  <bruno@clisp.org>
53007         malloc-*: Move AC_LIBOBJ invocations to module description.
53008         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
53009         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
53010         AC_LIBOBJ invocations from here...
53011         * modules/malloc-gnu (configure.ac): ... to here.
53012         * modules/malloc-posix (configure.ac): ... and here.
53014 2011-05-21  Bruno Haible  <bruno@clisp.org>
53016         lstat, openat: Respect rules for use of AC_LIBOBJ.
53017         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
53018         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
53019         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
53020         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
53021         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
53022         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
53023         here.
53024         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
53026 2011-05-21  Bruno Haible  <bruno@clisp.org>
53028         lseek: Move AC_LIBOBJ invocations to module description.
53029         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
53030         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53031         * modules/lseek (configure.ac): ... to here.
53033 2011-05-21  Bruno Haible  <bruno@clisp.org>
53035         linkat: Move AC_LIBOBJ invocations to module description.
53036         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
53037         here...
53038         * modules/linkat (configure.ac): ... to here.
53040 2011-05-21  Bruno Haible  <bruno@clisp.org>
53042         link: Respect rules for use of AC_LIBOBJ.
53043         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
53044         * modules/link (configure.ac): ... to here.
53046 2011-05-21  Bruno Haible  <bruno@clisp.org>
53048         lchown: Move AC_LIBOBJ invocations to module description.
53049         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53050         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53051         * modules/lchown (configure.ac): ... to here.
53053 2011-05-21  Bruno Haible  <bruno@clisp.org>
53055         iswctype: Move AC_LIBOBJ invocations to module description.
53056         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
53057         here...
53058         * modules/iswctype (configure.ac): ... to here.
53060 2011-05-21  Bruno Haible  <bruno@clisp.org>
53062         iswblank: Move AC_LIBOBJ invocations to module description.
53063         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
53064         here...
53065         * modules/iswblank (configure.ac): ... to here.
53067 2011-05-21  Bruno Haible  <bruno@clisp.org>
53069         atanl: Move AC_LIBOBJ invocations to module description.
53070         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
53071         * modules/atanl (configure.ac): ... to here.
53073 2011-05-21  Bruno Haible  <bruno@clisp.org>
53075         acosl: Move AC_LIBOBJ invocations to module description.
53076         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
53077         * modules/acosl (configure.ac): ... to here.
53079 2011-05-21  Bruno Haible  <bruno@clisp.org>
53081         asinl: Respect rules for use of AC_LIBOBJ.
53082         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
53083         * modules/asinl (configure.ac): ... to here.
53085 2011-05-21  Bruno Haible  <bruno@clisp.org>
53087         tanl: Move AC_LIBOBJ invocations to module description.
53088         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
53089         * modules/tanl (configure.ac): ... to here.
53091 2011-05-21  Bruno Haible  <bruno@clisp.org>
53093         cosl: Move AC_LIBOBJ invocations to module description.
53094         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
53095         * modules/cosl (configure.ac): ... to here.
53097 2011-05-21  Bruno Haible  <bruno@clisp.org>
53099         sinl: Move AC_LIBOBJ invocations to module description.
53100         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
53101         * modules/sinl (configure.ac): ... to here.
53103 2011-05-21  Bruno Haible  <bruno@clisp.org>
53105         logl: Move AC_LIBOBJ invocations to module description.
53106         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
53107         * modules/logl (configure.ac): ... to here.
53109 2011-05-21  Bruno Haible  <bruno@clisp.org>
53111         expl: Move AC_LIBOBJ invocations to module description.
53112         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
53113         * modules/expl (configure.ac): ... to here.
53115 2011-05-21  Bruno Haible  <bruno@clisp.org>
53117         roundl: Move AC_LIBOBJ invocations to module description.
53118         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
53119         * modules/roundl (configure.ac): ... to here.
53121 2011-05-21  Bruno Haible  <bruno@clisp.org>
53123         round: Move AC_LIBOBJ invocations to module description.
53124         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
53125         * modules/round (configure.ac): ... to here.
53127 2011-05-21  Bruno Haible  <bruno@clisp.org>
53129         roundf: Move AC_LIBOBJ invocations to module description.
53130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
53131         * modules/roundf (configure.ac): ... to here.
53133 2011-05-21  Bruno Haible  <bruno@clisp.org>
53135         truncl: Move AC_LIBOBJ invocations to module description.
53136         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53137         * modules/truncl (configure.ac): ... to here.
53139 2011-05-21  Bruno Haible  <bruno@clisp.org>
53141         trunc: Move AC_LIBOBJ invocations to module description.
53142         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
53143         * modules/trunc (configure.ac): ... to here.
53145 2011-05-21  Bruno Haible  <bruno@clisp.org>
53147         truncf: Move AC_LIBOBJ invocations to module description.
53148         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
53149         * modules/truncf (configure.ac): ... to here.
53151 2011-05-21  Bruno Haible  <bruno@clisp.org>
53153         ceill: Move AC_LIBOBJ invocations to module description.
53154         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
53155         * modules/ceill (configure.ac): ... to here.
53157 2011-05-21  Bruno Haible  <bruno@clisp.org>
53159         ceil: Move AC_LIBOBJ invocations to module description.
53160         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
53161         * modules/ceil (configure.ac): ... to here.
53163 2011-05-21  Bruno Haible  <bruno@clisp.org>
53165         ceilf: Move AC_LIBOBJ invocations to module description.
53166         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
53167         * modules/ceilf (configure.ac): ... to here.
53169 2011-05-21  Bruno Haible  <bruno@clisp.org>
53171         floorl: Respect rules for use of AC_LIBOBJ.
53172         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53173         * modules/floorl (configure.ac): ... to here.
53175 2011-05-21  Bruno Haible  <bruno@clisp.org>
53177         floor: Respect rules for use of AC_LIBOBJ.
53178         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
53179         * modules/floor (configure.ac): ... to here.
53181 2011-05-21  Bruno Haible  <bruno@clisp.org>
53183         floorf: Move AC_LIBOBJ invocations to module description.
53184         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53185         * modules/floorf (configure.ac): ... to here.
53187 2011-05-20  Bruno Haible  <bruno@clisp.org>
53189         sqrtl: Respect rules for use of AC_LIBOBJ.
53190         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
53191         * modules/sqrtl (configure.ac): ... to here.
53193 2011-05-20  Bruno Haible  <bruno@clisp.org>
53195         ldexpl: Respect rules for use of AC_LIBOBJ.
53196         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
53197         * modules/ldexpl (configure.ac): ... to here.
53199 2011-05-20  Bruno Haible  <bruno@clisp.org>
53201         frexpl*: Respect rules for use of AC_LIBOBJ.
53202         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
53203         invocation from here...
53204         * modules/frexpl (configure.ac): ... to here.
53205         * modules/frexpl-nolibm (configure.ac): ... and here.
53207 2011-05-20  Bruno Haible  <bruno@clisp.org>
53209         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
53210         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
53211         invocation from here...
53212         * modules/frexp (configure.ac): ... to here.
53213         * modules/frexp-nolibm (configure.ac): ... and here.
53215 2011-05-20  Bruno Haible  <bruno@clisp.org>
53217         isnan: Respect rules for use of AC_LIBOBJ.
53218         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
53219         invocations here.
53220         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53221         REPLACE_ISNAN.
53222         * modules/isnand (configure.ac): Likewise.
53223         * modules/isnanl (configure.ac): Likewise.
53225 2011-05-20  Bruno Haible  <bruno@clisp.org>
53227         isnanl*: Respect rules for use of AC_LIBOBJ.
53228         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
53229         invocation from here...
53230         * modules/isnanl (configure.ac): ... to here.
53231         * modules/isnanl-nolibm (configure.ac): ... and here.
53233 2011-05-20  Bruno Haible  <bruno@clisp.org>
53235         isnand*: Move AC_LIBOBJ invocations to module description.
53236         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
53237         invocation from here...
53238         * modules/isnand (configure.ac): ... to here.
53239         * modules/isnand-nolibm (configure.ac): ... and here.
53241 2011-05-20  Bruno Haible  <bruno@clisp.org>
53243         isnanf*: Move AC_LIBOBJ invocations to module description.
53244         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
53245         invocation from here...
53246         * modules/isnanf (configure.ac): ... to here.
53247         * modules/isnanf-nolibm (configure.ac): ... and here.
53249 2011-05-20  Bruno Haible  <bruno@clisp.org>
53251         isnan*: Separate the AC_LIBOBJ invocations.
53252         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
53253         AC_LIBOBJ invocation.
53254         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
53255         here.
53256         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
53257         AC_LIBOBJ invocation.
53258         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
53259         here.
53260         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
53261         AC_LIBOBJ invocation.
53262         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
53263         here.
53264         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
53266 2011-05-08  Bruno Haible  <bruno@clisp.org>
53268         isinf: Move AC_LIBOBJ invocations to module description.
53269         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
53270         * modules/isinf (configure.ac): ... to here.
53272 2011-05-08  Bruno Haible  <bruno@clisp.org>
53274         isfinite: Move AC_LIBOBJ invocations to module description.
53275         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
53276         * modules/isfinite (configure.ac): ... to here.
53278 2011-05-08  Bruno Haible  <bruno@clisp.org>
53280         isblank: Move AC_LIBOBJ invocations to module description.
53281         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
53282         here...
53283         * modules/isblank (configure.ac): ... to here.
53285 2011-05-08  Bruno Haible  <bruno@clisp.org>
53287         isapipe: Move AC_LIBOBJ invocations to module description.
53288         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
53289         gl_PREREQ_ISAPIPE invocations from here...
53290         * modules/isapipe (configure.ac): ... to here.
53291         (Depends-on): Update condition.
53293 2011-05-08  Bruno Haible  <bruno@clisp.org>
53295         ioctl: Move AC_LIBOBJ invocations to module description.
53296         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
53297         invocations from here...
53298         * modules/ioctl (configure.ac): ... to here.
53299         (Depends-on): Update condition.
53301 2011-05-08  Bruno Haible  <bruno@clisp.org>
53303         imaxdiv: Move AC_LIBOBJ invocations to module description.
53304         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
53305         invocations from here...
53306         * modules/imaxdiv (configure.ac): ... to here.
53308 2011-05-08  Bruno Haible  <bruno@clisp.org>
53310         imaxabs: Move AC_LIBOBJ invocations to module description.
53311         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
53312         invocations from here...
53313         * modules/imaxabs (configure.ac): ... to here.
53315 2011-05-08  Bruno Haible  <bruno@clisp.org>
53317         getaddrinfo: Move AC_LIBOBJ invocations to module description.
53318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
53319         AC_LIBOBJ invocations from here...
53320         * modules/getaddrinfo (configure.ac): ... to here.
53321         (Depends-on): Add conditions.
53323 2011-05-08  Bruno Haible  <bruno@clisp.org>
53325         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53326         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
53327         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53328         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
53329         (gl_PREREQ_INET_PTON): ... from here.
53330         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
53331         gl_PREREQ_INET_PTON here.
53332         (Depends-on): Update condition.
53334 2011-05-08  Bruno Haible  <bruno@clisp.org>
53336         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53337         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
53338         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53339         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
53340         (gl_PREREQ_INET_NTOP): ... from here.
53341         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53342         gl_PREREQ_INET_NTOP here.
53343         (Depends-on): Update condition.
53345 2011-05-08  Bruno Haible  <bruno@clisp.org>
53347         iconv_open: Move AC_LIBOBJ invocations to module description.
53348         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53349         AC_LIBOBJ invocations from here...
53350         * modules/iconv_open (configure.ac): ... to here.
53352 2011-05-08  Bruno Haible  <bruno@clisp.org>
53354         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53355         If module 'iconv_open' is among the main modules and module
53356         'iconv_open-utf' is among the tests dependencies, then
53357         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53358         return the special iconv_t values. Therefore iconv() and iconv_close()
53359         must support these special iconv_t values, already in lib, not only in
53360         tests.
53361         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53362         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53363         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53364         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53365         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53366         (Depends-on): Add the dependencies of iconv_open-utf.
53367         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53368         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53369         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53371 2011-05-08  Bruno Haible  <bruno@clisp.org>
53373         group-member: Move AC_LIBOBJ invocations to module description.
53374         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53375         gl_PREREQ_GROUP_MEMBER invocations from here...
53376         * modules/group-member (configure.ac): ... to here.
53378 2011-05-08  Bruno Haible  <bruno@clisp.org>
53380         grantpt: Move AC_LIBOBJ invocations to module description.
53381         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53382         invocations from here...
53383         * modules/grantpt (configure.ac): ... to here.
53385 2011-05-08  Bruno Haible  <bruno@clisp.org>
53387         glob: Move AC_LIBOBJ invocations to module description.
53388         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53389         from here...
53390         * modules/glob (configure.ac): ... to here.
53392 2011-05-08  Bruno Haible  <bruno@clisp.org>
53394         getusershell: Move AC_LIBOBJ invocations to module description.
53395         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53396         Move AC_LIBOBJ invocation from here...
53397         * modules/getusershell (configure.ac): ... to here.
53398         (Depends-on): Update condition.
53400 2011-05-08  Bruno Haible  <bruno@clisp.org>
53402         gettimeofday: Move AC_LIBOBJ invocations to module description.
53403         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53404         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53405         gl_PREREQ_GETTIMEOFDAY invocations from here...
53406         * modules/gettimeofday (configure.ac): ... to here.
53408 2011-05-08  Bruno Haible  <bruno@clisp.org>
53410         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53411         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53412         just gl_FUNC_TZSET.
53413         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53414         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53416         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53418 2011-05-08  Bruno Haible  <bruno@clisp.org>
53420         getsubopt: Move AC_LIBOBJ invocations to module description.
53421         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53422         gl_PREREQ_GETSUBOPT invocations from here...
53423         * modules/getsubopt (configure.ac): ... to here.
53425 2011-05-08  Bruno Haible  <bruno@clisp.org>
53427         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53428         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53429         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53430         * modules/getpass-gnu (configure.ac): ... to here.
53432 2011-05-08  Bruno Haible  <bruno@clisp.org>
53434         getpass: Move AC_LIBOBJ invocations to module description.
53435         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53436         gl_PREREQ_GETPASS invocations from here...
53437         * modules/getpass (configure.ac): ... to here.
53439 2011-05-08  Bruno Haible  <bruno@clisp.org>
53441         getpagesize: Move AC_LIBOBJ invocations to module description.
53442         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53443         from here...
53444         * modules/getpagesize (configure.ac): ... to here.
53446 2011-05-08  Bruno Haible  <bruno@clisp.org>
53448         getopt: Move AC_LIBOBJ invocations to module description.
53449         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53450         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53451         invocations from here...
53452         * modules/getopt-gnu (configure.ac): ... to here.
53453         * modules/getopt-posix (configure.ac): ... and here.
53454         (Depends-on): Update condition.
53456 2011-05-08  Bruno Haible  <bruno@clisp.org>
53458         getopt, argp: Respect rules for use of AC_LIBOBJ.
53459         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
53460         (gl_REPLACE_GETOPT_ALWAYS): New macro.
53461         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
53462         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
53464 2011-05-08  Bruno Haible  <bruno@clisp.org>
53466         getlogin_r: Move AC_LIBOBJ invocations to module description.
53467         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
53468         gl_PREREQ_GETLOGIN_R invocations from here...
53469         * modules/getlogin_r (configure.ac): ... to here.
53471 2011-05-08  Bruno Haible  <bruno@clisp.org>
53473         getlogin: Move AC_LIBOBJ invocations to module description.
53474         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
53475         here...
53476         * modules/getlogin (configure.ac): ... to here.
53478 2011-05-08  Bruno Haible  <bruno@clisp.org>
53480         getloadavg: Move AC_LIBOBJ invocations to module description.
53481         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
53482         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
53483         * modules/getloadavg (configure.ac): ... to here.
53485 2011-05-08  Bruno Haible  <bruno@clisp.org>
53487         gethrxtime: Move AC_LIBOBJ invocations to module description.
53488         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
53489         LIB_GETHRXTIME from here...
53490         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
53491         invocations from here...
53492         * modules/gethrxtime (configure.ac): ... to here.
53494 2011-05-08  Bruno Haible  <bruno@clisp.org>
53496         gethostname: Move AC_LIBOBJ invocations to module description.
53497         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
53498         gl_PREREQ_GETHOSTNAME invocations from here...
53499         * modules/gethostname (configure.ac): ... to here.
53501 2011-05-08  Bruno Haible  <bruno@clisp.org>
53503         getgroups: Move AC_LIBOBJ invocations to module description.
53504         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
53505         here...
53506         * modules/getgroups (configure.ac): ... to here.
53508 2011-05-08  Bruno Haible  <bruno@clisp.org>
53510         getdtablesize: Move AC_LIBOBJ invocations to module description.
53511         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
53512         invocation from here...
53513         * modules/getdtablesize (configure.ac): ... to here.
53515 2011-05-08  Bruno Haible  <bruno@clisp.org>
53517         getdomainname: Move AC_LIBOBJ invocations to module description.
53518         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
53519         gl_PREREQ_GETDOMAINNAME invocations from here...
53520         * modules/getdomainname (configure.ac): ... to here.
53522 2011-05-08  Bruno Haible  <bruno@clisp.org>
53524         getline: Move AC_LIBOBJ invocations to module description.
53525         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
53526         invocations from here...
53527         * modules/getline (configure.ac): ... to here.
53529 2011-05-08  Bruno Haible  <bruno@clisp.org>
53531         getline: Simplify.
53532         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
53533         It's already handled through the module dependency.
53535 2011-05-08  Bruno Haible  <bruno@clisp.org>
53537         getdelim: Move AC_LIBOBJ invocations to module description.
53538         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
53539         and gl_PREREQ_GETDELIM invocations from here...
53540         * modules/getdelim (configure.ac): ... to here.
53541         (Depends-on): Fix condition.
53543 2011-05-08  Bruno Haible  <bruno@clisp.org>
53545         getcwd: Move AC_LIBOBJ invocations to module description.
53546         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
53547         invocations from here...
53548         * modules/getcwd (configure.ac): ... to here.
53550 2011-05-08  Bruno Haible  <bruno@clisp.org>
53552         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
53553         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
53554         here...
53555         * modules/getcwd-lgpl (configure.ac): ... to here.
53557 2011-05-07  Bruno Haible  <bruno@clisp.org>
53559         crypto/gc: Move AC_LIBOBJ invocations to module description.
53560         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
53561         * modules/crypto/gc (configure.ac): ... to here.
53563 2011-05-07  Bruno Haible  <bruno@clisp.org>
53565         fwriting: Move AC_LIBOBJ invocations to module description.
53566         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
53567         here...
53568         * modules/fwriting (configure.ac): ... to here.
53570 2011-05-07  Bruno Haible  <bruno@clisp.org>
53572         fwritable: Move AC_LIBOBJ invocations to module description.
53573         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53574         here...
53575         * modules/fwritable (configure.ac): ... to here.
53577 2011-05-07  Bruno Haible  <bruno@clisp.org>
53579         futimens: Move AC_LIBOBJ invocations to module description.
53580         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
53581         here...
53582         * modules/futimens (configure.ac): ... to here.
53584 2011-05-07  Bruno Haible  <bruno@clisp.org>
53586         ftruncate: Move AC_LIBOBJ invocations to module description.
53587         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
53588         gl_PREREQ_FTRUNCATE invocations from here...
53589         * modules/ftruncate (configure.ac): ... to here.
53591 2011-05-07  Bruno Haible  <bruno@clisp.org>
53593         fsync: Move AC_LIBOBJ invocations to module description.
53594         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53595         invocations from here...
53596         * modules/fsync (configure.ac): ... to here.
53598 2011-05-07  Bruno Haible  <bruno@clisp.org>
53600         fsusage: Move AC_LIBOBJ invocations to module description.
53601         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
53602         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
53603         * modules/fsusage (configure.ac): ... to here.
53605 2011-05-07  Bruno Haible  <bruno@clisp.org>
53607         freopen: Move AC_LIBOBJ invocations to module description.
53608         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
53609         invocations from here...
53610         * modules/freopen (configure.ac): ... to here.
53612 2011-05-07  Bruno Haible  <bruno@clisp.org>
53614         free: Move AC_LIBOBJ invocations to module description.
53615         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
53616         invocations from here...
53617         * modules/free (configure.ac): ... to here.
53619 2011-05-07  Bruno Haible  <bruno@clisp.org>
53621         freadable: Move AC_LIBOBJ invocations to module description.
53622         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
53623         here...
53624         * modules/freadable (configure.ac): ... to here.
53626 2011-05-07  Bruno Haible  <bruno@clisp.org>
53628         fpurge: Move AC_LIBOBJ invocations to module description.
53629         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
53630         invocations from here...
53631         * modules/fpurge (configure.ac): ... to here.
53633 2011-05-07  Bruno Haible  <bruno@clisp.org>
53635         fpending: Move AC_LIBOBJ invocations to module description.
53636         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
53637         gl_FUNC_FPENDING.
53638         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
53639         invocations from here...
53640         * modules/fpending (configure.ac): ... to here.
53642 2011-05-07  Bruno Haible  <bruno@clisp.org>
53644         fopen: Move AC_LIBOBJ invocations to module description.
53645         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
53646         invocations from here...
53647         * modules/fopen (configure.ac): ... to here.
53649 2011-05-07  Bruno Haible  <bruno@clisp.org>
53651         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
53652         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
53653         gl_FUNC_FNMATCH_POSIX.
53654         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
53655         invocations from here...
53656         * modules/fnmatch (configure.ac): ... to here.
53657         * modules/fnmatch-gnu (configure.ac): ... and here.
53659 2011-05-07  Bruno Haible  <bruno@clisp.org>
53661         flock: Move AC_LIBOBJ invocations to module description.
53662         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53663         invocations from here...
53664         * modules/flock (configure.ac): ... to here.
53666 2011-05-07  Bruno Haible  <bruno@clisp.org>
53668         fileblocks: Move AC_LIBOBJ invocations to module description.
53669         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53670         gl_PREREQ_FILEBLOCKS invocations from here...
53671         * modules/fileblocks (configure.ac): ... to here.
53673 2011-05-06  Bruno Haible  <bruno@clisp.org>
53675         fflush: Move AC_LIBOBJ invocations to module description.
53676         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53677         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53678         invocations from here...
53679         * modules/fflush (configure.ac): ... to here.
53681 2011-05-06  Bruno Haible  <bruno@clisp.org>
53683         fdopendir: Move AC_LIBOBJ invocations to module description.
53684         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53685         here...
53686         * modules/fdopendir (configure.ac): ... to here.
53687         (Depends-on): Improve conditions.
53689 2011-05-06  Bruno Haible  <bruno@clisp.org>
53691         _Exit: Move AC_LIBOBJ invocations to module description.
53692         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53693         invocations from here...
53694         * modules/_Exit (configure.ac): ... to here.
53696 2011-05-21  Bruno Haible  <bruno@clisp.org>
53698         euidaccess: Respect rules for use of AC_LIBOBJ.
53699         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53701         from here...
53702         * modules/euidaccess (configure.ac): ... to here.
53704 2011-05-06  Bruno Haible  <bruno@clisp.org>
53706         error: Move AC_LIBOBJ invocations to module description.
53707         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53708         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53709         invocations from here...
53710         * modules/error (configure.ac): ... to here.
53712 2011-05-06  Bruno Haible  <bruno@clisp.org>
53714         duplocale: Move AC_LIBOBJ invocations to module description.
53715         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53716         gl_PREREQ_DUPLOCALE invocations from here...
53717         * modules/duplocale (configure.ac): ... to here.
53719 2011-05-05  Bruno Haible  <bruno@clisp.org>
53721         dirfd: Move AC_LIBOBJ invocations to module description.
53722         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53723         gl_FUNC_DIRFD.
53724         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53725         here...
53726         * modules/dirfd (configure.ac): ... to here.
53727         (Depends-on): Fix condition.
53729 2011-05-05  Bruno Haible  <bruno@clisp.org>
53731         chown: Respect rules for use of AC_LIBOBJ.
53732         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53733         * modules/chown (configure.ac): ... to here.
53735 2011-05-05  Bruno Haible  <bruno@clisp.org>
53737         chdir-long: Move AC_LIBOBJ invocations to module description.
53738         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53739         gl_PREREQ_CHDIR_LONG invocations from here...
53740         * modules/chdir-long (configure.ac): ... to here.
53742 2011-05-05  Bruno Haible  <bruno@clisp.org>
53744         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53745         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53746         from here...
53747         * modules/canonicalize-lgpl (configure.ac): ... to here.
53749 2011-05-05  Bruno Haible  <bruno@clisp.org>
53751         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53752         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53753         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53754         REPLACE_CALLOC.
53755         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53756         * modules/calloc-gnu (configure.ac): Likewise.
53758 2011-05-05  Bruno Haible  <bruno@clisp.org>
53760         btowc: Move AC_LIBOBJ invocations to module description.
53761         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53762         invocations from here...
53763         * modules/btowc (configure.ac): ... to here.
53765 2011-05-21  Bruno Haible  <bruno@clisp.org>
53767         atexit: Move AC_LIBOBJ invocations to module description.
53768         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53769         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53770         here...
53771         * modules/atexit (configure.ac): ... to here.
53773 2011-05-05  Bruno Haible  <bruno@clisp.org>
53775         atoll: Move AC_LIBOBJ invocations to module description.
53776         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53777         invocations from here...
53778         * modules/atoll (configure.ac): ... to here.
53780 2011-05-05  Bruno Haible  <bruno@clisp.org>
53782         argz: Move AC_LIBOBJ invocations to module description.
53783         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53784         * modules/argz (configure.ac): ... to here.
53786 2011-05-05  Bruno Haible  <bruno@clisp.org>
53788         alphasort: Move AC_LIBOBJ invocations to module description.
53789         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53790         gl_PREREQ_ALPHASORT invocations from here...
53791         * modules/alphasort (configure.ac): ... to here.
53793 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53795         verify: new macro verify_expr; verify_true deprecated
53796         * NEWS: Mention this.
53797         * doc/verify.texi (Compile-time Assertions): Document this.
53798         * lib/verify.h (verify_true): Deprecate.
53799         (verify_expr): New macro.
53800         * tests/test-verify.c (function): Test verify_expr.
53802 2011-06-14  Jim Meyering  <meyering@redhat.com>
53804         init.sh: give more portable redirection-related advice in a comment
53805         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53806         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53807         for lots of discussion.  Stefano Lattarini suggested the solution
53808         of putting "9>&2" after the command.  Reported by Bruno Haible.
53810 2011-06-13  Bruno Haible  <bruno@clisp.org>
53812         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53813         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53814         'none'.
53816 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53818         ftoastr: use strtof only if HAVE_STRTOF
53819         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53820         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53821         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53822         * modules/ftoastr (configure.ac): Check for strtof.
53824 2011-06-13  Bruno Haible  <bruno@clisp.org>
53826         gnulib-tool: Addendum to 2011-06-08 commit.
53827         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53828         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53830 2011-06-13  Bruno Haible  <bruno@clisp.org>
53832         fseeko: Provide a non-inline replacement of fseek().
53833         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53834         * modules/fseeko (Depends-on): Add fseek.
53835         * modules/fseek (License): Change to LGPLv2+.
53837 2011-06-13  Bruno Haible  <bruno@clisp.org>
53839         ftello: Provide a non-inline replacement of ftell().
53840         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53841         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53842         not have ftello() (such as on mingw).
53843         * modules/ftello (Depends-on): Add ftell.
53844         * modules/ftell (License): Change to LGPLv2+.
53846 2011-05-07  Bruno Haible  <bruno@clisp.org>
53848         ftell: Move AC_LIBOBJ invocations to module description.
53849         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53850         * modules/ftell (configure.ac): ... to here.
53852 2011-05-07  Bruno Haible  <bruno@clisp.org>
53854         ftello: Respect rules for use of AC_LIBOBJ.
53855         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53856         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53857         here...
53858         * modules/ftello (configure.ac): ... to here.
53860 2011-05-07  Bruno Haible  <bruno@clisp.org>
53862         fseeko: Simplify.
53863         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53864         (gl_FUNC_FSEEKO): Inline it here.
53866 2011-05-07  Bruno Haible  <bruno@clisp.org>
53868         fseek: Move AC_LIBOBJ invocations to module description.
53869         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53870         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53871         * modules/fseek (configure.ac): ... to here.
53873 2011-05-07  Bruno Haible  <bruno@clisp.org>
53875         fseek: Respect rules for use of AC_LIBOBJ.
53876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53877         here...
53878         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53880 2011-05-07  Bruno Haible  <bruno@clisp.org>
53882         fseeko: Respect rules for use of AC_LIBOBJ.
53883         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53884         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53885         here...
53886         * modules/fseeko (configure.ac): ... to here.
53888 2011-06-13  Bruno Haible  <bruno@clisp.org>
53890         gnulib-tool: Allow comments in the 'Depends-on' section.
53891         * doc/gnulib.texi (Module description): Mention comment syntax in the
53892         Depends-on section.
53893         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53895 2011-06-13  Bruno Haible  <bruno@clisp.org>
53897         file-set.h: guard __attibute__ use, now that it's not always defined
53898         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53899         versions that support it.  This fixes a coreutils build failure with
53900         the vendor cc on HP-UX 11.31.
53902 2011-06-12  Bruno Haible  <bruno@clisp.org>
53904         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53905         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53906         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53907         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53908         (acl, aclsort): New declarations.
53909         (aclv_nontrivial): New declaration.
53910         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53911         (file_has_acl): Read also the second kind of HP-UX ACLs.
53912         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53913         kind of HP-UX ACLs if the first kind fails.
53914         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53915         second kind of HP-UX ACLs.
53916         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53917         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53918         agree.
53919         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53920         hpuxjfs.
53921         Handle hpuxjfs.
53922         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53923         hpuxjfs.
53924         Handle hpuxjfs.
53925         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53926         (func_test_same_acls): Use both lsacl and getacl.
53927         Handle hpuxjfs.
53928         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53929         (func_test_same_acls): Use both lsacl and getacl.
53930         Handle hpuxjfs.
53932 2011-06-12  Bruno Haible  <bruno@clisp.org>
53934         acl: Complete the 2010-08-10 fix.
53935         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53936         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53937         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53938         explicitly.
53939         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53940         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53942 2011-06-12  Bruno Haible  <bruno@clisp.org>
53944         spawn-pipe tests: Comments.
53945         * tests/test-spawn-pipe-child.c (main): Update comment.
53946         Reported by James Youngman <jay@gnu.org>.
53948 2011-06-11  James Youngman  <jay@gnu.org>
53950         New module 'stat-size'.
53951         * modules/stat-size: New module.  Provides macros for accessing
53952         file size information in instances of struct stat.  Depends on the
53953         fileblocks module because it calls st_blocks.
53954         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53955         * doc/gnulib.texi: Include stat-size.texi.
53956         * doc/stat-size.texi: Documentation for this module.
53957         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53958         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53959         AC_STRUCT_ST_BLOCKS.
53961 2011-06-09  Bruno Haible  <bruno@clisp.org>
53963         thread: Support pthreads-win32.
53964         * lib/glthread/thread.h (gl_thread_self): Define differently on
53965         pthreads-win32.
53966         (gl_null_thread): New declaration.
53967         (gl_thread_self_pointer): New macro.
53968         * lib/glthread/thread.c (gl_null_thread): New constant.
53969         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53970         gl_thread_self.
53971         * tests/test-tls.c: Likewise.
53972         Suggested by Paul Eggert. Reported by Eric Blake.
53974 2011-06-09  Bruno Haible  <bruno@clisp.org>
53976         thread: Fix confusion between NULL and 0.
53977         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53978         Reported by Paul Eggert.
53980 2011-06-09  Bruno Haible  <bruno@clisp.org>
53982         spawn-pipe tests: Avoid test failure on HP-UX 11.
53983         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53984         is closed.
53986 2011-06-09  Bruno Haible  <bruno@clisp.org>
53988         acl tests: Fix compilation error on HP-UX 11.
53989         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53991 2011-06-09  Bruno Haible  <bruno@clisp.org>
53993         rmdir: Avoid test failure on HP-UX 10.20.
53994         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53995         EEXIST.
53997 2011-06-08  Eric Blake  <eblake@redhat.com>
53999         perror: fix test on mingw
54000         * modules/perror-tests (Depends-on): Add dup2.
54002         strerror_r-posix: fix on MacOS
54003         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
54004         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
54005         logic bug.
54006         * lib/strerror_r.c (strerror_r): Fix the bug.
54007         * lib/strerror.c (strerror): Likewise.
54008         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54009         problem.
54010         * doc/posix-functions/strerror.texi (strerror): Likewise.
54011         * doc/posix-functions/perror.texi (perror): Likewise.
54012         * tests/test-strerror.c (main): Enhance test.
54013         * tests/test-strerror_r.c (main): Likewise.
54015 2011-06-08  Bruno Haible  <bruno@clisp.org>
54017         gnulib-tool: Better isolation between different gnulib-tool invocations.
54018         * gnulib-tool: New option --witness-c-macro.
54019         (witness_c_macro): New variable.
54020         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
54021         AM_CPPFLAGS define it as a C macro.
54022         (func_emit_tests_Makefile_am): Likewise.
54023         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
54024         read it from there.
54025         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
54026         m4_define, not AC_DEFUN.
54027         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
54028         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
54029         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
54030         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
54031         s|...|...|, to substitute the values of the GNULIB_* module indicator
54032         variables.
54033         * modules/dirent (Makefile.am): Likewise.
54034         * modules/fcntl-h (Makefile.am): Likewise.
54035         * modules/iconv-h (Makefile.am): Likewise.
54036         * modules/langinfo (Makefile.am): Likewise.
54037         * modules/locale (Makefile.am): Likewise.
54038         * modules/math (Makefile.am): Likewise.
54039         * modules/netdb (Makefile.am): Likewise.
54040         * modules/poll-h (Makefile.am): Likewise.
54041         * modules/pty (Makefile.am): Likewise.
54042         * modules/search (Makefile.am): Likewise.
54043         * modules/signal (Makefile.am): Likewise.
54044         * modules/spawn (Makefile.am): Likewise.
54045         * modules/stdio (Makefile.am): Likewise.
54046         * modules/stdlib (Makefile.am): Likewise.
54047         * modules/string (Makefile.am): Likewise.
54048         * modules/sys_ioctl (Makefile.am): Likewise.
54049         * modules/sys_select (Makefile.am): Likewise.
54050         * modules/sys_socket (Makefile.am): Likewise.
54051         * modules/sys_stat (Makefile.am): Likewise.
54052         * modules/sys_times (Makefile.am): Likewise.
54053         * modules/sys_utsname (Makefile.am): Likewise.
54054         * modules/sys_wait (Makefile.am): Likewise.
54055         * modules/termios (Makefile.am): Likewise.
54056         * modules/time (Makefile.am): Likewise.
54057         * modules/unistd (Makefile.am): Likewise.
54058         * modules/wchar (Makefile.am): Likewise.
54060 2011-06-08  Eric Blake  <eblake@redhat.com>
54062         strerror: simplify replacement
54063         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
54064         * modules/strerror (configure.ac): No prereqs needed here...
54065         * modules/strerror-override (configure.ac): ...but this needs it.
54066         (Files): Add file for needed prereq macro.
54068 2011-06-08  Bruno Haible  <bruno@clisp.org>
54070         strerror_r-posix: Tweaks.
54071         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
54072         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
54073         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
54074         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
54075         (gl_FUNC_STRERROR_R): ... to here.
54076         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
54078 2011-06-07  Eric Blake  <eblake@redhat.com>
54080         perror: document fixed bugs
54081         * doc/posix-functions/perror.texi (perror): Document recent
54082         patches.
54084 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
54086         stat-time: get_stat_birthtime failure is better-defined
54087         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
54088         return a timestamp whose tv_sec and tv_nsec values are both -1.
54089         Previously, the spec said only that the tv_nsec value was negative.
54090         This upward-compatible change simplifies GNU tar a bit.
54092 2011-06-07  Eric Blake  <eblake@redhat.com>
54094         strerror_r-posix: work around cygwin 1.7.9
54095         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
54096         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
54097         bug without replacing strerror_r.
54098         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
54099         strerror_r is buggy, but without requiring strerror_r compilation.
54100         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
54102         test-perror: relax test to ignore cygwin bug
54103         * tests/test-perror2.c (main): Relax test on requiring detection
54104         of stream errors, and use unbuffered stream.
54105         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
54106         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
54107         * doc/posix-functions/fputc.texi (fputc): Likewise.
54108         * doc/posix-functions/fputs.texi (fputs): Likewise.
54109         * doc/posix-functions/fputws.texi (fputws): Likewise.
54110         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
54111         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
54112         * doc/posix-functions/getopt.texi (getopt): Likewise.
54113         * doc/posix-functions/perror.texi (perror): Likewise.
54114         * doc/posix-functions/printf.texi (printf): Likewise.
54115         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
54116         * doc/posix-functions/psignal.texi (psignal): Likewise.
54117         * doc/posix-functions/putc.texi (putc): Likewise.
54118         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
54119         Likewise.
54120         * doc/posix-functions/putchar.texi (putchar): Likewise.
54121         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
54122         Likewise.
54123         * doc/posix-functions/puts.texi (puts): Likewise.
54124         * doc/posix-functions/putwc.texi (putwc): Likewise.
54125         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
54126         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
54127         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54128         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
54129         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54130         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
54131         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
54132         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
54134 2011-05-22  Bruno Haible  <bruno@clisp.org>
54136         strerror: Move AC_LIBOBJ invocations to module description.
54137         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
54138         gl_PREREQ_STRERROR invocations from here...
54139         * modules/strerror (configure.ac): ... to here.
54141 2011-05-21  Bruno Haible  <bruno@clisp.org>
54143         perror: Use common idiom.
54144         * modules/perror (configure.ac): Reorder statements.
54146 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54148         tests: fix usage message in 'mktempd_'
54149         * tests/init.sh (mktempd_): In the usage message, use literal
54150         'mktempd_', not '$ME' (which is even undefined), as the name of
54151         the subroutine.
54153 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54155         tests init: new function 'fatal_', for hard errors
54156         Before this patch, the only way offered by tests/init.sh to
54157         properly signal a hard error was the `framework_failure_'
54158         function.  But the error message issued by that function,
54159         as its name would suggest, refers to a set-up failure in the
54160         testsuite, while hard errors can obviously also be due to
54161         other reasons.  The best way to fix this inconsistency is to
54162         introduce a new function with a more general error message.
54163         * tests/init.sh (fatal_): New function.
54165 2011-06-06  Eric Blake  <eblake@redhat.com>
54167         canonicalize-lgpl: use common idiom
54168         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
54169         over newer POSIX -Rf.
54170         Reported by Bruno Haible.
54172         canonicalize-lgpl: work around AIX realpath bug
54173         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54174         * doc/posix-functions/realpath.texi (realpath): Document it.
54175         Reported by Bruno Haible.
54177         strerror: work around FreeBSD bug
54178         * lib/strerror.c (strerror): Special case 0.
54179         Reported by Bruno Haible.
54181         strerror-override: avoid bloating errno module
54182         * modules/errno (Files, configure.ac): Move replacement strings...
54183         * modules/strerror-override: ...to new module.
54184         * modules/strerror (Depends-on): Add strerror-override.
54185         * modules/strerror_r-posix (Depends-on): Likewise.
54186         * MODULES.html.sh: Document new module.
54187         Reported by Bruno Haible.
54189 2011-06-06  Bruno Haible  <bruno@clisp.org>
54191         spawn-pipe tests: Rename program.
54192         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
54193         * tests/test-spawn-pipe-child.c: Update comment.
54194         * tests/test-spawn-pipe.sh: Update.
54195         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
54197         spawn-pipe tests: Link the child program only against libc.
54198         * tests/test-spawn-pipe-child.c: New file, extracted from
54199         tests/test-spawn-pipe.c.
54200         (main): Expect only one argument.
54201         (is_open): New function, copied from tests/test-pipe.c.
54202         * tests/test-spawn-pipe.c: Don't include <errno.h>.
54203         (child_main): Remove function.
54204         (test_pipe): Pass only one argument to the child program.
54205         (main): Remove child process code. Expect the child program's name as
54206         first argument.
54207         * tests/test-spawn-pipe.sh: Pass the child program's name as first
54208         argument.
54209         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
54210         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
54211         test-spawn-pipe-child against no libraries.
54213 2011-06-06  Bruno Haible  <bruno@clisp.org>
54215         careadlinkat: Avoid mismatch between ssize_t and int.
54216         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
54217         * lib/careadlinkat.c (careadlinkatcwd): Define always.
54219 2011-06-06  Jim Meyering  <meyering@redhat.com>
54221         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
54222         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
54223         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
54225 2011-06-05  Bruno Haible  <bruno@clisp.org>
54227         ansi-c++-opt: Interoperability with libtool.
54228         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
54229         set the variable to "no", not to ":".
54230         * NEWS: Mention the change.
54232 2011-06-05  Bruno Haible  <bruno@clisp.org>
54234         acl: Fix test failure on AIX 7.
54235         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54236         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
54238 2011-06-05  Bruno Haible  <bruno@clisp.org>
54240         pipe-filter-ii: Fix test failure on AIX and IRIX.
54241         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
54242         with EAGAIN, retry with a smaller buffer size.
54244 2011-06-05  Bruno Haible  <bruno@clisp.org>
54246         localename: Fix link dependencies.
54247         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
54248         * modules/localename-tests (Makefile.am): Link test-localename with
54249         $(LIBTHREAD).
54251 2011-06-05  Bruno Haible  <bruno@clisp.org>
54253         error: Avoid gcc warning.
54254         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
54256 2011-06-05  Bruno Haible  <bruno@clisp.org>
54258         unsetenv: Avoid gcc warning.
54259         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
54261 2011-06-05  Bruno Haible  <bruno@clisp.org>
54263         setenv: Avoid gcc warning.
54264         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54266 2011-06-05  Bruno Haible  <bruno@clisp.org>
54268         sys_select: Ensure memset is declared also on AIX 7.
54269         * lib/sys_select.in.h: Include <string.h> also on AIX.
54270         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
54271         self-contained also on AIX 7.1.
54273 2011-06-04  Jim Meyering  <meyering@redhat.com>
54275         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
54276         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
54277         function name, "error".
54278         (_gl_translatable_diag_func_re): New configurable variable.
54280 2011-06-04  Bruno Haible  <bruno@clisp.org>
54282         getopt: Avoid gcc warning.
54283         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
54285 2011-06-04  Bruno Haible  <bruno@clisp.org>
54287         strerror_r: Fix comments.
54288         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
54289         commit.
54291 2011-06-04  Bruno Haible  <bruno@clisp.org>
54293         perror: Fix compilation error.
54294         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
54295         Undefine fprintf, not sprintf.
54296         * modules/perror (Depends-on): Remove intprops, verify.
54298 2011-06-04  Bruno Haible  <bruno@clisp.org>
54300         setlocale: Enable replacement on Cygwin 1.5.
54301         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
54302         Cygwin 1.5.x.
54303         * doc/posix-functions/setlocale.texi: Mention that the problem with the
54304         LC_CTYPE category also exists on Cygwin 1.5.x.
54306 2011-06-04  Bruno Haible  <bruno@clisp.org>
54308         strerror-override: Don't disable symbol renamings.
54309         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
54310         * lib/strerror-override.c: Include config.h.
54311         (strerror_override): Don't undefine.
54313 2011-06-03  Bruno Haible  <bruno@clisp.org>
54315         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
54316         * lib/localename.h: Update copyright header.
54317         * lib/localename.c: Likewise.
54318         * lib/relocatable.h: Likewise.
54319         * lib/relocatable.c: Likewise.
54321 2011-06-02  Bruno Haible  <bruno@clisp.org>
54323         doc: Fix a module name.
54324         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
54326 2011-06-02  Bruno Haible  <bruno@clisp.org>
54328         pipe2: Remove dependency on 'nonblocking' module.
54329         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
54330         O_NONBLOCK is defined by gnulib.
54331         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
54332         is zero.
54333         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
54334         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
54335         defined by gnulib.
54336         (get_nonblocking_flag): New function.
54337         (main): Test O_NONBLOCK flag only if it is nonzero.
54338         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
54340 2011-06-03  Jim Meyering  <meyering@redhat.com>
54342         maint: three new prohibit-header-without-use rules
54343         Prohibit use of cloexec.h, posixver.h, same.h without use.
54344         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54345         (sc_prohibit_posixver_without_use): Likewise.
54346         (sc_prohibit_same_without_use): Likewise.
54348 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54350         allocator: 'die' routine is now given requested size
54351         * lib/allocator.h (struct allocator.die): New size arg.
54352         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54353         If the actual problem is an ssize_t limitation, not a size_t or
54354         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54356 2011-06-01  Eric Blake  <eblake@redhat.com>
54358         strerror: drop strerror_r dependency
54359         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54360         * lib/strerror-override.c (strerror_override): ...to new file.
54361         * lib/strerror-override.h: Add prototype.
54362         * lib/strerror-impl.h: Delete.
54363         * lib/strerror.c (strerror): New implementation.
54364         * modules/errno (Files): Add new files.
54365         (configure.ac): Compile new file as appropriate.
54366         * modules/strerror (Files): Drop unused file.
54367         (Depends-on): Drop strerror_r-posix.
54368         * MODULES.html.sh: Document strerror_r-posix.
54369         Requested by Sam Steingold.
54371         perror: call strerror_r directly
54372         * modules/perror (Files): Drop strerror-impl.h.
54373         * lib/perror.c (perror): Use our own stack buffer, rather than
54374         calling a wrapper that uses static storage.
54375         * doc/posix-functions/perror.texi (perror): Document a limitation
54376         of our replacement.
54378         strerror_r: fix includes for FreeBSD
54379         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54380         since we use abort on some platforms.
54381         Reported by Matthias Bolte.
54383 2011-05-31  Bruno Haible  <bruno@clisp.org>
54385         Fix link errors in tests: openat-die uses gettext-h.
54386         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54387         against $(LIBINTL).
54388         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54389         against $(LIBINTL).
54390         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54391         $(LIBINTL).
54392         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54393         against $(LIBINTL).
54394         * modules/linkat-tests (Makefile.am): Link test-linkat against
54395         $(LIBINTL).
54396         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54397         $(LIBINTL).
54398         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54399         against $(LIBINTL).
54400         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54401         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54402         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54403         $(LIBINTL).
54404         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54405         $(LIBINTL).
54406         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54407         $(LIBINTL).
54408         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54410 2011-05-31  Bruno Haible  <bruno@clisp.org>
54412         Fix link errors in tests: wait-process uses gettext-h.
54413         * modules/nonblocking-pipe-tests (Makefile.am): Set
54414         test_nonblocking_pipe_main_LDADD.
54415         * modules/nonblocking-socket-tests (Makefile.am): Link
54416         test-nonblocking-socket-main against $(LIBINTL).
54417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54419 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54421         assert-h: work around 'verify' incompatibility
54422         * lib/verify.h: Use @...@ directives, not ifdef.
54423         * modules/assert-h (assert.h): Implement the directives.
54424         (assert.h): Substitute the symbol-prefix more consistently.
54426 2011-05-29  Jim Meyering  <meyering@redhat.com>
54428         trim: remove three superfluous assignments
54429         * lib/trim.c (trim2): Remove three superfluous assignments
54430         and correct brace positioning.
54432 2011-05-29  Bruno Haible  <bruno@clisp.org>
54434         wctype-h: Avoid namespace pollution on Solaris 2.6.
54435         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54436         identifiers.
54437         * doc/posix-headers/wctype.texi: Mention the problem.
54438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54440 2011-05-28  Jim Meyering  <meyering@redhat.com>
54442         parse-datetime.y: accommodate -Wstrict-overflow
54443         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54444         placate -Wstrict-overflow.
54446         trim: avoid a warning from -O2 -Wstrict-overflow
54447         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54449 2011-05-29  Bruno Haible  <bruno@clisp.org>
54451         gnulib-tool: Fix bug in yesterday's commit.
54452         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
54453         twice.
54455 2011-05-29  Bruno Haible  <bruno@clisp.org>
54457         Allow multiple gnulib generated include files to be combined.
54458         * gnulib-tool (func_compute_include_guard_prefix): New function.
54459         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
54460         ${gl_include_guard_prefix} references.
54461         (func_import, func_create_testdir): Invoke
54462         func_compute_include_guard_prefix.
54463         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
54464         * lib/ctype.in.h: Likewise.
54465         * lib/dirent.in.h: Likewise.
54466         * lib/errno.in.h: Likewise.
54467         * lib/fcntl.in.h: Likewise.
54468         * lib/float.in.h: Likewise.
54469         * lib/getopt.in.h: Likewise.
54470         * lib/iconv.in.h: Likewise.
54471         * lib/langinfo.in.h: Likewise.
54472         * lib/locale.in.h: Likewise.
54473         * lib/math.in.h: Likewise.
54474         * lib/netdb.in.h: Likewise.
54475         * lib/netinet_in.in.h: Likewise.
54476         * lib/poll.in.h: Likewise.
54477         * lib/pthread.in.h: Likewise.
54478         * lib/pty.in.h: Likewise.
54479         * lib/sched.in.h: Likewise.
54480         * lib/se-selinux.in.h: Likewise.
54481         * lib/search.in.h: Likewise.
54482         * lib/signal.in.h: Likewise.
54483         * lib/spawn.in.h: Likewise.
54484         * lib/stdarg.in.h: Likewise.
54485         * lib/stddef.in.h: Likewise.
54486         * lib/stdint.in.h: Likewise.
54487         * lib/stdio.in.h: Likewise.
54488         * lib/stdlib.in.h: Likewise.
54489         * lib/string.in.h: Likewise.
54490         * lib/strings.in.h: Likewise.
54491         * lib/sys_file.in.h: Likewise.
54492         * lib/sys_ioctl.in.h: Likewise.
54493         * lib/sys_select.in.h: Likewise.
54494         * lib/sys_socket.in.h: Likewise.
54495         * lib/sys_stat.in.h: Likewise.
54496         * lib/sys_time.in.h: Likewise.
54497         * lib/sys_times.in.h: Likewise.
54498         * lib/sys_uio.in.h: Likewise.
54499         * lib/sys_utsname.in.h: Likewise.
54500         * lib/sys_wait.in.h: Likewise.
54501         * lib/sysexits.in.h: Likewise.
54502         * lib/termios.in.h: Likewise.
54503         * lib/time.in.h: Likewise.
54504         * lib/unistd.in.h: Likewise.
54505         * lib/wchar.in.h: Likewise.
54506         * lib/wctype.in.h: Likewise.
54507         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
54508         * modules/ctype (Makefile.am): Likewise.
54509         * modules/dirent (Makefile.am): Likewise.
54510         * modules/errno (Makefile.am): Likewise.
54511         * modules/fcntl-h (Makefile.am): Likewise.
54512         * modules/float (Makefile.am): Likewise.
54513         * modules/getopt-posix (Makefile.am): Likewise.
54514         * modules/iconv-h (Makefile.am): Likewise.
54515         * modules/langinfo (Makefile.am): Likewise.
54516         * modules/locale (Makefile.am): Likewise.
54517         * modules/math (Makefile.am): Likewise.
54518         * modules/netdb (Makefile.am): Likewise.
54519         * modules/netinet_in (Makefile.am): Likewise.
54520         * modules/poll-h (Makefile.am): Likewise.
54521         * modules/pthread (Makefile.am): Likewise.
54522         * modules/pty (Makefile.am): Likewise.
54523         * modules/sched (Makefile.am): Likewise.
54524         * modules/search (Makefile.am): Likewise.
54525         * modules/selinux-h (Makefile.am): Likewise.
54526         * modules/signal (Makefile.am): Likewise.
54527         * modules/spawn (Makefile.am): Likewise.
54528         * modules/stdarg (Makefile.am): Likewise.
54529         * modules/stddef (Makefile.am): Likewise.
54530         * modules/stdint (Makefile.am): Likewise.
54531         * modules/stdio (Makefile.am): Likewise.
54532         * modules/stdlib (Makefile.am): Likewise.
54533         * modules/string (Makefile.am): Likewise.
54534         * modules/strings (Makefile.am): Likewise.
54535         * modules/sys_file (Makefile.am): Likewise.
54536         * modules/sys_ioctl (Makefile.am): Likewise.
54537         * modules/sys_select (Makefile.am): Likewise.
54538         * modules/sys_socket (Makefile.am): Likewise.
54539         * modules/sys_stat (Makefile.am): Likewise.
54540         * modules/sys_time (Makefile.am): Likewise.
54541         * modules/sys_times (Makefile.am): Likewise.
54542         * modules/sys_uio (Makefile.am): Likewise.
54543         * modules/sys_utsname (Makefile.am): Likewise.
54544         * modules/sys_wait (Makefile.am): Likewise.
54545         * modules/sysexits (Makefile.am): Likewise.
54546         * modules/termios (Makefile.am): Likewise.
54547         * modules/time (Makefile.am): Likewise.
54548         * modules/unistd (Makefile.am): Likewise.
54549         * modules/wchar (Makefile.am): Likewise.
54550         * modules/wctype-h (Makefile.am): Likewise.
54551         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
54553 2011-05-29  Bruno Haible  <bruno@clisp.org>
54555         assert-h: Allow multiple gnulib generated replacements to coexist.
54556         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
54558 2011-05-29  Bruno Haible  <bruno@clisp.org>
54560         argp: Allow coexistence with strerror_r-posix module.
54561         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
54562         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
54563         by gnulib's <string.h> replacement), assume it has the POSIX signature,
54564         not the glibc signature.
54566 2011-05-28  Bruno Haible  <bruno@clisp.org>
54568         gnulib-tool: Alternative structure of testdirs, similar to --import.
54569         * gnulib-tool: New option --single-configure.
54570         (func_usage): Document it.
54571         (single_configure): New variable.
54572         (func_modules_transitive_closure_separately,
54573         func_modules_transitive_closure_separately,
54574         func_determine_use_libtests, func_modules_add_dummy_separately,
54575         func_modules_to_filelist_separately): New functions, extracted from
54576         func_import.
54577         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
54578         (func_import): Use the new functions.
54579         (func_create_testdir): Set final_modules. Handle $single_configure =
54580         true case.
54582 2011-05-28  Bruno Haible  <bruno@clisp.org>
54584         getloadavg: Remove an unreliable safety check.
54585         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
54586         getloadavg.c is in place.
54587         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
54588         Reported by Sam Steingold <sds@gnu.org>.
54590 2011-05-28  Bruno Haible  <bruno@clisp.org>
54592         doc: Cleanup yet another file produced by texinfo.tex.
54593         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54595 2011-05-28  Bruno Haible  <bruno@clisp.org>
54597         Finish the conditional dependencies mechanism.
54598         * gnulib-tool: New option --no-conditional-dependencies.
54599         (func_usage): Document it. Don't mark --conditional-dependencies as
54600         experimental.
54601         (cond_dependencies): The possible values can now be true, false, empty.
54602         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
54603         (func_import): Store setting in gnulib-cache.m4 and read it from there.
54604         * doc/gnulib-tool.texi (Conditional dependencies): New section.
54606 2011-05-28  Bruno Haible  <bruno@clisp.org>
54608         doc: Use a recent texinfo.tex.
54609         * doc/Makefile (tex_opts): New variable.
54610         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
54612 2011-05-28  Jim Meyering  <meyering@redhat.com>
54614         intprops.h: adjust comment to match code change
54615         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
54616         only once, it *may* have side effects.  Also fix an unrelated typo.
54617         (_GL_INT_SIGNED): Likewise.
54619 2011-05-26  Simon Josefsson  <simon@josefsson.org>
54621         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
54623 2011-05-26  Bruno Haible  <bruno@clisp.org>
54625         mbsrchr: Avoid collision with system function on Interix.
54626         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
54627         Reported by Markus Duft <mduft@gentoo.org>.
54629 2011-05-15  James Youngman  <jay@gnu.org>
54631         getopt: for ambiguous options, enumerate the possibilities.
54632         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
54633         the ambiguous options when an ambiguous prefix is given. This was
54634         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
54635         glibc change was
54636         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
54638 2011-05-25  Eric Blake  <eblake@redhat.com>
54640         getcwd: work around mingw bug
54641         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
54642         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54643         Reported by Matthias Bolte.
54645 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
54647         test-intprops: disable -Wtype-limits diagnostics
54648         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
54649         diagnostics.  Otherwise, the integer overflow macros generate many
54650         diagnostics.  Reported by Jim Meyering in
54651         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54653         intprops: shorten, to pacify gcc -Woverlength-strings
54654         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
54655         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
54656         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
54657         likely to run afoul of C compiler limits for string constant lengths.
54658         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54660 2011-05-24  Eric Blake  <eblake@redhat.com>
54662         docs: document recently fixed glibc printf bug
54663         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54664         * doc/posix-functions/printf.texi (printf): Likewise.
54665         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54666         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54668         closein-tests: convert to init.sh
54669         * modules/closein-tests (Files): Add init.sh
54670         * tests/test-closein.sh Use it.
54672         yesno-tests: convert to init.sh
54673         * modules/yesno-tests (Files): Add init.sh.
54674         * tests/test-yesno.sh: Use it.
54676         atexit-tests: ensure reliable exit status
54677         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54678         Reported by Bruno Haible.
54680 2011-05-24  Bruno Haible  <bruno@clisp.org>
54682         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54684         gl_PREREQ_STRERROR_R invocations from here...
54685         * modules/strerror_r-posix (configure.ac): ... to here.
54687 2011-05-24  Eric Blake  <eblake@redhat.com>
54689         strerror_r: fix missing header
54690         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54692         strerror_r: fix AIX test failures
54693         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54694         ERANGE failure.
54696         strerror_r: fix Solaris test failures
54697         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54698         failures.
54699         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54701         strerror_r: enforce POSIX recommendations
54702         * lib/strerror_r.c (safe_copy): New helper method.
54703         (strerror_r): Guarantee a non-empty string.
54704         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54705         recent POSIX rulings and to match our strerror guarantees.
54706         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54708 2011-05-24  Jim Meyering  <meyering@redhat.com>
54710         test-perror2.c: avoid warning about unused variable
54711         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54713 2011-05-24  Eric Blake  <eblake@redhat.com>
54715         perror: avoid spurious test failure on HP-UX
54716         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54718         tests: fix logic bug in init.sh
54719         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54720         shell.
54722 2011-05-24  Jim Meyering  <meyering@redhat.com>
54724         utimensat: do not reference an out-of-scope buffer
54725         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54726         declared in an inner scope, yet "times" would be dereferenced outside
54727         the scope in which "ts" was valid.
54728         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54729         of ts[2] "out/up", so that the use of aliased "times" (via
54730         "times = ts;") does not end up referencing an out-of-scope "ts"
54732         opendir-safer.c: don't clobber errno; don't close negative FD
54733         * lib/opendir-safer.c (opendir_safer):
54734         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54735         file descriptor, and more importantly, don't clobber the
54736         offending errno value with EINVAL.  Before, upon failure
54737         of dup_safer, we would pass the negative file descriptor to
54738         fdopendir, which would clobber errno.
54740 2011-05-23  Bruno Haible  <bruno@clisp.org>
54742         idcache: Fix module description.
54743         * modules/idcache (Include): Set to "idcache.h".
54745 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54747         gnulib-tool: fix portability problem with MacOS sed
54748         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54749         before the "}".  Problem reported by Leo in
54750         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54751         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54752         sed_extract_condition1, sed_extract_condition2.
54754 2011-05-23  Bruno Haible  <bruno@clisp.org>
54756         hash: Simplify autoconf macro.
54757         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54759 2011-05-23  Bruno Haible  <bruno@clisp.org>
54761         getugroups: Fix module description.
54762         * modules/getugroups (Include): Set to "getugroups.h".
54764 2011-05-23  Bruno Haible  <bruno@clisp.org>
54766         linkat: Simplify autoconf macro.
54767         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54769 2011-05-23  Bruno Haible  <bruno@clisp.org>
54770             Eric Blake  <eblake@redhat.com>
54772         linkat, renameat: Update dependencies.
54773         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54774         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54775         symlinkat.
54777 2011-05-23  Jim Meyering  <meyering@redhat.com>
54779         maint.mk: more tight_scope improvements
54780         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54781         (_gl_TS_headers): Define only in if-0'd block.
54782         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54783         sometimes we must *not* use it.  Adjust uses accordingly.
54784         (sc_tight_scope): Use much simpler grep-based test to determine
54785         whether we skip this rule.
54787         maint.mk: generalize/improve the tight-scope rule
54788         * top/maint.mk: Emit a warning when the test is skipped.
54789         (_gl_TS_dir): Add $(srcdir)/ prefix.
54790         (_gl_TS_function_match): Simplify, rather than trying
54791         to enumerate common types.  Otherwise, it would fail to match an
54792         "extern unsigned char const *" declaration in idutils.
54793         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54794         a way to support use of that type of macro.
54795         (_gl_TS_var_match): Simplify regexp.
54796         (_gl_TS_obj_files): New configurable variable.
54797         (_gl_TS_headers): Likewise.
54799 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54801         verify: fix bug when gnulib <assert.h> is also included
54802         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54803         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54804         Perhaps there's a better way, but this fixes the immediate problem.
54805         Problem reported by Bruno Haible in
54806         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54808 2011-05-22  Bruno Haible  <bruno@clisp.org>
54810         xgetcwd: Simplify autoconf macro.
54811         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54813 2011-05-22  Bruno Haible  <bruno@clisp.org>
54815         New module 'mktime-internal'.
54816         * modules/mktime-internal: New file.
54817         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54818         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54819         mktime_internal as a C macro if libc has __mktime_internal.
54820         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54821         conditions.
54822         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54824 2011-05-22  Bruno Haible  <bruno@clisp.org>
54826         timegm: Correct mktime replacement statements.
54827         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54828         defining mktime as a C macro. This completes a 2009-07-28 commit.
54830 2011-05-22  Bruno Haible  <bruno@clisp.org>
54832         timegm: Simplify autoconf macro.
54833         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54835 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54837         clock-time: change to LGPLv2+.
54838         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54839         BSD-like but we have no mark for that; this is good enough for now.
54841 2011-05-21  Bruno Haible  <bruno@clisp.org>
54843         strerror_r: Fix comments.
54844         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54846 2011-05-21  Bruno Haible  <bruno@clisp.org>
54848         relocatable-prog-wrapper: Fix possible link error.
54849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54850         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54851         (gl_FUNC_SETENV): ... to here.
54852         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54853         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54855 2011-05-21  Bruno Haible  <bruno@clisp.org>
54857         relocatable-prog-wrapper: Assume strerror() exists.
54858         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54859         m4/strerror.m4.
54860         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54861         * lib/relocwrapper.c: Remove mention of strerror module.
54862         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54863         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54864         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54865         C macro.
54867 2011-05-21  Bruno Haible  <bruno@clisp.org>
54869         select: Simplify replacement idiom.
54870         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54871         Win32 platforms.
54872         * lib/sys_select.in.h (select): Simplify accordingly.
54873         * modules/select (Depends-on): Likewise.
54875 2011-05-21  Bruno Haible  <bruno@clisp.org>
54877         mkdir-p: Simplify autoconf macro.
54878         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54879         gl_FUNC_LCHOWN.
54881 2011-05-21  Eric Blake  <eblake@redhat.com>
54883         strerror_r: avoid clobbering strerror on cygwin
54884         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54885         fall back instead to sys_errlist.
54886         * modules/strerror (configure.ac): Add witness.
54887         * tests/test-strerror_r.c (main): Enhance test.
54888         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54889         * tests/test-perror2.c (main): Free memory before exit.
54891 2011-05-21  Bruno Haible  <bruno@clisp.org>
54893         mkdtemp: Use gnulib naming conventions.
54894         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54895         * modules/mkdtemp (configure.ac): Update.
54897 2011-05-20  Eric Blake  <eblake@redhat.com>
54899         strerror_r: avoid corrupting errno on Solaris
54900         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54901         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54903         strerror_r: avoid compiler warning
54904         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54906         strerror_r: simplify AIX code
54907         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54909         test-perror: avoid spurious failure on FreeBSD
54910         * modules/perror-tests (Depends-on): Add strerror, now that
54911         strerror_r no longer pulls it in.
54913 2011-05-20  Bruno Haible  <bruno@clisp.org>
54915         strerror_r-posix: Remove unused dependencies.
54916         * modules/strerror_r-posix (Depends-on): Remove strerror.
54917         Reported by Eric Blake.
54919 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54921         intprops: remove assumption about A|B representation
54922         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54923         is a valid integer if both A and B are.  Although this is true for
54924         all known practical hosts, the C standard doesn't guarantee it,
54925         and the code need not assume it.  Also, this change may work around
54926         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54927         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54929 2011-05-20  Eric Blake  <eblake@redhat.com>
54931         perror: work around FreeBSD bug
54932         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54933         is broken.  Move AC_LIBOBJ...
54934         * modules/perror (configure.ac): Here.
54935         * doc/posix-functions/perror.texi (perror): Document this.
54936         * tests/test-perror2.c (main): Enhance test.
54938         test-perror: check for strerror interactions
54939         * tests/macros.h (STREQ): Add macro.
54940         * modules/perror-tests (Files): Add second test.
54941         * tests/test-perror2.c (main): New file.
54942         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54944         test-perror: rewrite to use init script
54945         * modules/perror-tests (Files): Add init.sh.
54946         * tests/test-perror.sh: Use temporary directory.
54948 2011-05-20  Jim Meyering  <meyering@redhat.com>
54950         maint: replace misused "a" with "an"
54951         * doc/intprops.texi: "a integer"
54952         * doc/regex.texi: "a explanation"
54953         * lib/alignof.h: "a object"
54954         * lib/argmatch.h: "a explanation"
54955         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54956         * lib/stdint.in.h: "a integer"
54957         * lib/userspec.c: "a owner"
54958         * doc/gnulib.texi: Fix "a idea", and reword.
54960 2011-05-19  Jim Meyering  <meyering@redhat.com>
54962         maint: correct misuse of "a" and "an"
54963         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54964         * lib/argp-help.c: "an docum...": s/an/a/
54965         * lib/argp-parse.c: "An vector": s/An/A/
54966         * lib/execute.c: "an native": s/an/a/
54967         * lib/spawn-pipe.c: Likewise.
54968         * lib/gc.h: "an Gc_rc": s/an/a/
54969         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54970         * lib/fts.c: "an stat.st_dev": s/an/a/
54972 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54974         intprops-tests: work around HP-UX 11.23 cc bug with constants
54975         * tests/test-intprops.c (VERIFY): New macro.
54976         (main): Use it, instead of verify, to work around the compiler bug; see
54977         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54979         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54980         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54981         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54982         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54983         (_GL_REMAINDER_OVERFLOW): Use it.
54985         intprops-tests: revert unsigned part of previous change
54986         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54987         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54988         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54989         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54991 2011-05-19  Bruno Haible  <bruno@clisp.org>
54993         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54994         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54995         strerror_r() returned without filling the buffer.
54996         Reported by Eric Blake.
54998 2011-05-19  Eric Blake  <eblake@redhat.com>
55000         strerror_r: guarantee unchanged errno
55001         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
55002         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
55003         failure.
55004         * tests/test-strerror_r.c (main): Enhance test.
55006 2011-05-19  Bruno Haible  <bruno@clisp.org>
55008         strerror_r: Reorder #if blocks.
55009         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
55010         for consistency with the previous commit.
55012 2011-05-19  Bruno Haible  <bruno@clisp.org>
55014         perror: Avoid clobbering the strerror buffer when possible.
55015         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
55016         * lib/strerror.c: Include it.
55017         * modules/strerror (Files): Add lib/strerror-impl.h.
55018         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
55019         (my_strerror): New function, defined through lib/strerror-impl.h.
55020         (perror): Use it instead of strerror.
55021         * modules/perror (Files): Add lib/strerror-impl.h.
55022         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
55024 2011-05-19  Eric Blake  <eblake@redhat.com>
55026         strerror_r: fix on newer cygwin
55027         * lib/strerror_r.c (strerror_r): Cygwin now has
55028         __xpg_strerror_r, use it.
55030 2011-05-19  Bruno Haible  <bruno@clisp.org>
55032         strerror_r: Avoid clobbering the strerror buffer when possible.
55033         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
55034         (sys_nerr, sys_errlist): New declarations.
55035         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
55036         HP-UX, native Win32, IRIX, and 32-bit Solaris.
55037         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
55039 2011-05-19  Bruno Haible  <bruno@clisp.org>
55041         strerror_r: Fix test failure on mingw.
55042         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
55043         EXTEND_STRERROR_R.
55044         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
55045         macros from errno.in.h instead.
55047 2011-05-19  Eric Blake  <eblake@redhat.com>
55049         strerror: relax test for Solaris
55050         * tests/test-strerror.c (main): Permit Solaris behavior.
55051         * tests/test-strerror_r.c (main): Likewise.
55053         strerror: enforce POSIX ruling on strerror(0)
55054         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
55055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
55056         * lib/strerror_r.c (rpl_strerror_r): Work around it.
55057         * doc/posix-functions/strerror.texi (strerror): Document it.
55058         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
55059         * tests/test-strerror.c (main): Strengthen test.
55060         * tests/test-strerror_r.c (main): Likewise.
55062 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55064         intprop-tests: port to older and more-pedantic compilers
55065         * modules/intprops-tests (Files): Add tests/macros.h.
55066         * tests/test-intprops.c: Include macros.h.
55067         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
55068         it's no longer documented to expand to an integer constant expression.
55069         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
55070         argument is floating point, as it's no longer documented to expand
55071         to an integer constant expression in that case.
55072         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
55073         compiler bugs reported by Bruno Haible.  See
55074         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55075         (U0, U1): New constants, to work around the same bugs.  Also,
55076         in tests, use e.g., "(unsigned int) 39" rather than "39u".
55078         intprops: work around C compiler bugs
55079         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
55080         bug in Sun C 5.11 2010/08/13 and other compilers; see
55081         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55083         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
55084         * doc/intprops.texi (Integer Type Determination): Fix
55085         documentation for TYPE_IS_INTEGER: it returns an constant
55086         expression, not an integer constant expression.  Fix doc for
55087         TYPE_SIGNED: it returns an integer constant expression only if its
55088         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
55089         hardly worth documented that way....)
55091 2011-05-18  Bruno Haible  <bruno@clisp.org>
55093         strerror_r: Avoid clobbering the strerror buffer when possible.
55094         * lib/strerror_r.c (strerror_r): Merge the three implementations.
55095         Handle gnulib defined errno values here. When strerror() returns NULL
55096         or an empty string, return EINVAL.
55097         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
55098         gnulib defined errno values here.
55099         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
55101 2011-05-18  Eric Blake  <eblake@redhat.com>
55103         fnmatch: avoid compiler warning
55104         * lib/fnmatch_loop.c (FCT): Use correct type.
55105         Reported by Matthias Bolte.
55107 2011-05-13  Jim Meyering  <meyering@redhat.com>
55109         maint.mk: three new prohibit_<HDR>_without_use rules
55110         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
55111         (sc_prohibit_stdio-safer_without_use): Likewise.
55112         (sc_prohibit_xfreopen_without_use): Likewise.
55114 2011-05-17  Jim Meyering  <meyering@redhat.com>
55116         announce-gen: fail if the NEWS delta is empty
55117         If there's nothing noteworthy in NEWS, then either you forgot
55118         or you shouldn't be releasing.
55119         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
55121 2011-05-17  Pádraig Brady  <P@draigBrady.com>
55123         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
55124         reserved symbols starting with double underscore from the check.
55126 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55128         intprops: add doc
55129         * doc/intprops.texi: New file, documenting intprops.
55130         * doc/gnulib.texi (Particular Modules): Include it.
55132         verify: add doc to gnulib manual and fix example
55133         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
55134         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
55135         (Compile-time Assertions): Fix example so it can't overflow.
55137 2011-05-17  Jim Meyering  <meyering@redhat.com>
55139         warnings.m4: don't usurp save_CPPFLAGS variable name
55140         * m4/warnings.m4: Prefix local temporary variable name with gl_.
55142         doc: fix typo
55143         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
55145 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55146             Bruno Haible  <bruno@clisp.org>
55148         doc: Tweak recent change.
55149         * README (Portability guidelines): Tweak new text.
55150         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
55151         Interix 6.1.
55153 2011-05-16  Eric Blake  <eblake@redhat.com>
55155         inttypes: avoid autoconf warning
55156         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
55157         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55159 2011-05-16  Sam Steingold  <sds@gnu.org>
55160         and Eric Blake  <eblake@redhat.com>
55162         vc-list-files: accept multiple directory operands
55163         * build-aux/vc-list-files: Iterate over all remaining operands.
55165 2011-05-16  Bruno Haible  <bruno@clisp.org>
55167         Fix confusion regarding deprecated modules.
55168         * modules/calloc (Status, Notice): Mark module as deprecated, not
55169         obsolete.
55170         * modules/fnmatch-posix (Status, Notice): Likewise.
55171         * modules/getdate (Status, Notice): Likewise.
55172         * modules/getopt (Status, Notice): Likewise.
55173         * modules/malloc (Status, Notice): Likewise.
55174         * modules/pipe (Status, Notice): Likewise.
55175         * modules/realloc (Status, Notice): Likewise.
55176         * modules/rename-dest-slash (Status, Notice): Likewise.
55177         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
55178         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
55179         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
55180         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
55181         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
55183 2011-05-16  Bruno Haible  <bruno@clisp.org>
55185         doc: List the target platforms.
55186         * doc/gnulib-intro.texi (Target Platforms): New section.
55187         * doc/gnulib.texi (Introduction): Update menu.
55188         * README (Portability guidelines): Refer to the new section. Update
55189         statement about oldest supported environment. Remove rationale why
55190         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
55191         unportable C89 function.
55192         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
55193         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
55195 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55197         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
55199 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55201         intprops-tests: new module
55202         * modules/intprops-tests, tests/test-intprops.c: New files.
55204         intprops: add safe, portable integer overflow checking
55205         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
55206         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
55207         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
55208         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
55209         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
55210         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
55211         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
55212         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
55213         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
55214         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
55215         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
55217 2011-05-12  James Youngman  <jay@gnu.org>
55219         Add a test for glibc's Bugzilla bug #12378.
55220         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
55221         doesn't allow the literal matching of a lone "[" (which is
55222         required by POSIX).
55223         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
55225 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
55227         Sync glibc change fixing Bugzilla bug #12378.
55228         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
55229         beginning and fall back to matching as normal character if the
55230         string ends before the matching ']' is found.  This is what POSIX
55231         requires.
55233 2011-05-13  Eric Blake  <eblake@redhat.com>
55235         getcwd-lgpl: relax test for FreeBSD
55236         * doc/posix-functions/getcwd.texi (getcwd): Document portability
55237         issue.
55238         * tests/test-getcwd-lgpl.c (main): Relax test.
55239         Reported by Matthias Bolte.
55241 2011-05-11  Eric Blake  <eblake@redhat.com>
55243         test-fflush: silence compiler warning
55244         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
55246 2011-05-11  Bruno Haible  <bruno@clisp.org>
55248         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
55249         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
55250         * modules/canonicalize (Depends-on): Add 'nocrash'.
55251         * modules/canonicalize-lgpl (Depends-on): Likewise.
55252         * doc/posix-functions/realpath.texi: Update platforms list.
55253         Reported by Ryan Schmidt <ryandesign@macports.org>.
55255 2011-05-11  Bruno Haible  <bruno@clisp.org>
55257         group-member: Declare function in <unistd.h>.
55258         * lib/unistd.in.h (group_member): New declaration.
55259         * lib/group-member.h: Remove file.
55260         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
55261         * tests/test-unistd-c++.cc: Check signature of group_member.
55262         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
55263         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
55264         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
55265         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
55266         HAVE_GROUP_MEMBER.
55267         * modules/group-member (Files): Remove lib/group-member.h.
55268         (Depends-on): Add unistd. Specify conditions.
55269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55270         (Include): Change to <unistd.h>.
55271         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
55272         HAVE_GROUP_MEMBER.
55273         * NEWS: Mention the change.
55274         * lib/euidaccess.c: Don't include group-member.h.
55276 2011-05-11  Bruno Haible  <bruno@clisp.org>
55278         group-member: Document module.
55279         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
55280         module.
55282 2011-05-11  Bruno Haible  <bruno@clisp.org>
55284         fclose: Fix mistake earlier today.
55285         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
55287 2011-05-11  Eric Blake  <eblake@redhat.com>
55289         fclose: preserve fflush errors
55290         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
55291         Reported by Jim Meyering.
55293         bootstrap: support a prereq of 'rpcgen -' on RHEL5
55294         * build-aux/bootstrap (check_versions): When no specific version
55295         is required, merely check that the app produces an exit status
55296         that indicates its existence.
55298         maint.mk: drop redundant check
55299         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
55300         the same but better.
55302 2011-05-11  Bruno Haible  <bruno@clisp.org>
55304         fclose: Fix possible link error.
55305         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
55306         unregister_shadow_fd. Improve comments.
55307         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
55308         Eric Blake.
55310 2011-05-11  Jim Meyering  <meyering@redhat.com>
55312         maint.mk: improve "can not" detection and generalize rule name
55313         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
55314         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
55315         Use the same technique as in sc_prohibit_doubled_word, so that
55316         we recognize "can not" also when the words are separated by a newline.
55317         Suggested by Eric Blake.
55318         (perl_filename_lineno_text_): Define.  Factored out of...
55319         (prohibit_doubled_word_): ...here.  Use the new definition.
55320         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
55321         (prohibit_undesirable_word_seq_RE_): New overridable variable.
55322         (ignore_undesirable_word_sequence_RE_): New overridable variable.
55324 2011-05-10  Eric Blake  <eblake@redhat.com>
55326         fclose: avoid double close race when possible
55327         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
55328         all but WINDOWS_SOCKETS.
55330 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
55332         openat: correct new comment
55333         * lib/openat-proc.c (openat_proc_name): Correct the comment.
55335 2011-05-10  Jim Meyering  <meyering@redhat.com>
55337         openat: add comments
55338         * lib/openat-proc.c (openat_proc_name): Add comments,
55339         mostly from Eric Blake.
55341 2011-05-09  Eric Blake  <eblake@redhat.com>
55343         openat: reduce syscalls in first probe of /proc
55344         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55345         be a directory.  Simplify the probe for .. bugs.
55346         * modules/openat (Depends-on): Drop same-inode.
55347         Reported by Bastien ROUCARIES.
55349 2011-05-09  Jim Meyering  <meyering@redhat.com>
55351         maint.mk: change semantics/name of tight_scope variables
55352         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55353         Rename variables to align with semantics that make them more useful.
55355         maint.mk: tweak new rule's name not to impinge
55356         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55357         (sc_tight_scope): Use new rule name rather than $@-0.
55359         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55360         * top/maint.mk (sc_tight_scope): New rule.
55361         (sc_tight_scope-0): New rule, ifdef'd out.
55362         (_gl_TS_dir): Default.
55363         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55364         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55366 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55368         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55369         Haible <bruno@clisp.org>.
55371 2011-05-08  Bruno Haible  <bruno@clisp.org>
55373         Comments.
55374         * m4/isnanf.m4: Add comment.
55375         * m4/isnanl.m4: Likewise.
55377 2011-05-08  Bruno Haible  <bruno@clisp.org>
55379         glob: Remove obsolete macro.
55380         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55382 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55384         intprops: Sun C 5.11 supports __typeof__
55385         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55386         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55387         which is new.
55388         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55390         intprops: switch to usual gnulib indenting and naming
55391         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55392         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55394         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55396 2011-05-08  Jim Meyering  <meyering@redhat.com>
55398         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55399         * top/maint.mk (release-prep): Use make's --no-print-directory
55400         option when generating the announcement.  This eliminates the
55401         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55402         generated announcement template.
55404 2011-05-08  Bruno Haible  <bruno@clisp.org>
55406         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55407         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55408         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55410 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55412         ignore-value, verify: Omit include files from lib_SOURCES.
55413         * modules/ignore-value, modules/verify (Makefile.am):
55414         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55415         that leads Automake to duplicate use of am__objects_... variables
55416         in Makefile.in.  See
55417         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55419 2011-05-07  Bruno Haible  <bruno@clisp.org>
55421         fclose: Simplify autoconf macro.
55422         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55423         defined.
55425 2011-05-07  Bruno Haible  <bruno@clisp.org>
55427         canonicalize-lgpl: Fix autoconf macro ordering bug.
55428         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55429         gl_STDLIB_H_DEFAULTS.
55431 2011-05-06  Eric Blake  <eblake@redhat.com>
55433         maintainer-makefile: make sc_po_check easier to tune
55434         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55435         to probe for strings, such as an alternate location for gnulib.
55437         fclose: guarantee behavior on seekable stdin
55438         * modules/fclose (Depends-on): Add fflush.
55439         * doc/posix-functions/fclose.texi (fclose): Document this.
55440         * tests/test-fclose.c (main): Make test for this unconditional.
55442 2011-05-06  Bruno Haible  <bruno@clisp.org>
55444         fflush, fpurge: Relicense under LGPLv2+.
55445         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55446         * modules/fpurge (License): Likewise.
55447         With permission from Eric Blake and Jim Meyering.
55448         Suggested by Eric Blake.
55450 2011-05-06  Karl Berry  <karl@gnu.org>
55452         * MODULES.html.sh (func_all_modules): remove exit.
55454 2011-05-06  Jim Meyering  <meyering@redhat.com>
55456         maint.mk: use info-gnu@ as the default only for a stable release
55457         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
55458         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
55459         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
55460         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
55462 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55464         assert-h: new module, which supports C1X-style static_assert
55465         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
55466         * lib/verify.h: Revamp so that this can be copied into assert.h,
55467         while retaining the ability to use it standalone as before.
55468         Rename private identifiers so as not to encroach on the
55469         standard C namespace, since this is now used by assert.h.
55470         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
55471         the old verify_true.
55472         (_GL_VERIFY_TRUE): New macro, with much of the contents of
55473         the old verify_true.  Use _GL_VERIFY_TYPE.
55474         (_GL_VERIFY): New macro, with much of the contents of the old verify.
55475         (static_assert): New macro, if _GL_STATIC_ASSERT_H
55476         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
55477         defined when this file is copied into the replacement assert.h.
55478         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
55479         and _Static_assert is not built in.
55480         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
55481         defined, and use the new macros mentioned above.
55482         * doc/posix-headers/assert.texi: Document this.
55484 2011-05-05  Bruno Haible  <bruno@clisp.org>
55486         fclose, fflush: Respect rules for use of AC_LIBOBJ.
55487         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
55488         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
55489         gl_REPLACE_FCLOSE here.
55490         * modules/fflush (Depends-on): Remove fclose.
55491         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
55492         combination with module 'fclose'.
55494 2011-05-05  Bruno Haible  <bruno@clisp.org>
55496         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
55497         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
55498         gl_FUNC_FFLUSH.
55499         (gl_FUNC_FFLUSH): Use it.
55500         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
55501         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
55502         gl_REPLACE_FSEEKO here.
55504 2011-05-05  Bruno Haible  <bruno@clisp.org>
55506         tzset: Relicense under LGPL.
55507         * modules/tzset (License): Change to LGPL.
55508         No agreement needed; it's a no-op.
55510         strtoimax, strtoumax: Relicense under LGPL.
55511         * modules/strtoimax (License): Change to LGPL.
55512         * modules/strtoumax (License): Likewise.
55513         With permission from Jim Meyering, Paul Eggert:
55514         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
55515         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
55517         getgroups: Relicense under LGPL.
55518         * modules/getgroups (License): Change to LGPL.
55519         With permission from Jim Meyering, Paul Eggert, Eric Blake:
55520         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55521         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55522         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55524         nanosleep: Relicense under LGPL.
55525         * modules/nanosleep (License): Change to LGPL.
55526         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
55527         Haible:
55528         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55529         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55530         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55531         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55533         futimens: Relicense under LGPL.
55534         * modules/futimens (License): Change to LGPL.
55535         With permission from Eric Blake:
55536         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55538         fflush: Relicense under LGPL.
55539         * modules/fflush (License): Change to LGPL.
55540         With permission from Eric Blake, Bruno Haible, Jim Meyering:
55541         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55542         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55543         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
55545         tmpfile: Relicense under LGPL.
55546         * modules/tmpfile (License): Change to LGPL.
55547         With permission from Ben Pfaff:
55548         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55550         isfinite: Relicense under LGPL.
55551         * modules/isfinite (License): Change to LGPL.
55552         With permission from Ben Pfaff, Bruno Haible:
55553         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55554         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
55556         acosl..tanl: Relicense under LGPL.
55557         * modules/acosl (License): Change to LGPL.
55558         * modules/asinl (License): Likewise.
55559         * modules/atanl (License): Likewise.
55560         * modules/cosl (License): Likewise.
55561         * modules/expl (License): Likewise.
55562         * modules/logl (License): Likewise.
55563         * modules/sinl (License): Likewise.
55564         * modules/sqrtl (License): Likewise.
55565         * modules/tanl (License): Likewise.
55566         Source code originally from glibc and Paolo Bonzini. Agreements:
55567         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
55568         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
55570 2011-05-05  Bruno Haible  <bruno@clisp.org>
55572         signal: Define sighandler_t.
55573         * lib/signal.in.h (sighandler_t): New type.
55574         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
55575         whether sighandler_t is defined.
55576         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
55577         * modules/signal (Depends-on): Add extensions.
55578         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
55579         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
55580         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
55582 2011-05-05  Eric Blake  <eblake@redhat.com>
55584         maint: remove useless REPLACE_*_H macros
55585         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
55586         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55587         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55588         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55589         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55590         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55591         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55592         * m4/btowc.m4: Update callers.
55593         * m4/dirfd.m4: Likewise.
55594         * m4/duplocale.m4: Likewise.
55595         * m4/fchdir.m4: Likewise.
55596         * m4/fdopendir.m4: Likewise.
55597         * m4/inet_ntop.m4: Likewise.
55598         * m4/inet_pton.m4: Likewise.
55599         * m4/ioctl.m4: Likewise.
55600         * m4/mbrlen.m4: Likewise.
55601         * m4/mbrtowc.m4: Likewise.
55602         * m4/mbsinit.m4: Likewise.
55603         * m4/mbsnrtowcs.m4: Likewise.
55604         * m4/mbsrtowcs.m4: Likewise.
55605         * m4/poll.m4: Likewise.
55606         * m4/setlocale.m4: Likewise.
55607         * m4/wcrtomb.m4: Likewise.
55608         * m4/wcsnrtombs.m4: Likewise.
55609         * m4/wcsrtombs.m4: Likewise.
55610         * m4/wctob.m4: Likewise.
55611         * m4/wcwidth.m4: Likewise.
55612         * modules/posix_spawn: Likewise.
55613         * modules/posix_spawn_file_actions_addclose: Likewise.
55614         * modules/posix_spawn_file_actions_adddup2: Likewise.
55615         * modules/posix_spawn_file_actions_addopen: Likewise.
55616         * modules/posix_spawn_file_actions_destroy: Likewise.
55617         * modules/posix_spawn_file_actions_init: Likewise.
55618         * modules/posix_spawnattr_destroy: Likewise.
55619         * modules/posix_spawnattr_getflags: Likewise.
55620         * modules/posix_spawnattr_getpgroup: Likewise.
55621         * modules/posix_spawnattr_getschedparam: Likewise.
55622         * modules/posix_spawnattr_getschedpolicy: Likewise.
55623         * modules/posix_spawnattr_getsigdefault: Likewise.
55624         * modules/posix_spawnattr_getsigmask: Likewise.
55625         * modules/posix_spawnattr_init: Likewise.
55626         * modules/posix_spawnattr_setflags: Likewise.
55627         * modules/posix_spawnattr_setpgroup: Likewise.
55628         * modules/posix_spawnattr_setschedparam: Likewise.
55629         * modules/posix_spawnattr_setschedpolicy: Likewise.
55630         * modules/posix_spawnattr_setsigdefault: Likewise.
55631         * modules/posix_spawnattr_setsigmask: Likewise.
55632         * modules/posix_spawnp: Likewise.
55634 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
55636         Add option to do-release-commit-and-tag to specify branch.
55637         * build-aux/do-release-commit-and-tag: Add --branch.
55639 2011-05-03  Bruno Haible  <bruno@clisp.org>
55641         Avoid unnecessary compilation units, through conditional dependencies.
55642         * modules/accept (Depends-on): Add conditions to the dependencies.
55643         * modules/acosl (Depends-on): Likewise.
55644         * modules/argz (Depends-on): Likewise.
55645         * modules/asinl (Depends-on): Likewise.
55646         * modules/atanl (Depends-on): Likewise.
55647         * modules/atoll (Depends-on): Likewise.
55648         * modules/bind (Depends-on): Likewise.
55649         * modules/btowc (Depends-on): Likewise.
55650         * modules/canonicalize-lgpl (Depends-on): Likewise.
55651         * modules/ceil (Depends-on): Likewise.
55652         * modules/ceilf (Depends-on): Likewise.
55653         * modules/ceill (Depends-on): Likewise.
55654         * modules/chdir-long (Depends-on): Likewise.
55655         * modules/chown (Depends-on): Likewise.
55656         * modules/close (Depends-on): Likewise.
55657         * modules/connect (Depends-on): Likewise.
55658         * modules/cosl (Depends-on): Likewise.
55659         * modules/dirfd (Depends-on): Likewise.
55660         * modules/dprintf (Depends-on): Likewise.
55661         * modules/dprintf-posix (Depends-on): Likewise.
55662         * modules/error (Depends-on): Likewise.
55663         * modules/euidaccess (Depends-on): Likewise.
55664         * modules/expl (Depends-on): Likewise.
55665         * modules/faccessat (Depends-on): Likewise.
55666         * modules/fchdir (Depends-on): Likewise.
55667         * modules/fclose (Depends-on): Likewise.
55668         * modules/fcntl (Depends-on): Likewise.
55669         * modules/fdopendir (Depends-on): Likewise.
55670         * modules/fflush (Depends-on): Likewise.
55671         * modules/floor (Depends-on): Likewise.
55672         * modules/floorf (Depends-on): Likewise.
55673         * modules/floorl (Depends-on): Likewise.
55674         * modules/fnmatch (Depends-on): Likewise.
55675         * modules/fopen (Depends-on): Likewise.
55676         * modules/fprintf-posix (Depends-on): Likewise.
55677         * modules/frexp (Depends-on): Likewise.
55678         * modules/frexp-nolibm (Depends-on): Likewise.
55679         * modules/frexpl (Depends-on): Likewise.
55680         * modules/frexpl-nolibm (Depends-on): Likewise.
55681         * modules/fseek (Depends-on): Likewise.
55682         * modules/fsusage (Depends-on): Likewise.
55683         * modules/ftell (Depends-on): Likewise.
55684         * modules/ftello (Depends-on): Likewise.
55685         * modules/futimens (Depends-on): Likewise.
55686         * modules/getcwd (Depends-on): Likewise.
55687         * modules/getcwd-lgpl (Depends-on): Likewise.
55688         * modules/getdelim (Depends-on): Likewise.
55689         * modules/getdomainname (Depends-on): Likewise.
55690         * modules/getgroups (Depends-on): Likewise.
55691         * modules/gethostname (Depends-on): Likewise.
55692         * modules/getline (Depends-on): Likewise.
55693         * modules/getlogin_r (Depends-on): Likewise.
55694         * modules/getopt-posix (Depends-on): Likewise.
55695         * modules/getpeername (Depends-on): Likewise.
55696         * modules/getsockname (Depends-on): Likewise.
55697         * modules/getsockopt (Depends-on): Likewise.
55698         * modules/getsubopt (Depends-on): Likewise.
55699         * modules/getusershell (Depends-on): Likewise.
55700         * modules/glob (Depends-on): Likewise.
55701         * modules/grantpt (Depends-on): Likewise.
55702         * modules/iconv_open (Depends-on): Likewise.
55703         * modules/iconv_open-utf (Depends-on): Likewise.
55704         * modules/inet_ntop (Depends-on): Likewise.
55705         * modules/inet_pton (Depends-on): Likewise.
55706         * modules/ioctl (Depends-on): Likewise.
55707         * modules/isapipe (Depends-on): Likewise.
55708         * modules/isfinite (Depends-on): Likewise.
55709         * modules/isinf (Depends-on): Likewise.
55710         * modules/lchown (Depends-on): Likewise.
55711         * modules/ldexpl (Depends-on): Likewise.
55712         * modules/link (Depends-on): Likewise.
55713         * modules/linkat (Depends-on): Likewise.
55714         * modules/listen (Depends-on): Likewise.
55715         * modules/logl (Depends-on): Likewise.
55716         * modules/lstat (Depends-on): Likewise.
55717         * modules/mbrlen (Depends-on): Likewise.
55718         * modules/mbrtowc (Depends-on): Likewise.
55719         * modules/mbsinit (Depends-on): Likewise.
55720         * modules/mbsnrtowcs (Depends-on): Likewise.
55721         * modules/mbsrtowcs (Depends-on): Likewise.
55722         * modules/mbtowc (Depends-on): Likewise.
55723         * modules/memcmp (Depends-on): Likewise.
55724         * modules/mkdir (Depends-on): Likewise.
55725         * modules/mkdtemp (Depends-on): Likewise.
55726         * modules/mkfifo (Depends-on): Likewise.
55727         * modules/mkfifoat (Depends-on): Likewise.
55728         * modules/mknod (Depends-on): Likewise.
55729         * modules/mkostemp (Depends-on): Likewise.
55730         * modules/mkostemps (Depends-on): Likewise.
55731         * modules/mkstemp (Depends-on): Likewise.
55732         * modules/mkstemps (Depends-on): Likewise.
55733         * modules/mktime (Depends-on): Likewise.
55734         * modules/nanosleep (Depends-on): Likewise.
55735         * modules/open (Depends-on): Likewise.
55736         * modules/openat (Depends-on): Likewise.
55737         * modules/perror (Depends-on): Likewise.
55738         * modules/poll (Depends-on): Likewise.
55739         * modules/popen (Depends-on): Likewise.
55740         * modules/posix_spawn (Depends-on): Likewise.
55741         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55742         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55743         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55744         * modules/posix_spawnp (Depends-on): Likewise.
55745         * modules/pread (Depends-on): Likewise.
55746         * modules/printf-posix (Depends-on): Likewise.
55747         * modules/ptsname (Depends-on): Likewise.
55748         * modules/putenv (Depends-on): Likewise.
55749         * modules/pwrite (Depends-on): Likewise.
55750         * modules/readline (Depends-on): Likewise.
55751         * modules/readlink (Depends-on): Likewise.
55752         * modules/readlinkat (Depends-on): Likewise.
55753         * modules/recv (Depends-on): Likewise.
55754         * modules/recvfrom (Depends-on): Likewise.
55755         * modules/regex (Depends-on): Likewise.
55756         * modules/remove (Depends-on): Likewise.
55757         * modules/rename (Depends-on): Likewise.
55758         * modules/renameat (Depends-on): Likewise.
55759         * modules/rmdir (Depends-on): Likewise.
55760         * modules/round (Depends-on): Likewise.
55761         * modules/roundf (Depends-on): Likewise.
55762         * modules/roundl (Depends-on): Likewise.
55763         * modules/rpmatch (Depends-on): Likewise.
55764         * modules/select (Depends-on): Likewise.
55765         * modules/send (Depends-on): Likewise.
55766         * modules/sendto (Depends-on): Likewise.
55767         * modules/setenv (Depends-on): Likewise.
55768         * modules/setlocale (Depends-on): Likewise.
55769         * modules/setsockopt (Depends-on): Likewise.
55770         * modules/shutdown (Depends-on): Likewise.
55771         * modules/sigaction (Depends-on): Likewise.
55772         * modules/signbit (Depends-on): Likewise.
55773         * modules/sigprocmask (Depends-on): Likewise.
55774         * modules/sinl (Depends-on): Likewise.
55775         * modules/sleep (Depends-on): Likewise.
55776         * modules/snprintf (Depends-on): Likewise.
55777         * modules/snprintf-posix (Depends-on): Likewise.
55778         * modules/socket (Depends-on): Likewise.
55779         * modules/sprintf-posix (Depends-on): Likewise.
55780         * modules/sqrtl (Depends-on): Likewise.
55781         * modules/stat (Depends-on): Likewise.
55782         * modules/strchrnul (Depends-on): Likewise.
55783         * modules/strdup-posix (Depends-on): Likewise.
55784         * modules/strerror (Depends-on): Likewise.
55785         * modules/strerror_r-posix (Depends-on): Likewise.
55786         * modules/strndup (Depends-on): Likewise.
55787         * modules/strnlen (Depends-on): Likewise.
55788         * modules/strptime (Depends-on): Likewise.
55789         * modules/strsep (Depends-on): Likewise.
55790         * modules/strsignal (Depends-on): Likewise.
55791         * modules/strstr-simple (Depends-on): Likewise.
55792         * modules/strtod (Depends-on): Likewise.
55793         * modules/strtoimax (Depends-on): Likewise.
55794         * modules/strtok_r (Depends-on): Likewise.
55795         * modules/strtoumax (Depends-on): Likewise.
55796         * modules/symlink (Depends-on): Likewise.
55797         * modules/symlinkat (Depends-on): Likewise.
55798         * modules/tanl (Depends-on): Likewise.
55799         * modules/tcgetsid (Depends-on): Likewise.
55800         * modules/tmpfile (Depends-on): Likewise.
55801         * modules/trunc (Depends-on): Likewise.
55802         * modules/truncf (Depends-on): Likewise.
55803         * modules/truncl (Depends-on): Likewise.
55804         * modules/uname (Depends-on): Likewise.
55805         * modules/unlink (Depends-on): Likewise.
55806         * modules/unlockpt (Depends-on): Likewise.
55807         * modules/unsetenv (Depends-on): Likewise.
55808         * modules/usleep (Depends-on): Likewise.
55809         * modules/utimensat (Depends-on): Likewise.
55810         * modules/vasprintf (Depends-on): Likewise.
55811         * modules/vdprintf (Depends-on): Likewise.
55812         * modules/vdprintf-posix (Depends-on): Likewise.
55813         * modules/vfprintf-posix (Depends-on): Likewise.
55814         * modules/vprintf-posix (Depends-on): Likewise.
55815         * modules/vsnprintf (Depends-on): Likewise.
55816         * modules/vsnprintf-posix (Depends-on): Likewise.
55817         * modules/vsprintf-posix (Depends-on): Likewise.
55818         * modules/wcrtomb (Depends-on): Likewise.
55819         * modules/wcscasecmp (Depends-on): Likewise.
55820         * modules/wcscspn (Depends-on): Likewise.
55821         * modules/wcsdup (Depends-on): Likewise.
55822         * modules/wcsncasecmp (Depends-on): Likewise.
55823         * modules/wcsnrtombs (Depends-on): Likewise.
55824         * modules/wcspbrk (Depends-on): Likewise.
55825         * modules/wcsrtombs (Depends-on): Likewise.
55826         * modules/wcsspn (Depends-on): Likewise.
55827         * modules/wcsstr (Depends-on): Likewise.
55828         * modules/wcstok (Depends-on): Likewise.
55829         * modules/wcswidth (Depends-on): Likewise.
55830         * modules/wctob (Depends-on): Likewise.
55831         * modules/wctomb (Depends-on): Likewise.
55832         * modules/wctype (Depends-on): Likewise.
55833         * modules/wcwidth (Depends-on): Likewise.
55834         * modules/write (Depends-on): Likewise.
55836 2011-05-03  Bruno Haible  <bruno@clisp.org>
55838         Support for conditional dependencies.
55839         * doc/gnulib.texi (Module description): Document the syntax of
55840         conditional dependencies.
55841         * gnulib-tool: New option --conditional-dependencies.
55842         (func_usage): Document it.
55843         (cond_dependencies): New variable.
55844         (func_get_automake_snippet_conditional,
55845         func_get_automake_snippet_unconditional): New functions, extracted from
55846         func_get_automake_snippet.
55847         (func_get_automake_snippet): Use them.
55848         (sed_first_32_chars): New variable.
55849         (func_module_shellfunc_name): New function.
55850         (func_module_shellvar_name): New function.
55851         (func_module_conditional_name): New function.
55852         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55853         func_cond_module_condition): New functions.
55854         (func_modules_transitive_closure): Add support for conditional
55855         dependencies.
55856         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55857         conditional automake snippet in an automake conditional.
55858         (func_emit_autoconf_snippets): Emit shell functions that contain the
55859         code for conditional modules.
55860         (func_import, func_create_testdir): Update specification.
55862 2011-05-03  Eric Blake  <eblake@redhat.com>
55864         test-getaddrinfo: report error information
55865         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55867 2011-05-03  Jim Meyering  <meyering@redhat.com>
55869         bootstrap: avoid build failure when $GZIP is set
55870         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55871         program name.  If defined at all, it is supposed to list gzip options.
55872         Reported by Alan Curry in http://debbugs.gnu.org/8609
55874 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55876         readme-release: new module with release instructions
55877         * modules/readme-release: New module.
55878         * top/README-release: New file, from coreutils, grep, diffutils.
55879         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55881 2011-05-02  Eric Blake  <eblake@redhat.com>
55883         fflush: also replace fclose when fixing fflush
55884         * modules/fflush (Depends-on): Add fclose.
55885         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55886         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55887         memstreams with no backing fd.
55888         * doc/posix-functions/fclose.texi (fclose): Document the use of
55889         fflush module to fix the bug.
55890         * tests/test-fclose.c (main): Relax test when fclose is used in
55891         isolation.
55893         fclose: add some tests
55894         * modules/fclose-tests: New test module.
55895         * tests/test-fclose.c: New file.
55896         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55898         fclose: reduced dependencies
55899         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55900         simpler lseek.
55901         * lib/fclose.c (rpl_fclose): Likewise.
55902         Reported by Simon Josefsson.
55904         exit: drop remaining clients
55905         * modules/argmatch (Depends-on): Replace exit with stdlib.
55906         * modules/copy-file (Depends-on): Likewise.
55907         * modules/execute (Depends-on): Likewise.
55908         * modules/exitfail (Depends-on): Likewise.
55909         * modules/obstack (Depends-on): Likewise.
55910         * modules/pagealign_alloc (Depends-on): Likewise.
55911         * modules/pipe-filter-gi (Depends-on): Likewise.
55912         * modules/pipe-filter-ii (Depends-on): Likewise.
55913         * modules/savewd (Depends-on): Likewise.
55914         * modules/spawn-pipe (Depends-on): Likewise.
55915         * modules/wait-process (Depends-on): Likewise.
55916         * modules/xsetenv (Depends-on): Likewise.
55917         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55918         * modules/git-merge-changelog (Depends-on): Likewise.
55919         * modules/long-options (Depends-on): Likewise.
55920         * modules/pt_chown (Depends-on): Likewise.
55921         * modules/sysexits (Depends-on): Likewise.
55923         freading: relax license from LGPLv3+ to LGPLv2+
55924         * modules/freading (License): Relax LGPL version.
55926 2011-05-02  Bruno Haible  <bruno@clisp.org>
55928         fchdir: Remove unused dependencies.
55929         * modules/fchdir (Depends-on): Remove include_next.
55931 2011-05-02  Bruno Haible  <bruno@clisp.org>
55933         gnulib-tool: Refactor.
55934         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55935         from func_emit_autoconf_snippets.
55936         (func_emit_autoconf_snippets): Use it.
55938 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55940         * NEWS: Document removal of 'exit'.
55941         * modules/exit: Remove file.
55943 2011-05-01  Bruno Haible  <bruno@clisp.org>
55945         Update DEPENDENCIES.
55946         * DEPENDENCIES (gettext): Recommend the newest release.
55947         Reported by Simon Josefsson.
55949 2011-05-01  Bruno Haible  <bruno@clisp.org>
55951         gnulib-tool: Reduce code duplication.
55952         * gnulib-tool (func_emit_autoconf_snippets): New function.
55953         (func_import, func_create_testdir): Use it.
55955 2011-04-30  Eric Blake  <eblake@redhat.com>
55957         fclose: don't fail on non-seekable input stream
55958         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55959         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55960         since fflush is allowed to fail in that case.
55962 2011-04-30  Bruno Haible  <bruno@clisp.org>
55964         dup3: cleanup
55965         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55967 2011-04-30  Bruno Haible  <bruno@clisp.org>
55969         netdb: Make it work in C++ mode.
55970         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55971         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55972         module.
55973         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55974         gl_MODULE_INDICATOR_FOR_TESTS.
55975         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55976         * modules/netdb-c++-tests: New file.
55977         * tests/test-netdb-c++.cc: New file.
55979 2011-04-30  Bruno Haible  <bruno@clisp.org>
55981         New modules 'vfscanf', 'vscanf'.
55982         * modules/vfscanf: New file.
55983         * modules/vscanf: New file.
55984         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55985         here.
55986         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55987         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55989 2011-04-30  Bruno Haible  <bruno@clisp.org>
55991         passfd: Add comments.
55992         * lib/passfd.c: Add comments about platforms.
55994 2011-04-30  Bruno Haible  <bruno@clisp.org>
55996         sys_uio: Make <sys/uio.h> self-contained.
55997         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55998         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
56000 2011-04-30  Bruno Haible  <bruno@clisp.org>
56002         sys_socket: Ensure 'struct iovec' definition.
56003         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
56004         <sys/socket.h>.
56005         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
56007 2011-04-30  Bruno Haible  <bruno@clisp.org>
56009         sys_uio: Protect definition of 'struct iovec'.
56010         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
56011         it as a C struct.
56013 2011-04-30  Bruno Haible  <bruno@clisp.org>
56015         manywarnings: fix indentation
56016         * m4/manywarnings.m4: Indent by 2 spaces consistently.
56018 2011-04-30  Pádraig Brady  <P@draigBrady.com>
56020         manywarnings: add -Wno-missing-field-initializers if needed.
56021         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
56022         option if it's needed to allow initialization with { 0, }
56024 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
56026         announce-gen: cosmetic improvement
56027         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
56029 2011-04-29  Jim Meyering  <meyering@redhat.com>
56031         vc-list-files: indent with spaces, not TABs
56032         * build-aux/vc-list-files: Convert leading TABs to spaces,
56033         to match the style of most other files in gnulib.
56035         announce-gen: indent with spaces, not TABs
56036         * build-aux/announce-gen: Convert all TABs to spaces, to match
56037         the style of most other files in gnulib.
56039 2011-04-29  Eric Blake  <eblake@redhat.com>
56041         quotearg: avoid uninitialized variable use
56042         * lib/quotearg.c (quoting_options_from_style): Initialize
56043         remaining fields, and ensure that custom styles are only used via
56044         quoting_options rather than quoting_style.
56046 2011-04-29  Jim Meyering  <meyering@redhat.com>
56048         maint.mk: remove unused VC-tag variable
56049         * top/maint.mk (VC-tag): Remove unused variable.
56051 2011-04-29  Bruno Haible  <bruno@clisp.org>
56053         netdb: fix gai_strerror replacements
56054         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
56055         * modules/netdb: Substitute it.
56057 2011-04-29  Jim Meyering  <meyering@redhat.com>
56059         test-getcwd.c: avoid new set-but-not-used warning
56060         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
56061         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
56062         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
56063         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
56065         test-hash.c: avoid a new shadowing warning
56066         * tests/test-hash.c (main): Don't shadow "dup".
56068 2011-04-28  Eric Blake  <eblake@redhat.com>
56070         getaddrinfo: fix gai_strerror signature
56071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
56072         and work around mingw with UNICODE defined.
56073         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
56074         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
56075         * modules/netdb (Makefile.am): Substitute it.
56076         * lib/netdb.in.h (gai_strerror): Declare replacement.
56077         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
56078         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
56079         the fix.
56081         getsockopt: avoid compiler warning
56082         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
56083         Reported by Matthias Bolte.
56085         tests: drop unused link dependency
56086         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
56087         * modules/dirent-safer-tests (Makefile.am): Likewise.
56088         * modules/fdopendir-tests (Makefile.am): Likewise.
56089         * modules/mkfifoat-tests (Makefile.am): Likewise.
56090         * modules/openat-safer-tests (Makefile.am): Likewise.
56091         * modules/openat-tests (Makefile.am): Likewise.
56092         * modules/readlinkat-tests (Makefile.am): Likewise.
56093         * modules/symlinkat-tests (Makefile.am): Likewise.
56094         * modules/linkat-tests (Makefile.am): Likewise.
56095         (Depends-on): Switch to filenamecat-lgpl.
56096         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
56097         LIBINTL.
56098         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
56099         * tests/test-linkat.c (main): Don't require xalloc.
56101         hash, mgetgroups: drop xalloc dependency
56102         * lib/hash.c (includes): Adjust includes.
56103         * lib/mgetgroups.c (includes): Likewise.
56104         (xgetgroups): Move...
56105         * lib/xgetgroups.c: ...to new file.
56106         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
56107         * modules/xgetgroups: New file, split from...
56108         * modules/mgetgroups: ...here.
56109         (Depends-on): Add xalloc-oversized.
56110         * modules/hash (Depends-on): Likewise.
56111         * modules/hash-tests (Depends-on): Drop xalloc.
56112         (test_hash_LDADD): Drop unused library.
56113         * tests/test-hash.c (main): Break xalloc dependency.
56114         (includes): Drop unused include.
56116         xalloc-oversized: new module
56117         * modules/xalloc-oversized: New module.
56118         * modules/xalloc (Depends-on): Add it.
56119         * lib/xalloc.h (xalloc_oversized): Move...
56120         * lib/xalloc-oversized.h: ...into new file.
56122         utimecmp: drop dependency on xmalloc
56123         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
56124         due to memory pressure.
56125         * modules/utimecmp (Depends-on): Drop xalloc.
56127 2011-04-27  Eric Blake  <eblake@redhat.com>
56129         getcwd: fix mingw bugs
56130         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
56131         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
56132         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
56134 2011-04-27  Bruno Haible  <bruno@clisp.org>
56136         mkstemps: Ensure declaration on MacOS X 10.5.
56137         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
56138         * doc/glibc-functions/mkstemps.texi: Document header file problem on
56139         MacOS X.
56141 2011-04-27  Bruno Haible  <bruno@clisp.org>
56143         mkstemp: More documentation.
56144         * doc/posix-functions/mkstemp.texi: Document header file problem on
56145         MacOS X.
56147 2011-04-27  Bruno Haible  <bruno@clisp.org>
56149         mkstemp: Tweak configure message when cross-compiling.
56150         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
56151         result as a guess.
56153 2011-04-27  Bruno Haible  <bruno@clisp.org>
56155         clean-temp: Clarify what it does.
56156         * lib/clean-temp.h: Add more comments.
56157         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
56158         module.
56159         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
56160         * doc/glibc-functions/mkstemps.texi: Likewise.
56161         * doc/glibc-functions/mkostemps.texi: Likewise.
56163 2011-04-27  Eric Blake  <eblake@redhat.com>
56165         fchdir: avoid extra chdir and fix test
56166         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
56167         getcwd-lgpl.
56168         * lib/fchdir.c (get_name): Any absolute name will do; it does not
56169         have to be canonical.
56170         (canonicalize_file_name): Drop unused macro.
56171         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56173         filenamecat-lgpl: fix licence
56174         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56175         when it was first created.
56177         linkat, renameat: add missing dependency
56178         * modules/linkat (Depends-on): Require getcwd-lgpl.
56179         * modules/renameat (Depends-on): Likewise.
56181         tests: reduce dependencies
56182         * tests/test-linkat.c (main): Use lighter-weight getcwd.
56183         * tests/test-renameat.c (main): Likewise.
56184         * modules/linkat-tests (Depends-on): Relax dependency.
56185         * modules/renameat-tests (Depends-on): Likewise.
56186         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
56187         dependency explicit.
56189         save-cwd: reduce default dependency
56190         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
56191         * lib/save-cwd.c: Update comments.
56192         * NEWS: Document the semantic change.
56194         getcwd: enhance tests
56195         * tests/test-getcwd-lgpl.c: New file, taken from...
56196         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
56197         repeat long path stress tests from m4 probe.
56198         * modules/getcwd-lgpl-tests: New module.
56199         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
56200         * m4/getcwd-abort-bug.m4: Update comment.
56201         * m4/getcwd-path-max.m4: Likewise.
56203         getcwd-lgpl: new module
56204         * modules/getcwd-lgpl: New module.
56205         * lib/getcwd-lgpl.c: New file.
56206         * doc/posix-functions/getcwd.texi (getcwd): Document it.
56207         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56208         * modules/getcwd (configure.ac): Set C witness.
56209         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
56211         getcwd: tweak comments
56212         * m4/getcwd-abort-bug.m4: Fix comments.
56213         * m4/getcwd-path-max.m4: Likewise.
56214         * m4/getcwd.m4: Likewise.
56216 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56217         and Eric Blake  <eblake@redhat.com>
56219         mkstemp: replace if system version uses wrong permissions
56220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
56221         read/write mode bits set in file created by mkstemp.
56222         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
56224 2011-04-27  Eric Blake  <eblake@redhat.com>
56226         passfd: avoid compiler warning
56227         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
56228         Reported by Laine Stump.
56230 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
56232         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
56233         required by the NetBSD (and perhaps other 4.4BSD derived) join.
56235 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56236         and Eric Blake  <eblake@redhat.com>
56238         mkstemp: mention clean-temp module
56239         * lib/mkstemp.c: Add comment.
56240         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
56242 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
56244         inttypes: also provide default values for 32-bit tests
56245         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
56246         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
56248 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56250         strtoumax: remove dependency on strtoimax
56251         This is like the strtoull change of yesterday.
56252         * modules/strtoumax (Files): Add lib/strtoimax.c.
56253         (Depends-on): Remove strtoimax and add verify.
56255         inttypes-incomplete: new module
56256         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
56257         all but the PRI* and SCN* parts of gl_INTTYPES_H.
56258         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
56259         of gl_INTTYPES_H.
56260         (gl_INTTYPES_H): Rewrite in terms of these new macros.
56261         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
56262         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
56263         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
56264         * modules/strtoumax, modules/xstrtol (Depends-on):
56265         Depend on inttypes-incomplete, not inttypes.
56266         * modules/inttypes-incomplete: New module, containing the contents
56267         of the old modules/inttypes module, except that the Files: section
56268         omits m4/inttypes-pri.m4, and the configure.ac section invokes
56269         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
56270         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56271         (Depends-on): Depend only on inttypes-incomplete.
56272         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
56274         inttypes: omit now-redundant strtoimax and strtoumax work
56275         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
56276         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
56278         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
56279         This supports apps that need pointers to strtoimax and strtoumax,
56280         and ports to HP-UX 11.00 64.bit, which has macros that expand to
56281         nonexistent functions.  See
56282         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
56283         et seq.
56284         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
56285         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
56286         a macro.
56287         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56289 2011-04-25  Simon Josefsson  <simon@josefsson.org>
56291         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
56293 2011-04-25  Bruno Haible  <bruno@clisp.org>
56295         strtol, strtoul: Mark modules as obsolete.
56296         * modules/strtol (Status, Notice): New sections.
56297         * modules/strtoul (Status, Notice): New sections.
56299 2011-04-25  Bruno Haible  <bruno@clisp.org>
56301         strtod: Remove check for strtod, unless supporting old platforms.
56302         * modules/strtod-obsolete: New file.
56303         * m4/strtod-obsolete.m4: New file.
56304         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
56305         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
56306         * modules/strtod (Depends-on): Add strtod-obsolete.
56307         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
56309 2011-04-25  Bruno Haible  <bruno@clisp.org>
56311         strcase: Make module obsolete.
56312         * modules/strcase (Status, Notice): New sections.
56314 2011-04-25  Bruno Haible  <bruno@clisp.org>
56316         dup2: Remove check for dup2, unless supporting old obsolete platforms.
56317         * modules/dup2-obsolete: New file.
56318         * m4/dup2-obsolete.m4: New file.
56319         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
56320         gl_FUNC_DUP2_OBSOLETE is not also defined.
56321         * modules/dup2 (Depends-on): Add dup2-obsolete.
56322         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
56324 2011-04-25  Bruno Haible  <bruno@clisp.org>
56326         strnlen: Avoid memchr related link error on old obsolete platforms.
56327         * modules/memchr-obsolete: New file.
56328         * m4/memchr-obsolete.m4: New file.
56329         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
56330         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
56331         * modules/memchr (Depends-on): Add memchr-obsolete.
56332         * modules/strnlen (Depends-on): Likewise.
56333         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
56335 2011-04-25  Jim Meyering  <meyering@redhat.com>
56337         maint.mk: makefile_at_at_check extend and clean up
56338         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
56339         in addition to */Makefile.am.
56340         Exempt legitimate uses of @VAR@ notation, e.g.,
56341         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56342         Remove obsolete coreutils-specific comment.
56343         Prompted by discussion here:
56344         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56346 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56348         strtoul: remove dependency on strtol
56349         This is so that 'configure' need not check for strtol merely because
56350         the application needs strtoul.
56351         * modules/strtoul (Files): Add lib/strtol.c.
56352         (Depends-on): Remove strtol.
56354         strtoull: remove dependency on strtoul
56355         This is like the strtoll change.
56356         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56357         (Depends-on): Remove strtoul.
56359         strtoll: remove dependency on strtol
56360         This is so that 'configure' need not check for strtol merely because
56361         the application needs strtoll.
56362         * modules/strtoll (Files): Add lib/strtol.c.
56363         (Depends-on): Remove strtol.
56365 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56367         inttypes: Move some configure check to module 'imaxdiv'.
56368         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56369         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56370         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56372 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56374         inttypes: Move some configure check to module 'imaxabs'.
56375         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56376         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56377         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56379 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56381         inttypes: Remove configure tests that are not needed since 2009-12-31.
56382         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56383         gl_cv_header_working_inttypes_h.
56385 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56387         * modules/strnlen (Depends-on): Remove memchr.
56388         The strnlen implementation doesn't need the memchr module's fixes; see
56389         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56391         strtol: remove dependency on wchar
56392         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56393         * modules/strtol (Depends-on): Remove wchar.
56395 2011-04-21  Eric Blake  <eblake@redhat.com>
56397         passfd: fix test regression on Linux
56398         * modules/passfd-tests (configure.ac): Correct socketpair check.
56400         passfd: speed up configure and drop unused code
56401         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56402         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56403         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56404         Instead of probing at configure for unix_scm_rights_bsd44_way,
56405         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56406         check to a struct member probe.
56407         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56408         (sendfd, recvfd): Update preprocessor checks.
56409         * modules/passfd (Files): Reflect rename, and drop unused file.
56410         (Depends-on): Drop unused dependency.
56412         passfd: allow compilation on mingw
56413         * modules/sys_socket (Depends-on): Add sys_uio.
56414         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56415         iovec and a minimal struct msghdr.
56416         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56417         * tests/test-sys_socket.c (main): Enhance test.
56418         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56419         guaranteed to provide what we need.
56420         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56421         * modules/passfd-tests (Depends-on): Add sys_wait.
56422         * tests/test-passfd.c (main): Skip test on mingw, for now.
56423         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56424         partial 'struct msghdr' implementation.
56426         sys_uio: new module
56427         * modules/sys_uio: New module.
56428         * modules/sys_uio-tests: Likewise.
56429         * lib/sys_uio.in.h: New file.
56430         * m4/sys_uio_h.m4: Likewise.
56431         * tests/test-sys_uio.c: Likewise.
56432         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56433         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56435 2011-04-20  Jim Meyering  <meyering@redhat.com>
56437         useless-if-before-free: avoid false-positive
56438         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56439         disjunct so that it too requires a terminating ";".  Without that,
56440         this script would identify as useless one statement from gcc that
56441         was not:
56442           if (aligned_ptr)
56443             free (((void **) aligned_ptr) [-1]);
56445 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56447         doc: update users.txt.
56448         * users.txt: Add barcode.
56450 2011-04-19  Bruno Haible  <bruno@clisp.org>
56452         ioctl: Remove link dependency on native Windows.
56453         * lib/fd-hook.h: Renamed from lib/close-hook.h.
56454         (gl_close_fn, gl_ioctl_fn): New types.
56455         (struct fd_hook): Renamed from struct close_hook. Change type of
56456         private_close_fn field. Add private_ioctl_fn field.
56457         (close_hook_fn): Add parameter for primary close method.
56458         (execute_close_hooks, execute_all_close_hooks): Likewise.
56459         (ioctl_hook_fn): New type.
56460         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
56461         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56462         argument.
56463         (unregister_fd_hook): Renamed from unregister_close_hook.
56464         * lib/fd-hook.c: Renamed from lib/close-hook.c.
56465         Don't include <unistd.h>.
56466         (close): Remove undef.
56467         (anchor): Update.
56468         (execute_close_hooks): Add argument for primary close method.
56469         (execute_all_close_hooks): Likewise.
56470         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
56471         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56472         argument. Allow each argument to be NULL.
56473         (unregister_fd_hook): Renamed from unregister_close_hook.
56474         * lib/close.c (rpl_close): Pass 'close' function pointer to
56475         execute_all_close_hooks.
56476         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
56477         (primary_ioctl): New function.
56478         (ioctl): Don't call ioctlsocket here. Instead, call
56479         execute_all_ioctl_hooks.
56480         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
56481         close method.
56482         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
56483         (fd_sockets_hook): Renamed from close_sockets_hook.
56484         (gl_sockets_startup, gl_sockets_cleanup): Update.
56485         * modules/fd-hook: Renamed from modules/close-hook. Update.
56486         * modules/close (Depends-on): Add fd-hook, remove close-hook.
56487         * modules/sockets (Depends-on): Likewise.
56488         * modules/ioctl (Depends-on): Add fd-hook.
56489         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
56490         GNULIB_SOCKET.
56492 2011-04-19  Bruno Haible  <bruno@clisp.org>
56494         Move the support of O_NONBLOCK in open() to the 'open' module.
56495         * modules/nonblocking (Depends-on): Remove 'open'.
56496         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
56497         gl_cv_have_open_O_NONBLOCK.
56498         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
56499         O_NONBLOCK support.
56500         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
56502 2011-04-17  Bruno Haible  <bruno@clisp.org>
56504         pipe2: Simplify code.
56505         * lib/pipe2.c (pipe2): Reduce code duplication.
56507 2011-04-17  Bruno Haible  <bruno@clisp.org>
56509         nonblocking: Add comment.
56510         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
56512 2011-04-17  Bruno Haible  <bruno@clisp.org>
56514         nonblocking: Add tests for sockets.
56515         * tests/test-nonblocking-socket.sh: New file.
56516         * tests/test-nonblocking-socket-main.c: New file.
56517         * tests/test-nonblocking-socket-child.c: New file.
56518         * tests/test-nonblocking-socket.h: New file.
56519         * tests/socket-server.h: New file.
56520         * tests/socket-client.h: New file.
56521         * modules/nonblocking-socket-tests: New file.
56522         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
56524 2011-04-17  Bruno Haible  <bruno@clisp.org>
56526         nonblocking: Add tests for pipes.
56527         * tests/test-nonblocking-pipe.sh: New file.
56528         * tests/test-nonblocking-pipe-main.c: New file.
56529         * tests/test-nonblocking-pipe-child.c: New file.
56530         * tests/test-nonblocking-pipe.h: New file.
56531         * tests/test-nonblocking-writer.h: New file.
56532         * tests/test-nonblocking-reader.h: New file.
56533         * tests/test-nonblocking-misc.h: New file.
56534         * modules/nonblocking-pipe-tests: New file.
56535         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
56537 2011-04-16  Bruno Haible  <bruno@clisp.org>
56539         gettext: Clarify the needed programmer actions.
56540         * modules/gettext (Notice): New field.
56541         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56543 2011-04-16  Bruno Haible  <bruno@clisp.org>
56545         strchrnul: Tweak last commit.
56546         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
56547         bug.
56548         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
56549         as in _GL_FUNCDECL_SYS.
56550         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
56551         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
56553 2011-04-15  Eric Blake  <eblake@redhat.com>
56555         strchrnul: work around cygwin bug
56556         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
56557         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
56558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
56559         * modules/string (Makefile.am): Substitute it.
56560         * lib/string.in.h (strchrnul): Use it.
56562 2011-04-15  Bruno Haible  <bruno@clisp.org>
56564         Don't require lib/stdio-write.c when only module 'stdio' is used.
56565         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
56566         invocation.
56567         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
56569 2011-04-14  Bruno Haible  <bruno@clisp.org>
56571         Support non-blocking pipe I/O in read() on native Windows.
56572         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
56573         (read): New declaration.
56574         * lib/read.c: New file.
56575         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
56576         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
56577         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
56578         vscanf): New declarations.
56579         * lib/stdio-read.c: New file.
56580         * m4/read.m4: New file.
56581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
56582         REPLACE_READ.
56583         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
56584         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56585         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
56586         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
56587         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
56588         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56589         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56590         * modules/read: New file.
56591         * modules/nonblocking (Files): Add lib/stdio-read.c.
56592         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56593         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56594         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56595         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56596         * modules/pread (Depends-on): Add read.
56597         * modules/safe-read (Depends-on): Likewise.
56598         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
56599         gets, scanf, vfscanf, vscanf): Verify signatures.
56600         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
56601         problem with non-blocking pipes.
56602         * doc/posix-functions/fgetc.texi: Likewise.
56603         * doc/posix-functions/fgets.texi: Likewise.
56604         * doc/posix-functions/fread.texi: Likewise.
56605         * doc/posix-functions/fscanf.texi: Likewise.
56606         * doc/posix-functions/getc.texi: Likewise.
56607         * doc/posix-functions/getchar.texi: Likewise.
56608         * doc/posix-functions/gets.texi: Likewise.
56609         * doc/posix-functions/scanf.texi: Likewise.
56610         * doc/posix-functions/vfscanf.texi: Likewise.
56611         * doc/posix-functions/vscanf.texi: Likewise.
56613 2011-04-14  Bruno Haible  <bruno@clisp.org>
56615         Support non-blocking pipe I/O in write() on native Windows.
56616         * lib/write.c (rpl_write): Split a write request that failed merely
56617         because the byte count was larger than the pipe buffer's size.
56618         * doc/posix-functions/write.texi: Mention the problem with large byte
56619         counts.
56621 2011-04-14  Bruno Haible  <bruno@clisp.org>
56623         wchar: Ensure that wchar_t gets defined on uClibc.
56624         * lib/wchar.in.h: On uClibc, include <stddef.h>.
56625         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
56627 2011-04-13  Bruno Haible  <bruno@clisp.org>
56629         safe-write, full-read: Avoid unnecessary compilation units.
56630         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
56631         (Depends-on): Remove safe-read. Add ssize_t.
56632         * modules/full-read (Files): Add lib/full-write.c.
56633         (Depends-on): Add full-write.
56635 2011-04-13  Bruno Haible  <bruno@clisp.org>
56637         Support non-blocking pipe I/O and SIGPIPE in pwrite().
56638         * modules/pwrite (Depends-on): Add 'write'.
56640 2011-04-13  Bruno Haible  <bruno@clisp.org>
56642         Support non-blocking pipe I/O in write() on native Windows.
56643         * lib/unistd.in.h (write): Enable replacement also if
56644         GNULIB_UNISTD_H_NONBLOCKING is 1.
56645         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
56646         (rpl_write): When failing to write on a non-blocking pipe, change
56647         errno from ENOSPC to EAGAIN.
56648         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
56649         putchar, puts, vfprintf, vprintf): Enable replacement also if
56650         GNULIB_STDIO_H_NONBLOCKING is 1.
56651         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
56652         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
56653         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
56654         CALL_WITH_SIGPIPE_EMULATION.
56655         (CALL_WITH_SIGPIPE_EMULATION): Use them.
56656         * m4/nonblocking.m4: New file.
56657         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
56658         for non-blocking I/O support.
56659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56660         GNULIB_UNISTD_H_NONBLOCKING.
56661         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56662         required for non-blocking I/O support.
56663         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56664         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56665         lib/stdio-write.c, m4/asm-underscore.m4.
56666         (Depends-on): Add stdio, unistd.
56667         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56668         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56669         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56670         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56671         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56672         problem with non-blocking pipes.
56673         * doc/posix-functions/fputc.texi: Likewise.
56674         * doc/posix-functions/fputs.texi: Likewise.
56675         * doc/posix-functions/fwrite.texi: Likewise.
56676         * doc/posix-functions/printf.texi: Likewise.
56677         * doc/posix-functions/putc.texi: Likewise.
56678         * doc/posix-functions/putchar.texi: Likewise.
56679         * doc/posix-functions/puts.texi: Likewise.
56680         * doc/posix-functions/vfprintf.texi: Likewise.
56681         * doc/posix-functions/vprintf.texi: Likewise.
56682         * doc/posix-functions/write.texi: Likewise.
56684 2011-04-10  Jim Meyering  <meyering@redhat.com>
56686         maint.mk: prohibit doubled words
56687         Detect them also when they're separated by a newline.
56688         There are 3 ways to customize it:
56689           - disable the test on a per file basis, as usual with rules using
56690             $(VC_LIST_EXCEPT)
56691           - replace the default doubled-word-selecting regexp (affects all files)
56692           - ignore a particular file-vs-doubled-word match
56693         I nearly used that last one to ignore the "is is" match in
56694         coreutils' NEWS file, since the text was "ls -is is ..."
56695         To do that, I would have added this line to cfg.mk:
56696           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56697         but it would have ignored any "is is" match in NEWS.
56698         Low probability, but still...
56699         Instead, I changed the text, slightly:
56700           -  ls -is is now consistent with ls -lis in ignoring values returned
56701           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56702         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56703         (prohibit_doubled_word_): Define.
56704         (sc_prohibit_doubled_word): New rule.
56705         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56707 2011-04-10  Jim Meyering  <meyering@redhat.com>
56709         maint: fix doubled-word typo in comment
56710         * m4/gethostname.m4: s/is is/it is/
56711         * m4/getdomainname.m4: Likewise.
56713 2011-04-10  Jim Meyering  <meyering@redhat.com>
56715         maint: remove doubled word: s/it it/it/
56716         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56718 2011-04-10  Jim Meyering  <meyering@redhat.com>
56720         maint.mk: remove useless semicolon and backslash
56721         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56722         semicolon and backslash.
56724 2011-04-10  Bruno Haible  <bruno@clisp.org>
56726         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56727         * modules/stdint-tests (Depends-on): Add wchar.
56729 2011-04-10  Jim Meyering  <meyering@redhat.com>
56731         maint: remove doubled words in comments, e.g., s/a a/a/
56732         * lib/strptime.c (day_of_the_week): s/the the/the/
56733         * tests/test-chown.h (test_chown): s/a a/a/
56735         test-chown.h: correct a cast
56736         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56737         when the destination is a stat.st_gid.
56739 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56741         getaddrinfo: Fix test for sa_len member.
56742         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56743         include <sys/types.h> before <sys/socket.h>.
56745 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56747         maint: change "can not" to "cannot"
56748         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56749         boundaries.
56751 2011-04-09  Jim Meyering  <meyering@redhat.com>
56753         maint: change "a a" to "a"
56754         * tests/test-lchown.h (test_lchown): s/a a/a/
56756         maint.mk: prohibit \<the the\>
56757         * top/maint.mk (sc_prohibit_the_the): New rule.
56759         maint: fix "the the" in comment
56760         * lib/count-one-bits.h: s/the the/the/
56762         maint: change "can not" to "cannot"
56763         But do not change the occurrences in maintain.texi or in
56764         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56765         * doc/gnulib-tool.texi: s/can not/cannot/
56766         * doc/posix-functions/accept.texi (accept): Likewise.
56767         * doc/posix-functions/socket.texi (socket): Likewise.
56768         * lib/mbrtowc.c: Likewise.
56770         maint.mk: prohibit use of "can not"
56771         * top/maint.mk (sc_prohibit_can_not): New rule.
56772         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56774 2011-04-09  Bruno Haible  <bruno@clisp.org>
56776         careadlinkat: Guard against misuse of careadlinkatcwd.
56777         * lib/careadlinkat.c: Include <stdlib.h>.
56778         (careadlinkatcwd): Check that the fd argument is as expected.
56780 2011-04-09  Bruno Haible  <bruno@clisp.org>
56782         careadlinkat: Use common coding style.
56783         * lib/careadlinkat.c: Move gnulib includes after system includes.
56785 2011-04-09  Bruno Haible  <bruno@clisp.org>
56787         careadlinkat: Clarify specification.
56788         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56789         (careadlinkatcwd): Add comment.
56790         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56792 2011-04-09  Bruno Haible  <bruno@clisp.org>
56794         areadlinkat: Avoid link error on many platforms.
56795         * modules/areadlinkat (Depends-on): Add areadlink.
56797 2011-04-09  Bruno Haible  <bruno@clisp.org>
56799         allocator, careadlinkat: Fix double-inclusion guard.
56800         * lib/allocator.h: Fix double-inclusion guard.
56801         * lib/careadlinkat.h: Likewise.
56803 2011-04-09  Bruno Haible  <bruno@clisp.org>
56805         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56806         * lib/relocwrapper.c: Update dependencies hierarchy.
56807         * build-aux/install-reloc: Update list of files to be compiled.
56808         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56809         lib/allocator.[hc].
56811 2011-04-08  Eric Blake  <eblake@redhat.com>
56813         strftime: silence gnulib-tool warning
56814         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56816 2011-04-08  Bruno Haible  <bruno@clisp.org>
56818         verify: Fix syntax error with GCC 4.6 in C++ mode.
56819         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56820         (HAVE_STATIC_ASSERT): New macro.
56821         (verify_true, verify): Use 'static_assert' if it is supported and
56822         '_Static_assert' is not supported.
56824 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56826         allocator: New module.
56827         * modules/allocator, lib/allocator.c: New files.
56828         * lib/allocator.h (stdlib_allocator): New decl.
56829         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56830         Remove.  Do not include <stdlib.h>.
56831         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56832         * modules/careadlinkat (Files): Remove lib/allocator.h.
56833         (Depends-on): Add allocator.
56835         stdlib: let modules use system malloc, realloc
56836         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56837         if !_GL_USE_STDLIB_ALLOC.
56838         (malloc, realloc): Limit this change to a smaller scope.
56840         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56841         (malloc, realloc): Don't #undef; no longer needed.
56842         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56843         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56844         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56845         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56846         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56847         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56848         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56849         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56851         careadlinkat: rename members to avoid problem
56852         * lib/allocator.h (struct allocator): Rename members from
56853         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56854         and realloc are #define'd.  Reported by Eric Blake in
56855         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56856         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56858 2011-04-08  Eric Blake  <eblake@redhat.com>
56860         nonblocking: reduce dependency
56861         * tests/test-nonblocking.c: Only test sockets when in use.
56862         * modules/nonblocking-tests (Depends-on): Drop socket.
56863         (Makefile.am): Link even if sockets are not present.
56864         * modules/pipe2-tests (Makefile.am): Likewise.
56865         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56867         pipe2: fix O_NONBLOCK support on mingw
56868         * modules/pipe2 (Depends-on): Add nonblocking.
56869         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56870         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56871         * tests/test-nonblocking.c (main): Likewise.
56872         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56874         fcntl-h: fix O_ACCMODE on cygwin
56875         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56876         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56878         pipe-filter: drop O_NONBLOCK workarounds
56879         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56880         * modules/pipe-filter-ii (Depends-on): Likewise.
56881         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56883         nonblocking: provide O_NONBLOCK for mingw
56884         * modules/nonblocking (Depends-on): Add open.
56885         (configure.ac): Set new witness macro.
56886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56887         * modules/fcntl-h (Makefile.am): Substitute it.
56888         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56889         nonblocking module is in use.
56890         * lib/nonblocking.c: Adjust portability test.
56891         * lib/open.c (open): Don't let native open see gnulib flag.
56892         * tests/test-fcntl-h.c (main): Enhance test.
56893         * tests/test-open.h (test_open): Likewise.
56894         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56896         careadlinkat: fix compilation error on mingw
56897         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56898         within struct allocator.
56900 2011-04-06  Eric Blake  <eblake@redhat.com>
56902         binary-io: relicense under LGPLv2+
56903         * modules/binary-io (License): Relax to LGPLv2+.
56904         Requested for libvirt, and required by pipe2.
56906 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56908         verify: use _Static_assert if available
56909         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56910         (verify_true, verify): Use it if available.  This generates better
56911         diagnostics with GCC 4.6.0 and later.
56913 2011-04-05  Bruno Haible  <bruno@clisp.org>
56915         Remove leftover generated .h files after config.status changed.
56917         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56918         GL_GENERATE_ALLOCA_H.
56919         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56920         GL_GENERATE_ALLOCA_H evaluates to false.
56922         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56923         GL_GENERATE_ARGZ_H.
56924         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56925         evaluates to false.
56927         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56928         GL_GENERATE_BYTESWAP_H.
56929         * modules/byteswap (Makefile.am): Remove byteswap.h if
56930         GL_GENERATE_BYTESWAP_H evaluates to false.
56932         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56933         GL_GENERATE_ERRNO_H.
56934         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56935         evaluates to false.
56937         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56938         GL_GENERATE_FLOAT_H.
56939         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56940         evaluates to false.
56942         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56943         GL_GENERATE_FNMATCH_H.
56944         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56945         GL_GENERATE_FNMATCH_H evaluates to false.
56947         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56948         GL_GENERATE_GLOB_H.
56949         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56950         evaluates to false.
56952         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56953         automake conditional GL_GENERATE_ICONV_H.
56954         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56955         evaluates to false.
56957         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56958         GL_GENERATE_NETINET_IN_H.
56959         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56960         GL_GENERATE_NETINET_IN_H evaluates to false.
56962         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56963         conditional GL_GENERATE_PTHREAD_H.
56964         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56965         * modules/pthread (Makefile.am): Remove pthread.h if
56966         GL_GENERATE_PTHREAD_H evaluates to false.
56968         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56969         GL_GENERATE_SCHED_H.
56970         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56971         evaluates to false.
56973         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56974         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56975         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56976         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56978         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56979         GL_GENERATE_STDARG_H.
56980         * modules/stdarg (Makefile.am): Remove stdarg.h if
56981         GL_GENERATE_STDARG_H evaluates to false.
56983         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56984         GL_GENERATE_STDBOOL_H.
56985         * modules/stdbool (Makefile.am): Remove stdbool.h if
56986         GL_GENERATE_STDBOOL_H evaluates to false.
56988         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56989         conditional GL_GENERATE_STDDEF_H.
56990         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56991         * modules/stddef (Makefile.am): Remove stddef.h if
56992         GL_GENERATE_STDDEF_H evaluates to false.
56994         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56995         GL_GENERATE_STDINT_H.
56996         * modules/stdint (Makefile.am): Remove stdint.h if
56997         GL_GENERATE_STDINT_H evaluates to false.
56999         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
57000         GL_GENERATE_SYSEXITS_H.
57001         * modules/sysexits (Makefile.am): Remove sysexits.h if
57002         GL_GENERATE_SYSEXITS_H evaluates to false.
57004         Reported by Karl Berry and Ralf Wildenhues.
57006 2011-04-05  Bruno Haible  <bruno@clisp.org>
57008         Ensure to rebuild generated .h files when config.status has changed.
57009         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
57010         config.status.
57011         * modules/ctype (Makefile.am): Likewise.
57012         * modules/dirent (Makefile.am): Likewise.
57013         * modules/errno (Makefile.am): Likewise.
57014         * modules/fcntl-h (Makefile.am): Likewise.
57015         * modules/float (Makefile.am): Likewise.
57016         * modules/getopt-posix (Makefile.am): Likewise.
57017         * modules/glob (Makefile.am): Likewise.
57018         * modules/iconv-h (Makefile.am): Likewise.
57019         * modules/inttypes (Makefile.am): Likewise.
57020         * modules/langinfo (Makefile.am): Likewise.
57021         * modules/locale (Makefile.am): Likewise.
57022         * modules/math (Makefile.am): Likewise.
57023         * modules/netdb (Makefile.am): Likewise.
57024         * modules/netinet_in (Makefile.am): Likewise.
57025         * modules/poll-h (Makefile.am): Likewise.
57026         * modules/pthread (Makefile.am): Likewise.
57027         * modules/pty (Makefile.am): Likewise.
57028         * modules/sched (Makefile.am): Likewise.
57029         * modules/search (Makefile.am): Likewise.
57030         * modules/selinux-h (Makefile.am): Likewise.
57031         * modules/signal (Makefile.am): Likewise.
57032         * modules/spawn (Makefile.am): Likewise.
57033         * modules/stdarg (Makefile.am): Likewise.
57034         * modules/stdbool (Makefile.am): Likewise.
57035         * modules/stddef (Makefile.am): Likewise.
57036         * modules/stdint (Makefile.am): Likewise.
57037         * modules/stdio (Makefile.am): Likewise.
57038         * modules/stdlib (Makefile.am): Likewise.
57039         * modules/string (Makefile.am): Likewise.
57040         * modules/strings (Makefile.am): Likewise.
57041         * modules/sys_file (Makefile.am): Likewise.
57042         * modules/sys_ioctl (Makefile.am): Likewise.
57043         * modules/sys_select (Makefile.am): Likewise.
57044         * modules/sys_socket (Makefile.am): Likewise.
57045         * modules/sys_stat (Makefile.am): Likewise.
57046         * modules/sys_time (Makefile.am): Likewise.
57047         * modules/sys_times (Makefile.am): Likewise.
57048         * modules/sys_utsname (Makefile.am): Likewise.
57049         * modules/sys_wait (Makefile.am): Likewise.
57050         * modules/sysexits (Makefile.am): Likewise.
57051         * modules/termios (Makefile.am): Likewise.
57052         * modules/time (Makefile.am): Likewise.
57053         * modules/unistd (Makefile.am): Likewise.
57054         * modules/wchar (Makefile.am): Likewise.
57055         * modules/wctype-h (Makefile.am): Likewise.
57056         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
57058 2011-04-05  Bruno Haible  <bruno@clisp.org>
57060         pipe2: Relicense under LGPLv2+.
57061         * modules/pipe2 (License): Change to LGPLv2+.
57062         Requested by Eric Blake, for libvirt.
57064 2011-04-05  Bruce Korb  <bkorb@gnu.org>
57066         bootstrap: compute gnulib_extra_files after updating build_aux
57067         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
57068         change build_aux or also supply gnulib_extra_files.  Handle correctly.
57070 2011-04-05  Eric Blake  <eblake@redhat.com>
57072         bootstrap: preserve git whitelist item sorting
57073         * build-aux/bootstrap (sort_patterns): New function.
57074         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
57076 2011-04-05  Simon Josefsson  <simon@josefsson.org>
57078         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
57079         sc_space_tab check.
57081 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
57083         areadlink, areadlinkat: rewrite in terms of careadlinkat
57084         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
57085         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
57086         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
57087         (malloc, realloc): Remove #undefs.
57088         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
57089         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
57090         readlink, ssize_t, stdint, unistd.
57091         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
57092         areadlink, stdint.
57094         careadlinkat: new module
57095         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
57096         * modules/careadlinkat: New files, written by me with
57097         a review and feedback from Ben Pfaff in
57098         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
57100 2011-04-01  Bruno Haible  <bruno@clisp.org>
57102         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
57103         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
57104         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
57105         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
57106         Reported by Bruce Korb <bruce.korb@gmail.com>.
57108 2011-04-01  Bruno Haible  <bruno@clisp.org>
57110         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
57111         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
57112         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
57113         * modules/wcpcpy (Depends-on): Add extensions.
57114         * modules/wcpncpy (Depends-on): Likewise.
57115         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
57116         systems.
57117         * doc/posix-functions/wcpncpy.texi: Likewise.
57118         * doc/posix-functions/wcwidth.texi: Likewise.
57120 2011-03-31  Eric Blake  <eblake@redhat.com>
57122         nonblocking: fix mingw test failures
57123         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
57124         non-blocking flag on regular file.
57125         (get_nonblocking_flag): Set errno on invalid fd.
57126         * tests/test-nonblocking.c (main): Avoid test failure on
57127         directories if fchdir is not active.
57128         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
57130 2011-03-31  Bruno Haible  <bruno@clisp.org>
57132         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
57133         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
57134         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
57135         Reported by Simon Josefsson <simon@josefsson.org>.
57137 2011-03-31  Bruno Haible  <bruno@clisp.org>
57138         and Eric Blake  <eblake@redhat.com>
57140         nonblocking: new module
57141         * modules/nonblocking: New module.
57142         * modules/nonblocking-tests: Likewise.
57143         * lib/nonblocking.h: New file.
57144         * lib/nonblocking.c: Likewise.
57145         * tests/test-nonblocking.c: New test.
57146         * lib/ioctl.c (ioctl) [mingw]: Update comment.
57148 2011-03-30  Bruno Haible  <bruno@clisp.org>
57150         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
57151         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
57152         instead of 'printf' format for GCC >= 4.4.
57153         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
57154         (fprintf, printf, vfprintf, vprintf): Declare with
57155         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57156         the system's vfprintf() function.
57157         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
57159 2011-03-30  Eric Blake  <eblake@redhat.com>
57161         passfd: fix scoping bug
57162         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
57163         before sendmsg/recvmsg.
57165         passfd: standardize coding conventions
57166         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
57167         can be learned at compile time.
57168         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
57169         ifdefs.
57170         (sendfd, recvfd): Follow gnulib code conventions.
57172         passfd: fix incorrect sendmsg arguments
57173         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57174         incorrect msg_controllen value.
57175         * modules/passfd-tests (Depends-on): Check for alarm.
57176         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
57177         Reported by Bastien ROUCARIES.
57179 2011-03-30  Bruno Haible  <bruno@clisp.org>
57181         c-strcasestr: Relicense under LGPLv2+.
57182         * modules/c-strcasestr (License): Change to LGPLv2+.
57183         Requested by Eric Blake, for libvirt.
57185 2011-03-30  Simon Josefsson  <simon@josefsson.org>
57187         * users.txt: Add libidn2.  Fix libtasn1 link.
57189 2011-03-30  Jim Meyering  <meyering@redhat.com>
57191         tests: readlink* ("",... fails with EINVAL on newer kernels
57192         readlink and readlinkat have typically failed with ENOENT for
57193         the invalid, empty file name,  "".  However, with the advent
57194         of linux-2.6.39, they fail with EINVAL.
57195         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
57196         when operating on the empty file name.
57197         * tests/test-readlink.h (test_readlink): Likewise.
57199 2011-03-29  Bruno Haible  <bruno@clisp.org>
57201         Relicense some modules under LGPLv2+, for libidn2.
57202         * modules/array-mergesort (License): Change to LGPLv2+.
57203         * modules/c-strcaseeq (License): Likewise.
57204         * modules/striconveh (License): Likewise.
57205         * modules/striconveha (License): Likewise.
57206         * modules/uniconv/base (License): Likewise.
57207         * modules/uniconv/u8-conv-from-enc (License): Likewise.
57208         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
57209         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
57210         * modules/unictype/base (License): Likewise.
57211         * modules/unictype/bidiclass-of (License): Likewise.
57212         * modules/unictype/category-M (License): Likewise.
57213         * modules/unictype/category-none (License): Likewise.
57214         * modules/unictype/category-of (License): Likewise.
57215         * modules/unictype/category-test (License): Likewise.
57216         * modules/unictype/category-test-withtable (License): Likewise.
57217         * modules/unictype/combining-class (License): Likewise.
57218         * modules/unictype/joiningtype-of (License): Likewise.
57219         * modules/unictype/scripts (License): Likewise.
57220         * modules/uninorm/base (License): Likewise.
57221         * modules/uninorm/canonical-decomposition (License): Likewise.
57222         * modules/uninorm/composition (License): Likewise.
57223         * modules/uninorm/decompose-internal (License): Likewise.
57224         * modules/uninorm/decomposition-table (License): Likewise.
57225         * modules/uninorm/nfc (License): Likewise.
57226         * modules/uninorm/nfd (License): Likewise.
57227         * modules/uninorm/u32-normalize (License): Likewise.
57228         * modules/unistr/base (License): Likewise.
57229         * modules/unistr/u32-cpy (License): Likewise.
57230         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
57231         * modules/unistr/u32-to-u8 (License): Likewise.
57232         * modules/unistr/u32-uctomb (License): Likewise.
57233         * modules/unistr/u8-check (License): Likewise.
57234         * modules/unistr/u8-mblen (License): Likewise.
57235         * modules/unistr/u8-mbtouc (License): Likewise.
57236         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
57237         * modules/unistr/u8-mbtoucr (License): Likewise.
57238         * modules/unistr/u8-prev (License): Likewise.
57239         * modules/unistr/u8-strlen (License): Likewise.
57240         * modules/unistr/u8-to-u32 (License): Likewise.
57241         * modules/unistr/u8-uctomb (License): Likewise.
57242         * modules/unitypes (License): Likewise.
57243         Requested by Simon Josefsson.
57245 2011-03-29  Simon Josefsson  <simon@josefsson.org>
57247         lib-symbol-visibility: Add a notice.
57248         * modules/lib-symbol-visibility (Notice): New field.
57250 2011-03-29  Bruno Haible  <bruno@clisp.org>
57252         getaddrinfo: Doc fix.
57253         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
57254         section "fixed in Gnulib".
57256 2011-03-28  Simon Josefsson  <simon@josefsson.org>
57258         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
57259         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
57261 2011-03-26  Bruno Haible  <bruno@clisp.org>
57263         unictype/property-byname: Reduce the number of load-time relocations.
57264         * lib/unictype/pr_byname.c: Include <stdlib.h>.
57265         (UC_PROPERTY_INDEX_*): New enumeration values.
57266         (uc_property_byname): Convert an index from the lookup table to an
57267         uc_property_t.
57268         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
57269         values.
57271 2011-03-26  Bruno Haible  <bruno@clisp.org>
57273         unictype/property-byname: Allow omitted word separators and aliases.
57274         * lib/unictype/pr_byname.gperf: Add property names without word
57275         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
57276         for 'space'.
57278 2011-03-26  Bruno Haible  <bruno@clisp.org>
57280         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
57281         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
57282         also hyphens to space.
57283         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
57284         without spaces.
57285         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
57287 2011-03-26  Bruno Haible  <bruno@clisp.org>
57289         unictype/joiningtype-byname: Recognize long names as well.
57290         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
57291         a long name.
57292         * lib/unictype/joiningtype_byname.c: Include <string.h>,
57293         unictype/joiningtype_byname.h.
57294         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
57295         * lib/unictype/joiningtype_byname.gperf: New file.
57296         * modules/unictype/joiningtype-byname (Files): Add
57297         lib/unictype/joiningtype_byname.gperf.
57298         (Depends-on): Add gperf.
57299         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
57300         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
57301         long names.
57303         Tests for module 'unictype/joiningtype-longname'.
57304         * modules/unictype/joiningtype-longname-tests: New file.
57305         * tests/unictype/test-joiningtype_longname.c: New file.
57307         New module 'unictype/joiningtype-longname'.
57308         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
57309         * lib/unictype/joiningtype_longname.c: New file.
57310         * modules/unictype/joiningtype-longname: New file.
57311         * modules/unictype/joiningtype-all (Depends-on): Add
57312         unictype/joiningtype-longname.
57314 2011-03-26  Bruno Haible  <bruno@clisp.org>
57316         unictype/bidiclass-byname: Recognize long names as well.
57317         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
57318         name.
57319         * lib/unictype/bidi_byname.c: Include <string.h>,
57320         unictype/bidi_byname.h.
57321         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
57322         * lib/unictype/bidi_byname.gperf: New file.
57323         * modules/unictype/bidiclass-byname (Files): Add
57324         lib/unictype/bidi_byname.gperf.
57325         (Depends-on): Add gperf.
57326         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
57327         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
57328         long names.
57330         Tests for module 'unictype/bidiclass-longname'.
57331         * modules/unictype/bidiclass-longname-tests: New file.
57332         * tests/unictype/test-bidi_longname.c: New file.
57334         New module 'unictype/bidiclass-longname'.
57335         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
57336         * lib/unictype/bidi_longname.c: New file.
57337         * modules/unictype/bidiclass-longname: New file.
57338         * modules/unictype/bidiclass-all (Depends-on): Add
57339         unictype/bidiclass-longname.
57341 2011-03-26  Bruno Haible  <bruno@clisp.org>
57343         unictype/bidi*: Rename modules.
57344         * modules/unictype/bidiclass-all: Renamed from
57345         modules/unictype/bidicategory-all.
57346         * modules/unictype/bidiclass-name: Renamed from
57347         modules/unictype/bidiclass-name.
57348         (Description): Update.
57349         * modules/unictype/bidiclass-name-tests: Renamed from
57350         modules/unictype/bidicategory-name-tests.
57351         * modules/unictype/bidiclass-byname: Renamed from
57352         modules/unictype/bidicategory-byname.
57353         (Description): Update.
57354         * modules/unictype/bidiclass-byname-tests: Renamed from
57355         modules/unictype/bidicategory-byname-tests.
57356         * modules/unictype/bidiclass-of: Renamed from
57357         modules/unictype/bidicategory-of.
57358         (Description): Update.
57359         * modules/unictype/bidiclass-of-tests: Renamed from
57360         modules/unictype/bidicategory-of-tests.
57361         * modules/unictype/bidiclass-test: Renamed from
57362         modules/unictype/bidicategory-test.
57363         (Description): Update.
57364         * modules/unictype/bidiclass-test-tests: Renamed from
57365         modules/unictype/bidicategory-test-tests.
57366         * modules/unictype/bidicategory-all: New file, a simple redirection.
57367         * modules/unictype/bidicategory-name: Likewise.
57368         * modules/unictype/bidicategory-byname: Likewise.
57369         * modules/unictype/bidicategory-of: Likewise.
57370         * modules/unictype/bidicategory-test: Likewise.
57371         * modules/unictype/property-bidi-* (Dependencies): Update.
57372         * lib/unictype/bidi_*.c: Update comment.
57374 2011-03-26  Bruno Haible  <bruno@clisp.org>
57376         unictype/bidi*: Rename functions, part 2.
57377         * modules/unictype/bidicategory-name (configure.ac): Update required
57378         libunistring version.
57379         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57381 2011-03-25  Bruno Haible  <bruno@clisp.org>
57383         New module 'unictype/combining-class-all'.
57384         * modules/unictype/combining-class-all: New file.
57386         Tests for module 'unictype/combining-class-byname'.
57387         * modules/unictype/combining-class-byname-tests: New file.
57388         * tests/unictype/test-combiningclass_byname.c: New file.
57390         New module 'unictype/combining-class-byname'.
57391         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57392         * lib/unictype/combiningclass_byname.c: New file.
57393         * lib/unictype/combiningclass_byname.gperf: New file.
57394         * modules/unictype/combining-class-byname: New file.
57396         Tests for module 'unictype/combining-class-longname'.
57397         * modules/unictype/combining-class-longname-tests: New file.
57398         * tests/unictype/test-combiningclass_longname.c: New file.
57400         New module 'unictype/combining-class-longname'.
57401         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57402         * lib/unictype/combiningclass_longname.c: New file.
57403         * modules/unictype/combining-class-longname: New file.
57405         Tests for module 'unictype/combining-class-name'.
57406         * modules/unictype/combining-class-name-tests: New file.
57407         * tests/unictype/test-combiningclass_name.c: New file.
57409         New module 'unictype/combining-class-name'.
57410         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57411         * lib/unictype/combiningclass_name.c: New file.
57412         * modules/unictype/combining-class-name: New file.
57414 2011-03-25  Bruno Haible  <bruno@clisp.org>
57416         unictype/combining-class: Rename source files.
57417         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57418         of unictype/combining.h.
57419         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57420         Update.
57421         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57422         * modules/unictype/combining-class (Description): Fix.
57423         (Files, Makefile.am): Update.
57424         * tests/unictype/test-combiningclass.c: Renamed from
57425         tests/unictype/test-combining.c.
57426         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57428 2011-03-25  Bruno Haible  <bruno@clisp.org>
57430         unictype: Update list of canonical combining classes.
57431         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57433 2011-03-25  Bruno Haible  <bruno@clisp.org>
57435         unictype/category-byname: Recognize long names as well.
57436         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57437         a long name.
57438         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57439         unictype/categ_byname.h.
57440         (UC_CATEGORY_INDEX_*): New enumeration values.
57441         (uc_general_category_byname): Use uc_general_category_lookup and
57442         convert from index to value.
57443         * lib/unictype/categ_byname.gperf: New file.
57444         * modules/unictype/category-byname (Files): Add
57445         lib/unictype/categ_byname.gperf.
57446         (Depends-on): Add gperf.
57447         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57448         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57449         long names.
57451         Tests for module 'unictype/category-longname'.
57452         * modules/unictype/category-longname-tests: New file.
57453         * tests/unictype/test-categ_longname.c: New file.
57455         New module 'unictype/category-longname'.
57456         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
57457         * lib/unictype/categ_longname.c: New file.
57458         * modules/unictype/category-longname: New file.
57459         * modules/unictype/category-all (Depends-on): Add it.
57461 2011-03-25  Bruno Haible  <bruno@clisp.org>
57463         Tests for module 'unictype/category-LC'.
57464         * modules/unictype/category-LC-tests: New file.
57465         * tests/unictype/test-categ_LC.c: New file, automatically generated.
57467         New module 'unictype/category-LC'.
57468         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
57469         (UC_CATEGORY_LC): New declaration.
57470         (UC_CASED_LETTER): New macro.
57471         * lib/gen-uni-tables.c (is_category_LC): New function.
57472         (output_categories): Also handle category LC.
57473         (UC_CATEGORY_MASK_LC): New enumeration value.
57474         (general_category_byname): Also handle category LC.
57475         * lib/unictype/categ_LC.c: New file.
57476         * lib/unictype/categ_LC.h: New file, automatically generated.
57477         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
57478         category LC.
57479         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
57480         * modules/unictype/category-LC: New file.
57481         * modules/unictype/category-byname (Depends-on): Add
57482         unictype/category-LC.
57483         * modules/unictype/category-all (Depends-on): Likewise.
57485 2011-03-25  Eric Blake  <eblake@redhat.com>
57487         xmalloc: revert yesterday's regression
57488         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
57489         realloc's underlying behavior (allowing allocation of zero-size
57490         objects, especially if malloc-gnu is also in use).
57492 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
57494         maint.mk: add missing version to VC-tag
57495         * top/maint.mk: git tag was missing actual tag name; add it.
57497         valgrind: do leak checking, and exit with code 1 on error (not 0)
57498         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
57499         to VALGRIND.
57501 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
57503         posix-modules: say what it does.
57504         * posix-modules: Add a line to the --help output saying what it does.
57506 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
57508         xmalloc: Do not leak if underlying realloc is C99 compatible.
57509         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
57510         This avoids a leak on C99-based systems.  See
57511         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
57513 2011-03-24  Eric Blake  <eblake@redhat.com>
57515         realloc: document portability problem
57516         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
57517         passing 0 size to realloc.
57519 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
57521         doc: update users.txt
57522         * users.txt: Add cvsps, tmpwatch
57524 2011-03-23  Matt Rice  <ratmice@gmail.com>
57526         doc: update users.txt
57527         * users.txt: Add gdb.
57529 2011-03-23  Jim Meyering  <meyering@redhat.com>
57531         doc: update users.txt
57532         Looking through matches up to the following URL (there are still
57533         several more pages), I found several projects that use gnulib:
57534         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
57535         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
57536         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
57538 2011-03-22  Bruno Haible  <bruno@clisp.org>
57540         unictype/bidi*: Rename functions.
57541         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
57542         uc_bidi_class, uc_is_bidi_class): New declarations.
57543         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
57544         uc_bidi_category_byname.
57545         (uc_bidi_category_byname): New function.
57546         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
57547         u_bidi_category_name.
57548         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
57549         (uc_bidi_category_name): New function.
57550         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57551         uc_bidi_category.
57552         (uc_bidi_category): New function.
57553         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
57554         uc_is_bidi_category. Invoke uc_bidi_class.
57555         (uc_is_bidi_category): New function.
57556         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
57557         instead of uc_bidi_category_byname.
57558         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
57559         instead of uc_bidi_category_name.
57560         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
57561         uc_bidi_category.
57562         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
57563         instead of uc_is_bidi_category.
57565 2011-03-21  Bruno Haible  <bruno@clisp.org>
57567         New module 'unictype/joininggroup-all'.
57568         * modules/unictype/joininggroup-all: New file.
57570         Tests for module 'unictype/joininggroup-of'.
57571         * modules/unictype/joininggroup-of-tests: New file.
57572         * tests/unictype/test-joininggroup_of.c: New file.
57573         * tests/unictype/test-joininggroup_of.h: New file, automatically
57574         generated by gen-uni-tables.
57576         New module 'unictype/joininggroup-of'.
57577         * modules/unictype/joininggroup-of: New file.
57578         * lib/unictype/joininggroup_of.c: New file.
57579         * lib/unictype/joininggroup_of.h: New file, automatically generated by
57580         gen-uni-tables.
57582         Tests for module 'unictype/joininggroup-byname'.
57583         * modules/unictype/joininggroup-byname-tests: New file.
57584         * tests/unictype/test-joininggroup_byname.c: New file.
57586         New module 'unictype/joininggroup-byname'.
57587         * modules/unictype/joininggroup-byname: New file.
57588         * lib/unictype/joininggroup_byname.c: New file.
57589         * lib/unictype/joininggroup_byname.gperf: New file.
57591         Tests for module 'unictype/joininggroup-name'.
57592         * modules/unictype/joininggroup-name-tests: New file.
57593         * tests/unictype/test-joininggroup_name.c: New file.
57595         New module 'unictype/joininggroup-name'.
57596         * modules/unictype/joininggroup-name: New file.
57597         * lib/unictype/joininggroup_name.c: New file.
57598         * lib/unictype/joininggroup_name.h: New file.
57600         New module 'unictype/joiningtype-all'.
57601         * modules/unictype/joiningtype-all: New file.
57603         Tests for module 'unictype/joiningtype-of'.
57604         * modules/unictype/joiningtype-of-tests: New file.
57605         * tests/unictype/test-joiningtype_of.c: New file.
57606         * tests/unictype/test-joiningtype_of.h: New file, automatically
57607         generated by gen-uni-tables.
57609         New module 'unictype/joiningtype-of'.
57610         * modules/unictype/joiningtype-of: New file.
57611         * lib/unictype/joiningtype_of.c: New file.
57612         * lib/unictype/joiningtype_of.h: New file, automatically generated by
57613         gen-uni-tables.
57615         Tests for module 'unictype/joiningtype-byname'.
57616         * modules/unictype/joiningtype-byname-tests: New file.
57617         * tests/unictype/test-joiningtype_byname.c: New file.
57619         New module 'unictype/joiningtype-byname'.
57620         * modules/unictype/joiningtype-byname: New file.
57621         * lib/unictype/joiningtype_byname.c: New file.
57623         Tests for module 'unictype/joiningtype-name'.
57624         * modules/unictype/joiningtype-name-tests: New file.
57625         * tests/unictype/test-joiningtype_name.c: New file.
57627         New module 'unictype/joiningtype-name'.
57628         * modules/unictype/joiningtype-name: New file.
57629         * lib/unictype/joiningtype_name.c: New file.
57631         unictype: Add support for Arabic shaping properties.
57632         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
57633         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
57634         declarations.
57635         (UC_JOINING_GROUP_*): New enumeration values.
57636         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
57637         declarations.
57638         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
57639         (unicode_joining_type): New variable.
57640         (UC_JOINING_GROUP_*): New enumeration values.
57641         (unicode_joining_group): New variable.
57642         (fill_arabicshaping, joining_type_as_c_identifier,
57643         output_joining_type_test, output_joining_type,
57644         joining_group_as_c_identifier, output_joining_group_test,
57645         output_joining_group): New functions.
57646         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
57647         fill_arabicshaping and output_joining_type_test, output_joining_type,
57648         output_joining_group_test, output_joining_group.
57649         Reported by Simon Josefsson.
57651 2011-03-21  Jim Meyering  <meyering@redhat.com>
57653         strftime: fix a bug in yesterday's change
57654         * lib/strftime.c (add): Accommodate width's initial value of -1.
57655         Otherwise, nstrftime would copy uninitialized data into
57656         the result buffer.
57658 2011-03-21  Jim Meyering  <meyering@redhat.com>
57660         tests: add strftime-tests module
57661         * tests/test-strftime.c: New file.
57662         * modules/strftime-tests: New module.
57664 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57666         strftime: don't assume a byte count fits in 'int'
57667         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57668         found this problem by static analysis, using gcc -Wstrict-overflow
57669         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57670         on an integer overflow having undefined behavior, but it turns out
57671         that the argument is a size, which might not fit in 'int' anyway,
57673 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57675         stdio: don't require ignore_value around fwrite
57677         This patch works around libc bug 11959
57678         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57679         Without this patch, applications must often write
57680         ignore_value (fwrite (...)) even though the ignore_value is
57681         not helpful here.  It's common to write many objects, using
57682         fwrite/printf/etc., and then use ferror to detect output error.
57684         I considered making this patch optional, but decided against it,
57685         because libc is obviously being inconsistent here: there is no
57686         reason libc should insist that user code must inspect fwrite
57687         return's value without also insisting that it inspect printf's,
57688         putchar's, etc.  If user code wants to have a strict style where
57689         all these functions' values are checked (so that ferror need not
57690         be checked), we could add support for that style in a new gnulib
57691         module, but in the meantime it's better to be consistent and to
57692         support common usage.
57694         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57695         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57696         that we are compiling in checking mode, and if not C++, and
57697         if not already wrapping fwrite for some other reason.
57698         (fwrite): #define to rpl_fwrite if the latter is defined.
57700 2011-03-20  Bruno Haible  <bruno@clisp.org>
57702         verror: Fix compilation error introduced on 2011-02-13.
57703         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57704         instead of __attribute__.
57705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57707 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57708             Bruno Haible  <bruno@clisp.org>
57710         socklen: do not depend on sys_socket
57711         While trying to modify Emacs to use gnulib's socklen module,
57712         I discovered a circular dependency: socklen depends on sys_socket
57713         and vice versa.  Emacs can use socklen, but it does not need
57714         sys_socket because it has its own substitute for sys/socket.h.
57715         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57716         gl_TYPE_SOCKLEN_T.
57717         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57718         gl_PREREQ_SYS_H_SOCKET.
57719         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57720         gl_PREREQ_SYS_H_SOCKET.
57721         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57722         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57723         * modules/socklen (Depends-on): Do not depend on sys_socket.
57724         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57726 2011-03-20  Jim Meyering  <meyering@redhat.com>
57728         maint.mk: sort file names *after* new transformation
57729         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57730         prefix would have led to an unwarranted failure in GNU parted.
57731         Sort after that transformation.
57733 2011-03-19  Jim Meyering  <meyering@redhat.com>
57735         maint.mk: fix po-file syntax-check rule
57736         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57737         Patch by Bruno Haible.
57739 2011-03-19  Bruno Haible  <bruno@clisp.org>
57741         socklen: Update comment.
57742         * m4/socklen.m4: Update comment about platforms.
57744 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57745             Bruno Haible  <bruno@clisp.org>
57747         inet_ntop, inet_pton: Simplify.
57748         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57749         documented to provide socklen_t and we already depend on sys_socket.
57750         * modules/inet_pton (Depends-on): Likewise.
57751         * lib/arpa_inet.in.h: Adjust comment.
57753 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57754             Bruno Haible  <bruno@clisp.org>
57756         netdb: Simplify.
57757         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57758         documented to provide socklen_t and we already depend on sys_socket.
57759         * lib/netdb.in.h: Adjust comment.
57761 2011-03-19  Bruno Haible  <bruno@clisp.org>
57763         sys_socket, netdb: Document problem with socklen_t.
57764         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57765         platforms.
57766         * doc/posix-headers/netdb.texi: Likewise.
57768 2011-03-18  Eric Blake  <eblake@redhat.com>
57770         maint.mk: let po check work in VPATH build
57771         * top/maint.mk (po_file): Allow cfg.mk override.
57772         (sc_po_check): Allow VPATH use.
57773         Reported by Jiri Denemark.
57775 2011-03-16  Jim Meyering  <meyering@redhat.com>
57777         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57778         Before, you would have had to create one .x-sc_ file per rule in order
57779         to exempt offending files.  Now, you may instead use a Make variable --
57780         usually defined in cfg.mk -- whose name identifies the affected rule.
57781         * top/maint.mk (_sc_excl): Define.
57782         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57783         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57785 2011-03-13  Bruno Haible  <bruno@clisp.org>
57787         ignore-value tests: Avoid warnings.
57788         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57789         empty for gcc < 3.4.
57791 2011-03-13  Bruno Haible  <bruno@clisp.org>
57793         passfd: Fix link error on Solaris.
57794         * modules/passfd (Description): Correct.
57795         (Depends-on): Add socketlib.
57796         (Link): New section.
57797         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57799 2011-03-13  Bruno Haible  <bruno@clisp.org>
57801         passfd: Fix link error on AIX 5.2.
57802         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57804 2011-03-13  Bruno Haible  <bruno@clisp.org>
57806         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57807         * lib/sys_socket.in.h: Include <stddef.h>.
57808         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57809         CMSG_FIRSTHDR. Remove unused variable.
57811 2011-03-13  Bruno Haible  <bruno@clisp.org>
57813         passfd: Fix compilation error on OpenBSD.
57814         * lib/passfd.c: Include <sys/uio.h>.
57816 2011-03-13  Bruno Haible  <bruno@clisp.org>
57818         passfd test: Fix warnings.
57819         * tests/test-passfd.c: Include <sys/wait.h>.
57820         (main): Fix typo.
57822 2011-03-13  Bruno Haible  <bruno@clisp.org>
57824         passfd module, part 4, tweaks.
57825         * tests/test-passfd.c: Reorder includes.
57826         (main): Fix perror and printf calls.
57828 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57830         passfd module, part 4.
57831         * modules/passfd-tests: New file.
57832         * tests/test-passfd.c: New file.
57834 2011-03-13  Jim Meyering  <meyering@redhat.com>
57836         Makefile: rely on GNU make; derive syntax-check rule names
57837         Rather than requiring that each sc_ rule be listed as a dependent
57838         of "check", use features of GNU make to derive the list.
57839         * Makefile (syntax-check-rules): Define.
57840         (check): Depend on the new variable, not the hard-coded list.
57842 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57843             Bruno Haible  <bruno@clisp.org>
57845         passfd module, part 3.
57846         * lib/passfd.h (recvfd): Add a flags argument.
57847         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57848         (recvfd): Add a flags argument.
57849         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57850         exists.
57851         * modules/passfd (Depends-on): Add cloexec.
57852         Suggested by Eric Blake.
57854 2011-03-13  Bruno Haible  <bruno@clisp.org>
57856         passfd module, part 2, tweaks.
57857         * modules/passfd (Files): Reorder.
57858         (Depends-on): Remove errno.
57859         (Include): Remove <sys/socket.h>, <sys/un.h>.
57860         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57861         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57862         specification header. Include <sys/socket.h> always. Don't include
57863         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57864         (sendfd): Clarify that it sets errno when it fails.
57865         (recvfd): Fix specification.
57867 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57869         passfd module, part 2.
57870         * modules/passfd: New file.
57871         * lib/passfd.h: New file.
57872         * lib/passfd.c: New file.
57874 2011-03-12  Bruno Haible  <bruno@clisp.org>
57876         wcswidth, mbswidth: Avoid integer overflow.
57877         * lib/wcswidth.c: Include <limits.h>.
57878         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57879         * lib/mbswidth.c: Include <limits.h>.
57880         (mbsnwidth): Avoid 'int' overflow.
57881         Reported by Jim Meyering.
57883 2011-03-12  Bruno Haible  <bruno@clisp.org>
57885         futimens, utimensat: Avoid endless recursion on Solaris 10.
57886         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57887         Solaris.
57888         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57889         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57891 2011-03-11  Jim Meyering  <meyering@redhat.com>
57893         maint.mk: relax a regexp to accommodate other formatting styles
57894         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57895         between "ngettext" and the following "(".
57897 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57899         maint.mk: suppress a false positive warning
57900         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57901         diagnostics are marked with ngettext.
57903 2011-03-10  Eric Blake  <eblake@redhat.com>
57905         wchar: add explicit dependencies, for Tru64
57906         * modules/mbmemcasecoll (Depends-on): Add wchar.
57907         * modules/mbtowc (Depends-on): Likewise.
57908         * modules/vasnprintf (Depends-on): Likewise.
57909         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57910         * modules/wctomb (Depends-on): Likewise.
57911         Reported by Peter O'Gorman.
57913 2011-03-08  Bruno Haible  <bruno@clisp.org>
57915         passfd module, part 1, tweaks.
57916         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57917         Improve indentation. Improve AC_MSG_CHECKING messages.
57918         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57919         gl_SOCKET_FAMILIES.
57921 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57923         passfd module, part 1.
57924         * m4/afunix.m4: New file.
57925         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57926         sockets.
57928 2011-03-08  Bruno Haible  <bruno@clisp.org>
57930         regex-quote: New API.
57931         * lib/regex-quote.h: Include <stdbool.h>.
57932         (struct regex_quote_spec): New type.
57933         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57934         New declarations.
57935         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57936         'const struct regex_quote_spec *' argument.
57937         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57938         (pcre_special): New constant.
57939         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57940         New functions.
57941         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57942         'const struct regex_quote_spec *' argument.
57943         * modules/regex-quote (Depends-on): Add stdbool.
57944         * tests/test-regex-quote.c (check): Update for new API. Add test for
57945         anchored results.
57946         * NEWS: Mention the API change.
57947         Reported by Reuben Thomas and Eric Blake.
57949 2011-03-06  Bruno Haible  <bruno@clisp.org>
57951         regex-quote: Fix creation of POSIX extended regular expressions.
57952         * lib/regex-quote.c (ere_special): Add grouping and alternation
57953         operators.
57955 2011-03-05  Bruno Haible  <bruno@clisp.org>
57957         doc: Improve doc regarding autopoint vs. gnulib.
57958         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57959         disable autopoint while running autoreconf.
57960         Suggested by Ralf Wildenhues.
57962 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57964         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57965         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57967 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57969         parse-duration: remove xalloc.h dependency
57970         * lib/parse-duration.c (parse_period): handle NULL return from
57971         strdup instead of calling xstrdup().
57972         * modules/parse-duration: remove "xalloc" dependency
57974 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57976         bootstrap: honor m4_base when running aclocal
57977         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57979 2011-03-02  Jim Meyering  <meyering@redhat.com>
57981         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57982         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57983         on request from Matt Booth.
57985 2011-03-01  Eric Blake  <eblake@redhat.com>
57987         test-link: work on Hurd
57988         * tests/test-link.h (test_link): Hurd rejects linking directories
57989         with EISDIR instead of the POSIX-mandated EPERM.
57991 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57993         stdio: simplify by moving files to printf-posix, sigpipe
57994         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57995         since this symbol is needed only if printf is replaced.
57996         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57997         Require gl_ASM_SYMBOL_PREFIX.
57998         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57999         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
58000         (Depends-on): Add 'raise'.
58001         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
58002         * modules/stdio (Files): Remove lib/stdio-write.c,
58003         m4/asm-underscore.m4.
58004         (Depends-on): Remove 'raise'.
58006         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
58007         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
58008         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
58009         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
58011 2011-02-28  Bruno Haible  <bruno@clisp.org>
58013         localcharset: Assume ANSI C behaviour of free().
58014         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
58015         calling free().
58016         Suggested by Simon Josefsson <simon@josefsson.org>.
58018 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
58019             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
58020             Bruno Haible  <bruno@clisp.org>  (tiny change)
58022         On Cygwin, use /proc file system instead of win32 API.
58023         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
58024         Win32 file names.
58025         (DllMain): Simplify by removing Cygwin specific code.
58026         (find_shared_library_fullname): Use Linux specific implementation also
58027         for Cygwin.
58028         (get_shared_library_fullname): Update accordingly.
58029         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
58030         Win32 file names.
58031         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
58032         Cygwin specific code.
58034 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
58035             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
58037         Fix OpenMP flag detection for various Fortran compilers.
58038         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
58039         OpenMP-conditional compilation construct, to force compile
58040         failure with missing OpenMP flag.
58041         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
58043 2011-02-25  Eric Blake  <eblake@redhat.com>
58045         strstr: expand test coverage
58046         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
58047         compilation.
58048         * tests/test-memmem.c (main): Duplicate tests.
58049         * tests/test-strcasestr.c (main): Likewise.
58050         * tests/test-c-strcasestr.c (main): Likewise.
58052 2011-02-25  Jim Meyering  <meyering@redhat.com>
58054         maint.mk: detect missing-NL-at-EOF, too
58055         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
58056         it also detects when a file lacks a newline at EOF.
58057         (require_exactly_one_NL_at_EOF_): Renamed from
58058         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
58059         since people may well have .x-sc_... file names tied to the
58060         existing name.  Suggested by Eric Blake.
58062 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58064         dirname: move m4/dos.m4 functionality into lib/dosname.h
58066         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
58067         extracts symbols from it, puts them into config.h; but it's much
58068         easier to use the symbols directly.  filename.h already does this,
58069         but it disagrees with dos.m4 in some respects.  This patch
58070         introduces a different include file dosname.h that packages up
58071         dos.m4, and then later we can work on merging filename.h and
58072         dosname.h.  Applications that need only the easy-to-configure
58073         symbols should consider including dosname.h rather than dirname.h.
58074         * NEWS: Mention incompatible changes.
58075         * m4/dos.m4: Remove.
58076         * lib/dosname.h, modules/dosname: New files.
58077         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
58078         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
58079         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
58080         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
58081         Include dosname.h, not dirname.h.
58082         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
58083         Include dosname.h, for definitions of symbols like ISSLASH
58084         that used to be in config.h.
58085         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
58086         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58087         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58088         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58089         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
58090         * modules/rmdir (Files): Likewise.
58091         * modules/stat (Files): Likewise.
58092         * modules/unlink (Files): Likewise.
58093         * modules/dirname-lgpl (Depends-on): Add dosname.
58094         * modules/lstat (Depends-on): Likewise.
58095         * modules/openat (Depends-on): Likewise.
58096         * modules/rmdir (Depends-on): Likewise.
58097         * modules/savewd (Depends-on): Likewise.
58098         * modules/stat (Depends-on): Likewise.
58099         * modules/unlink (Depends-on): Likewise.
58100         * modules/openat (Depends-on): Remove dirname-lgpl.
58101         * modules/savewd (Depends-on): Likewise.
58102         * tests/test-dirname.c: Do not use removed symbols like
58103         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
58104         the remaining symbols, e.g., ISSLASH ('\\').
58106 2011-02-25  Eric Blake  <eblake@redhat.com>
58108         strstr: revert patches that introduced bug and pessimization
58109         * lib/str-two-way.h: Add another reference.
58110         (two_way_short_needle, two_way_long_needle): Revert changes from
58111         2011-02-24; they pessimize search speed.
58112         (critical_factorization): Partially revert changes from
58113         2010-06-22; they violate the requirement that the left half of the
58114         needle be smaller than the period of the needle.
58116 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58118         filenamecat: remove unnecessary dependency on dirname-lgpl
58119         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
58120         is no direct dependency, just an indirect one via filenamecat-lgpl.
58122         remove: remove unnecessary use of m4/dos.m4
58123         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
58124         * modules/remove (FILES): Remove m4/dos.m4.
58126         * lib/openat-proc.c: Don't include dirname.h; not needed.
58128         backupfile: remove unnecessary use of m4/dos.m4
58129         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
58130         of its symbols are used by the backupfile code.  backupfile.c does
58131         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
58132         for the rare case of programs that want all their backup file
58133         names to live within 8+3 limits, and dos.m4 doesn't address that.
58134         * modules/backupfile (Files): Remove m4/dos.m4.
58136 2011-02-24  Jim Meyering  <meyering@redhat.com>
58138         strstr: fix a bug whereby strstr would mistakenly return NULL
58139         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
58140         in period calculation.
58141         (two_way_long_needle): Likewise.
58142         The original problem was reported by Mike Stump in
58143         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
58144         Ralf Wildenhues provided the short needle and haystack.
58145         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
58146         Add a more involved test to trigger the bug in two_way_long_needle.
58148 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58150         gnulib-tool: remove use of bold display in help screen
58151         * gnulib-tool (func_usage): Do not use bold display anymore in the
58152         help screen.  That was just meant to be a temporary emphasis for a
58153         backward-incompatible change.
58155 2011-02-23  Bruno Haible  <bruno@clisp.org>
58157         Fix misindentation of preprocessor directives.
58158         * lib/argp-namefrob.h: Reindent preprocessor directives.
58159         * lib/getopt_int.h (struct _getopt_data): Likewise.
58160         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
58161         * lib/vasnprintf.c (decode_long_double): Likewise.
58162         * tests/test-argmatch.c: Insert blank lines, for clarity.
58163         * tests/test-exclude.c: Likewise.
58165 2011-02-22  Bruno Haible  <bruno@clisp.org>
58167         ioctl: Fix for MacOS X in 64-bit mode.
58168         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
58169         value.
58170         Suggested by Eric Blake.
58171         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58173 2011-02-22  Jim Meyering  <meyering@redhat.com>
58175         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58176         * Makefile (sc_cpp_indent_check): Don't limit the check to files
58177         in lib/.
58179 2011-02-22  Eric Blake  <eblake@redhat.com>
58181         maint: avoid any CDPATH issue
58182         * Makefile (sc_cpp_indent_check): Anchor cd argument.
58184         maint: adjust cpp indentation for my modules, as well
58185         * Makefile (sc_cpp_indent_check): Add my name.
58186         * lib/fbufmode.c: Filter through cppi.
58187         * lib/fpurge.c: Likewise.
58188         * lib/freadable.c: Likewise.
58189         * lib/freading.c: Likewise.
58190         * lib/fwritable.c: Likewise.
58191         * lib/fwriting.c: Likewise.
58192         * lib/sigaction.c: Likewise.
58194 2011-02-22  Jim Meyering  <meyering@redhat.com>
58196         maint: adjust cpp indentation to reflect nesting depth
58197         I.e., in a block of code that begins with an unnested "#if",
58198         put one space between the "#" in column 1 and following token.
58199         For example,
58200         -#include <sys/vfs.h>
58201         +# include <sys/vfs.h>
58202         Do this only in .c files that are part of a module I maintain.
58203         * lib/linkat.c: Filter through cppi.
58204         * lib/nanosleep.c: Likewise.
58205         * lib/openat.c: Likewise.
58206         * lib/openat-die.c: Likewise.
58207         * lib/dup3.c: Likewise.
58208         * lib/fchownat.c: Likewise.
58209         * lib/flock.c: Likewise.
58210         * lib/fsync.c: Likewise.
58211         * lib/fts.c: Likewise.
58212         * lib/getpass.c: Likewise.
58213         * lib/gettimeofday.c: Likewise.
58214         * lib/userspec.c: Likewise.
58215         * Makefile (sc_cpp_indent_check): New rule, to check this.
58217 2011-02-22  Bruno Haible  <bruno@clisp.org>
58219         New module 'wctomb'.
58220         * lib/stdlib.in.h (wctomb): New declaration.
58221         * lib/wctomb.c: New file.
58222         * lib/wctomb-impl.h: New file.
58223         * m4/wctomb.m4: New file.
58224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
58225         REPLACE_WCTOMB.
58226         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
58227         REPLACE_WCTOMB.
58228         * modules/wctomb: New file.
58229         * tests/test-stdlib-c++.cc: Test signature of wctomb.
58230         * doc/posix-functions/wctomb.texi: Mention the new module.
58231         * modules/wctob (Depends-on): Add wctomb.
58233 2011-02-22  Bruno Haible  <bruno@clisp.org>
58235         New module 'mbtowc'.
58236         * lib/stdlib.in.h (mbtowc): New declaration.
58237         * lib/mbtowc.c: New file.
58238         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
58239         * m4/mbtowc.m4: New file.
58240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
58241         REPLACE_MBTOWC.
58242         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
58243         REPLACE_MBTOWC.
58244         * modules/mbtowc: New file.
58245         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
58246         * doc/posix-functions/mbtowc.texi: Mention the new module.
58247         * modules/btowc (Depends-on): Add mbtowc.
58249 2011-02-22  Bruno Haible  <bruno@clisp.org>
58251         wcrtomb: Add more tests for native Windows platforms.
58252         * tests/test-wcrtomb-w32-1.sh: New file.
58253         * tests/test-wcrtomb-w32-2.sh: New file.
58254         * tests/test-wcrtomb-w32-3.sh: New file.
58255         * tests/test-wcrtomb-w32-4.sh: New file.
58256         * tests/test-wcrtomb-w32-5.sh: New file.
58257         * tests/test-wcrtomb-w32.c: New file.
58258         * modules/wcrtomb-tests (Files): Add them.
58259         (Makefile.am): Arrange to run these tests.
58260         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
58261         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
58263 2011-02-20  Bruno Haible  <bruno@clisp.org>
58265         wcrtomb: Enhance test.
58266         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
58268 2011-02-20  Bruno Haible  <bruno@clisp.org>
58270         mbrtowc: Tiny optimization.
58271         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
58273 2011-02-20  Jim Meyering  <meyering@redhat.com>
58275         test-exclude.c: remove unmatched #endif
58276         * tests/test-exclude.c: Remove stray #endif, left over from
58277         the change of a week ago.
58279 2011-02-19  Jim Meyering  <meyering@redhat.com>
58281         git-version-gen: skip "-dirty" check when appropriate
58282         * build-aux/git-version-gen: Don't run any git commands when the
58283         version string comes from .tarball-version.  Prior to this, we
58284         would run git update-index --refresh even from a just-unpacked
58285         tarball directory, and that could affect a .git/ directory in a
58286         parent of the build directory.  Reported by Mike Frysinger.
58288 2011-02-19  Bruno Haible  <bruno@clisp.org>
58290         unictype/property-byname: Reduce the size of the 'data' segment.
58291         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
58293 2011-02-19  Bruno Haible  <bruno@clisp.org>
58295         unictype/scripts: Reduce the size of the 'data' segment.
58296         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
58297         '%pic'.
58298         * lib/unictype/scripts_byname.gperf: Regenerated.
58300 2011-02-19  Bruno Haible  <bruno@clisp.org>
58302         stdint: Update documentation.
58303         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
58305 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
58307         stdint: omit redundant check for wchar.h
58308         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
58309         always tests whether wchar.h exists, so remove the now-redundant test.
58311 2011-02-18  Bruno Haible  <bruno@clisp.org>
58313         stdint: Cut dependency to module 'wchar'.
58314         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
58315         include the necessary prerequisites.
58316         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
58317         * modules/stdint (Depends-on): Remove wchar.
58318         (Makefile.am): Substitute HAVE_WCHAR_H.
58319         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
58321 2011-02-18  Eric Blake  <eblake@redhat.com>
58323         longlong: skip, rather than fail, on cross-compilation
58324         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
58325         when cross-compiling; regression from 2011-02-16.
58327 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58329         * NEWS: Mention 2011-02-08 change to stdlib.
58331 2011-02-17  Bruno Haible  <bruno@clisp.org>
58333         getloadavg: Add comments about platforms.
58334         * m4/getloadavg.m4: Add comment.
58335         * lib/getloadavg.c: Likewise.
58337 2011-02-17  Bruno Haible  <bruno@clisp.org>
58339         getloadavg: Fix link error on Solaris 2.6.
58340         * modules/getloadavg (Link): New section.
58341         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58342         linking test-getloadavg.
58343         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58344         getloadavg.
58346 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58348         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58349         It was 'int', but this doesn't match the IRIX 6.5 manual.
58350         Suggested by Bruno Haible in
58351         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58353 2011-02-17  Bruno Haible  <bruno@clisp.org>
58355         havelib: Fix comments.
58356         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58357         change.
58359 2011-02-17  Bruno Haible  <bruno@clisp.org>
58361         havelib: Update config.rpath.
58362         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58364 2011-02-17  Bruno Haible  <bruno@clisp.org>
58366         getloadavg test: Add some plausibility checks.
58367         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58368         is improbable.
58370 2011-02-16  Eric Blake  <eblake@redhat.com>
58372         maintainer-makefile: make syntax-check a no-op from tarballs
58373         * top/maint.mk (no-vc-detected): New rule.
58374         (local-checks-available): Use it to avoid hanging if someone tries
58375         'make syntax-check' from a tarball.  Also append to any non-syntax
58376         checks already defined in cfg.mk.
58378 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58380         longlong: tune, particularly for common case of c99
58382         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58383         or running anything if c99, or if unsigned long long int does not
58384         work.  In either case, we know the answer without further tests.
58385         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58386         it at most once, and use its results for both long long int and
58387         unsigned long long int.  This is more likely to be efficient in
58388         the common case where the program wants to check for both long
58389         long int and unsigned long long int.
58390         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58391         since the answer is already known.
58393 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58395         getloadavg: set errno
58396         * lib/getloadavg.c: Set errno when returning -1.  If no other
58397         error number looks appropriate, set it to ENOSYS if the getloadavg
58398         looks like it can't possibly ever work, ENOTSUP otherwise.
58399         Suggested by Bruno Haible in
58400         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58402         getloadavg: trim unused parts and speed up 'configure'
58403         * NEWS: Document this.
58404         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58405         always compiled if getloadavg is absent.
58406         Move test code to ...
58407         * tests/test-getloadavg.c: New file, containing previous
58408         contents of test from lib/getloadavg.c.  It also contains
58409         suggestions by Bruno Haible in
58410         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58411         * modules/getloadavg-tests: New file.
58412         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58413         Do tests in the same order as they're needed for getloadavg.c.
58414         Omit setgid-related tests that generate symbols KMEM_GROUP,
58415         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58416         Do only the tests that are needed to see whether the system has
58417         getloadavg, moving the other tests into ...
58418         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58419         NLIST_NAME_UNION; nobody should be using it.  Do not define
58420         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58421         relevant, as the user of this module shouldn't care how getloadavg
58422         is implemented.
58424         getloadavg: omit unused var
58425         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58427 2011-02-15  Jim Meyering  <meyering@redhat.com>
58429         doc: update users.txt
58430         * users.txt: Update iwhd's URL.
58432 2011-02-13  Bruno Haible  <bruno@clisp.org>
58434         Consistent macro naming for macros that use GCC __attribute__.
58435         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58436         _ATTRIBUTE_NONNULL_.
58437         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58438         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58439         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58440         ATTRIBUTE_DEPRECATED.
58441         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58442         ATTRIBUTE_NORETURN.
58443         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58444         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58445         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58446         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58447         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58448         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58449         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58450         ATTRIBUTE_SENTINEL.
58451         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58452         ATTRIBUTE_RETURN_CHECK.
58453         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
58454         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
58455         ATTRIBUTE_NORETURN.
58456         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
58457         Reported by Paul Eggert.
58459 2011-02-13  Bruno Haible  <bruno@clisp.org>
58461         Don't interfere with a program's definition of __attribute__.
58462         * lib/argp.h (__attribute__): Remove definition.
58463         (_GL_ATTRIBUTE_FORMAT): New macro.
58464         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
58465         * lib/argp-fmtstream.h (__attribute__): Remove definition.
58466         (_GL_ATTRIBUTE_FORMAT): New macro.
58467         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
58468         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
58469         GCC 3 or newer.
58470         * lib/error.h (__attribute__): Remove definition.
58471         (_GL_ATTRIBUTE_FORMAT): New macro.
58472         (error, error_at_line): Use it.
58473         * lib/hash.h (__attribute__): Remove definition.
58474         (ATTRIBUTE_WUR): Update definition. Define always.
58475         * lib/openat.h (__attribute__): Remove definition.
58476         (ATTRIBUTE_NORETURN): Update definition. Define always.
58477         * lib/sigpipe-die.h (__attribute__): Remove definition.
58478         (ATTRIBUTE_NORETURN): Update definition. Define always.
58479         * lib/vasnprintf.h (__attribute__): Remove definition.
58480         (_GL_ATTRIBUTE_FORMAT): New macro.
58481         (asnprintf, vasnprintf): Use it.
58482         * lib/xalloc.h (__attribute__): Remove definition.
58483         (ATTRIBUTE_NORETURN): Update definition. Define always.
58484         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
58485         * lib/xmemdup0.h (__attribute__): Remove definition.
58486         (ATTRIBUTE_NORETURN): Update definition. Define always.
58487         * lib/xprintf.h (__attribute__): Remove definition.
58488         (_GL_ATTRIBUTE_FORMAT): New macro.
58489         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
58490         * lib/xstrtol.h (__attribute__): Remove definition.
58491         (ATTRIBUTE_NORETURN): Update definition. Define always.
58492         * lib/xvasprintf.h (__attribute__): Remove definition.
58493         (_GL_ATTRIBUTE_FORMAT): New macro.
58494         (xasprintf, xvasprintf): Use it.
58495         * tests/test-argmatch.c (__attribute__): Remove definition.
58496         (ATTRIBUTE_NORETURN): Update definition. Define always.
58497         * tests/test-exclude.c (__attribute__): Remove definition.
58498         (ATTRIBUTE_NORETURN): Update definition. Define always.
58499         Reported by Paul Eggert.
58501 2011-02-13  Bruno Haible  <bruno@clisp.org>
58503         mbrtowc: Add more tests for native Windows platforms.
58504         * tests/test-mbrtowc-w32-1.sh: New file.
58505         * tests/test-mbrtowc-w32-2.sh: New file.
58506         * tests/test-mbrtowc-w32-3.sh: New file.
58507         * tests/test-mbrtowc-w32-4.sh: New file.
58508         * tests/test-mbrtowc-w32-5.sh: New file.
58509         * tests/test-mbrtowc-w32.c: New file.
58510         * modules/mbrtowc-tests (Files): Add them.
58511         (Makefile.am): Arrange to run these tests.
58512         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
58513         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
58515 2011-02-13  Bruno Haible  <bruno@clisp.org>
58517         mbrtowc: Work around native Windows bug.
58518         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
58519         guess when no suitable locale for testing was found.
58520         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
58522 2011-02-13  Bruno Haible  <bruno@clisp.org>
58524         mbsinit: Work around mingw bug.
58525         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
58526         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
58527         Windows.
58528         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
58530 2011-02-13  Bruno Haible  <bruno@clisp.org>
58532         mbsinit: Don't crash for a NULL argument.
58533         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
58534         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
58536 2011-02-13  Bruno Haible  <bruno@clisp.org>
58538         Don't interfere with a program's definition of __attribute__.
58539         * lib/stdio.in.h (__attribute__): Remove definition.
58540         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
58541         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
58542         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
58543         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
58544         * lib/string.in.h (__attribute__): Remove definition.
58545         Reported by Paul Eggert.
58547 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58549         stdlib: don't get in the way of non-GCC __attribute__
58550         See thread starting at
58551         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
58552         Revert previous stdlib change, installing the following instead:
58553         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
58554         to get in the way of a non-GCC compiler that supports __attribute__.
58555         (_GL_ATTRIBUTE_RETURN): New macro.
58556         (_Exit): Use it instead of __attribute__.
58558 2011-02-12  Bruno Haible  <bruno@clisp.org>
58560         quotearg test: Avoid test failure on mingw.
58561         * tests/test-quotearg.sh: Convert the locale identifier from native
58562         Windows syntax to Unix syntax.
58564 2011-02-12  Bruno Haible  <bruno@clisp.org>
58566         setlocale: Prefer gnulib's override over libintl's override.
58567         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
58568         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
58569         GNULIB_defined_setlocale is set.
58571 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58573         stdlib: support non-GCC __attribute__
58575         Fix a serious and tricky problem encountered when attempting to
58576         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
58577         5.5, but it crashed due to memory corruption on Solaris 10 with
58578         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
58579         bits that are otherwise zero.  This tagging is optional inside
58580         Emacs but is preferred and is used when __attribute__ ((__aligned
58581         (8))) works, as it does with both recent-enough GCC and with Sun C
58582         5.11.  However, Sun C 5.11 is not GCC and does not #define
58583         __GNUC__ and __GNUC_MINOR__.
58585         When I added the getloadavg module to Emacs, it brought in
58586         stdlib.in.h, which contained this fragment:
58588            #ifndef __attribute__
58589            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58590            #  define __attribute__(Spec)   /* empty */
58591            # endif
58592            #endif
58594         When files that include <stdlib.h> were compiled with Sun C 5.11,
58595         the above code disabled __attribute__ ((__aligned (8))), which
58596         caused variables to not be properly aligned, which eventually led
58597         to the pointer corruption mentioned above.  (This was a bit hard
58598         to diagnose, unfortunately.)
58600         Several "#define __attribute__(X) /* empty */" code snippets need
58601         to be eradicated from Gnulib to work with non-GCC compilers that
58602         support __attribute__.  The Autoconf way to do this is to test for
58603         each kind of attribute that we want support for, and selectively
58604         enable that in source code.
58606         Fix this problem just for stdlib.h, by adding a test for the
58607         __noreturn__ attribute, and change stdlib.in.h to use that test
58608         when needed.  This technique can be easily generalized to the
58609         other *.in.h files and attributes, and a similar technique can be
58610         used for *.h and *.c files.  This patch is enough to solve the
58611         problem for Emacs + getloadavg, and I thought I'd publish it for
58612         feedback before undertaking further, similar fixes in other
58613         modules.
58615         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
58616         because it's not needed for stdlib.h.  It merely substitutes the
58617         value directly into stdlib.h.  We may well need to #define it, or
58618         similar symbols, for other modules, but it's nice to also have an
58619         option to not #define it for applications like Emacs that do not
58620         need it.
58622         * lib/stdlib.in.h (__attribute__): Do not #define.
58623         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
58624         be defined only if the _Exit module is also used.
58625         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
58626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
58627         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
58628         platforms.
58629         * modules/_Exit (Files): Add m4/attribute.m4.
58630         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
58631         * m4/attribute.m4: New file.
58633 2011-02-12  Bruno Haible  <bruno@clisp.org>
58635         wcsrtombs: Work around bug on native Windows.
58636         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
58637         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
58638         instead of len.
58639         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
58641 2011-02-12  Bruno Haible  <bruno@clisp.org>
58643         mbsrtowcs: Work around bug on native Windows.
58644         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
58645         against mingw bug.
58646         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
58648 2011-02-12  Bruno Haible  <bruno@clisp.org>
58650         Avoid setlocale bugs in tests.
58651         * modules/btowc (Dependencies): Add setlocale.
58652         * modules/c-strcase (Dependencies): Likewise.
58653         * modules/mbmemcasecmp (Dependencies): Likewise.
58654         * modules/mbmemcasecoll (Dependencies): Likewise.
58655         * modules/mbrtowc (Dependencies): Likewise.
58656         * modules/mbscasecmp (Dependencies): Likewise.
58657         * modules/mbscasestr (Dependencies): Likewise.
58658         * modules/mbschr (Dependencies): Likewise.
58659         * modules/mbscspn (Dependencies): Likewise.
58660         * modules/mbsinit (Dependencies): Likewise.
58661         * modules/mbsncasecmp (Dependencies): Likewise.
58662         * modules/mbsnrtowcs (Dependencies): Likewise.
58663         * modules/mbspbrk (Dependencies): Likewise.
58664         * modules/mbspcasecmp (Dependencies): Likewise.
58665         * modules/mbsrchr (Dependencies): Likewise.
58666         * modules/mbsrtowcs (Dependencies): Likewise.
58667         * modules/mbsspn (Dependencies): Likewise.
58668         * modules/mbsstr (Dependencies): Likewise.
58669         * modules/nl_langinfo (Dependencies): Likewise.
58670         * modules/quotearg (Dependencies): Likewise.
58671         * modules/unicase/locale-language (Dependencies): Likewise.
58672         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58673         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58674         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58675         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58676         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58677         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58678         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58679         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58680         * modules/vasnprintf-posix (Dependencies): Likewise.
58681         * modules/wcrtomb (Dependencies): Likewise.
58682         * modules/wcsnrtombs (Dependencies): Likewise.
58683         * modules/wcsrtombs (Dependencies): Likewise.
58685 2011-02-12  Bruno Haible  <bruno@clisp.org>
58687         setlocale: Workaround native Windows bug.
58688         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58689         succeeds but sets LC_CTYPE to "C", report a failure.
58690         * tests/test-setlocale2.sh: New file.
58691         * tests/test-setlocale2.c: New file.
58692         * modules/setlocale-tests (Files): Add the new files.
58693         (Makefile.am): Enable test-setlocale2.sh test.
58694         * doc/posix-functions/setlocale.texi: Mention workaround.
58696 2011-02-11  Bruno Haible  <bruno@clisp.org>
58698         Tests for module 'setlocale'.
58699         * modules/setlocale-tests: New file.
58700         * tests/test-setlocale1.sh: New file.
58701         * tests/test-setlocale1.c: New file.
58703         New module 'setlocale'.
58704         * lib/locale.in.h (setlocale): New declaration.
58705         * lib/setlocale.c: New file, based on
58706         gettext/gettext-runtime/intl/setlocale.c.
58707         * m4/setlocale.m4: New file.
58708         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58709         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58710         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58711         REPLACE_SETLOCALE.
58712         * modules/setlocale: New file.
58713         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58714         * doc/posix-functions/setlocale.texi: Mention the new module.
58716 2011-02-11  Bruno Haible  <bruno@clisp.org>
58718         Prepare for locale dependent tests on mingw.
58719         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58720         because it has the wrong locale encoding.
58721         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58722         French_France.1252 instead of "fr".
58723         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58724         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58725         because it has the wrong locale encoding.
58726         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58727         native Windows, try Turkish_Turkey.65001.
58728         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58729         Chinese_China.54936.
58731         Prepare for locale dependent tests on mingw.
58732         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58733         differently.
58734         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58735         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58736         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58737         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58739 2011-02-11  Eric Blake  <eblake@redhat.com>
58741         strptime: avoid compiler warnings
58742         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58743         compiler warnings about dead code.
58744         Reported by Daniel P. Berrange.
58746 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58748         doc: update users.txt
58749         * users.txt: Add rcs.
58751 2011-02-10  John W. Eaton  <jwe@gnu.org>
58753         doc: update users.txt
58754         * users.txt: Add octave.
58756 2011-02-10  Jim Meyering  <meyering@redhat.com>
58758         doc: update users.txt
58759         * users.txt: Add iwhd.
58761 2011-02-09  Bruno Haible  <bruno@clisp.org>
58763         gnulib-tool: Make copyright notice adjustment more robust.
58764         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58765         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58766         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58767         License".
58768         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58770 2011-02-06  Bruno Haible  <bruno@clisp.org>
58772         New module 'towctrans'.
58773         * modules/towctrans: New file.
58774         * lib/wctype.in.h (towctrans): New declaration.
58775         * lib/towctrans.c: New file.
58776         * lib/towctrans-impl.h: New file.
58777         * m4/towctrans.m4: New file.
58778         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58779         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58780         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58781         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58782         * doc/posix-functions/towctrans.texi: Mention the new module.
58784 2011-02-06  Bruno Haible  <bruno@clisp.org>
58786         New module 'wctrans'.
58787         * modules/wctrans: New file.
58788         * lib/wctype.in.h (wctrans): New declaration.
58789         * lib/wctrans.c: New file.
58790         * lib/wctrans-impl.h: New file.
58791         * m4/wctrans.m4: New file.
58792         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58793         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58794         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58795         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58796         * doc/posix-functions/wctrans.texi: Mention the new module.
58798 2011-02-06  Bruno Haible  <bruno@clisp.org>
58800         New module 'iswctype'.
58801         * modules/iswctype: New file.
58802         * lib/wctype.in.h (iswctype): New declaration.
58803         * lib/iswctype.c: New file.
58804         * lib/iswctype-impl.h: New file.
58805         * m4/iswctype.m4: New file.
58806         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58807         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58808         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58809         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58810         * doc/posix-functions/iswctype.texi: Mention the new module and the
58811         HP-UX 11.00 problem.
58813 2011-02-06  Bruno Haible  <bruno@clisp.org>
58815         New module 'wctype'.
58816         * modules/wctype: Change to represent the wctype() substitute.
58817         * lib/wctype.in.h (wctype): New declaration.
58818         * lib/wctype.c: New file.
58819         * lib/wctype-impl.h: New file.
58820         * m4/wctype.m4: New file.
58821         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58822         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58823         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58824         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58825         * doc/posix-functions/wctype.texi: Mention the new module and the
58826         HP-UX 11.00 problem.
58828 2011-02-06  Bruno Haible  <bruno@clisp.org>
58830         wctype-h: Ensure wctype_t and wctrans_t are defined.
58831         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58832         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58833         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58834         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58835         HAVE_WCTRANS_T.
58836         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58838 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58840         flock: fix license typo
58842         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58843         omitted.
58845 2011-02-08  Bruno Haible  <bruno@clisp.org>
58847         Split large sed scripts, for HP-UX sed.
58848         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58849         to avoid HP-UX limit of 99 commands, in the near future.
58850         * modules/stdlib (Makefile.am): Likewise.
58851         * modules/unistd (Makefile.am): Likewise.
58852         * modules/wchar (Makefile.am): Likewise.
58853         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58854         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58855         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58857 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58858             Bruno Haible  <bruno@clisp.org>
58860         stdlib: improve random_r modularization
58861         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58862         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58863         you also need the random_r module to get this material right.
58864         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58865         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58866         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58868 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58870         stdlib: don't depend on stdint
58871         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58872         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58873         be independent of whether stdint.h is needed.
58874         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58875         here, instead of ...
58876         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58877         struct random_data should be using the random_r module, not just
58878         the stdlib module (which wouldn't make sense: what package needs
58879         just struct random_data without also needing random_r?).
58880         * modules/stdlib (Depends-on): Remove stdint.
58882         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58883         See the thread rooted at
58884         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58885         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58886         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58887         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58888         __VMS)); previously it was always included (via fcntl--.h).
58889         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58890         hand; this is good enough for load averages.  Also, do not use
58891         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58892         flags directly if available and don't bother otherwise.  (Packages
58893         that need the extra reliability should use the modules that define
58894         these flags on older platforms that lack them.)
58895         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58896         fcntl-safer.
58898 2011-02-08  Jim Meyering  <meyering@redhat.com>
58900         di-set.h, ino-map.h: add multiple-inclusion guard
58901         Technically, the guard is required only for ino-map.h, due to its
58902         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58903         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58904         * lib/ino-map.h: Likewise.
58906 2011-02-06  Bruno Haible  <bruno@clisp.org>
58908         iswblank: Ensure declaration on glibc systems.
58909         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58910         * modules/iswblank (Dependencies): Add 'extensions'.
58911         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58913 2011-02-06  Bruno Haible  <bruno@clisp.org>
58915         New module 'iswblank'.
58916         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58917         * modules/iswblank: New file.
58918         * modules/wctype-h (Files): Remove lib/iswblank.c.
58919         (Makefile.am): Substitute GNULIB_ISWBLANK.
58920         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58921         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58922         (gl_WCTYPE_H_DEFAULTS): New macro.
58923         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58924         * modules/iswblank-tests: New file.
58925         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58926         * tests/test-wctype-h.c (main): Remove iswblank tests.
58927         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58928         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58929         of 'wctype-h'.
58930         * NEWS: Mention the change.
58931         * modules/mbchar (Depends-on): Add iswblank.
58933 2011-02-08  Bruno Haible  <bruno@clisp.org>
58935         di-set tests: Refactor.
58936         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58937         unnecessary includes.
58938         (ASSERT): Remove macro.
58939         (main): Make C90 compliant by avoiding variable declaration after
58940         statement.
58941         * modules/di-set-tests (Files): Add tests/macros.h.
58943 2011-02-08  Bruno Haible  <bruno@clisp.org>
58945         ino-map tests: Refactor.
58946         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58947         unnecessary includes.
58948         (ASSERT): Remove macro.
58949         (main): Make C90 compliant by avoiding variable declaration after
58950         statement.
58951         * modules/ino-map-tests (Files): Add tests/macros.h.
58953 2011-02-08  Jim Meyering  <meyering@redhat.com>
58955         di-set: add "const" to a cast
58956         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58957         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58959 2011-02-06  Bruno Haible  <bruno@clisp.org>
58961         Rename module 'wctype' to 'wctype-h'.
58962         * modules/wctype-h: Renamed from modules/wctype.
58963         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58964         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58965         (Files, Depends-on, Makefile.am): Update.
58966         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58967         (Files, Makefile.am): Update.
58968         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58969         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58970         * doc/posix-headers/wctype.texi: Update.
58971         * doc/posix-functions/iswalnum.texi: Update.
58972         * doc/posix-functions/iswalpha.texi: Update.
58973         * doc/posix-functions/iswblank.texi: Update.
58974         * doc/posix-functions/iswcntrl.texi: Update.
58975         * doc/posix-functions/iswdigit.texi: Update.
58976         * doc/posix-functions/iswgraph.texi: Update.
58977         * doc/posix-functions/iswlower.texi: Update.
58978         * doc/posix-functions/iswprint.texi: Update.
58979         * doc/posix-functions/iswpunct.texi: Update.
58980         * doc/posix-functions/iswspace.texi: Update.
58981         * doc/posix-functions/iswupper.texi: Update.
58982         * doc/posix-functions/iswxdigit.texi: Update.
58983         * doc/posix-functions/towlower.texi: Update.
58984         * doc/posix-functions/towupper.texi: Update.
58985         * NEWS: Mention the change.
58986         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58987         * modules/mbchar (Dependencies): Likewise.
58988         * modules/mbswidth (Dependencies): Likewise.
58989         * modules/quotearg (Dependencies): Likewise.
58990         * modules/regex (Dependencies): Likewise.
58991         * modules/wcscasecmp (Dependencies): Likewise.
58992         * modules/wcsncasecmp (Dependencies): Likewise.
58993         * modules/wcwidth (Dependencies): Likewise.
58995 2011-02-06  Bruno Haible  <bruno@clisp.org>
58997         New module 'wcswidth'.
58998         * modules/wcswidth: New file.
58999         * lib/wchar.in.h (wcswidth): New declaration.
59000         * lib/wcswidth.c: New file.
59001         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
59002         * m4/wcswidth.m4: New file.
59003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
59004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
59005         REPLACE_WCSWIDTH.
59006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
59007         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
59008         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
59009         * doc/posix-functions/wcswidth.texi: Mention the new module.
59011 2011-02-06  Bruno Haible  <bruno@clisp.org>
59013         New module 'wcstok'.
59014         * modules/wcstok: New file.
59015         * lib/wchar.in.h (wcstok): New declaration.
59016         * lib/wcstok.c: New file.
59017         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
59018         * m4/wcstok.m4: New file.
59019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
59020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
59021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
59022         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
59023         * doc/posix-functions/wcstok.texi: Mention the new module.
59025 2011-02-06  Bruno Haible  <bruno@clisp.org>
59027         New module 'wcsstr'.
59028         * modules/wcsstr: New file.
59029         * lib/wchar.in.h (wcsstr): New declaration.
59030         * lib/wcsstr.c: New file.
59031         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
59032         * m4/wcsstr.m4: New file.
59033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
59034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
59035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
59036         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
59037         * doc/posix-functions/wcsstr.texi: Mention the new module.
59039 2011-02-06  Bruno Haible  <bruno@clisp.org>
59041         New module 'wcspbrk'.
59042         * modules/wcspbrk: New file.
59043         * lib/wchar.in.h (wcspbrk): New declaration.
59044         * lib/wcspbrk.c: New file.
59045         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
59046         * m4/wcspbrk.m4: New file.
59047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
59048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
59049         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
59050         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
59051         * doc/posix-functions/wcspbrk.texi: Mention the new module.
59053 2011-02-06  Bruno Haible  <bruno@clisp.org>
59055         New module 'wcsspn'.
59056         * modules/wcsspn: New file.
59057         * lib/wchar.in.h (wcsspn): New declaration.
59058         * lib/wcsspn.c: New file.
59059         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
59060         * m4/wcsspn.m4: New file.
59061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
59062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
59063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
59064         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
59065         * doc/posix-functions/wcsspn.texi: Mention the new module.
59067 2011-02-06  Bruno Haible  <bruno@clisp.org>
59069         New module 'wcscspn'.
59070         * modules/wcscspn: New file.
59071         * lib/wchar.in.h (wcscspn): New declaration.
59072         * lib/wcscspn.c: New file.
59073         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
59074         * m4/wcscspn.m4: New file.
59075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
59076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
59077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
59078         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
59079         * doc/posix-functions/wcscspn.texi: Mention the new module.
59081 2011-02-06  Bruno Haible  <bruno@clisp.org>
59083         New module 'wcsrchr'.
59084         * modules/wcsrchr: New file.
59085         * lib/wchar.in.h (wcsrchr): New declaration.
59086         * lib/wcsrchr.c: New file.
59087         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
59088         * m4/wcsrchr.m4: New file.
59089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
59090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
59091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
59092         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
59093         * doc/posix-functions/wcsrchr.texi: Mention the new module.
59095 2011-02-06  Bruno Haible  <bruno@clisp.org>
59097         New module 'wcschr'.
59098         * modules/wcschr: New file.
59099         * lib/wchar.in.h (wcschr): New declaration.
59100         * lib/wcschr.c: New file.
59101         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
59102         * m4/wcschr.m4: New file.
59103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
59104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
59105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
59106         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
59107         * doc/posix-functions/wcschr.texi: Mention the new module.
59109 2011-02-06  Bruno Haible  <bruno@clisp.org>
59111         New module 'wcsdup'.
59112         * modules/wcsdup: New file.
59113         * lib/wchar.in.h (wcsdup): New declaration.
59114         * lib/wcsdup.c: New file.
59115         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
59116         * m4/wcsdup.m4: New file.
59117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
59118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
59119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
59120         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
59121         * doc/posix-functions/wcsdup.texi: Mention the new module.
59123 2011-02-06  Bruno Haible  <bruno@clisp.org>
59125         New module 'wcsxfrm'.
59126         * modules/wcsxfrm: New file.
59127         * lib/wchar.in.h (wcsxfrm): New declaration.
59128         * lib/wcsxfrm.c: New file.
59129         * lib/wcsxfrm-impl.h: New file.
59130         * m4/wcsxfrm.m4: New file.
59131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
59132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
59133         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
59134         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
59135         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
59137 2011-02-06  Bruno Haible  <bruno@clisp.org>
59139         New module 'wcscoll'.
59140         * modules/wcscoll: New file.
59141         * lib/wchar.in.h (wcscoll): New declaration.
59142         * lib/wcscoll.c: New file.
59143         * lib/wcscoll-impl.h: New file.
59144         * m4/wcscoll.m4: New file.
59145         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
59146         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
59147         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
59148         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
59149         * doc/posix-functions/wcscoll.texi: Mention the new module.
59151 2011-02-06  Bruno Haible  <bruno@clisp.org>
59153         New module 'wcsncasecmp'.
59154         * modules/wcsncasecmp: New file.
59155         * lib/wchar.in.h (wcsncasecmp): New declaration.
59156         * lib/wcsncasecmp.c: New file.
59157         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
59158         * m4/wcsncasecmp.m4: New file.
59159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
59160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
59161         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
59162         HAVE_WCSNCASECMP.
59163         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
59164         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
59166 2011-02-06  Bruno Haible  <bruno@clisp.org>
59168         New module 'wcscasecmp'.
59169         * modules/wcscasecmp: New file.
59170         * lib/wchar.in.h (wcscasecmp): New declaration.
59171         * lib/wcscasecmp.c: New file.
59172         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59173         * m4/wcscasecmp.m4: New file.
59174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59176         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
59177         HAVE_WCSCASECMP.
59178         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
59179         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
59181 2011-02-05  Bruno Haible  <bruno@clisp.org>
59183         New module 'wcsncmp'.
59184         * modules/wcsncmp: New file.
59185         * lib/wchar.in.h (wcsncmp): New declaration.
59186         * lib/wcsncmp.c: New file.
59187         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
59188         * m4/wcsncmp.m4: New file.
59189         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
59190         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
59191         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
59192         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
59193         * doc/posix-functions/wcsncmp.texi: Mention the new module.
59195 2011-02-05  Bruno Haible  <bruno@clisp.org>
59197         New module 'wcscmp'.
59198         * modules/wcscmp: New file.
59199         * lib/wchar.in.h (wcscmp): New declaration.
59200         * lib/wcscmp.c: New file.
59201         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
59202         * m4/wcscmp.m4: New file.
59203         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
59204         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
59205         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
59206         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
59207         * doc/posix-functions/wcscmp.texi: Mention the new module.
59209 2011-02-05  Bruno Haible  <bruno@clisp.org>
59211         New module 'wcsncat'.
59212         * modules/wcsncat: New file.
59213         * lib/wchar.in.h (wcsncat): New declaration.
59214         * lib/wcsncat.c: New file.
59215         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
59216         * m4/wcsncat.m4: New file.
59217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
59218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
59219         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
59220         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
59221         * doc/posix-functions/wcsncat.texi: Mention the new module.
59223 2011-02-05  Bruno Haible  <bruno@clisp.org>
59225         New module 'wcscat'.
59226         * modules/wcscat: New file.
59227         * lib/wchar.in.h (wcscat): New declaration.
59228         * lib/wcscat.c: New file.
59229         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
59230         * m4/wcscat.m4: New file.
59231         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
59232         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
59233         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
59234         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
59235         * doc/posix-functions/wcscat.texi: Mention the new module.
59237 2011-02-05  Bruno Haible  <bruno@clisp.org>
59239         New module 'wcpncpy'.
59240         * modules/wcpncpy: New file.
59241         * lib/wchar.in.h (wcpncpy): New declaration.
59242         * lib/wcpncpy.c: New file.
59243         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
59244         * m4/wcpncpy.m4: New file.
59245         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
59246         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
59247         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
59248         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
59249         * doc/posix-functions/wcpncpy.texi: Mention the new module.
59251 2011-02-05  Bruno Haible  <bruno@clisp.org>
59253         New module 'wcsncpy'.
59254         * modules/wcsncpy: New file.
59255         * lib/wchar.in.h (wcsncpy): New declaration.
59256         * lib/wcsncpy.c: New file.
59257         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
59258         * m4/wcsncpy.m4: New file.
59259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
59260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
59261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
59262         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
59263         * doc/posix-functions/wcsncpy.texi: Mention the new module.
59265 2011-02-05  Bruno Haible  <bruno@clisp.org>
59267         New module 'wcpcpy'.
59268         * modules/wcpcpy: New file.
59269         * lib/wchar.in.h (wcpcpy): New declaration.
59270         * lib/wcpcpy.c: New file.
59271         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
59272         * m4/wcpcpy.m4: New file.
59273         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
59274         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
59275         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
59276         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
59277         * doc/posix-functions/wcpcpy.texi: Mention the new module.
59279 2011-02-05  Bruno Haible  <bruno@clisp.org>
59281         New module 'wcscpy'.
59282         * modules/wcscpy: New file.
59283         * lib/wchar.in.h (wcscpy): New declaration.
59284         * lib/wcscpy.c: New file.
59285         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
59286         * m4/wcscpy.m4: New file.
59287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
59288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
59289         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
59290         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
59291         * doc/posix-functions/wcscpy.texi: Mention the new module.
59293 2011-02-05  Bruno Haible  <bruno@clisp.org>
59295         New module 'wcsnlen'.
59296         * modules/wcsnlen: New file.
59297         * lib/wchar.in.h (wcsnlen): New declaration.
59298         * lib/wcsnlen.c: New file.
59299         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
59300         * m4/wcsnlen.m4: New file.
59301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
59302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
59303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
59304         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
59305         * doc/posix-functions/wcsnlen.texi: Mention the new module.
59307 2011-02-05  Bruno Haible  <bruno@clisp.org>
59309         New module 'wcslen'.
59310         * modules/wcslen: New file.
59311         * lib/wchar.in.h (wcslen): New declaration.
59312         * lib/wcslen.c: New file.
59313         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
59314         * m4/wcslen.m4: New file.
59315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
59316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
59317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
59318         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
59319         * doc/posix-functions/wcslen.texi: Mention the new module.
59321 2011-02-05  Bruno Haible  <bruno@clisp.org>
59323         New module 'wmemset'.
59324         * modules/wmemset: New file.
59325         * lib/wchar.in.h (wmemset): New declaration.
59326         * lib/wmemset.c: New file.
59327         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
59328         * m4/wmemset.m4: New file.
59329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
59330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
59331         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
59332         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
59333         * doc/posix-functions/wmemset.texi: Mention the new module.
59335 2011-02-05  Bruno Haible  <bruno@clisp.org>
59337         New module 'wmemmove'.
59338         * modules/wmemmove: New file.
59339         * lib/wchar.in.h (wmemmove): New declaration.
59340         * lib/wmemmove.c: New file.
59341         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59342         * m4/wmemmove.m4: New file.
59343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59345         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59346         HAVE_WMEMMOVE.
59347         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59348         * doc/posix-functions/wmemmove.texi: Mention the new module.
59350 2011-02-05  Bruno Haible  <bruno@clisp.org>
59352         New module 'wmemcpy'.
59353         * modules/wmemcpy: New file.
59354         * lib/wchar.in.h (wmemcpy): New declaration.
59355         * lib/wmemcpy.c: New file.
59356         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59357         * m4/wmemcpy.m4: New file.
59358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59360         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59361         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59362         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59364 2011-02-05  Bruno Haible  <bruno@clisp.org>
59366         New module 'wmemcmp'.
59367         * modules/wmemcmp: New file.
59368         * lib/wchar.in.h (wmemcmp): New declaration.
59369         * lib/wmemcmp.c: New file.
59370         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59371         * m4/wmemcmp.m4: New file.
59372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59374         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59375         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59376         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59378 2011-02-07  Jim Meyering  <meyering@redhat.com>
59380         di-set, ino-map: new modules, from coreutils
59381         * lib/di-set.c: New file.
59382         * lib/di-set.h: Likewise.
59383         * lib/ino-map.c: Likewise.
59384         * lib/ino-map.h: Likewise.
59385         * modules/di-set: Likewise.
59386         * modules/di-set-tests: Likewise.
59387         * modules/ino-map: Likewise.
59388         * modules/ino-map-tests: Likewise.
59389         * tests/test-di-set.c: Likewise.
59390         * tests/test-ino-map.c: Likewise.
59392 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59394         getloadavg: merge minor changes from Emacs
59396         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59397         (getloadavg): Use memset, not bzero.
59399         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59400         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59401         clash (bug#86).
59403 2010-11-14  Bruno Haible  <bruno@clisp.org>
59405         Allow multiple gnulib generated replacements to coexist.
59406         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59407         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59408         * lib/langinfo.in.h (nl_item): Likewise.
59409         * lib/math.in.h (_NaN, NAN): Likewise.
59410         * lib/netdb.in.h (struct addrinfo): Likewise.
59411         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59412         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59413         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59414         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59415         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59416         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59417         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59418         pthread_mutexattr_init, pthread_mutexattr_settype,
59419         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59420         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59421         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59422         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59423         * lib/sched.in.h (struct sched_param): Likewise.
59424         * lib/se-selinux.in.h (security_class_t, security_context_t,
59425         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59426         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59427         lsetfilecon, fsetfilecon, security_check_context,
59428         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59429         Likewise.
59430         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59431         Likewise.
59432         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59433         _gl_function_taking_int_returning_void_t, union sigval,
59434         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59435         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59436         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59437         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59438         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59439         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59440         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59441         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59442         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59443         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59444         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59445         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59446         socklen_t, rpl_fd_isset): Likewise.
59447         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59448         * lib/sys_time.in.h (struct timeval): Likewise.
59449         * lib/sys_times.in.h (struct tms): Likewise.
59450         * lib/sys_utsname.in.h (struct utsname):
59451         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59452         * lib/unistd.in.h (getpagesize): Likewise.
59453         * lib/wchar.in.h (mbstate_t): Likewise.
59454         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59455         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
59456         towlower, towupper): Likewise.
59457         Reported by Sam Steingold <sds@gnu.org>.
59459 2011-02-05  Eric Blake  <eblake@redhat.com>
59461         unsetenv: work around Haiku issues
59462         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
59463         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
59465 2010-12-30  Bruce Korb  <bkorb@gnu.org>
59467         libposix: avoid calling error() within libposix
59468         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
59469         is defined.
59471 2011-02-05  Eric Blake  <eblake@redhat.com>
59473         strerror_r-posix: port to cygwin
59474         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
59475         implementation.
59476         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
59477         * tests/test-strerror_r.c (main): Fix test.
59478         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
59479         issue.
59481 2011-02-05  Bruno Haible  <bruno@clisp.org>
59483         New module 'wmemchr'.
59484         * modules/wmemchr: New file.
59485         * lib/wchar.in.h (wmemchr): New declaration.
59486         * lib/wmemchr.c: New file.
59487         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
59488         * m4/wmemchr.m4: New file.
59489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
59490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
59491         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
59492         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
59493         * doc/posix-functions/wmemchr.texi: Mention the new module.
59495 2011-02-04  Eric Blake  <eblake@redhat.com>
59497         fdopendir: detect FreeBSD bug
59498         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
59499         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
59501 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59503         stdbool: do not define HAVE_STDBOOL_H
59504         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
59505         AC_HEADER_STDBOOL.  All uses changed.  Do not define
59506         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
59507         imported from the latest Autoconf git.  It was motivated by Emacs,
59508         which uses gnulib but does not need HAVE_STDBOOL_H.
59510 2011-02-04  Bruno Haible  <bruno@clisp.org>
59512         wcsnrtombs: Prepare for new module wwcsnrtombs.
59513         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
59514         * lib/wcsnrtombs.c: Include it.
59515         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
59517         wcsrtombs: Prepare for new module wwcsrtombs.
59518         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
59519         * lib/wcsrtombs.c: Include it.
59520         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
59522         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
59523         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
59524         * lib/mbsnrtowcs.c: Include it.
59525         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
59527         mbsrtowcs: Prepare for new module mbsrtowwcs.
59528         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
59529         * lib/mbsrtowcs.c: Include it.
59530         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
59532 2011-02-04  Bruno Haible  <bruno@clisp.org>
59534         vasnprintf: Reduce use of malloc for small format strings.
59535         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
59536         (arguments): Add room for the first 7 arguments.
59537         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
59538         (char_directives, u8_directives, u16_directives, u32_directives): Add
59539         room for the first 7 directives.
59540         * lib/printf-parse.c: Include <string.h>.
59541         (PRINTF_PARSE): Change memory handling code so that it uses the first
59542         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
59543         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
59544         Reported by Pádraig Brady <P@draigbrady.com>.
59546 2011-01-31  Eric Blake  <eblake@redhat.com>
59548         dup2: work around Haiku bug
59549         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
59550         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
59551         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59552         * tests/test-dup2.c (main): Enhance test.
59554 2011-01-31  Simon Josefsson  <simon@josefsson.org>
59556         doc: off_t is not available in eglibc 2.11.2 stdio.h.
59557         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
59558         declared by eglibc 2.11.2.
59559         * lib/stdio.in.h: Likewise.
59561 2011-01-31  Eric Blake  <eblake@redhat.com>
59563         ignore-value: add missing test dependency
59564         * tests/test-ignore-value.c: Revert previous change; stdio.h
59565         provides off_t.
59566         * modules/ignore-value-tests (Depends-on): Add missing dependency.
59568 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
59570         mktime: clarify long_int width checking
59571         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
59572         the top level, to make it clearer that the assumption about
59573         long_int width is being checked.  See
59574         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
59576 2011-01-30  Simon Josefsson  <simon@josefsson.org>
59578         ignore-value: Fix self-test.
59579         * tests/test-ignore-value.c: Include sys/types.h for off_t.
59581 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59583         TYPE_MAXIMUM: avoid theoretically undefined behavior
59584         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
59585         negative number, which the C Standard says has undefined behavior.
59586         In practice this is not a problem, but might as well do it by the book.
59587         Reported by Rich Felker and Eric Blake; see
59588         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59589         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59590         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59592         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59593         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59594         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59596         mktime: #undef mktime before #defining it
59597         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
59599         mktime: systematically normalize tm_isdst comparisons
59600         * lib/mktime.c (isdst_differ): New function.
59601         (__mktime_internal): Use it systematically for all isdst comparisons.
59602         This completes the fix for libc BZ #6723, and removes the need for
59603         normalizing tm_isdst.  See
59604         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
59605         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
59607         mktime: fix some integer overflow issues and sidestep the rest
59609         This was prompted by a bug report by Benjamin Lindner for MinGW
59610         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
59611         His bug is due to signed integer overflow (0 - INT_MIN), and I
59612         I scanned through mktime.c looking for other integer overflow
59613         problems, fixing all the bugs I found.
59615         Although the C Standard says the resulting code is still not safe
59616         in the presence of integer overflow, in practice it should be good
59617         enough for all real-world two's-complement implementations, except
59618         for debugging environments that deliberately trap on integer
59619         overflow (e.g., gcc -ftrapv).
59621         * lib/mktime.c (WRAPV): New macro.
59622         (SHR): Also check that long_int and time_t shift right in the
59623         usual way, before using the fast-but-unportable method.
59624         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
59625         used.  The code already assumed two's complement, so there's
59626         no need to test for alternatives.  All uses removed.
59627         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
59628         the C standard.  Problem reported by Rich Felker in
59629         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
59630         (twos_complement_arithmetic): Also check long_int and time_t.
59631         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
59632         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
59633         (__mktime_internal): Avoid integer overflow with unary subtraction
59634         in two instances where -1 - X is an adequate replacement for -X,
59635         since the calculations are approximate.
59637 2011-01-29  Eric Blake  <eblake@redhat.com>
59639         mktime: avoid infinite loop
59640         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
59641         type; behavior is still undefined but portable to all known targets.
59642         Reported by Rich Felker.
59644 2011-01-29  Simon Josefsson  <simon@josefsson.org>
59646         rename, unlink, same-inode: Relicense.
59647         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
59648         * modules/unlink (License): Likewise.
59649         * modules/same-inode (License): Likewise.
59651 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59653         mktime: avoid problems on NetBSD 5 / i386
59654         * lib/mktime.c (long_int): New type.  This works around a problem
59655         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
59656         but time_t is 64 bits, and where I expect the existing code is
59657         wrong in some cases.
59658         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
59659         (ydhms_diff): Bring back the compile-time check for wide-enough
59660         year and yday.
59662         mktime: fix misspelling in comment
59663         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59664         This merges all recent glibc changes of importance.
59666 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59668         move-if-change: cope with concurrent mv of identical file.
59669         * build-aux/move-if-change (CMPPROG): Accept environment
59670         variable as an override for `cmp'.
59671         (usage): Document CMPPROG.
59672         Adjust comparison to drop stdout.  Cope with failure of mv if
59673         the target file exists and is identical to the source, for
59674         parallel builds.
59675         Report from H.J. Lu against binutils in PR binutils/12283.
59677 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59679         * users.txt: Mention sharutils.
59681 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59683         * users.txt: Mention OATH Toolkit.
59685 2011-01-27  Bruno Haible  <bruno@clisp.org>
59687         Prepare for supporting FreeBSD 10.
59688         * build-aux/config.libpath: Remove handling of freebsd1*.
59690 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59692         Prepare for supporting FreeBSD 10.
59693         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59694         match FreeBSD 10.0.
59696 2011-01-27  Bruno Haible  <bruno@clisp.org>
59698         vma-iter, get-rusage-as: Add OpenBSD support.
59699         * modules/vma-iter (configure.ac): Test for mquery.
59700         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59701         * lib/vma-iter.c: Include <sys/mman.h>.
59702         (vma_iterate): Add an implementation based on mquery().
59703         * lib/resource-ext.h (get_rusage_as): Update comments.
59704         * lib/get-rusage-as.c: Likewise.
59705         * lib/get-rusage-data.c: Likewise.
59707 2011-01-26  Karl Berry  <karl@gnu.org>
59709         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59710         variables to make it easier to override the makeinfo program used.
59712 2011-01-26  Eric Blake  <eblake@redhat.com>
59714         fcntl: work around Haiku F_DUPFD bugs
59715         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59716         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59717         cloexec bit on duplication.
59718         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59720 2011-01-26  Bruno Haible  <bruno@clisp.org>
59722         Enable memory leak tests on AIX.
59723         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59724         * tests/test-fprintf-posix3.c (main): Likewise.
59726 2011-01-26  Bruno Haible  <bruno@clisp.org>
59728         Tests for module 'get-rusage-data'.
59729         * modules/get-rusage-data-tests: New file.
59730         * tests/test-get-rusage-data.c: New file.
59732         New module 'get-rusage-data'.
59733         * lib/resource-ext.h (get_rusage_data): New declaration.
59734         * lib/get-rusage-data.c: New file.
59735         * modules/get-rusage-data: New file.
59737 2011-01-25  Bruno Haible  <bruno@clisp.org>
59739         get-rusage-as: Allow for easier testing.
59740         * lib/resource-ext.h (get_rusage_as): Add comment.
59741         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59742         (main): New function for interactive testing.
59744 2011-01-25  Bruno Haible  <bruno@clisp.org>
59746         vma-iter: Treat Haiku like BeOS.
59747         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59748         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59750 2011-01-25  Eric Blake  <eblake@redhat.com>
59752         c-stack: fix regression on cygwin when libsigsegv is present
59753         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59755 2011-01-24  Bruno Haible  <bruno@clisp.org>
59757         vma-iter: Avoid empty intervals.
59758         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59759         on an empty interval.
59761 2011-01-24  Jim Meyering  <meyering@redhat.com>
59763         u64: remove unnecessary #include
59764         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59766 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59768         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59769         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59771 2011-01-23  Bruno Haible  <bruno@clisp.org>
59773         New module 'vma-iter'.
59774         * lib/vma-iter.h: New file.
59775         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59776         * modules/vma-iter: New file.
59777         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59778         for get_rusage_as_via_iterator.
59779         (vma_iterate_callback): New function.
59780         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59781         * modules/get-rusage-as (Depends-on): Add vma-iter.
59783 2011-01-23  Bruno Haible  <bruno@clisp.org>
59785         uninorm: Tweak includes.
59786         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59787         Reported by Jim Meyering.
59789 2011-01-23  Bruno Haible  <bruno@clisp.org>
59791         get-rusage-as: Improve on NetBSD.
59792         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59793         /proc, like on FreeBSD.
59795 2011-01-23  Jim Meyering  <meyering@redhat.com>
59797         xreadlink.h: remove unnecessary #include
59798         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59800         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59801         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59803 2011-01-23  Bruno Haible  <bruno@clisp.org>
59805         get-rusage-as: Fix bug.
59806         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59807         original limit when aborting the first loop.
59809 2011-01-23  Bruno Haible  <bruno@clisp.org>
59811         wctype: Ensure valid C syntax.
59812         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59813         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59815 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59817         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59819         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59820         as they are needed only for configure's test case.
59821         This removes two unnecessary symbols from config.h.
59823         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59824         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59826         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59827         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59828         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59829         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59830         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59831         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59832         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59833         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59834         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59835         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59836         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59837         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59838         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59839         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59840         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59842 2011-01-21  Eric Blake  <eblake@redhat.com>
59844         maintainer-makefile: work with older git for submodule check
59845         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59846         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59847         Reported by Matthias Bolte.
59849         bootstrap: minor portability fixes
59850         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59851         (usage): Omit leading capital and trailing . on help phrases, per
59852         GNU Coding Standards.
59853         (check_versions, top level): Prefix messages with script name.
59855 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59857         bootstrap: support --no-git option
59858         * build-aux/bootstrap: Add --no-git option, to be used when
59859         --gnulib-srcdir points to the exact desired checkout.
59861 2011-01-21  Eric Blake  <eblake@redhat.com>
59863         strerror_r-posix: work with glibc 2.13
59864         * lib/strerror_r.c (strerror_r): Fix return type.
59866 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59867             Bruno Haible  <bruno@clisp.org>
59869         uN_strstr: New unit tests.
59870         * modules/unistr/u8-strstr-tests: New file.
59871         * modules/unistr/u16-strstr-tests: New file.
59872         * modules/unistr/u32-strstr-tests: New file.
59873         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59874         * tests/unistr/test-u8-strstr.c: New file.
59875         * tests/unistr/test-u16-strstr.c: New file.
59876         * tests/unistr/test-u32-strstr.c: New file.
59878 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59879             Bruno Haible  <bruno@clisp.org>
59881         Make uN_strstr functions O(n) worst-case.
59882         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59883         16-bit and 32-bit unit cases, use the unibyte algorithm from
59884         lib/mbsstr.c.
59885         * lib/unistr/u8-strstr.c: Include <string.h>.
59886         (UNIT_IS_UINT8_T): New macro.
59887         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59888         (U_STRLEN, U_STRNLEN): New macros.
59889         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59890         (U_STRLEN, U_STRNLEN): New macros.
59891         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59892         (configure.ac): Update required libunistring version.
59893         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59894         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59895         malloca.
59896         (configure.ac): Update required libunistring version.
59897         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59898         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59899         malloca.
59900         (configure.ac): Update required libunistring version.
59902 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59903             Bruno Haible  <bruno@clisp.org>
59905         Prepare for faster uN_strstr functions.
59906         * lib/str-kmp.h: Support definable UNITs.
59907         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59908         needle_len argument.
59909         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59910         * lib/mbscasestr.c (mbscasestr): Likewise.
59912 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59914         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59915         * tests/test-malloca.c (main): Unset the environment variable
59916         to greatly speed up the test.
59917         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59918         * modules/malloca-tests: Depend on unsetenv.
59920 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59922         ignore-value: remove stdint dependency
59923         * lib/ignore-value.h: Remove <stdint.h>
59924         * modules/ignore-value: Remove stdint dependency.
59926 2011-01-21  Jim Meyering  <meyering@redhat.com>
59928         maint.mk: adjust variable name to be consistent with other gl_ vars
59929         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59930         to be lower case.
59932 2011-01-20  Jim Meyering  <meyering@redhat.com>
59934         maint.mk: make "check" depend on public-submodule-commit by default
59935         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59937 2011-01-20  Bruno Haible  <bruno@clisp.org>
59939         mbfile, mbiter: Complete change from 2008-12-21.
59940         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59941         * m4/mbiter.m4 (gl_MBITER): Likewise.
59943 2011-01-20  Jim Meyering  <meyering@redhat.com>
59945         init.sh: insert space between each function name and "()"
59946         * tests/init.sh: Make it a little easier to see that a function's
59947         name is "warn_", and not "warn" when looking at the first part of
59948         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59950 2011-01-20  Jim Meyering  <meyering@redhat.com>
59952         mountlist: clean up code formatting
59953         * lib/mountlist.c (read_file_system_list): Split a long line,
59954         correct bracing style, use NULL in place of "(struct statfs *)0",
59955         don't parenthesize return value, add spaces around "=" and after
59956         ";-in-for-stmt".
59958 2011-01-14  Markus Duft  <mduft@gentoo.org>
59960         mountlist: add support for Interix
59961         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59962         Apply statvfs to all entries of /dev/fs.
59963         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59964         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59966 2011-01-20  Jim Meyering  <meyering@redhat.com>
59968         maint.mk: improve the public-submodule-commit rule
59969         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59970         to suppress printing of its commands... unless V=1.
59971         Add git submodule's --quiet option to suppress printing of e.g.,
59972         "Entering gnulib" output.
59973         "cd" into $(srcdir) before running git submodule.
59975 2011-01-20  Bruno Haible  <bruno@clisp.org>
59977         include_next: Fix bug introduced on 2011-01-18.
59978         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59979         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59980         ac_cv_header_... variable if the second argument is not 'check'.
59981         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59982         gl_NEXT_HEADERS_INTERNAL.
59984 2011-01-20  Bruno Haible  <bruno@clisp.org>
59986         Allow the user to avoid the GNULIB_TEST_* macros.
59987         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59988         Suggested by Paul Eggert.
59990 2011-01-14  Jim Meyering  <meyering@redhat.com>
59992         bootstrap: avoid failure when there is no .gitmodules file
59993         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59994         has been assigned to, even when its value is the empty string.
59995         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59996         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59997         Reported by John W. Eaton <jwe@gnu.org>.
59999 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60001         assume <ctype.h>, ..., <time.h> exist
60002         For years gnulib has been assuming the existence of the headers
60003         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
60004         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
60005         them, since they don't appear to be needed.
60006         * README (Portability guidelines): Document this.
60007         * lib/flock.c: Assume <fcntl.h> exists.
60008         * lib/regex_internal.h: Assume <locale.h> exists.
60009         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
60010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
60011         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
60012         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
60013         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
60014         * m4/regex.m4 (gl_REGEX): Likewise.
60015         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
60016         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
60017         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
60018         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
60019         * tests/test-argp.c: Likewise.
60020         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
60022         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
60023         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
60024         AA_APPLE_UNIVERSAL_BUILD.  See
60025         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
60026         * NEWS: Document this.
60028 2011-01-19  Eric Blake  <eblake@redhat.com>
60030         c-stack: assume stack overflow if SA_SIGINFO unsupported
60031         * lib/c-stack.c (SIGACTION_WORKS): Rename...
60032         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
60033         sigaction will work.
60034         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
60035         behavior match Linux.
60036         * tests/test-c-stack.c (main): Prefer NULL for pointers.
60038         stdbool-tests: accommodate Haiku
60039         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
60041         binary-io: fix O_TEXT on Haiku
60042         * modules/binary-io (Depends-on): Add fcntl-h.
60043         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
60044         than blindly undefining O_TEXT.
60045         Reported by Scott McCreary.
60047 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60049         include_next: do not check for standard headers like stddef.h
60051         I found this problem when modifying Emacs to use gnulib.
60052         I noticed that it added HAVE_STDDEF_H to config.h, even though
60053         gnulib always assumes <stddef.h> exists as per README and this
60054         symbol is unnecessary.
60055         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
60056         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
60057         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
60058         faster for headers like stddef.h that are known to exist.
60059         (gl_CHECK_NEXT_HEADERS): Use it.
60060         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
60061         rather than gl_CHECK_NEXT_HEADERS.
60062         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
60063         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
60065 2011-01-18  Eric Blake  <eblake@redhat.com>
60067         ansi-c++-opt: skip C++ dependency style if C++ is unused
60068         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
60069         tests when we know C++ compilation is not desired.
60070         Reported by Scott McCreary.
60072 2011-01-18  Bruno Haible  <bruno@clisp.org>
60074         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
60075         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
60076         (main): Perform test also when getrlimit and setrlimit don't exist or
60077         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
60078         limiting the address space size using setrlimit, compare the address
60079         space size before and after the test.
60080         * tests/test-dprintf-posix2.c: Likewise.
60081         * tests/test-fprintf-posix3.sh: Update skip messages.
60082         * tests/test-dprintf-posix2.sh: Likewise.
60083         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
60084         * modules/dprintf-posix-tests (Depends-on): Likewise.
60085         Reported by Bruce Korb <bkorb@gnu.org> and
60086         Gary V. Vaughan <gary@gnu.org>.
60088 2011-01-18  Bruno Haible  <bruno@clisp.org>
60090         get-rusage-as: Improvement for Cygwin.
60091         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
60092         areas that are merely reserved.
60094 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60096         strftime: remove dependencies on multibyte modules
60098         strftime depended on mbrlen, mbsinit, and wchar, but these modules
60099         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
60100         only if __osf__ is defined, and I suspect OSF doesn't need these
60101         other modules.  If my guess is wrong, we'll need to come up with a
60102         variant of strftime that doesn't need the multibyte modules.
60104         I discovered this problem when attempting modify Emacs to use the
60105         strftime module.  With the previous gnulib, this caused Emacs to
60106         need 31 new files, ranging from lib/config.charset to
60107         m4/wint_t.m4.  This was overkill and I expect would be offputting
60108         to the Emacs maintainers.  After this change, only 6 new files are
60109         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
60110         stdbool.m4, and tm_gmtoff.m4.
60112         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
60113         Suggested by Bruno Haible in
60114         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
60115         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
60116         and do not check for wchar.h.
60117         * modules/strftime (Files): Remove m4/mbstate_t.m4.
60118         (Depends-on): Remove mbrlen, mbsinit, wchar.
60120 2011-01-18  Bruno Haible  <bruno@clisp.org>
60122         Tests for module 'get-rusage-as'.
60123         * modules/get-rusage-as-tests: New file.
60124         * tests/test-get-rusage-as.c: New file.
60126         New module 'get-rusage-as'.
60127         * modules/get-rusage-as: New file.
60128         * lib/resource-ext.h: New file.
60129         * lib/get-rusage-as.c: New file.
60131 2011-01-17  Eric Blake  <eblake@redhat.com>
60133         sigaction: relax license from LGPLv3+ to LGPLv2+
60134         * modules/sigaction (License): Relax to LGPLv2+.
60136 2011-01-14  Bruno Haible  <bruno@clisp.org>
60138         filemode: Make function declarations usable in C++ mode.
60139         * lib/filemode.h: Enclose function declarations in extern "C" block.
60140         Reported by John W. Eaton <jwe@gnu.org>.
60142 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
60144         save-cwd: no longer include "xgetcwd.h"
60145         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
60146         This avoids a compilation failure in projects that use save-cwd
60147         without also using the xgetcwd module.
60149 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60151         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
60152         This is so that a program like Emacs, which needs only dtoastr,
60153         does not have to bother with distributing and compiling ftoastr
60154         and ldtoastr.
60155         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
60156         * modules/dtoastr, modules/ldtoastr: New files.
60157         * modules/ftoastr: Now works just for 'float'.
60158         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
60159         (Makefile.am): Remove ftoastr.h (not needed and no effect),
60160         dtoastr.c, ldtoastr.c.
60162 2011-01-11  Jim Meyering  <meyering@redhat.com>
60164         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
60165         There is no need to work around the lack of the fchdir function,
60166         since gnulib can now provide a replacement when required.
60167         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
60168         * modules/save-cwd (Depends-on): Add fchdir.
60170 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60172         openat, save-cwd: avoid xmalloc
60174         This removes a direct (but undocumented) dependency of openat on
60175         xalloc, along with an indirect dependency via save-cwd.  It also
60176         removes a dependency of save-cwd on xgetcwd, and thereby
60177         indirectly on xalloc.  This change causes the openat substitute
60178         to fall back on save_cwd when memory is tight, and for save_cwd to
60179         fail instead of dying when memory is tight, but that's good enough.
60180         Problem and initial idea for fix reported by Bastien Roucaries in
60181         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
60183         * lib/openat-proc.c: Include stdlib.h (for malloc), not
60184         xalloc.h (for xmalloc).
60185         (openat_proc_name): Use malloc, not xmalloc.
60186         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
60187         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
60189         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
60190         This avoids heap allocation for file names whose lengths are in
60191         the range 512..1023, with the upper bound increasing to at most
60192         4031 depending on the platform's PATH_MAX.  (We do not want
60193         pathmax.h here as it might supply a non-constant PATH_MAX.)
60194         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
60195         Perhaps they should be moved to malloca.h?
60196         (OPENAT_BUFFER_SIZE): Use them.
60198 2011-01-10  Bruno Haible  <bruno@clisp.org>
60200         doc: Update users.txt.
60201         * users.txt: Add recutils.
60203 2011-01-09  Karl Berry  <karl@gnu.org>
60205         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
60207         * doc/configmake.texi: New file.
60208         * doc/gnulib.texi: Include it.
60209         * modules/configmake: Move documentation from here.
60211 2011-01-09  Bruno Haible  <bruno@clisp.org>
60213         Update to Unicode 6.0.0.
60214         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
60215         (get_lbp): Update for Unicode 6.0.0.
60216         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
60217         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
60218         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
60219         U+11001, U+11038..U+11046. Remove U+06DE.
60220         (uc_width): Fix bounds of planes.
60221         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60222         lib/uniwidth/width.c.
60223         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
60224         trailing whitespace removed.
60225         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
60226         without comments, but with the original copyright notice.
60227         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
60228         * lib/unicase/ignorable.h: Likewise.
60229         * lib/unicase/tocasefold.h: Likewise.
60230         * lib/unicase/tolower.h: Likewise.
60231         * lib/unicase/totitle.h: Likewise.
60232         * lib/unicase/toupper.h: Likewise.
60233         * lib/unictype/bidi_of.h: Likewise.
60234         * lib/unictype/blocks.h: Likewise.
60235         * lib/unictype/categ_C.h: Likewise.
60236         * lib/unictype/categ_Cn.h: Likewise.
60237         * lib/unictype/categ_L.h: Likewise.
60238         * lib/unictype/categ_Ll.h: Likewise.
60239         * lib/unictype/categ_Lm.h: Likewise.
60240         * lib/unictype/categ_Lo.h: Likewise.
60241         * lib/unictype/categ_Lu.h: Likewise.
60242         * lib/unictype/categ_M.h: Likewise.
60243         * lib/unictype/categ_Mc.h: Likewise.
60244         * lib/unictype/categ_Me.h: Likewise.
60245         * lib/unictype/categ_Mn.h: Likewise.
60246         * lib/unictype/categ_N.h: Likewise.
60247         * lib/unictype/categ_Nd.h: Likewise.
60248         * lib/unictype/categ_No.h: Likewise.
60249         * lib/unictype/categ_P.h: Likewise.
60250         * lib/unictype/categ_Po.h: Likewise.
60251         * lib/unictype/categ_S.h: Likewise.
60252         * lib/unictype/categ_Sc.h: Likewise.
60253         * lib/unictype/categ_Sk.h: Likewise.
60254         * lib/unictype/categ_Sm.h: Likewise.
60255         * lib/unictype/categ_So.h: Likewise.
60256         * lib/unictype/categ_of.h: Likewise.
60257         * lib/unictype/combining.h: Likewise.
60258         * lib/unictype/ctype_alnum.h: Likewise.
60259         * lib/unictype/ctype_alpha.h: Likewise.
60260         * lib/unictype/ctype_graph.h: Likewise.
60261         * lib/unictype/ctype_lower.h: Likewise.
60262         * lib/unictype/ctype_print.h: Likewise.
60263         * lib/unictype/ctype_punct.h: Likewise.
60264         * lib/unictype/ctype_upper.h: Likewise.
60265         * lib/unictype/decdigit.h: Likewise.
60266         * lib/unictype/digit.h: Likewise.
60267         * lib/unictype/numeric.h: Likewise.
60268         * lib/unictype/pr_alphabetic.h: Likewise.
60269         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60270         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60271         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60272         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60273         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60274         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60275         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60276         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60277         * lib/unictype/pr_case_ignorable.h: Likewise.
60278         * lib/unictype/pr_cased.h: Likewise.
60279         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
60280         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
60281         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
60282         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
60283         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
60284         * lib/unictype/pr_combining.h: Likewise.
60285         * lib/unictype/pr_composite.h: Likewise.
60286         * lib/unictype/pr_currency_symbol.h: Likewise.
60287         * lib/unictype/pr_decimal_digit.h: Likewise.
60288         * lib/unictype/pr_deprecated.h: Likewise.
60289         * lib/unictype/pr_format_control.h: Likewise.
60290         * lib/unictype/pr_grapheme_base.h: Likewise.
60291         * lib/unictype/pr_grapheme_extend.h: Likewise.
60292         * lib/unictype/pr_grapheme_link.h: Likewise.
60293         * lib/unictype/pr_id_continue.h: Likewise.
60294         * lib/unictype/pr_id_start.h: Likewise.
60295         * lib/unictype/pr_ideographic.h: Likewise.
60296         * lib/unictype/pr_lowercase.h: Likewise.
60297         * lib/unictype/pr_math.h: Likewise.
60298         * lib/unictype/pr_numeric.h: Likewise.
60299         * lib/unictype/pr_other_alphabetic.h: Likewise.
60300         * lib/unictype/pr_other_id_continue.h: Likewise.
60301         * lib/unictype/pr_other_math.h: Likewise.
60302         * lib/unictype/pr_punctuation.h: Likewise.
60303         * lib/unictype/pr_sentence_terminal.h: Likewise.
60304         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60305         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60306         * lib/unictype/pr_unified_ideograph.h: Likewise.
60307         * lib/unictype/pr_uppercase.h: Likewise.
60308         * lib/unictype/pr_xid_continue.h: Likewise.
60309         * lib/unictype/pr_xid_start.h: Likewise.
60310         * lib/unictype/scripts.h: Likewise.
60311         * lib/unictype/scripts_byname.gperf: Likewise.
60312         * lib/unictype/sy_java_ident.h: Likewise.
60313         * lib/unigbrk/gbrkprop.h: Likewise.
60314         * lib/unilbrk/lbrkprop1.h: Likewise.
60315         * lib/unilbrk/lbrkprop2.h: Likewise.
60316         * lib/uninorm/decomposition-table2.h: Likewise.
60317         * lib/uniwbrk/wbrkprop.h: Likewise.
60318         * tests/unicase/test-cased.c: Likewise.
60319         * tests/unicase/test-ignorable.c: Likewise.
60320         * tests/unicase/test-uc_tolower.c: Likewise.
60321         * tests/unicase/test-uc_totitle.c: Likewise.
60322         * tests/unicase/test-uc_toupper.c: Likewise.
60323         * tests/unictype/test-categ_C.c: Likewise.
60324         * tests/unictype/test-categ_Cn.c: Likewise.
60325         * tests/unictype/test-categ_L.c: Likewise.
60326         * tests/unictype/test-categ_Ll.c: Likewise.
60327         * tests/unictype/test-categ_Lm.c: Likewise.
60328         * tests/unictype/test-categ_Lo.c: Likewise.
60329         * tests/unictype/test-categ_Lu.c: Likewise.
60330         * tests/unictype/test-categ_M.c: Likewise.
60331         * tests/unictype/test-categ_Mc.c: Likewise.
60332         * tests/unictype/test-categ_Me.c: Likewise.
60333         * tests/unictype/test-categ_Mn.c: Likewise.
60334         * tests/unictype/test-categ_N.c: Likewise.
60335         * tests/unictype/test-categ_Nd.c: Likewise.
60336         * tests/unictype/test-categ_No.c: Likewise.
60337         * tests/unictype/test-categ_P.c: Likewise.
60338         * tests/unictype/test-categ_Po.c: Likewise.
60339         * tests/unictype/test-categ_S.c: Likewise.
60340         * tests/unictype/test-categ_Sc.c: Likewise.
60341         * tests/unictype/test-categ_Sk.c: Likewise.
60342         * tests/unictype/test-categ_Sm.c: Likewise.
60343         * tests/unictype/test-categ_So.c: Likewise.
60344         * tests/unictype/test-ctype_alnum.c: Likewise.
60345         * tests/unictype/test-ctype_alpha.c: Likewise.
60346         * tests/unictype/test-ctype_graph.c: Likewise.
60347         * tests/unictype/test-ctype_lower.c: Likewise.
60348         * tests/unictype/test-ctype_print.c: Likewise.
60349         * tests/unictype/test-ctype_punct.c: Likewise.
60350         * tests/unictype/test-ctype_upper.c: Likewise.
60351         * tests/unictype/test-decdigit.h: Likewise.
60352         * tests/unictype/test-digit.h: Likewise.
60353         * tests/unictype/test-numeric.h: Likewise.
60354         * tests/unictype/test-pr_alphabetic.c: Likewise.
60355         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60356         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60357         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60358         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60359         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60360         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60361         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60362         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60363         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60364         * tests/unictype/test-pr_cased.c: Likewise.
60365         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60366         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60367         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60368         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60369         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60370         * tests/unictype/test-pr_combining.c: Likewise.
60371         * tests/unictype/test-pr_composite.c: Likewise.
60372         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60373         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60374         * tests/unictype/test-pr_deprecated.c: Likewise.
60375         * tests/unictype/test-pr_format_control.c: Likewise.
60376         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60377         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60378         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60379         * tests/unictype/test-pr_id_continue.c: Likewise.
60380         * tests/unictype/test-pr_id_start.c: Likewise.
60381         * tests/unictype/test-pr_ideographic.c: Likewise.
60382         * tests/unictype/test-pr_lowercase.c: Likewise.
60383         * tests/unictype/test-pr_math.c: Likewise.
60384         * tests/unictype/test-pr_numeric.c: Likewise.
60385         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60386         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60387         * tests/unictype/test-pr_other_math.c: Likewise.
60388         * tests/unictype/test-pr_punctuation.c: Likewise.
60389         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60390         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60391         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60392         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60393         * tests/unictype/test-pr_uppercase.c: Likewise.
60394         * tests/unictype/test-pr_xid_continue.c: Likewise.
60395         * tests/unictype/test-pr_xid_start.c: Likewise.
60396         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60397         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60398         changes.
60399         * lib/unictype/categ_Cc.h: Likewise.
60400         * lib/unictype/categ_Cf.h: Likewise.
60401         * lib/unictype/categ_Co.h: Likewise.
60402         * lib/unictype/categ_Cs.h: Likewise.
60403         * lib/unictype/categ_Lt.h: Likewise.
60404         * lib/unictype/categ_Nl.h: Likewise.
60405         * lib/unictype/categ_Pc.h: Likewise.
60406         * lib/unictype/categ_Pd.h: Likewise.
60407         * lib/unictype/categ_Pe.h: Likewise.
60408         * lib/unictype/categ_Pf.h: Likewise.
60409         * lib/unictype/categ_Pi.h: Likewise.
60410         * lib/unictype/categ_Ps.h: Likewise.
60411         * lib/unictype/categ_Z.h: Likewise.
60412         * lib/unictype/categ_Zl.h: Likewise.
60413         * lib/unictype/categ_Zp.h: Likewise.
60414         * lib/unictype/categ_Zs.h: Likewise.
60415         * lib/unictype/ctype_blank.h: Likewise.
60416         * lib/unictype/ctype_cntrl.h: Likewise.
60417         * lib/unictype/ctype_digit.h: Likewise.
60418         * lib/unictype/ctype_space.h: Likewise.
60419         * lib/unictype/ctype_xdigit.h: Likewise.
60420         * lib/unictype/mirror.h: Likewise.
60421         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60422         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60423         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60424         * lib/unictype/pr_bidi_control.h: Likewise.
60425         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60426         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60427         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60428         * lib/unictype/pr_bidi_pdf.h: Likewise.
60429         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60430         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60431         * lib/unictype/pr_dash.h: Likewise.
60432         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60433         * lib/unictype/pr_diacritic.h: Likewise.
60434         * lib/unictype/pr_extender.h: Likewise.
60435         * lib/unictype/pr_hex_digit.h: Likewise.
60436         * lib/unictype/pr_hyphen.h: Likewise.
60437         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60438         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60439         * lib/unictype/pr_ignorable_control.h: Likewise.
60440         * lib/unictype/pr_iso_control.h: Likewise.
60441         * lib/unictype/pr_join_control.h: Likewise.
60442         * lib/unictype/pr_left_of_pair.h: Likewise.
60443         * lib/unictype/pr_line_separator.h: Likewise.
60444         * lib/unictype/pr_logical_order_exception.h: Likewise.
60445         * lib/unictype/pr_non_break.h: Likewise.
60446         * lib/unictype/pr_not_a_character.h: Likewise.
60447         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60448         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60449         * lib/unictype/pr_other_id_start.h: Likewise.
60450         * lib/unictype/pr_other_lowercase.h: Likewise.
60451         * lib/unictype/pr_other_uppercase.h: Likewise.
60452         * lib/unictype/pr_paired_punctuation.h: Likewise.
60453         * lib/unictype/pr_paragraph_separator.h: Likewise.
60454         * lib/unictype/pr_pattern_syntax.h: Likewise.
60455         * lib/unictype/pr_pattern_white_space.h: Likewise.
60456         * lib/unictype/pr_private_use.h: Likewise.
60457         * lib/unictype/pr_quotation_mark.h: Likewise.
60458         * lib/unictype/pr_radical.h: Likewise.
60459         * lib/unictype/pr_soft_dotted.h: Likewise.
60460         * lib/unictype/pr_space.h: Likewise.
60461         * lib/unictype/pr_titlecase.h: Likewise.
60462         * lib/unictype/pr_variation_selector.h: Likewise.
60463         * lib/unictype/pr_white_space.h: Likewise.
60464         * lib/unictype/pr_zero_width.h: Likewise.
60465         * lib/unictype/sy_c_ident.h: Likewise.
60466         * lib/unictype/sy_c_whitespace.h: Likewise.
60467         * lib/unictype/sy_java_whitespace.h: Likewise.
60468         * lib/uninorm/composition-table.gperf: Likewise.
60469         * lib/uninorm/decomposition-table1.h: Likewise.
60470         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
60471         LB8.
60472         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60473         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60474         * modules/unictype/*: Bump version number of expected libunistring
60475         version.
60477 2011-01-09  Bruno Haible  <bruno@clisp.org>
60479         Update to Unicode 5.2.0.
60480         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
60481         trailing whitespace removed.
60483 2011-01-09  Bruno Haible  <bruno@clisp.org>
60485         New Unicode character properties, from Unicode 5.2.0.
60486         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
60487         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
60488         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
60489         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
60490         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
60491         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
60492         uc_is_property_cased, uc_is_property_case_ignorable,
60493         uc_is_property_changes_when_lowercased,
60494         uc_is_property_changes_when_uppercased,
60495         uc_is_property_changes_when_titlecased,
60496         uc_is_property_changes_when_casefolded,
60497         uc_is_property_changes_when_casemapped): New declarations.
60498         * lib/unictype/pr_byname.gperf: Add the new properties.
60499         * modules/unictype/property-byname (Depends-on): Depend on the new
60500         properties modules.
60501         * modules/unictype/property-all (Depends-on): Likewise.
60502         * MODULES.html.sh (Unicode string functions): Add
60503         unictype/property-case-ignorable, unictype/property-cased,
60504         unictype/property-changes-when-casefolded,
60505         unictype/property-changes-when-casemapped,
60506         unictype/property-changes-when-lowercased,
60507         unictype/property-changes-when-titlecased,
60508         unictype/property-changes-when-uppercased.
60510         New module 'unictype/property-changes-when-casemapped'.
60511         * modules/unictype/property-changes-when-casemapped: New file.
60512         * lib/unictype/pr_changes_when_casemapped.c: New file.
60513         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
60514         generated by gen-uni-tables.
60515         * modules/unictype/property-changes-when-casemapped-tests: New file.
60516         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
60517         automatically generated by gen-uni-tables.
60519         New module 'unictype/property-changes-when-casefolded'.
60520         * modules/unictype/property-changes-when-casefolded: New file.
60521         * lib/unictype/pr_changes_when_casefolded.c: New file.
60522         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
60523         generated by gen-uni-tables.
60524         * modules/unictype/property-changes-when-casefolded-tests: New file.
60525         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
60526         automatically generated by gen-uni-tables.
60528         New module 'unictype/property-changes-when-titlecased'.
60529         * modules/unictype/property-changes-when-titlecased: New file.
60530         * lib/unictype/pr_changes_when_titlecased.c: New file.
60531         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
60532         generated by gen-uni-tables.
60533         * modules/unictype/property-changes-when-titlecased-tests: New file.
60534         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
60535         automatically generated by gen-uni-tables.
60537         New module 'unictype/property-changes-when-uppercased'.
60538         * modules/unictype/property-changes-when-uppercased: New file.
60539         * lib/unictype/pr_changes_when_uppercased.c: New file.
60540         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
60541         generated by gen-uni-tables.
60542         * modules/unictype/property-changes-when-uppercased-tests: New file.
60543         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
60544         automatically generated by gen-uni-tables.
60546         New module 'unictype/property-changes-when-lowercased'.
60547         * modules/unictype/property-changes-when-lowercased: New file.
60548         * lib/unictype/pr_changes_when_lowercased.c: New file.
60549         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
60550         generated by gen-uni-tables.
60551         * modules/unictype/property-changes-when-lowercased-tests: New file.
60552         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
60553         automatically generated by gen-uni-tables.
60555         New module 'unictype/property-case-ignorable'.
60556         * modules/unictype/property-case-ignorable: New file.
60557         * lib/unictype/pr_case_ignorable.c: New file.
60558         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
60559         by gen-uni-tables.
60560         * modules/unictype/property-case-ignorable-tests: New file.
60561         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
60562         generated by gen-uni-tables.
60564         New module 'unictype/property-cased'.
60565         * modules/unictype/property-cased: New file.
60566         * lib/unictype/pr_cased.c: New file.
60567         * lib/unictype/pr_cased.h: New file, automatically generated by
60568         gen-uni-tables.
60569         * modules/unictype/property-cased-tests: New file.
60570         * tests/unictype/test-pr_cased.c: New file, automatically generated by
60571         gen-uni-tables.
60573 2011-01-09  Bruno Haible  <bruno@clisp.org>
60575         Update to Unicode 5.2.0.
60576         * lib/gen-uni-tables.c (output_predicate, output_category,
60577         output_combclass, output_bidi_category, output_decimal_digit_test,
60578         output_decimal_digit, output_digit_test, output_digit,
60579         output_numeric_test, output_numeric, output_mirror, output_scripts,
60580         output_scripts_byname, output_blocks, output_ident_category): Fix
60581         comment header.
60582         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
60583         get_wbp.
60584         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
60585         items.
60586         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
60587         Changes_When_Lowercased, Changes_When_Uppercased,
60588         Changes_When_Titlecased, Changes_When_Casefolded,
60589         Changes_When_Casemapped.
60590         (is_property_alphabetic, is_property_default_ignorable_code_point):
60591         Update for Unicode 5.2.0.
60592         (is_property_cased, is_property_case_ignorable,
60593         is_property_changes_when_lowercased,
60594         is_property_changes_when_uppercased,
60595         is_property_changes_when_titlecased,
60596         is_property_changes_when_casefolded,
60597         is_property_changes_when_casemapped): New functions.
60598         (output_properties): Output also the properties cased, case_ignorable,
60599         changes_when_lowercased, changes_when_uppercased,
60600         changes_when_titlecased, changes_when_casefolded,
60601         changes_when_casemapped.
60602         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
60603         Unicode TR#11 revision 17 -> 19.
60604         (LBP_CP): New enumeration value.
60605         (LBP_*): Adjust values accordingly.
60606         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60607         TR#14 revision 22 -> 24.
60608         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
60609         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
60610         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60611         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60612         is_WBP_MIDLETTER.
60613         (output_composition_tables): Allow for 24 bits instead of 16 bits in
60614         the code1 and code2 of each composition rule.
60615         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
60616         * lib/unicase/ignorable.h: Likewise.
60617         * lib/unicase/tocasefold.h: Likewise.
60618         * lib/unicase/tolower.h: Likewise.
60619         * lib/unicase/totitle.h: Likewise.
60620         * lib/unicase/toupper.h: Likewise.
60621         * lib/unictype/bidi_of.h: Likewise.
60622         * lib/unictype/blocks.h: Likewise.
60623         * lib/unictype/categ_C.h: Likewise.
60624         * lib/unictype/categ_Cf.h: Likewise.
60625         * lib/unictype/categ_Cn.h: Likewise.
60626         * lib/unictype/categ_L.h: Likewise.
60627         * lib/unictype/categ_Ll.h: Likewise.
60628         * lib/unictype/categ_Lm.h: Likewise.
60629         * lib/unictype/categ_Lo.h: Likewise.
60630         * lib/unictype/categ_Lu.h: Likewise.
60631         * lib/unictype/categ_M.h: Likewise.
60632         * lib/unictype/categ_Mc.h: Likewise.
60633         * lib/unictype/categ_Mn.h: Likewise.
60634         * lib/unictype/categ_N.h: Likewise.
60635         * lib/unictype/categ_Nd.h: Likewise.
60636         * lib/unictype/categ_Nl.h: Likewise.
60637         * lib/unictype/categ_No.h: Likewise.
60638         * lib/unictype/categ_P.h: Likewise.
60639         * lib/unictype/categ_Pd.h: Likewise.
60640         * lib/unictype/categ_Po.h: Likewise.
60641         * lib/unictype/categ_S.h: Likewise.
60642         * lib/unictype/categ_Sc.h: Likewise.
60643         * lib/unictype/categ_So.h: Likewise.
60644         * lib/unictype/categ_of.h: Likewise.
60645         * lib/unictype/combining.h: Likewise.
60646         * lib/unictype/ctype_alnum.h: Likewise.
60647         * lib/unictype/ctype_alpha.h: Likewise.
60648         * lib/unictype/ctype_graph.h: Likewise.
60649         * lib/unictype/ctype_lower.h: Likewise.
60650         * lib/unictype/ctype_print.h: Likewise.
60651         * lib/unictype/ctype_punct.h: Likewise.
60652         * lib/unictype/ctype_upper.h: Likewise.
60653         * lib/unictype/decdigit.h: Likewise.
60654         * lib/unictype/digit.h: Likewise.
60655         * lib/unictype/numeric.h: Likewise.
60656         * lib/unictype/pr_alphabetic.h: Likewise.
60657         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60658         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60659         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60660         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60661         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60662         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60663         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60664         * lib/unictype/pr_combining.h: Likewise.
60665         * lib/unictype/pr_composite.h: Likewise.
60666         * lib/unictype/pr_currency_symbol.h: Likewise.
60667         * lib/unictype/pr_dash.h: Likewise.
60668         * lib/unictype/pr_decimal_digit.h: Likewise.
60669         * lib/unictype/pr_deprecated.h: Likewise.
60670         * lib/unictype/pr_diacritic.h: Likewise.
60671         * lib/unictype/pr_extender.h: Likewise.
60672         * lib/unictype/pr_grapheme_base.h: Likewise.
60673         * lib/unictype/pr_grapheme_extend.h: Likewise.
60674         * lib/unictype/pr_grapheme_link.h: Likewise.
60675         * lib/unictype/pr_id_continue.h: Likewise.
60676         * lib/unictype/pr_id_start.h: Likewise.
60677         * lib/unictype/pr_ideographic.h: Likewise.
60678         * lib/unictype/pr_ignorable_control.h: Likewise.
60679         * lib/unictype/pr_logical_order_exception.h: Likewise.
60680         * lib/unictype/pr_lowercase.h: Likewise.
60681         * lib/unictype/pr_numeric.h: Likewise.
60682         * lib/unictype/pr_other_alphabetic.h: Likewise.
60683         * lib/unictype/pr_punctuation.h: Likewise.
60684         * lib/unictype/pr_sentence_terminal.h: Likewise.
60685         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60686         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60687         * lib/unictype/pr_unified_ideograph.h: Likewise.
60688         * lib/unictype/pr_uppercase.h: Likewise.
60689         * lib/unictype/pr_xid_continue.h: Likewise.
60690         * lib/unictype/pr_xid_start.h: Likewise.
60691         * lib/unictype/pr_zero_width.h: Likewise.
60692         * lib/unictype/scripts.h: Likewise.
60693         * lib/unictype/scripts_byname.gperf: Likewise.
60694         * lib/unictype/sy_java_ident.h: Likewise.
60695         * lib/unigbrk/gbrkprop.h: Likewise.
60696         * lib/unilbrk/lbrkprop1.h: Likewise.
60697         * lib/unilbrk/lbrkprop2.h: Likewise.
60698         * lib/unilbrk/lbrktables.h: Likewise.
60699         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60700         LBP_CP. Implement rule LB30.
60701         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60702         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60703         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60704         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60705         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60706         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60707         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60708         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60709         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60710         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60711         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60712         bits instead of 16 bits in the code1 and code2 of each composition
60713         rule.
60714         (uc_composition): Update for Unicode 5.2.0.
60715         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60716         * lib/uninorm/decomposition-table2.h: Likewise.
60717         * lib/uniwbrk/wbrkprop.h: Likewise.
60718         * tests/unicase/test-cased.c: Likewise.
60719         * tests/unicase/test-ignorable.c: Likewise.
60720         * tests/unicase/test-uc_tolower.c: Likewise.
60721         * tests/unicase/test-uc_totitle.c: Likewise.
60722         * tests/unicase/test-uc_toupper.c: Likewise.
60723         * tests/unictype/test-categ_C.c: Likewise.
60724         * tests/unictype/test-categ_Cf.c: Likewise.
60725         * tests/unictype/test-categ_Cn.c: Likewise.
60726         * tests/unictype/test-categ_L.c: Likewise.
60727         * tests/unictype/test-categ_Ll.c: Likewise.
60728         * tests/unictype/test-categ_Lm.c: Likewise.
60729         * tests/unictype/test-categ_Lo.c: Likewise.
60730         * tests/unictype/test-categ_Lu.c: Likewise.
60731         * tests/unictype/test-categ_M.c: Likewise.
60732         * tests/unictype/test-categ_Mc.c: Likewise.
60733         * tests/unictype/test-categ_Mn.c: Likewise.
60734         * tests/unictype/test-categ_N.c: Likewise.
60735         * tests/unictype/test-categ_Nd.c: Likewise.
60736         * tests/unictype/test-categ_Nl.c: Likewise.
60737         * tests/unictype/test-categ_No.c: Likewise.
60738         * tests/unictype/test-categ_P.c: Likewise.
60739         * tests/unictype/test-categ_Pd.c: Likewise.
60740         * tests/unictype/test-categ_Po.c: Likewise.
60741         * tests/unictype/test-categ_S.c: Likewise.
60742         * tests/unictype/test-categ_Sc.c: Likewise.
60743         * tests/unictype/test-categ_So.c: Likewise.
60744         * tests/unictype/test-ctype_alnum.c: Likewise.
60745         * tests/unictype/test-ctype_alpha.c: Likewise.
60746         * tests/unictype/test-ctype_graph.c: Likewise.
60747         * tests/unictype/test-ctype_lower.c: Likewise.
60748         * tests/unictype/test-ctype_print.c: Likewise.
60749         * tests/unictype/test-ctype_punct.c: Likewise.
60750         * tests/unictype/test-ctype_upper.c: Likewise.
60751         * tests/unictype/test-decdigit.h: Likewise.
60752         * tests/unictype/test-digit.h: Likewise.
60753         * tests/unictype/test-numeric.h: Likewise.
60754         * tests/unictype/test-pr_alphabetic.c: Likewise.
60755         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60756         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60757         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60758         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60759         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60760         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60761         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60762         * tests/unictype/test-pr_combining.c: Likewise.
60763         * tests/unictype/test-pr_composite.c: Likewise.
60764         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60765         * tests/unictype/test-pr_dash.c: Likewise.
60766         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60767         * tests/unictype/test-pr_deprecated.c: Likewise.
60768         * tests/unictype/test-pr_diacritic.c: Likewise.
60769         * tests/unictype/test-pr_extender.c: Likewise.
60770         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60771         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60772         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60773         * tests/unictype/test-pr_id_continue.c: Likewise.
60774         * tests/unictype/test-pr_id_start.c: Likewise.
60775         * tests/unictype/test-pr_ideographic.c: Likewise.
60776         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60777         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60778         * tests/unictype/test-pr_lowercase.c: Likewise.
60779         * tests/unictype/test-pr_numeric.c: Likewise.
60780         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60781         * tests/unictype/test-pr_punctuation.c: Likewise.
60782         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60783         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60784         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60785         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60786         * tests/unictype/test-pr_uppercase.c: Likewise.
60787         * tests/unictype/test-pr_xid_continue.c: Likewise.
60788         * tests/unictype/test-pr_xid_start.c: Likewise.
60789         * tests/unictype/test-pr_zero_width.c: Likewise.
60790         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60791         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60792         changed behaviour: line breaking is now disallowed between a letter
60793         or '=' and '('.
60794         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60795         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60796         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60797         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60798         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60799         lib/uniwidth/width.c.
60800         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60801         without comments, but with the original copyright notice.
60802         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60803         changes.
60804         * lib/unictype/categ_Cc.h: Likewise.
60805         * lib/unictype/categ_Co.h: Likewise.
60806         * lib/unictype/categ_Cs.h: Likewise.
60807         * lib/unictype/categ_Lt.h: Likewise.
60808         * lib/unictype/categ_Me.h: Likewise.
60809         * lib/unictype/categ_Pc.h: Likewise.
60810         * lib/unictype/categ_Pe.h: Likewise.
60811         * lib/unictype/categ_Pf.h: Likewise.
60812         * lib/unictype/categ_Pi.h: Likewise.
60813         * lib/unictype/categ_Ps.h: Likewise.
60814         * lib/unictype/categ_Sk.h: Likewise.
60815         * lib/unictype/categ_Sm.h: Likewise.
60816         * lib/unictype/categ_Z.h: Likewise.
60817         * lib/unictype/categ_Zl.h: Likewise.
60818         * lib/unictype/categ_Zp.h: Likewise.
60819         * lib/unictype/categ_Zs.h: Likewise.
60820         * lib/unictype/ctype_blank.h: Likewise.
60821         * lib/unictype/ctype_cntrl.h: Likewise.
60822         * lib/unictype/ctype_digit.h: Likewise.
60823         * lib/unictype/ctype_space.h: Likewise.
60824         * lib/unictype/ctype_xdigit.h: Likewise.
60825         * lib/unictype/mirror.h: Likewise.
60826         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60827         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60828         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60829         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60830         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60831         * lib/unictype/pr_bidi_control.h: Likewise.
60832         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60833         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60834         * lib/unictype/pr_bidi_pdf.h: Likewise.
60835         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60836         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60837         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60838         * lib/unictype/pr_format_control.h: Likewise.
60839         * lib/unictype/pr_hex_digit.h: Likewise.
60840         * lib/unictype/pr_hyphen.h: Likewise.
60841         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60842         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60843         * lib/unictype/pr_iso_control.h: Likewise.
60844         * lib/unictype/pr_join_control.h: Likewise.
60845         * lib/unictype/pr_left_of_pair.h: Likewise.
60846         * lib/unictype/pr_line_separator.h: Likewise.
60847         * lib/unictype/pr_math.h: Likewise.
60848         * lib/unictype/pr_non_break.h: Likewise.
60849         * lib/unictype/pr_not_a_character.h: Likewise.
60850         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60851         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60852         * lib/unictype/pr_other_id_continue.h: Likewise.
60853         * lib/unictype/pr_other_id_start.h: Likewise.
60854         * lib/unictype/pr_other_lowercase.h: Likewise.
60855         * lib/unictype/pr_other_math.h: Likewise.
60856         * lib/unictype/pr_other_uppercase.h: Likewise.
60857         * lib/unictype/pr_paired_punctuation.h: Likewise.
60858         * lib/unictype/pr_paragraph_separator.h: Likewise.
60859         * lib/unictype/pr_pattern_syntax.h: Likewise.
60860         * lib/unictype/pr_pattern_white_space.h: Likewise.
60861         * lib/unictype/pr_private_use.h: Likewise.
60862         * lib/unictype/pr_quotation_mark.h: Likewise.
60863         * lib/unictype/pr_radical.h: Likewise.
60864         * lib/unictype/pr_soft_dotted.h: Likewise.
60865         * lib/unictype/pr_space.h: Likewise.
60866         * lib/unictype/pr_titlecase.h: Likewise.
60867         * lib/unictype/pr_variation_selector.h: Likewise.
60868         * lib/unictype/pr_white_space.h: Likewise.
60869         * lib/unictype/sy_c_ident.h: Likewise.
60870         * lib/unictype/sy_c_whitespace.h: Likewise.
60871         * lib/unictype/sy_java_whitespace.h: Likewise.
60872         * modules/uni*/*: Bump version number of expected libunistring version.
60873         Reported by Simon Josefsson.
60875 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60877         useless-if-before-free: fix typo in --help and make the internal,
60878         automatic version date update process work once again.
60879         --help output contained a NUL character instead of the
60880         backslash-zero that was intended.  Also, the "must lie within
60881         the first 8 lines" line is on line 9, and hence not getting
60882         automatically updated.
60883         * build-aux/useless-if-before-free: Fix the former by adding a
60884         backslash, and the latter by condensing the three lines of what-it-does
60885         to a single line, leaving one line of slack for the future.
60887 2011-01-09  Bruno Haible  <bruno@clisp.org>
60889         uniwidth/width: Fix width of U+1D173..U+1D17A.
60890         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60891         symbolic_width, output_width_property_test): New functions.
60892         (main): Invoke output_nonspacing_property, output_width_property_test.
60893         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60894         U+1D173..U+1D17A.
60895         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60896         1.
60897         * modules/uniwidth/*: Bump version number of expected libunistring
60898         version.
60899         * modules/unilbrk/*: Likewise.
60901 2011-01-08  Bruno Haible  <bruno@clisp.org>
60903         uninorm tests: Preserve copyright of Unicode data file.
60904         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60905         Mention modifications.
60907 2011-01-08  Bruno Haible  <bruno@clisp.org>
60909         gen-uni-tables: Prepare for Unicode 5.2.0.
60910         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60911         (debug_output_lbp, output_lbp): Update.
60913 2011-01-08  Bruno Haible  <bruno@clisp.org>
60915         unilbrk: Clarify gen-uni-tables.c code.
60916         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60917         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60918         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60920 2011-01-07  Bruno Haible  <bruno@clisp.org>
60922         strtod: Restore errno when successfully parsing Infinity or NaN.
60923         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60924         restore the original errno.
60926 2011-01-07  Bruno Haible  <bruno@clisp.org>
60928         remove test: Avoid failure on HP-UX 11.
60929         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60931 2011-01-07  Bruno Haible  <bruno@clisp.org>
60933         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60934         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60935         error code.
60937 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60939         ignore-value: fixup comments, and add Eric Blake
60940         as an author since he rewrote the macros.
60941         * lib/ignore-value.h (ignore_value):  State that
60942         we now support aggregates.  Also specify exactly
60943         when the GCC warn_unused_result feature was added.
60945 2011-01-06  Eric Blake  <eblake@redhat.com>
60947         ignore-value: support aggregate types
60948         * lib/ignore-value.h (ignore_value): Provide separate gcc
60949         definition.
60950         * modules/ignore-value-tests: New test module.
60951         * tests/test-ignore-value.c: New test.
60953         maint.mk: improve sc_prohibit_strcmp regex
60954         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60955         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60956         definition of STRNEQ.
60958         signal: work around Haiku issue with SIGBUS
60959         * lib/siglist.h: Add comment.
60960         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60961         strsignal's favoring of SIGSEGV.
60962         * tests/test-signal.c (main): Avoid test failure.
60963         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60964         Reported by Scott McCreary.
60966         maint.mk: add pre-release check to ensure submodule commits are public
60967         * top/maint.mk (public-submodule-commit): New rule.
60968         (submodule-checks): New variable.
60969         (alpha beta stable): Depend on the variable.
60971 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60972         and Jim Meyering  <meyering@redhat.com>
60974         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60975         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60976         (ATTRIBUTE_DEPRECATED): Define.
60977         (_ignore_case): New function.
60978         (ignore_value): New macro, to replace the old function.
60979         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60980         * modules/ignore-value (Depends-on): Add stdint.
60982 2011-01-04  Eric Blake  <eblake@redhat.com>
60984         doc: regenerate INSTALL
60985         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60986         @firstparagraphindent support, now that autoconf dropped it.
60987         (INSTALL_PRELUDE): Reinstate old macro.
60988         * doc/install.texi: Resync from autoconf.
60989         * doc/INSTALL: Reflect recent autoconf update.
60990         * doc/INSTALL.ISO: Likewise.
60991         * doc/INSTALL.UTF-8: Likewise.
60992         Reported by Karl Berry.
60994 2011-01-04  Bruce Korb  <address@hidden>
60996         git-version-gen: avoid a sub-shell
60997         * build-aux/git-version-gen: Redirect stderr in `...` via
60998         "exec 2>...", rather than via an added sub-shell.
61000 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
61002         git-version-gen: use (...) rather than sh -c '...'
61003         * build-aux/git-version-gen: Rather than hard-coding a shell's name
61004         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
61006 2011-01-03  Jim Meyering  <meyering@redhat.com>
61008         git-version-gen: convert leading TABs to spaces
61009         * build-aux/git-version-gen: Expand leading TABs.
61011         git-version-gen: handle failed "git rev-list"
61012         * build-aux/git-version-gen: Rather than leaking a "fatal" error
61013         from git and proceeding as if it had succeeded but printed no SHA1
61014         checksums, suppress the diagnostic and handle the failure.
61015         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
61017         git-version-gen: include command name in one more diagnostic
61018         * build-aux/git-version-gen: When the required .tarball-version file
61019         was missing or unreadable, you might see the diagnostic from "cat",
61020         but no trace of the name of the invoking script.  Now, you still see
61021         the diagnostic from cat, but also get one from "git-version-gen: ".
61022         Inspired by a patch from Bruce Korb.
61024         update-copyright: adjust test to match changed code
61025         * tests/test-update-copyright.sh: Change test's expected output
61026         to match new actual output.
61028 2011-01-02  Bruno Haible  <bruno@clisp.org>
61030         getlogin_r: Avoid test failure on HP-UX 11.
61031         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
61032         ERANGE when the second argument is zero.
61033         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
61034         portability problem.
61036 2011-01-02  Bruce Korb  <bkorb@gnu.org>
61038         * build-aux/update-copyright: doc Simon's changes
61040 2011-01-02  Simon Josefsson  <simon@josefsson.org>
61042         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
61043         environment variable.
61045 2011-01-02  Bruno Haible  <bruno@clisp.org>
61047         unigbrk: Avoid gcc warnings.
61048         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
61049         unused variable.
61050         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
61051         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
61052         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
61053         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
61054         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
61055         Change type of first argument to 'const char *'.
61056         (main): Remove unused variable.
61057         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
61058         type of first argument to 'const char *'.
61059         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
61060         Likewise.
61061         (main): Change type of variable 's'.
61062         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
61063         to 'int'.
61065 2011-01-02  Bruno Haible  <bruno@clisp.org>
61067         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
61068         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
61069         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
61070         bug.
61071         * lib/pwrite.c: Undo 2010-12-31 patch.
61072         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
61074 2011-01-02  Bruno Haible  <bruno@clisp.org>
61076         pread: Fix test whether it works.
61077         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
61079 2011-01-02  Bruno Haible  <bruno@clisp.org>
61081         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
61082         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
61083         ends in "6". Don't require a specific month name. Try also the locale
61084         names found on HP-UX 11 and Solaris 7.
61086 2011-01-02  Bruno Haible  <bruno@clisp.org>
61088         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
61089         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
61090         C linkage.
61091         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
61093 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61095         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
61096         for consistency, since the "cluster" term is not used elsewhere.
61097         * lib/unigbrk.in.h: Update name.
61098         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
61099         * lib/unigbrk/u16-grapheme-next.c: Update name.
61100         * lib/unigbrk/u16-grapheme-prev.c: Update name.
61101         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
61102         * lib/unigbrk/u32-grapheme-next.c: Update name.
61103         * lib/unigbrk/u32-grapheme-prev.c: Update name.
61104         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
61105         * lib/unigbrk/u8-grapheme-next.c: Update name.
61106         * lib/unigbrk/u8-grapheme-prev.c: Update name.
61107         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
61108         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
61109         Suggested by Bruno Haible.
61111 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61113         Remove module 'u8-grapheme-len' as too redundant with
61114         'u8-grapheme-next'.
61115         * modules/unigbrk/u8-grapheme-len: Delete file.
61116         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
61117         * lib/unigbrk.in.h: Remove prototype for deleted function.
61118         * lib/unigbrk/u8-grapheme-len.c: Delete file.
61119         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
61121         Remove module 'u16-grapheme-len' as too redundant with
61122         'u16-grapheme-next'.
61123         * modules/unigbrk/u16-grapheme-len: Delete file.
61124         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
61125         * lib/unigbrk.in.h: Remove prototype for deleted function.
61126         * lib/unigbrk/u16-grapheme-len.c: Delete file.
61127         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
61129         Remove module 'u32-grapheme-len' as too redundant with
61130         'u32-grapheme-next'.
61131         * modules/unigbrk/u32-grapheme-len: Delete file.
61132         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
61133         * lib/unigbrk.in.h: Remove prototype for deleted function.
61134         * lib/unigbrk/u32-grapheme-len.c: Delete file.
61135         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
61137         Suggested by Bruno Haible.
61139 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61141         * unigbrk.in.h: Fix typo: "ben" => "been".
61142         Reported by Bruno Haible.
61144 2011-01-01  Jim Meyering  <meyering@redhat.com>
61146         maint: update almost all copyright ranges to include 2011
61147         Run the new "make update-copyright" rule.
61149 2011-01-01  Jim Meyering  <meyering@redhat.com>
61151         maint: update-copyright: exempt doc/INSTALL*
61152         * Makefile (update-copyright): Also exclude doc/INSTALL*,
61153         since they are generated.  Suggested by Bruno Haible.
61155 2011-01-01  Jim Meyering  <meyering@redhat.com>
61157         maint: refine the update-copyright rule
61158         * Makefile (update-copyright): Also exclude any file that includes
61159         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
61160         code that merely generates the comment.
61162 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61164         New module 'u8-grapheme-len'.
61165         * modules/unigbrk/u8-grapheme-len: New file.
61166         * modules/unigbrk/u8-grapheme-len-tests: New file.
61167         * lib/unigbrk.in.h: Add prototype for new function.
61168         * lib/unigbrk/u8-grapheme-len.c: New file.
61169         * tests/unigbrk/test-u8-grapheme-len.c: New file.
61171         New module 'u16-grapheme-len'.
61172         * modules/unigbrk/u16-grapheme-len: New file.
61173         * modules/unigbrk/u16-grapheme-len-tests: New file.
61174         * lib/unigbrk.in.h: Add prototype for new function.
61175         * lib/unigbrk/u16-grapheme-len.c: New file.
61176         * tests/unigbrk/test-u16-grapheme-len.c: New file.
61178         New module 'u32-grapheme-len'.
61179         * modules/unigbrk/u32-grapheme-len: New file.
61180         * modules/unigbrk/u32-grapheme-len-tests: New file.
61181         * lib/unigbrk.in.h: Add prototype for new function.
61182         * lib/unigbrk/u32-grapheme-len.c: New file.
61183         * tests/unigbrk/test-u32-grapheme-len.c: New file.
61185         New module 'u8-grapheme-next'.
61186         * modules/unigbrk/u8-grapheme-next: New file.
61187         * modules/unigbrk/u8-grapheme-next-tests: New file.
61188         * lib/unigbrk.in.h: Add prototype for new function.
61189         * lib/unigbrk/u8-grapheme-next.c: New file.
61190         * tests/unigbrk/test-u8-grapheme-next.c: New file.
61192         New module 'u16-grapheme-next'.
61193         * modules/unigbrk/u16-grapheme-next: New file.
61194         * modules/unigbrk/u16-grapheme-next-tests: New file.
61195         * lib/unigbrk.in.h: Add prototype for new function.
61196         * lib/unigbrk/u16-grapheme-next.c: New file.
61197         * tests/unigbrk/test-u16-grapheme-next.c: New file.
61199         New module 'u32-grapheme-next'.
61200         * modules/unigbrk/u32-grapheme-next: New file.
61201         * modules/unigbrk/u32-grapheme-next-tests: New file.
61202         * lib/unigbrk.in.h: Add prototype for new function.
61203         * lib/unigbrk/u32-grapheme-next.c: New file.
61204         * tests/unigbrk/test-u32-grapheme-next.c: New file.
61206         New module 'u8-grapheme-prev'.
61207         * modules/unigbrk/u8-grapheme-prev: New file.
61208         * modules/unigbrk/u8-grapheme-prev-tests: New file.
61209         * lib/unigbrk.in.h: Add prototype for new function.
61210         * lib/unigbrk/u8-grapheme-prev.c: New file.
61211         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
61213         New module 'u16-grapheme-prev'.
61214         * modules/unigbrk/u16-grapheme-prev: New file.
61215         * modules/unigbrk/u16-grapheme-prev-tests: New file.
61216         * lib/unigbrk.in.h: Add prototype for new function.
61217         * lib/unigbrk/u16-grapheme-prev.c: New file.
61218         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
61220         New module 'u32-grapheme-prev'.
61221         * modules/unigbrk/u32-grapheme-prev: New file.
61222         * modules/unigbrk/u32-grapheme-prev-tests: New file.
61223         * lib/unigbrk.in.h: Add prototype for new function.
61224         * lib/unigbrk/u32-grapheme-prev.c: New file.
61225         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
61227         New module 'u8-grapheme-breaks'.
61228         * modules/unigbrk/u8-grapheme-breaks: New file.
61229         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
61230         * lib/unigbrk.in.h: Add prototype for new function.
61231         * lib/unigbrk/u8-grapheme-breaks.c: New file.
61232         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
61234         New module 'u16-grapheme-breaks'.
61235         * modules/unigbrk/u16-grapheme-breaks: New file.
61236         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
61237         * lib/unigbrk.in.h: Add prototype for new function.
61238         * lib/unigbrk/u16-grapheme-breaks.c: New file.
61239         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
61241         New module 'u32-grapheme-breaks'.
61242         * modules/unigbrk/u32-grapheme-breaks: New file.
61243         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
61244         * lib/unigbrk.in.h: Add prototype for new function.
61245         * lib/unigbrk/u32-grapheme-breaks.c: New file.
61246         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
61248         New module 'ulc-grapheme-breaks'.
61249         * modules/unigbrk/ulc-grapheme-breaks: New file.
61250         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
61251         * m4/locale-ar.m4: New file.
61252         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
61253         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
61254         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
61256 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61258         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
61259         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
61260         modified how this file was generated before I initially submitted
61261         the module, but failed to regenerate it.  This meant that several
61262         of the level2 entries were wrong.
61263         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
61264         Remove the division-by-2 that is folded into the table now that
61265         gbrkprop.h has been regenerated properly.  Now -1 entries are
61266         handled correctly.
61268         New module 'unigbrk/uc-gbrk-prop-tests'.
61269         * modules/unigbrk/uc-gbrk-prop-tests: New file.
61270         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
61271         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
61272         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
61274 2011-01-01  Bruno Haible  <bruno@clisp.org>
61276         Avoid use of hexadecimal escapes.
61277         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
61278         instead of hexadecimal escapes.
61280 2011-01-01  Jim Meyering  <meyering@redhat.com>
61282         maint: new rule to update copyright year ranges
61283         * Makefile (update-copyright): New rule.
61285         maint: indent with TABs in Makefile
61286         * Makefile: Expand leading sequences of spaces to TABs
61288         version-etc: update the copyright year it reports
61289         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
61291 2010-12-31  Bruno Haible  <bruno@clisp.org>
61293         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
61294         * lib/isfinite.c (zerof, zerod, zerol): New variables.
61295         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
61296         zero.
61298 2010-12-31  Bruno Haible  <bruno@clisp.org>
61300         pwrite: Work around HP-UX 11.11 bug.
61301         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
61302         works and set REPLACE_PWRITE if not.
61303         * lib/pwrite.c (pwrite): Add an implementation that uses the system
61304         function.
61305         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
61307 2010-12-31  Bruno Haible  <bruno@clisp.org>
61309         pread: Work around HP-UX 11 bugs.
61310         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
61311         and set REPLACE_PREAD if not.
61312         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
61314 2010-12-31  Eric Blake  <eblake@redhat.com>
61316         nl_langinfo: fix YESEXPR on Irix 6.5
61317         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
61318         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
61319         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
61320         it.
61322 2010-12-31  Bruno Haible  <bruno@clisp.org>
61324         iconv: Document HP-UX 11 bug.
61325         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
61327 2010-12-31  Bruno Haible  <bruno@clisp.org>
61329         ldexpl: Fix link error on HP-UX 11.
61330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
61331         LDEXPL_LIBM, using $ISNANL_LIBM.
61333 2010-12-31  Eric Blake  <eblake@redhat.com>
61335         ftello: avoid compilation failure with SunStudio c89
61336         * lib/ftello.c (ftello): Use lseek, not llseek.
61338         tests: avoid failing coreutils tests on cygwin
61339         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
61340         (create_exe_shims_): Return 0 when skipping.
61342 2010-12-31  Bruno Haible  <bruno@clisp.org>
61344         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61345         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61347 2010-12-31  Bruno Haible  <bruno@clisp.org>
61349         waitpid: Fix link error in C++ mode.
61350         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61352 2010-12-31  Bruno Haible  <bruno@clisp.org>
61354         isnan: Use GCC built-ins when possible.
61355         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61356         __builtin_isnan.
61357         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61358         (isnan): Define using GCC built-ins for GCC >= 4.0.
61360 2010-12-31  Bruno Haible  <bruno@clisp.org>
61362         isnand: Fix mistake.
61363         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61364         __builtin_isnand.
61366 2010-12-31  Bruno Haible  <bruno@clisp.org>
61368         open: Avoid C++ error on HP-UX 11.
61369         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61371 2010-12-31  Bruno Haible  <bruno@clisp.org>
61373         time_r: Add missing declarations on HP-UX 11.
61374         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61375         instead of HAVE_LOCALTIME_R.
61376         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61377         HAVE_LOCALTIME_R always.
61378         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61379         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61380         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61381         HAVE_LOCALTIME_R.
61382         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61383         * doc/posix-functions/localtime_r.texi: Likewise.
61385 2010-12-29  Eric Blake  <eblake@redhat.com>
61387         mountlist: tweak previous commit
61388         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61389         Reported by Paul Eggert.
61391         mountlist: fix local drive detection on cygwin
61392         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61393         that works for cygwin.
61395 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61397         ftoastr, snprintf: ftoastr + snprintf module
61398         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61399         since the snprintf module now should be good enough here.
61400         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61401         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61402         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61403         GNULIB_SNPRINTF only for the test directory, and the latter
61404         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61405         seems to suffice by itself.
61407 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61409         alloca: one step towards thread-safety
61410         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61411         need for a static variable.  All callers changed.  This does not
61412         make the alloca replacement thread-safe, but it's one step.
61414         tests: minor indenting change
61415         * tests/init.sh: Sync from coreutils housekeeping patch
61416         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61417         to keep lines within 80 columns.
61419 2010-12-28  Jim Meyering  <meyering@redhat.com>
61421         regex: don't infloop on persistent failing calloc
61422         * lib/regexec.c (build_trtable): Return failure indication upon
61423         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61424         In glibc, this was fixed for version 2.13:
61425         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61427 2010-12-28  Bruno Haible  <bruno@clisp.org>
61428             Paul Eggert <eggert@cs.ucla.edu>
61430         linkat: Make implementation robust against system behaviour variations.
61431         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61432         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61433         way, and to -2 if it needs a generic runtime test.
61434         * lib/linkat.c (solaris_optimized_link_immediate,
61435         solaris_optimized_link_follow): New functions.
61436         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61437         (check_same_link): Use it.
61439 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61441         New module 'unigbrk/base'.
61442         * modules/unigbrk/base: New file.
61443         * lib/unigbrk.in.h: New file.
61445         New module 'unigbrk/uc-gbrk-prop'.
61446         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61447         * modules/unigbrk/uc-gbrk-prop: New file.
61448         * lib/unigbrk/gbrkprop.h: New file.
61449         * lib/unigbrk/uc-gbrk-prop.c: New file.
61451         New module 'unigbrk/uc-is-grapheme-break'.
61452         * modules/unigbrk/uc-is-grapheme-break: New file.
61453         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
61454         * lib/unigbrk/uc-is-grapheme-break.c: New file.
61455         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
61456         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
61457         * tests/unigbrk/GraphemeBreakTest.txt: New file.
61459         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
61461 2010-12-27  Bruno Haible  <bruno@clisp.org>
61463         linkat test: Avoid failure on Solaris 11 2010-11.
61464         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
61466 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61468         utimens: work around glibc rounding bug on more platforms
61469         * lib/utimens.c (fdutimens): Work around rounding bug even if
61470         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
61471         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
61473 2010-12-27  Bruno Haible  <bruno@clisp.org>
61475         select tests: Improve comments.
61476         * tests/test-select.c (do_select): Add comments.
61478 2010-12-27  Bruno Haible  <bruno@clisp.org>
61480         select tests: Safer way of handling timeout.
61481         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
61482         at every invocation.
61484 2010-12-27  Bruno Haible  <bruno@clisp.org>
61486         select tests: Use 'bool' where appropriate.
61487         * tests/test-select.c (connect_to_socket): Change argument type to
61488         'bool'.
61490 2010-12-27  Bruno Haible  <bruno@clisp.org>
61492         select tests: Use existing modules.
61493         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
61494         (configure.ac): Don't test for unistd.h.
61495         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
61496         declared in <unistd.h>.
61498 2010-12-27  Bruno Haible  <bruno@clisp.org>
61500         mbrtowc: Work around a Solaris 7 bug.
61501         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
61502         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
61503         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
61504         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
61505         MBRTOWC_NULL_ARG1_BUG.
61506         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
61507         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
61508         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
61509         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
61511 2010-12-27  Jim Meyering  <meyering@redhat.com>
61513         read-file.c: tweak syntax
61514         * lib/read-file.c (fread_file): Remove space after "*" in function
61515         definitions.
61517 2010-12-27  Bruno Haible  <bruno@clisp.org>
61519         times test: Avoid gcc warnings on OSF/1.
61520         * tests/test-times.c (main): Cast printf arguments from clock_t to
61521         'long int'.
61523 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61525         utimens: work around glibc rounding bug on older Linux kernels
61526         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
61527         on Linux with a glibc whose utimes might not work, then work
61528         around a longstanding glibc bug involving rounding rather than
61529         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
61530         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61532 2010-12-26  Bruno Haible  <bruno@clisp.org>
61534         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
61535         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
61536         _GL_CXXALIAS_SYS.
61537         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61539 2010-12-26  Bruno Haible  <bruno@clisp.org>
61541         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
61542         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
61543         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61544         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
61545         looking for the declaration.
61546         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61547         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
61548         problem.
61549         * doc/posix-functions/inet_pton.texi: Likewise.
61551 2010-12-26  Bruno Haible  <bruno@clisp.org>
61553         arpa_inet: Use the common idioms with C++ support.
61554         * lib/arpa_inet.in.h: Include c++defs.h.
61555         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
61556         support.
61557         * modules/arpa_inet (Depends-on): Add c++defs.
61558         (Makefile.am): Substitute the contents of c++defs.h.
61559         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
61560         * modules/arpa_inet-c++-tests: New file.
61561         * tests/test-arpa_inet-c++.cc: New file.
61563 2010-12-25  Bruno Haible  <bruno@clisp.org>
61565         Fix more C++ link errors on Solaris 8.
61566         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
61567         $(LIB_EACCESS).
61568         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
61569         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
61570         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
61571         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
61572         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
61574 2010-12-25  Bruno Haible  <bruno@clisp.org>
61576         printf-posix: Fix link error when a non-GCC compiler is used.
61577         * lib/stdio.in.h (printf): When not using GCC, override printf
61578         correctly.
61579         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61581 2010-12-25  Bruno Haible  <bruno@clisp.org>
61583         strerror_r-posix: Update doc.
61584         * doc/posix-functions/strerror_r.texi: Update doc about the return
61585         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
61587 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61589         utimens: simplify the logic of the previous change
61590         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61591         This should not affect whether the test succeeds or fails.
61593         utimens: configure better on hosts with NFS clock skew
61594         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61595         uses the clock of the local host.  It might use the clock of the
61596         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
61597         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61599 2010-12-25  Bruno Haible  <bruno@clisp.org>
61601         ptsname test: Avoid failure on Solaris.
61602         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
61603         open a pseudo-terminal; don't use BSD-style ptys.
61604         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
61606 2010-12-25  Bruno Haible  <bruno@clisp.org>
61608         ptsname: Avoid ERANGE failure on some systems.
61609         * lib/ptsname.c (buffer): Increase size.
61611 2010-12-25  Bruno Haible  <bruno@clisp.org>
61613         rename, renameat: Avoid test failures at NFS mounted locations.
61614         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
61615         so that subsequent mkdir calls succeed.
61617 2010-12-25  Bruno Haible  <bruno@clisp.org>
61619         iswblank: Fix C++ link error on Solaris 8.
61620         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
61621         _GL_FUNCDECL_SYS.
61623 2010-12-25  Bruno Haible  <bruno@clisp.org>
61625         unistd: Fix C++ link error on Solaris 8.
61626         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
61628 2010-12-25  Bruno Haible  <bruno@clisp.org>
61630         readlink doc: Mention an old glibc bug.
61631         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
61633 2010-12-25  Bruno Haible  <bruno@clisp.org>
61635         fcntl-h: Fix for use of C++ on glibc systems.
61636         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61637         also on glibc systems in C++ mode.
61638         Reported by Gary V. Vaughan <gary@gnu.org>.
61640 2010-12-25  Bruno Haible  <bruno@clisp.org>
61642         roundl-ieee: Make it work on OSF/1 5.1 with cc.
61643         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
61645 2010-12-25  Bruno Haible  <bruno@clisp.org>
61647         truncl-ieee: Make it work on OSF/1 5.1 with cc.
61648         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
61649         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
61650         test whether truncl works according to ISO C 99 with IEC 60559.
61651         * m4/truncl-ieee.m4: New file.
61652         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
61653         m4/signbit.m4.
61654         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
61656 2010-12-25  Bruno Haible  <bruno@clisp.org>
61658         ceill-ieee: Make it work on OSF/1 5.1 with cc.
61659         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
61660         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61661         test whether ceill works according to ISO C 99 with IEC 60559.
61662         * m4/ceill-ieee.m4: New file.
61663         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61664         m4/signbit.m4.
61665         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61667 2010-12-25  Bruno Haible  <bruno@clisp.org>
61669         Ensure all prerequisites of <wchar.h> are included.
61670         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61671         before <wchar.h>.
61672         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61673         gl_MBRLEN_NUL_RETVAL): Likewise.
61674         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61675         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61676         AC_FUNC_MBRTOWC): Likewise.
61677         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61678         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61679         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61680         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61681         Likewise.
61682         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61683         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61684         (gl_WCHAR_H): Improve comments.
61685         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61687 2010-12-25  Bruno Haible  <bruno@clisp.org>
61689         strtok_r: Fix C syntax error in autoconf macro.
61690         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61691         characters in test program.
61693 2010-12-24  Bruno Haible  <bruno@clisp.org>
61695         ceil, trunc, round: Fix gcc warnings.
61696         * lib/ceil.c (MIN): Undefine before redefining.
61697         * lib/trunc.c (MIN): Likewise.
61698         * lib/round.c (MIN): Likewise.
61699         Include <math.h> first.
61701 2010-12-24  Bruno Haible  <bruno@clisp.org>
61703         select tests: Avoid failures on OSF/1 5.1.
61704         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61705         failure of closing the last socket; it may fail with ECONNRESET.
61707 2010-12-24  Eric Blake  <eblake@redhat.com>
61709         stdint: avoid HP-UX 10.20 preprocessor bug
61710         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61711         than #if.
61712         * tests/test-floor2.c (main): Likewise.
61713         Reported by Peter O'Gorman.
61715         pipe: make obsoletion transition easier
61716         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61717         * modules/pipe (Files): Include revived file.
61718         (Include): Drop reference, to mirror getdate's behavior.
61720 2010-12-24  Bruno Haible  <bruno@clisp.org>
61722         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61723         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61724         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61725         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61727 2010-12-24  Bruno Haible  <bruno@clisp.org>
61729         gethostname: Ensure declaration on NonStop Kernel.
61730         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61731         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61733 2010-12-24  Bruno Haible  <bruno@clisp.org>
61735         sys_select: Ensure all necessary types on NonStop Kernel.
61736         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61737         include <sys/time.h>.
61738         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61739         NonStop Kernel.
61740         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61742 2010-12-24  Bruno Haible  <bruno@clisp.org>
61744         sys_select: Remove unneeded include.
61745         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61746         have <sys/select.h>.
61748 2010-12-24  Bruno Haible  <bruno@clisp.org>
61750         gethostname: Provide a fallback for HOST_NAME_MAX.
61751         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61752         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61753         instead.
61754         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61756 2010-12-24  Bruno Haible  <bruno@clisp.org>
61758         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61759         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61760         (SA_RESTART): Likewise.
61761         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61763 2010-12-24  Bruno Haible  <bruno@clisp.org>
61765         signal: Define NSIG.
61766         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61767         * tests/test-signal.c (nsig): New variable.
61768         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61770 2010-12-24  Bruno Haible  <bruno@clisp.org>
61772         rename, renameat: Avoid test failures on OSF/1 5.1.
61773         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61774         alternative error codes.
61775         * tests/test-renameat.c (main): Likewise.
61777 2010-12-24  Bruno Haible  <bruno@clisp.org>
61779         *printf: Detect large precisions bug on Solaris 10/SPARC.
61780         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61781         by Paul Eggert.
61782         * tests/test-snprintf-posix.h (test_function): Add this test code here
61783         too.
61784         * tests/test-sprintf-posix.h (test_function): Likewise.
61785         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61786         * tests/test-vasprintf-posix.c (test_function): Likewise.
61787         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61788         around by gnulib.
61789         * doc/posix-functions/printf.texi: Likewise.
61790         * doc/posix-functions/snprintf.texi: Likewise.
61791         * doc/posix-functions/sprintf.texi: Likewise.
61792         * doc/posix-functions/vfprintf.texi: Likewise.
61793         * doc/posix-functions/vprintf.texi: Likewise.
61794         * doc/posix-functions/vsnprintf.texi: Likewise.
61795         * doc/posix-functions/vsprintf.texi: Likewise.
61796         * doc/posix-functions/dprintf.texi: Undo last commit.
61797         * doc/posix-functions/vdprintf.texi: Likewise.
61799 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61801         tests: port test-fdutimensat.c to Solaris 8
61802         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61803         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61804         On Solaris 8, it fails with errno == ENOSYS, because there is no
61805         futimens (so it can't use the fd), and there is no lutimens (so it
61806         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61808         vsnprintf: make more consistent with snprintf; doc fixes
61810         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61811         the byte count return problem was promoted from the snprintf-posix
61812         to the snprintf module.
61813         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61814         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61815         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61816         * tests/test-snprintf.c (main): Check the byte count returned.
61817         * tests/test-vsnprintf.c (main): Likewise.
61819 2010-12-23  Eric Blake  <eblake@redhat.com>
61821         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61822         * modules/sigpipe (License): Relax license.
61824 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61826         doc: document Solaris printf bug with large float precisions
61827         * doc/posix-functions/dprintf.texi (dprintf):
61828         * doc/posix-functions/fprintf.texi (fprintf):
61829         * doc/posix-functions/printf.texi (printf):
61830         * doc/posix-functions/snprintf.texi (snprintf):
61831         * doc/posix-functions/sprintf.texi (sprintf):
61832         * doc/posix-functions/vdprintf.texi (vdprintf):
61833         * doc/posix-functions/vfprintf.texi (vfprintf):
61834         * doc/posix-functions/vprintf.texi (vprintf):
61835         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61836         * doc/posix-functions/vsprintf.texi (vsprintf):
61837         Mention that these functions mishandle large floating point
61838         precisions on Solaris 10.  The same bug is also present in Solaris
61839         8, and I assume earlier.  This causes "cd gnulib-tests; make
61840         check" to fail on Solaris 8 (and I assume, later) when building
61841         the latest coreutils, in test-vasprintf-posix's call to
61842         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61843         the wide flavors (e.g., wprintf) so this patch just updates the
61844         documentation for the narrow ones.
61846         test-posixtm.c: add two tests
61847         * tests/test-posixtm.c: Add two tests, to highlight the
61848         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61849         around this bug; this is merely to document it.
61851 2010-12-22  Bruno Haible  <bruno@clisp.org>
61853         getlogin_r: Work around portability problem on OSF/1.
61854         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61855         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61856         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61857         test for a truncated result.
61858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61859         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61860         * modules/getlogin_r (Depends-on): Add memchr.
61861         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61863 2010-12-22  Bruno Haible  <bruno@clisp.org>
61865         ptsname: Avoid test failure on OSF/1 5.1.
61866         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61867         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61868         (same_slave): New function.
61869         (main): Use it to compare ptsname's result with the expected file name.
61871 2010-12-22  Bruno Haible  <bruno@clisp.org>
61873         Port extended stdio modules to HP NonStop Kernel.
61874         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61875         macros.
61876         * lib/fbufmode.c: Update comments.
61877         * lib/fflush.c: Likewise.
61878         * lib/fpurge.c: Likewise.
61879         * lib/freadable.c: Likewise.
61880         * lib/freadahead.c: Likewise.
61881         * lib/freading.c: Likewise.
61882         * lib/freadptr.c: Likewise.
61883         * lib/freadseek.c: Likewise.
61884         * lib/fseeko.c: Likewise.
61885         * lib/fseterr.c: Likewise.
61886         * lib/fwritable.c: Likewise.
61887         * lib/fwriting.c: Likewise.
61888         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61890 2010-12-22  Bruno Haible  <bruno@clisp.org>
61892         ttyname_r: Work around bug on OSF/1 5.1.
61893         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61894         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61895         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61896         present.
61897         * lib/ttyname_r.c (ttyname_r): Update comments.
61899 2010-12-22  Bruno Haible  <bruno@clisp.org>
61901         round: Implement result sign according to IEEE 754.
61902         * lib/round.c (MIN, MINUS_ZERO): New macros.
61903         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61904         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61905         * tests/test-round-ieee.c (main): Likewise.
61906         * tests/test-roundl-ieee.c (main): Likewise.
61908         trunc: Implement result sign according to IEEE 754.
61909         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61910         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61911         * tests/test-trunc2.c: Include minus-zero.h.
61912         (MINUS_ZERO): New macro.
61913         (trunc_reference): Keep in sync with lib/trunc.c.
61914         * tests/test-truncf2.c: Include minus-zero.h.
61915         (MINUS_ZERO): New macro.
61916         (truncf_reference): Keep in sync with lib/trunc.c.
61917         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61918         * tests/test-trunc-ieee.c (main): Likewise.
61919         * tests/test-truncl-ieee.c (main): Likewise.
61921         ceil: Implement result sign according to IEEE 754.
61922         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61923         (FUNC): Return -0.0 for -1 < x < 0.
61924         * tests/test-ceil2.c: Include minus-zero.h.
61925         (MINUS_ZERO): New macro.
61926         (ceil_reference): Keep in sync with lib/ceil.c.
61927         * tests/test-ceilf2.c: Include minus-zero.h.
61928         (MINUS_ZERO): New macro.
61929         (ceilf_reference): Keep in sync with lib/ceil.c.
61930         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61931         * tests/test-ceil-ieee.c (main): Likewise.
61932         * tests/test-ceill-ieee.c (main): Likewise.
61934         floor: Implement result sign according to IEEE 754.
61935         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61936         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61937         * tests/test-floorf2.c (floorf_reference): Likewise.
61938         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61939         * tests/test-floor-ieee.c (main): Likewise.
61940         * tests/test-floorl-ieee.c (main): Likewise.
61942 2010-12-22  Bruno Haible  <bruno@clisp.org>
61944         getaddrinfo: Update doc.
61945         * doc/posix-functions/gai_strerror.texi: Return type is also different
61946         on AIX and HP-UX.
61948 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61950         getaddrinfo, inet_ntop: Update doc for Solaris.
61951         * doc/posix-functions/gai_strerror.texi: Return type is also an
61952         issue on Solaris 9 and earlier.
61953         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61954         on Solaris 10 and earlier.
61956 2010-12-21  Bruno Haible  <bruno@clisp.org>
61958         New module 'roundl-ieee'.
61959         * modules/roundl-ieee: New file.
61960         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61961         test whether roundl works according to ISO C 99 with IEC 60559.
61962         * m4/roundl-ieee.m4: New file.
61963         * modules/roundl-ieee-tests: New file.
61964         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61965         * tests/test-roundl.c (main): Remove signbit tests.
61966         * modules/roundl-tests (Depends-on): Remove signbit.
61967         * doc/posix-functions/roundl.texi: Mention the new module.
61969 2010-12-21  Bruno Haible  <bruno@clisp.org>
61971         New module 'truncl-ieee'.
61972         * modules/truncl-ieee: New file.
61973         * modules/truncl-ieee-tests: New file.
61974         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61975         * tests/test-truncl.c (main): Remove signbit tests.
61976         * modules/truncl-tests (Depends-on): Remove signbit.
61977         * doc/posix-functions/truncl.texi: Mention the new module.
61979 2010-12-21  Bruno Haible  <bruno@clisp.org>
61981         New module 'ceill-ieee'.
61982         * modules/ceill-ieee: New file.
61983         * modules/ceill-ieee-tests: New file.
61984         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61985         * tests/test-ceill.c (main): Remove signbit tests.
61986         * modules/ceill-tests (Depends-on): Remove signbit.
61987         * doc/posix-functions/ceill.texi: Mention the new module.
61989 2010-12-21  Bruno Haible  <bruno@clisp.org>
61991         New module 'floorl-ieee'.
61992         * modules/floorl-ieee: New file.
61993         * modules/floorl-ieee-tests: New file.
61994         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61995         * tests/test-floorl.c (main): Remove signbit tests.
61996         * modules/floorl-tests (Depends-on): Remove signbit.
61997         * doc/posix-functions/floorl.texi: Mention the new module.
61999 2010-12-21  Bruno Haible  <bruno@clisp.org>
62001         New module 'round-ieee'.
62002         * modules/round-ieee: New file.
62003         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
62004         whether round works according to ISO C 99 with IEC 60559.
62005         * m4/round-ieee.m4: New file.
62006         * modules/round-ieee-tests: New file.
62007         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
62008         * tests/test-round1.c (main): Remove signbit tests.
62009         * modules/round-tests (Depends-on): Remove 'signbit'.
62010         * doc/posix-functions/round.texi: Mention the new module.
62012 2010-12-21  Bruno Haible  <bruno@clisp.org>
62014         New module 'trunc-ieee'.
62015         * modules/trunc-ieee: New file.
62016         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
62017         whether trunc works according to ISO C 99 with IEC 60559.
62018         * m4/trunc-ieee.m4: New file.
62019         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
62020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
62021         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
62022         * modules/trunc-ieee-tests: New file.
62023         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
62024         * tests/test-trunc1.c (main): Remove signbit tests.
62025         * modules/trunc-tests (Depends-on): Remove 'signbit'.
62026         * doc/posix-functions/trunc.texi: Mention the new module.
62028 2010-12-21  Bruno Haible  <bruno@clisp.org>
62030         New module 'ceil-ieee'.
62031         * modules/ceil-ieee: New file.
62032         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
62033         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
62034         ISO C 99 with IEC 60559.
62035         * m4/ceil-ieee.m4: New file.
62036         * modules/ceil (Files): Add lib/ceil.c.
62037         (Depends-on): Add 'float'.
62038         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62039         * lib/math.in.h (ceil): New declaration.
62040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
62041         REPLACE_CEIL.
62042         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
62043         * modules/ceil-ieee-tests: New file.
62044         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
62045         * tests/test-math-c++.cc: Check the signature of 'ceil'.
62046         * doc/posix-functions/ceil.texi: Mention the new module.
62048 2010-12-21  Bruno Haible  <bruno@clisp.org>
62050         New module 'floor-ieee'.
62051         * modules/floor-ieee: New file.
62052         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
62053         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
62054         ISO C 99 with IEC 60559.
62055         * m4/floor-ieee.m4: New file.
62056         * modules/floor (Files): Add lib/floor.c.
62057         (Depends-on): Add 'float'.
62058         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62059         * lib/math.in.h (floor): New declaration.
62060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
62061         REPLACE_FLOOR.
62062         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
62063         * modules/floor-ieee-tests: New file.
62064         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
62065         * tests/test-math-c++.cc: Check the signature of 'floor'.
62066         * doc/posix-functions/floor.texi: Mention the new module.
62068 2010-12-21  Bruno Haible  <bruno@clisp.org>
62070         New module 'roundf-ieee'.
62071         * modules/roundf-ieee: New file.
62072         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
62073         test whether roundf works according to ISO C 99 with IEC 60559.
62074         * m4/roundf-ieee.m4: New file.
62075         * modules/roundf-ieee-tests: New file.
62076         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
62077         * tests/test-roundf1.c (main): Remove signbit tests.
62078         * modules/roundf-tests (Depends-on): Remove 'signbit'.
62079         * doc/posix-functions/roundf.texi: Mention the new module.
62081 2010-12-21  Bruno Haible  <bruno@clisp.org>
62083         New module 'truncf-ieee'.
62084         * modules/truncf-ieee: New file.
62085         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
62086         test whether truncf works according to ISO C 99 with IEC 60559.
62087         * m4/truncf-ieee.m4: New file.
62088         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
62089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
62090         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
62091         * modules/truncf-ieee-tests: New file.
62092         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
62093         * tests/test-truncf1.c (main): Remove signbit tests.
62094         * modules/truncf-tests (Depends-on): Remove 'signbit'.
62095         * doc/posix-functions/truncf.texi: Mention the new module.
62097 2010-12-21  Bruno Haible  <bruno@clisp.org>
62099         New module 'ceilf-ieee'.
62100         * modules/ceilf-ieee: New file.
62101         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
62102         test whether ceilf works according to ISO C 99 with IEC 60559.
62103         * m4/ceilf-ieee.m4: New file.
62104         * modules/ceilf-ieee-tests: New file.
62105         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
62106         * tests/test-ceilf1.c (main): Remove signbit tests.
62107         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
62108         * doc/posix-functions/ceilf.texi: Mention the new module.
62110 2010-12-21  Bruno Haible  <bruno@clisp.org>
62112         New module 'floorf-ieee'.
62113         * modules/floorf-ieee: New file.
62114         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
62115         test whether floorf works according to ISO C 99 with IEC 60559.
62116         * m4/floorf-ieee.m4: New file.
62117         * modules/floorf-ieee-tests: New file.
62118         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
62119         * tests/test-floorf1.c (main): Remove signbit tests.
62120         * modules/floorf-tests (Depends-on): Remove 'signbit'.
62121         * doc/posix-functions/floorf.texi: Mention the new module.
62123 2010-12-21  Bruno Haible  <bruno@clisp.org>
62125         Support for minus zero in autoconf macros.
62126         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
62127         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
62128         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
62129         * tests/minus-zero.h: Update comments.
62131 2010-12-21  Bruno Haible  <bruno@clisp.org>
62133         Tests for module 'ceil'.
62134         * modules/ceil-tests: New file.
62135         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
62136         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
62138 2010-12-21  Bruno Haible  <bruno@clisp.org>
62140         Tests for module 'floor'.
62141         * modules/floor-tests: New file.
62142         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
62143         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
62145 2010-12-21  Bruno Haible  <bruno@clisp.org>
62147         math: Fix indentation.
62148         * lib/math.in.h (floorf): Fix indentation.
62150 2010-12-21  Bruno Haible  <bruno@clisp.org>
62152         Fix cross-compilation guesses on Solaris.
62153         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
62154         not match "solaris2.10".
62155         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62156         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
62157         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
62159 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62161         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
62162         This fixes a problem observed with the latest coreutils snapshot
62163         that caused a test to fail on Solaris 8.  src/csplit.c's call
62164         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
62165         earlier, instead of returning the number of bytes that would have
62166         been generated; this causes csplit to incorrectly report memory
62167         exhaustion.
62168         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
62169         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
62170         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
62171         comments to match.
62172         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62173         Fix typo in matching older versions of Solaris: "solaris2.10"
62174         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62175         only for guessing while cross-compiling.
62176         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
62178 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
62180         ftoastr: fix comment again
62181         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62182         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
62183         Also, simplify example a bit by using flags = 0.
62185 2010-12-20  Bruno Haible  <bruno@clisp.org>
62187         round*, trunc*: Update documentation regarding glibc.
62188         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
62189         * doc/posix-functions/round.texi: Likewise.
62190         * doc/posix-functions/roundl.texi: Likewise.
62191         * doc/posix-functions/truncf.texi: Likewise.
62192         * doc/posix-functions/trunc.texi: Likewise.
62193         * doc/posix-functions/truncl.texi: Likewise.
62195 2010-12-20  Bruno Haible  <bruno@clisp.org>
62197         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
62198         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
62199         * doc/posix-functions/round.texi: Likewise.
62200         * doc/posix-functions/roundl.texi: Likewise.
62202 2010-12-20  Bruno Haible  <bruno@clisp.org>
62204         ttyname_r: Add missing declaration on HP-UX 11.
62205         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
62206         HAVE_TTYNAME_R.
62207         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
62208         declared. Set HAVE_TTYNAME_R always.
62209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62210         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
62211         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
62212         HAVE_TTYNAME_R.
62213         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
62215 2010-12-20  Bruno Haible  <bruno@clisp.org>
62217         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
62218         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
62219         * doc/posix-functions/getlogin_r.texi: Likewise.
62220         * tests/test-getlogin.c: Include <errno.h>.
62221         (main): Avoid test failure on HP-UX 11.11.
62222         * tests/test-getlogin_r.c (main): Likewise.
62224 2010-12-20  Bruno Haible  <bruno@clisp.org>
62226         getlogin_r: Add missing declaration on HP-UX 11.
62227         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
62228         declared also when it exists as a function.
62229         * doc/posix-functions/getlogin_r.texi: Document this workaround.
62231 2010-12-20  Bruno Haible  <bruno@clisp.org>
62233         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
62234         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
62235         through wcrtomb.
62237 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62239         ftoastr: fix comment
62240         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62241         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
62243 2010-12-19  Bruno Haible  <bruno@clisp.org>
62245         isnan: Ensure it is a macro.
62246         * lib/math.in.h (isnan): Define as a macro if not already a macro.
62247         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
62248         Solaris.
62250 2010-12-19  Bruno Haible  <bruno@clisp.org>
62252         ldexpl test: Fix link error on OSF/1 5.1.
62253         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
62255 2010-12-19  Bruno Haible  <bruno@clisp.org>
62257         wctype: Make it work in C++ mode on OSF/1 5.1.
62258         * lib/wctype.in.h (iswblank): Declare but not define here.
62259         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
62260         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
62261         * modules/wctype (Files): Add lib/iswblank.c.
62263 2010-12-19  Bruno Haible  <bruno@clisp.org>
62265         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
62266         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
62267         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
62269 2010-12-19  Bruno Haible  <bruno@clisp.org>
62271         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
62272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
62273         _POSIX_PII_SOCKET.
62274         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
62275         * doc/posix-functions/recvfrom.texi: Likewise.
62276         * doc/posix-functions/send.texi: Likewise.
62277         * doc/posix-functions/sendto.texi: Likewise.
62279 2010-12-19  Bruno Haible  <bruno@clisp.org>
62281         tcgetsid: Add missing declaration on OSF/1 5.1.
62282         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
62283         HAVE_TCGETSID.
62284         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
62285         Don't set HAVE_TCGETSID.
62286         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
62287         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
62288         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
62289         HAVE_TCGETSID.
62290         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
62292 2010-12-19  Bruno Haible  <bruno@clisp.org>
62294         stdio: Fix problem with popen() declaration on OSF/1 5.1.
62295         * lib/stdio.in.h: During the include_next statement, let recursive
62296         includes of this file include only the system header file.
62298 2010-12-19  Bruno Haible  <bruno@clisp.org>
62300         iconv_open: Fix regression from 2010-12-04.
62301         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
62302         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
62304 2010-12-19  Bruno Haible  <bruno@clisp.org>
62306         stdbool test: Avoid a gcc warning.
62307         * tests/test-stdbool.c (main): Fail if e1 is false.
62308         Reported by Jim Meyering.
62310 2010-12-19  Jim Meyering  <meyering@redhat.com>
62312         setenv: restore to working order
62313         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
62314         mistakenly removed.
62315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
62316         HAVE_SETENV.
62317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
62318         HAVE_SETENV.
62320 2010-12-19  Bruno Haible  <bruno@clisp.org>
62322         Document some different function declarations on OSF/1 5.1.
62323         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
62324         * doc/posix-functions/inet_ntop.texi: Likewise.
62325         * doc/posix-functions/gethostname.texi: Likewise.
62326         * lib/unistd.in.h (gethostname): Update comment.
62328 2010-12-19  Bruno Haible  <bruno@clisp.org>
62330         doc: Mention vasprintf-posix module.
62331         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
62332         the 'vasprintf-posix' module.
62333         * doc/glibc-functions/vasprintf.texi: Likewise.
62335 2010-12-19  Bruno Haible  <bruno@clisp.org>
62337         unsetenv: Add missing declaration on OSF/1 5.1.
62338         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
62339         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62340         Don't set HAVE_UNSETENV. In the test program, set _BSD.
62341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62342         not HAVE_UNSETENV.
62343         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62344         HAVE_UNSETENV.
62345         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62347 2010-12-19  Bruno Haible  <bruno@clisp.org>
62349         setenv: Add missing declaration on OSF/1 5.1.
62350         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62351         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62352         declared. Don't set HAVE_SETENV.
62353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62354         not HAVE_SETENV.
62355         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62356         HAVE_SETENV.
62357         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62359 2010-12-19  Bruno Haible  <bruno@clisp.org>
62361         nl_langinfo tests: Avoid gcc warning.
62362         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62364 2010-12-19  Bruno Haible  <bruno@clisp.org>
62366         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62367         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62368         _GL_CXXALIAS_SYS.
62370 2010-12-19  Bruno Haible  <bruno@clisp.org>
62372         stdbool: Relax test.
62373         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62374         address to 'bool' work in static initializer, for compilers other than
62375         GCC.
62377 2010-12-19  Bruno Haible  <bruno@clisp.org>
62379         ftello: Add missing declaration on OSF/1 5.1.
62380         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62381         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62383         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62384         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62386 2010-12-19  Bruno Haible  <bruno@clisp.org>
62388         fseeko: Add missing declaration on OSF/1 5.1.
62389         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62390         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62392         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62393         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62395 2010-12-19  Bruno Haible  <bruno@clisp.org>
62397         fchdir: Add missing declaration on OSF/1 5.1.
62398         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62401         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62402         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62404 2010-12-19  Bruno Haible  <bruno@clisp.org>
62406         relocatable-prog-wrapper: Separate from relocatable-prog.
62407         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62408         uninstall-relocwrapper rule here.
62409         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62410         Reported by Ian Beckwith <ianb@erislabs.net>.
62412 2010-12-19  Bruno Haible  <bruno@clisp.org>
62414         unistr/u8-mbsnlen: Add missing dependency.
62415         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62416         Reported by Ian Beckwith <ianb@erislabs.net>.
62418 2010-12-19  Bruno Haible  <bruno@clisp.org>
62420         iconv: Make it possible again to use this module without 'iconv-h'.
62421         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62422         if it is not defined.
62423         Reported by Ian Beckwith <ianb@erislabs.net>.
62425 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62427         acl: port to Solaris 8 when copying from tmpfs to ufs
62428         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62429         error number.  Problem observed on Solaris 8 with latest
62430         coreutils, with "mv A B", where A is on a tmpfs file system and B
62431         is on a ufs file system.  This caused coreutils' mv/part-symlink
62432         test to fail.
62434         tests: set fail=0 at start
62435         * tests/init.sh (setup_): Move fail=0 initialization here ...
62436         (mktempd_): ... from here, so that tests can rely on fail being
62437         set to 0 initially.  This fixes a problem in coreutils; see:
62438         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62440 2010-12-18  Bruno Haible  <bruno@clisp.org>
62442         memmem-simple: Stylistic changes.
62443         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62444         Fix preprocessor directive indentation.
62446 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62448         memmem, memmem-simple: reorganize and expand empty needle check
62449         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62450         functional checks to memmem-simple so that one has a fully functional
62451         memmem by using just this module.
62452         Restrict the performance only check to the memmem module.
62453         Also expand the empty needle check to ensure the correct
62454         pointer is returned, not just a non NULL pointer.
62455         * doc/glibc-functions/memmem.texi: Rearrange the portability
62456         documentation to correlate with the rearranged checks.
62457         Clarify exactly how the memmem and memmem-simple modules
62458         relate to each other.
62460 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62461             Bruno Haible  <bruno@clisp.org>
62463         Improve cross-compilation guesses for uClibc.
62464         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
62465         that uClibc does not have the glibc bug.
62466         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
62467         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
62469 2010-12-14  Eric Blake  <eblake@redhat.com>
62471         configmake: provide fallbacks for oldest supported autotools
62472         * m4/configmake.m4: New file.
62473         * modules/configmake (Files): Ship it.
62474         (configure.ac): Use it to guarantee fallbacks.
62476 2010-12-13  Pádraig Brady  <P@draigBrady.com>
62478         read-file: Improve handling of large files
62479         * lib/read-file.c (fread_file): Minimize realloc()s
62480         for regular files, and better manage sizes around SIZE_MAX.
62482 2010-12-13  Eric Blake  <eblake@redhat.com>
62484         cloexec, fcntl: relax license
62485         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
62486         consent from all contributors.
62487         * modules/fcntl (License): Likewise.
62489 2010-12-10  Bruno Haible  <bruno@clisp.org>
62491         Tests for module 'pipe-posix'.
62492         * modules/pipe-posix-tests: New file.
62493         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
62495 2010-12-10  Bruno Haible  <bruno@clisp.org>
62497         pipe-posix: Make it work in C++ mode.
62498         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
62499         (pipe): Use common idiom, not a macro definition.
62500         * lib/pipe.c: New file.
62501         * m4/pipe.m4: New file.
62502         * modules/pipe-posix (Description): Enhance.
62503         (Files): Add lib/pipe.c, m4/pipe.m4.
62504         (configure.ac): Invoke gl_FUNC_PIPE.
62505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
62506         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
62507         * tests/test-unistd-c++.cc: Check the signature of pipe.
62509 2010-12-10  Bruno Haible  <bruno@clisp.org>
62511         Rename module 'pipe' to 'spawn-pipe'.
62512         * modules/spawn-pipe: New file, renamed from modules/pipe.
62513         (Files, configure.ac, Makefile.am): Update.
62514         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
62515         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
62516         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
62517         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
62518         "spawn-pipe.h" instead of "pipe.h".
62519         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
62520         to gl_SPAWN_PIPE.
62521         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
62522         (Files, Makefile.am): Update.
62523         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
62524         Update.
62525         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
62526         Include "spawn-pipe.h" instead of "pipe.h".
62527         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
62528         * lib/javacomp.c: Likewise.
62529         * lib/javaversion.c: Likewise.
62530         * lib/pipe-filter-gi.c: Likewise.
62531         * lib/pipe-filter-ii.c: Likewise.
62532         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
62533         * modules/javacomp (Depends-on): Likewise.
62534         * modules/javaversion (Depends-on): Likewise.
62535         * modules/pipe-filter-gi (Depends-on): Likewise.
62536         * modules/pipe-filter-ii (Depends-on): Likewise.
62537         * MODULES.html.sh (Executing programs): Update.
62538         * NEWS: Mention the change.
62540 2010-12-10  Eric Blake  <eblake@redhat.com>
62542         pipe-posix: new module
62543         * modules/pipe-posix: New file.
62544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
62545         (gl_UNISTD_H): Check for declaration.
62546         * modules/unistd (Makefile.am): Substitute it.
62547         * lib/unistd.in.h (pipe): Provide it for mingw.
62548         * doc/posix-functions/pipe.texi (pipe): Update documentation.
62549         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
62551 2010-12-07  Bruno Haible  <bruno@clisp.org>
62553         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
62554         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
62555         u8_strcmp_gnu.
62556         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
62558 2010-12-06  Bruno Haible  <bruno@clisp.org>
62560         Update internal documentation.
62561         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
62563 2010-12-04  Bruno Haible  <bruno@clisp.org>
62565         Put more information about failed tests into the test return codes.
62566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
62567         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
62568         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62570         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
62571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62572         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62573         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62574         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
62575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62576         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
62577         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62578         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
62579         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62580         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
62581         returns a bit mask.
62582         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
62583         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
62584         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
62585         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
62586         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62587         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62588         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62589         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62590         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62591         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62592         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62593         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62594         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62595         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62596         * m4/link.m4 (gl_FUNC_LINK): Likewise.
62597         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62598         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
62599         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
62600         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62601         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
62602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62603         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
62605         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62606         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62607         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62608         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
62609         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62610         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62611         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
62612         gl_PRINTF_PRECISION): Likewise.
62613         * m4/regex.m4 (gl_REGEX): Likewise.
62614         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62615         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
62616         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
62617         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62620         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
62621         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
62622         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62623         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62624         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62625         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62626         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62627         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62628         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62629         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62630         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
62631         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62633         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
62634         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
62635         enumerated value.
62636         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
62638 2010-12-04  Bruno Haible  <bruno@clisp.org>
62640         Update for Solaris 11 2010-11.
62641         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
62642         Express, released in November 2010.
62644 2010-12-04  Bruno Haible  <bruno@clisp.org>
62646         nproc: Relax license.
62647         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
62648         and Paul Eggert.
62649         Requested by Ludovic Courtès <ludo@gnu.org>.
62651 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62653         utimecmp: fine-grained src to nearby coarse-grained dest
62655         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
62656         and the source is on a file system with higher-resolution time
62657         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
62658         not work, and the time stamps are close together, the algorithm to
62659         determine the exact resolution from the read-back mtime was buggy:
62660         it had a "!=" where it should have had an "==".  This bug has been
62661         in the code ever since it was introduced to gnulib.
62662         Problem reported by Dan Jacobson in
62663         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62665 2010-11-30  Bruno Haible  <bruno@clisp.org>
62667         strerror_r-posix: Fix autoconf test.
62668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62670 2010-11-28  Bruno Haible  <bruno@clisp.org>
62671             Paul Eggert  <eggert@cs.ucla.edu>
62673         Tests for module 'getdomainname'.
62674         * modules/getdomainname-tests: New file.
62675         * tests/test-getdomainname.c: New file, based on
62676         tests/test-gethostname.c.
62678 2010-11-28  Bruno Haible  <bruno@clisp.org>
62679             Paul Eggert  <eggert@cs.ucla.edu>
62681         getdomainname: Use the system function when possible.
62682         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62683         (getdomainname): Replace if needed. Provide the declaration if it is
62684         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62685         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62686         (getdomainname): When the system has getdomainname, call the system
62687         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62688         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62689         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62690         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62691         the function if its second argument is of type 'int' or if it is found
62692         in libnsl.
62693         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62694         <sys/systeminfo.h> and sysinfo().
62695         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62697         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62698         HAVE_GETDOMAINNAME.
62699         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62700         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62701         * doc/glibc-functions/getdomainname.texi: Document the problems with
62702         the getdomainname declaration.
62704 2010-11-28  Bruno Haible  <bruno@clisp.org>
62706         sys_socket: Ensure ss_family field on AIX.
62707         * lib/sys_socket.in.h (ss_family): New macro definition.
62708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62709         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62710         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62711         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62712         * modules/sys_socket (Makefile.am): Substitute
62713         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62714         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62716 2010-11-27  Bruno Haible  <bruno@clisp.org>
62718         readline: Improve configure output.
62719         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62720         "checking for readline..." result understandable.
62722 2010-11-27  Bruno Haible  <bruno@clisp.org>
62724         *printf-posix: Detect a bug on Solaris 10/x86.
62725         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62726         for floating-point output.
62727         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62728         directive.
62729         * tests/test-snprintf-posix.h (test_function): Likewise.
62730         * tests/test-sprintf-posix.h (test_function): Likewise.
62731         * tests/test-vasprintf-posix.c (test_function): Likewise.
62732         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62733         * doc/posix-functions/printf.texi: Likewise.
62734         * doc/posix-functions/snprintf.texi: Likewise.
62735         * doc/posix-functions/sprintf.texi: Likewise.
62736         * doc/posix-functions/vfprintf.texi: Likewise.
62737         * doc/posix-functions/vprintf.texi: Likewise.
62738         * doc/posix-functions/vsnprintf.texi: Likewise.
62739         * doc/posix-functions/vsprintf.texi: Likewise.
62740         * doc/glibc-functions/obstack_printf.texi: Likewise.
62741         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62743 2010-11-27  Bruno Haible  <bruno@clisp.org>
62745         Fix link error when module libunistring-optional is in use.
62746         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62747         * modules/striconveha-tests (Makefile.am): Likewise.
62749 2010-11-27  Bruno Haible  <bruno@clisp.org>
62751         regex: Mention link dependencies.
62752         * modules/regex (Link): New section.
62753         * modules/rpmatch (Link): Likewise.
62754         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62756 2010-11-27  Bruno Haible  <bruno@clisp.org>
62758         ftoastr: Fix compilation error on Solaris.
62759         * lib/ftoastr.c: Include <config.h>.
62761 2010-11-27  Bruno Haible  <bruno@clisp.org>
62763         getloadavg: Update documentation.
62764         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62766 2010-11-27  Bruno Haible  <bruno@clisp.org>
62768         sys_socket: Fix test whether the functions are declared.
62769         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62770         not <sys/select.h>.
62772 2010-11-27  Bruno Haible  <bruno@clisp.org>
62774         getpass: Make sure to get system declaration on some platforms.
62775         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62776         gl_USE_SYSTEM_EXTENSIONS.
62777         * modules/getpass (Depends-on): Add extensions.
62779 2010-11-26  Bruno Haible  <bruno@clisp.org>
62781         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62782         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62783         'iconv' module is present.
62784         (ICONV_CONST): New macro.
62785         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62786         ICONV_CONST.
62787         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62788         set ICONV_CONST.
62789         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62790         here.
62791         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62792         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62793         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62794         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62795         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62796         present.
62798 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62800         ftoastr: comment fix
62801         * lib/ftoastr.c: "little" -> "little or no" in comment
62803 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62805         stdint: port to GCC 4.3 + OSX + Octave
62806         On this platform, stdint.h is buggy and defines int64_t to long
62807         long int.  The replacement defined it to long int, causing
62808         problems with C++ style name mangling.  Instead, trust the system
62809         definition if INT64_MAX is defined, and likewise for the unsigned
62810         variant.   Problem reported by Jarno Rajahalme in
62811         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62812         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62813         and don't mess with int64_t and INT64_MAX in this case.
62814         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62816 2010-11-24  Bruno Haible  <bruno@clisp.org>
62818         doc: Corrections regarding MacOS X 10.4 and 10.5.
62819         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62820         MacOS X.
62821         Reported by Simon Josefsson.
62823 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62825         Uninstall ".bin" files installed by relocwrapper.
62826         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62827         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62828         unless it is already there.
62830 2010-11-21  Bruno Haible  <bruno@clisp.org>
62832         Update for NetBSD 5.0.
62833         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62834         NetBSD; the test fails on NetBSD 5.0.
62835         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62836         about NetBSD.
62838 2010-11-21  Bruno Haible  <bruno@clisp.org>
62840         Update for HP-UX 11.23 and HP-UX 11.31.
62841         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62842         HP-UX.
62844 2010-11-21  Bruno Haible  <bruno@clisp.org>
62846         Update for MacOS X 10.5.
62847         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62848         MacOS X; the test fails on MacOS X 10.5.8.
62849         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62850         about MacOS X.
62852 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62854         bootstrap: add bootstrap_sync option.
62855         See discussion at
62856         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62857         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62858         * build-aux/bootstrap: Accept --bootstrap-sync to update
62859         bootstrap if it is not identical to the local gnulib's
62860         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62861         enable this by default.  Accept --no-bootstrap-sync to disable
62862         it.
62864 2010-11-20  Bruno Haible  <bruno@clisp.org>
62866         Ensure that <features.h> is included before __GLIBC__ is tested.
62867         * lib/printf-parse.h: Include <features.h>.
62868         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62869         Reported by Mike Frysinger <vapier@gentoo.org>.
62871         Ensure that <features.h> is included before __GLIBC__ is tested.
62872         * lib/wchar.in.h: Include <features.h>.
62873         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62874         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62875         Reported by Mike Frysinger <vapier@gentoo.org>.
62877         Ensure that <features.h> is included before __GLIBC__ is tested.
62878         * lib/arpa_inet.in.h: Include <features.h>.
62879         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62880         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62881         Reported by Mike Frysinger <vapier@gentoo.org>.
62883         Ensure that <features.h> is included before __GLIBC__ is tested.
62884         * build-aux/link-warning.h: Include <features.h>.
62885         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62886         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62887         Reported by Mike Frysinger <vapier@gentoo.org>.
62889         Ensure that <features.h> is included before __GLIBC__ is tested.
62890         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62891         Reported by Mike Frysinger <vapier@gentoo.org>.
62893 2010-11-20  Bruno Haible  <bruno@clisp.org>
62895         memmem: Fix autoconf test.
62896         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62898 2010-11-20  Bruno Haible  <bruno@clisp.org>
62900         Port to uClibc.
62901         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62902         * lib/fcntl.in.h: Likewise.
62903         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62904         * lib/mbrtowc.c (mbrtowc): Likewise.
62905         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62906         * lib/strerror_r.c: Likewise.
62907         * lib/unistr/u8-strnlen.c: Likewise.
62908         * lib/vasnprintf.c (decimal_point_char): Likewise.
62909         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62910         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62911         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62912         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62913         * tests/test-sigaction.c (handler, main): Likewise.
62914         * lib/freading.h: Treat uClibc like a non-glibc platform.
62915         * lib/freading.c: Likewise.
62916         * lib/gettext.h: Likewise.
62917         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62918         Likewise.
62919         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62920         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62921         * lib/propername.c (proper_name_utf8): Likewise.
62922         * lib/spawn.in.h: Likewise.
62923         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62924         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62925         mem_cd_iconveh_internal): Likewise.
62926         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62927         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62928         strstr, strcasestr): Likewise.
62929         * lib/unicodeio.c (unicode_to_mb): Likewise.
62930         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62931         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62932         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62933         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62934         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62935         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62936         * lib/unistr/u8-stpncpy.c: Likewise.
62937         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62938         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62939         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62940         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62941         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62942         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62943         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62946         Likewise.
62947         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62948         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62949         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62950         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62952         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62953         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62954         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62955         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62956         * tests/test-striconveha.c (main): Likewise.
62957         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62958         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62959         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62960         * doc/posix-functions/getline.texi: Likewise.
62961         Reported by Mike Frysinger <vapier@gentoo.org>.
62963 2010-11-20  Bruno Haible  <bruno@clisp.org>
62965         nproc: Fix condition.
62966         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62967         HAVE_PTHREAD_AFFINITY_NP.
62969 2010-11-20  Bruno Haible  <bruno@clisp.org>
62971         Fix a comment.
62972         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62974 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62976         ftoastr: don't assume snprintf
62977         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62978         Implement a subset of snprintf here, by using sprintf safely.
62979         * modules/ftoastr (Depends-on): Remove snprintf.
62981 2010-11-19  Jim Meyering  <meyering@redhat.com>
62983         test-rename.h: fix compilation failure
62984         * tests/test-rename.h (test_rename): Add omitted "}".
62986 2010-11-17  Jim Meyering  <meyering@redhat.com>
62988         maint.mk: add a URL discussing the no-@acronym policy
62989         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62991 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62993         ftoastr: depend on snprintf, improve comments
62994         * lib/ftoastr.c: Also mention Loitsch's draft.
62995         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62996         needed in the current implementation, but it might simplify
62997         speeding up the code later.
62998         * modules/ftoastr: Depend on snprintf; this improves portability.
62999         Suggested by Bruno Haible in the same email.
63001         ftoastr: port to hosts lacking strtof and strtold
63002         Problem reported by Bruno Haible in
63003         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
63004         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
63005         environment and strtold (and presumably strtof) are not available.
63006         * modules/ftoastr (Files): Add m4/c-strtod.m4.
63007         (configure.ac): Require gl_C99_STRTOLD.
63009 2010-11-18  Bruno Haible  <bruno@clisp.org>
63011         c-strtold: Avoid link error on AIX 7.
63012         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
63013         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
63014         (gl_C_STRTOLD): Test whether strtold_l exists.
63015         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63017 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63019         intprops: new macro INT_BITS_STRLEN_BOUND
63020         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
63021         ftoastr.h.  This exposes an internal of intprops.h that was formerly
63022         not exposed.  Also, it uses a slightly tighter bound than before;
63023         though this makes no practical difference, we might as well be as
63024         tight as we easily can.
63026         ftoastr: new module, for lossless conversion of floats to short strings
63027         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
63028         * modules/ftoastr: New files.
63030 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63032         bootstrap: port to Solaris sed
63033         * build-aux/bootstrap (get_version): Port to Solaris sed.
63034         See Ralf Wildenhues's note in
63035         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
63037 2010-11-14  Jim Meyering  <meyering@redhat.com>
63039         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
63040         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
63041         and move definition closer to sole use.
63043 2010-11-13  Jim Meyering  <meyering@redhat.com>
63045         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
63046         Now we require at least autoconf-2.59, which means the work-around
63047         is no longer needed.
63048         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
63049         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63050         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63051         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63052         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63054 2010-11-13  Bruno Haible  <bruno@clisp.org>
63056         rename, renameat: Avoid test failures at NFS mounted locations.
63057         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
63058         functions.
63059         (test_rename): Use assert_nonexistent.
63060         * tests/test-rename.c: Include <dirent.h>.
63061         * tests/test-renameat.c: Likewise.
63062         Reported by Gary V. Vaughan <gary@gnu.org>.
63064         rename, renameat: Document Linux bug with NFS
63065         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
63066         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
63067         * doc/posix-functions/renameat.texi: Likewise.
63068         Suggested by Eric Blake.
63070 2010-11-13  Bruno Haible  <bruno@clisp.org>
63072         rename test: Add comments.
63073         * tests/test-rename.h (test_rename): Add structure and comments.
63075 2010-11-13  Eric Blake  <eblake@redhat.com>
63077         maintainer-makefile: cover a few more files
63078         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
63079         scripts generated within C files, for libvirt.
63081 2010-11-13  Bruno Haible  <bruno@clisp.org>
63083         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
63084         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
63085         character, return the number of bytes that belong together, not always
63086         1.
63087         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
63088         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
63089         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
63090         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
63091         number of bytes of an invalid character.
63092         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
63093         (main): Invoke it.
63094         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
63095         results.
63096         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
63097         malformed byte sequences.
63098         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
63099         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
63100         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
63101         Reported by Ben Pfaff and Paolo Bonzini.
63103 2010-11-13  Bruno Haible  <bruno@clisp.org>
63105         openat: Work around glibc bug with fchownat() and empty file names.
63106         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
63107         (gl_FUNC_FCHOWNAT): Invoke it.
63108         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
63109         * doc/posix-functions/fchownat.texi: Document the glibc bug.
63110         Reported by Gary V. Vaughan <gary@gnu.org>.
63112 2010-11-13  Bruno Haible  <bruno@clisp.org>
63114         openat: Ensure autoconf macro ordering.
63115         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
63116         gl_USE_SYSTEM_EXTENSIONS.
63117         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
63119 2010-11-13  Bruno Haible  <bruno@clisp.org>
63121         Update comments.
63122         * lib/unistr/u8-check.c: Update file name in comments.
63123         * lib/unistr/u8-mblen.c: Likewise.
63124         * lib/unistr/u8-prev.c: Likewise.
63125         * lib/unistr/u8-strmblen.c: Likewise.
63126         * lib/unistr/u8-strmbtouc.c: Likewise.
63128 2010-11-13  Jim Meyering  <meyering@redhat.com>
63130         tests: avoid test failure on Solaris 10 due to lack of PATH export
63131         * tests/test-update-copyright.sh: Don't forget to export PATH.
63133         init.sh: ensure that IFS is defined, just in case...
63134         * tests/init.sh (setup_): Ensure that IFS is defined,
63135         so that saving and restoring it works as expected.  This
63136         appears to be useful at least for an old version of dash
63137         from a long time ago (RH 6).  See here for details:
63138         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
63140         maint.mk: tighten "test a == b" check
63141         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
63142         test to files that contain something like #!/bin/sh.
63143         Without this, coreutils would get two false positives in
63144         the comments of C source files.
63146 2010-11-12  Eric Blake  <eblake@redhat.com>
63148         bootstrap: fix typo in previous attempt
63149         * build-aux/bootstrap (buildreq): Correct the grouping.
63150         Reported by Paul Eggert.
63152         maintainer-makefile: prohibit test x == x
63153         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
63154         Based on a report by Matthias Bolte.
63156         bootstrap: allow FreeBSD gzip
63157         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
63158         which has no '.' and goes to stderr.
63159         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
63160         Reported by Matthias Bolte.
63162         maintainer-makefile: check for i18n setup
63163         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
63164         will likely work.
63166 2010-11-12  Bruno Haible  <bruno@clisp.org>
63168         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
63169         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
63170         * lib/nanosleep.c (nanosleep): Likewise.
63172 2010-11-11  Bruno Haible  <bruno@clisp.org>
63174         fcntl-h: Fix for use of C++ on glibc systems.
63175         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63176         also on glibc systems in C++ mode.
63177         Reported by Gary V. Vaughan <gary@gnu.org>.
63179 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63181         mknod: avoid false failure with dash
63182         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
63184 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63186         unlink: Fix "is it should" typo in diagnostic.
63187         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
63188         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
63190 2010-11-11  Bruno Haible  <bruno@clisp.org>
63192         Tests for module 'strerror_r-posix'.
63193         * modules/strerror_r-posix-tests: New file.
63194         * tests/test-strerror_r.c: New file.
63195         * tests/test-string-c++.cc: Check the signature of strerror_r.
63197         New module 'strerror_r-posix'.
63198         * lib/string.in.h (strerror_r): New declaration.
63199         * lib/strerror_r.c: New file.
63200         * m4/strerror_r.m4: New file.
63201         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
63202         of strerror_r.
63203         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
63204         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63205         * modules/strerror_r-posix: New file.
63206         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
63207         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63208         * doc/posix-functions/strerror_r.texi: Mention the new module and the
63209         portability problems.
63211 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
63213         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
63214         line is also considered for output. Quoted function name in shell
63215         command, so temporary files for functions like MyClass::operator()
63216         are removed correctly without errors.
63218 2010-11-09  Bruno Haible  <bruno@clisp.org>
63220         * doc/posix-functions/strerror.texi: List more failing platforms.
63222         * doc/posix-functions/strerror.texi: Add a comment.
63224 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63226         fdopendir: fix bug on MacOS X when low on file descriptors
63228         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
63229         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
63230         All callers changed.
63231         (fdopendir): Invoke save_cwd at the top level, not after using
63232         multiple dup() calls to use up file descriptors.  Then retry
63233         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
63234         less than the maximum number of open file descriptors, because
63235         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
63236         on Mac OS X 10.6.4 for tar 1.24
63237         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
63238         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
63239         and for tar 1.25
63240         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
63242 2010-11-07  Bruno Haible  <bruno@clisp.org>
63244         vasnprintf: Support I flag on glibc systems.
63245         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
63246         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
63247         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
63248         snprintf function.
63249         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
63250         glibc systems.
63251         * tests/test-vasnprintf-posix3.c: New file.
63252         * modules/vasnprintf-posix-tests (Files): Add it.
63253         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
63255 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63257         [html] Fix copy/paste bug: Use unique name for compiler warnings.
63258         * MODULES.html.sh: For compiler warnings, use name
63259         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
63261 2010-11-05  Eric Blake  <eblake@redhat.com>
63263         ceil, floor: avoid spurious failure with icc
63264         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
63265         [denormals-as-zero] when optimizing without -mieee-fp option.
63266         * tests/test-floorf2.c (floorf_reference): Likewise.
63267         * tests/test-ceilf1.c (dummy): New function.
63268         (main): Use it to outsmart icc's optimization.
63269         * tests/test-floorf1.c (dummy, main): Likewise.
63271         tests: require working signbit
63272         * modules/ceilf-tests (Depends-on): Add signbit.
63273         * modules/ceill-tests (Depends-on): Likewise.
63274         * modules/floorf-tests (Depends-on): Likewise.
63275         * modules/floorl-tests (Depends-on): Likewise.
63276         * modules/round-tests (Depends-on): Likewise.
63277         * modules/roundf-tests (Depends-on): Likewise.
63278         * modules/roundl-tests (Depends-on): Likewise.
63279         * modules/trunc-tests (Depends-on): Likewise.
63280         * modules/truncf-tests (Depends-on): Likewise.
63281         * modules/truncl-tests (Depends-on): Likewise.
63283         strtod: work around icc bug
63284         * lib/strtod.c (minus_zero): Define to working value.
63285         (strtod): Use it to avoid icc bug.
63287         copysign: enhance tests
63288         * modules/copysign-tests (Files): Add minus-zero.h.
63289         * tests/test-copysign.c (main): Also test zeros.
63291 2010-11-04  Eric Blake  <eblake@redhat.com>
63293         ceil, floor, round, trunc: enhance tests of -0
63294         * tests/test-ceilf1.c (main): Ensure correct sign of result.
63295         * tests/test-ceill.c (main): Likewise.
63296         * tests/test-floorf1.c (main): Likewise.
63297         * tests/test-floorl.c (main): Likewise.
63298         * tests/test-round1.c (main): Likewise.
63299         * tests/test-roundf1.c (main): Likewise.
63300         * tests/test-roundl.c (main): Likewise.
63301         * tests/test-trunc1.c (main): Likewise.
63302         * tests/test-truncf1.c (main): Likewise.
63303         * tests/test-truncl.c (main): Likewise.
63305 2010-11-04  Eric Blake  <eblake@redhat.com>
63307         frexp, tests: work around ICC bug with -zero
63308         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
63309         works with more compilers.
63310         * tests/minus-zero.h: New file.
63311         * modules/ceilf-tests (Files): Include it.
63312         * modules/ceill-tests (Files): Likewise.
63313         * modules/floorf-tests (Files): Likewise.
63314         * modules/floorl-tests (Files): Likewise.
63315         * modules/frexp-nolibm-tests (Files): Likewise.
63316         * modules/frexp-tests (Files): Likewise.
63317         * modules/frexpl-nolibm-tests (Files): Likewise.
63318         * modules/frexpl-tests (Files): Likewise.
63319         * modules/isnan-tests (Files): Likewise.
63320         * modules/isnand-nolibm-tests (Files): Likewise.
63321         * modules/isnand-tests (Files): Likewise.
63322         * modules/isnanf-nolibm-tests (Files): Likewise.
63323         * modules/isnanf-tests (Files): Likewise.
63324         * modules/isnanl-nolibm-tests (Files): Likewise.
63325         * modules/isnanl-tests (Files): Likewise.
63326         * modules/round-tests (Files): Likewise.
63327         * modules/roundf-tests (Files): Likewise.
63328         * modules/roundl-tests (Files): Likewise.
63329         * modules/ldexpl-tests (Files): Likewise.
63330         * modules/signbit-tests (Files): Likewise.
63331         * modules/snprintf-posix-tests (Files): Likewise.
63332         * modules/sprintf-posix-tests (Files): Likewise.
63333         * modules/strtod-tests (Files): Likewise.
63334         * modules/trunc-tests (Files): Likewise.
63335         * modules/truncf-tests (Files): Likewise.
63336         * modules/truncl-tests (Files): Likewise.
63337         * modules/vsnprintf-posix-tests (Files): Likewise.
63338         * modules/vsprintf-posix-tests (Files): Likewise.
63339         * modules/vasnprintf-posix-tests (Files): Likewise.
63340         * modules/vasprintf-posix-tests (Files): Likewise.
63341         * tests/test-ceilf1.c (main): Use it.
63342         * tests/test-ceill.c (main): Likewise.
63343         * tests/test-floorf1.c (main): Likewise.
63344         * tests/test-floorl.c (main): Likewise.
63345         * tests/test-frexp.c (main): Likewise.
63346         * tests/test-frexpl.c (main): Likewise.
63347         * tests/test-isnan.c (main): Likewise.
63348         * tests/test-isnand.h (main): Likewise.
63349         * tests/test-isnanf.h (main): Likewise.
63350         * tests/test-isnanl.h (main): Likewise.
63351         * tests/test-ldexpl.c (main): Likewise.
63352         * tests/test-round.c (main): Likewise.
63353         * tests/test-roundf.c (main): Likewise.
63354         * tests/test-roundl.c (main): Likewise.
63355         * tests/test-signbit.c (test_signbitf, test_signbitd)
63356         (test_signbitl): Likewise.
63357         * tests/test-snprintf-posix.h (test_function): Likewise.
63358         * tests/test-sprintf-posix.h (test_function): Likewise.
63359         * tests/test-strtod.c (main): Likewise.
63360         * tests/test-trunc1.c (main): Likewise.
63361         * tests/test-truncf1.c (main): Likewise.
63362         * tests/test-truncl.c (main): Likewise.
63364         isnanl: work around icc bug
63365         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63367 2010-11-03  Eric Blake  <eblake@redhat.com>
63369         tests: fix compiler warnings
63370         * tests/test-getopt.h (test_getopt): Fix condition.
63371         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63372         * tests/test-pipe2.c (main): Likewise.
63373         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63375         utimens: fix broken m4 test
63376         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63378 2010-10-28  Bruno Haible  <bruno@clisp.org>
63380         posix_spawn*, getdtablesize: Relax license.
63381         * modules/posix_spawn (License): Change to LGPLv2+.
63382         * modules/posix_spawnp (License): Likewise.
63383         * modules/posix_spawn-internal (License): Likewise.
63384         * modules/posix_spawnattr_init (License): Likewise.
63385         * modules/posix_spawnattr_getflags (License): Likewise.
63386         * modules/posix_spawnattr_setflags (License): Likewise.
63387         * modules/posix_spawnattr_getpgroup (License): Likewise.
63388         * modules/posix_spawnattr_setpgroup (License): Likewise.
63389         * modules/posix_spawnattr_getschedparam (License): Likewise.
63390         * modules/posix_spawnattr_setschedparam (License): Likewise.
63391         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63392         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63393         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63394         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63395         * modules/posix_spawnattr_getsigmask (License): Likewise.
63396         * modules/posix_spawnattr_setsigmask (License): Likewise.
63397         * modules/posix_spawnattr_destroy (License): Likewise.
63398         * modules/posix_spawn_file_actions_init (License): Likewise.
63399         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63400         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63401         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63402         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63403         * modules/getdtablesize (License): Likewise.
63404         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63406 2010-10-26  Bruno Haible  <bruno@clisp.org>
63408         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63409         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63410         Cygwin and mingw.
63411         Suggested by Eric Blake.
63413 2010-10-26  Bruno Haible  <bruno@clisp.org>
63415         stdio: Work around compilation error due to renameat() on Solaris 10.
63416         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63417         * lib/renameat.c: Don't include <unistd.h> here.
63418         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63419         Reported by Paul Eggert and Eric Blake.
63421 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63423         renameat: port to Solaris 10, which declares renameat in unistd.h
63425         * lib/renameat.c: Include unistd.h before stdio.h, because
63426         Solaris 10 declares renameat in unistd.h.  Problem encountered
63427         when building GNU tar 1.24 on Solaris 10.
63429 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63431         fdopendir: fix C89 compilation
63432         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63433         compilers.
63435 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63437         inttostr: simplify by removing unnecessary redundancy
63438         * lib/anytostr.c: Don't include verify.h.
63439         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63440         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63441         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63442         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63443         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63444         Likewise.
63445         * modules/inttostr (Depends-on): Remove 'verify'.
63447 2010-10-23  Bruno Haible  <bruno@clisp.org>
63449         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63450         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63451         Reported by Eric Blake.
63453 2010-10-23  Bruno Haible  <bruno@clisp.org>
63455         Tests: Fix LOCALE_JA on MirBSD 10.
63456         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
63457         to an UTF-8 locale.
63458         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
63459         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63460         Reported by Eric Blake.
63462 2010-10-21  Bruno Haible  <bruno@clisp.org>
63464         nl_langinfo test: Avoid test failure on NetBSD 5.
63465         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
63466         Reported by Eric Blake.
63468 2010-10-21  Eric Blake  <eblake@redhat.com>
63470         c-stack: work around libsigsegv 2.8 bug
63471         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
63472         overflow on at least PowerPC64.
63474 2010-10-17  Bruno Haible  <bruno@clisp.org>
63476         userspec: Drop redundant file.
63477         * modules/userspec (Files): Remove lib/inttostr.h.
63479 2010-10-17  Bruno Haible  <bruno@clisp.org>
63481         nl_langinfo tests: Silence some warnings.
63482         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
63483         Reported by Jim Meyering.
63485 2010-10-17  Bruno Haible  <bruno@clisp.org>
63487         Make use of GCC's attribute __alloc_size__.
63488         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
63489         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
63490         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
63491         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
63492         __alloc_size__.
63493         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
63494         Suggested by Jim Meyering.
63496 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
63498         bootstrap: anchor .gitignore entries.
63499         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
63500         with...
63501         (insert_vc_ignore): ... this new function, which prepends `/' to
63502         all .gitignore entries before passing them to
63503         insert_sorted_if_absent.
63505 2010-10-16  Bruno Haible  <bruno@clisp.org>
63507         nextafter: Fix configure check.
63508         * modules/nextafter (configure.ac): Correct expected prototype.
63510 2010-10-16  Bruno Haible  <bruno@clisp.org>
63512         termios: Update documentation.
63513         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
63515 2010-10-16  Bruno Haible  <bruno@clisp.org>
63517         tests: Make them compile with TinyCC.
63518         * tests/test-strstr.c (main): Remove parentheses around array
63519         initializer.
63521 2010-10-15  Eric Blake  <eblake@redhat.com>
63523         ignore-value: make header idempotent
63524         * lib/ignore-value.h: Add double-inclusion guards.
63525         Reported by Stefan Berger.
63527 2010-10-15  Jim Meyering  <meyering@redhat.com>
63529         GNUmakefile: handle "stable" target, not "major"
63530         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
63531         lists in maint.mk and announce-gen.  Without this, "make stable"
63532         would fail to ensure that $(VERSION) is up to date.
63534 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
63536         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
63537         & co.
63539 2010-10-14  Bruno Haible  <bruno@clisp.org>
63541         vasnprintf: Don't set errno to 0.
63542         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
63543         block that sets it to 0.
63544         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
63546 2010-10-14  Bruno Haible  <bruno@clisp.org>
63548         socketlib: Fix.
63549         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
63550         gl_PREREQ_SYS_H_WINSOCK2.
63551         Reported by Ian Beckwith <ianb@erislabs.net>.
63553 2010-10-13  Jim Meyering  <meyering@redhat.com>
63555         test-select-stdin.c: avoid warn_unused_result warnings
63556         * tests/test-select-stdin.c: Include "macros.h".
63557         ASSERT that read and fflush succeed.
63559 2010-10-13  Jim Meyering  <meyering@redhat.com>
63561         git-version-gen: do require git-VC'd files in cwd
63562         * build-aux/git-version-gen: Reject a git version string
63563         if there are no commits associated with the current directory.
63564         This avoids an unlikely false-positive (unrelated dir whose parent
63565         repository also contains a tag matching v*), as pointed out
63566         by Giuseppe Scrivano in
63567         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
63569 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63571         argv-iter: omit nonconforming declaration
63572         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
63573         enum arg_iter_err declaration, which doesn't conform to C99.
63574         Solaris 10 cc warns about this.
63576 2010-10-13  Eric Blake  <eblake@redhat.com>
63578         termios: fix compilation on mingw
63579         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
63580         (gl_TERMIOS_H): Adjust it on mingw.
63581         * modules/termios (Makefile.am): Substitute new key.
63582         * lib/termios.in.h (includes): Make include_next conditional.
63583         * doc/posix-headers/termios.texi (termios.h): Update
63584         documentation.
63585         Reported by Daniel P. Berrange.
63587 2010-10-13  Jim Meyering  <meyering@redhat.com>
63589         git-version-gen: don't require that .git/ be in the current dir
63590         * build-aux/git-version-gen: Adjust this script so that it works
63591         when run from any working directory beneath the top-level .git/-
63592         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63593         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63595         test-select: avoid warn_unused_result warnings
63596         * tests/test-select.c: Include "macros.h".
63597         ASSERT that each call to read, write, and pipe succeeds.
63598         While not technically required, also check each "close".
63599         * modules/select-tests (Files): Add tests/macros.h.
63601         test-symlinkat: remove declaration of unused local
63602         * tests/test-symlinkat.c (main): Remove unused local, "buf".
63604         test-inttostr: avoid shadowing warnings
63605         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
63606         and use malloc rather than the stack for the same reason as
63607         mentioned in the comment justifying the other allocation.
63609 2010-10-11  Bruno Haible  <bruno@clisp.org>
63611         stdlib: Allow multiple gnulib generated replacements to coexist.
63612         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
63613         Reported by Sam Steingold <sds@gnu.org>.
63615 2010-10-11  Jim Meyering  <meyering@redhat.com>
63617         fix a documentation typo
63618         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
63620 2010-10-11  Eric Blake  <eblake@redhat.com>
63622         futimens: work around Solaris 11 bug
63623         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
63624         * tests/test-futimens.h (test_futimens): Enhance, rather than
63625         weaken test.
63626         * doc/posix-functions/futimens.texi (futimens): Document the bug.
63628 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63630         Indentation.
63631         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
63632         higher-level operators more to the left.
63634 2010-10-11  Jim Meyering  <meyering@redhat.com>
63636         test-futimens: avoid unwarranted test failure on Solaris 5.11
63637         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
63638         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
63639         because it tries to dereference the NULL name argument.
63641 2010-10-11  Bruno Haible  <bruno@clisp.org>
63643         Indentation.
63644         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
63645         indentation.
63647 2010-10-11  Jim Meyering  <meyering@redhat.com>
63649         spawn.in.h: make indentation consistent with parentheses
63650         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
63651         Make indentation consistent with parentheses.
63653 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
63655         Fix mismatched parens in previous commit
63656         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
63657         parens.
63659 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63661         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63663         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63664         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63665         * lib/malloca.c: Include "verify.h".
63666         (verify1): Remove, replacing with a verify call.
63667         * lib/relocwrapper.c (verify1): Likewise.
63668         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63669         Likewise.
63670         * modules/malloca (Depends-on): Add 'verify'.
63671         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63672         * modules/vasnprintf (Depends-on): Add 'verify'.
63673         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63674         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63675         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63676         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63677         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63678         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63679         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63681         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63683         Formerly the style was sometimes 2*X - 1, because the C standard
63684         was wrongly thought to disallow ?: in integral constant expressions.
63685         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63686         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63687         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63688         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63689         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63690         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63691         verify that time_t cannot be floating.
63693 2010-10-08  Eric Blake  <eblake@redhat.com>
63695         time: enforce recent POSIX ruling that time_t is integral
63696         * lib/time.in.h (__time_t_must_be_integral): Detect any
63697         problematic systems, allowing the rest of gnulib to assume POSIX.
63699 2010-10-08  Jim Meyering  <meyering@redhat.com>
63701         fdopendir: fix a bug on systems lacking openat and /proc support
63702         OpenBSD 4.7 is one such system.  The most noticeable effect was
63703         failure of any application making nontrivial use of fts: rm, du,
63704         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63705           ./rm: traversal failed: `a': Bad file descriptor
63706         Debugging that, you see that even though FD 6 was closed just
63707         prior to the opendir call in fd_clone_opendir, its resulting
63708         dir->dd_fd was 8, rather than the expected value of 6:
63710         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63711         93                close (fd);
63712         (gdb) n
63713         94                dir = fd_clone_opendir (dupfd);
63714         (gdb) n
63715         95                saved_errno = errno;
63716         (gdb) p dir->dd_fd
63717         $11 = 8
63719         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63720         The problem is that on OpenBSD, fd_clone_opendir has to resort
63721         to using the old-style save/restore CWD mechanism, due to its
63722         lack of openat/proc support, and *that* would steal the FD (6)
63723         that opendir was supposed to use.
63725         The fix is to squirrel away the desired FD so that save_cwd uses a
63726         different one, and then free the dest FD right before calling opendir.
63727         That guarantees opendir will use the required file descriptor.
63729         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63731 2010-10-08  Bruno Haible  <bruno@clisp.org>
63733         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63734         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63736 2010-10-08  Bruno Haible  <bruno@clisp.org>
63738         nanosleep: Make replacement POSIX compliant.
63739         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63740         is out of range.
63741         Reported by Jim Meyering.
63743 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63745         bootstrap: add hook for altering gnulib.mk, for Bison
63746         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63747         the Bison bootstrapping process can rewrite file names and variables
63748         in this file before later parts of 'bootstrap' use the file.
63749         Bison wants to include lib/gnulib.mk from the top-level makefile,
63750         so it needs the file names in this file to be relative to the top
63751         level, not relative to lib; plus it needs variable names to be
63752         rewritten.
63753         (slurp): Use the new function.
63755         bootstrap: reformat for readability
63756         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63758 2010-10-08  Eric Blake  <eblake@redhat.com>
63760         docs: update cygwin progress
63761         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63762         1.7.7.
63763         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63764         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63765         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63766         * doc/posix-functions/carg.texi (carg): Likewise.
63767         * doc/posix-functions/cargf.texi (cargf): Likewise.
63768         * doc/posix-functions/casin.texi (casin): Likewise.
63769         * doc/posix-functions/casinf.texi (casinf): Likewise.
63770         * doc/posix-functions/casinh.texi (casinh): Likewise.
63771         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63772         * doc/posix-functions/catan.texi (catan): Likewise.
63773         * doc/posix-functions/catanf.texi (catanf): Likewise.
63774         * doc/posix-functions/catanh.texi (catanh): Likewise.
63775         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63776         * doc/posix-functions/ccos.texi (ccos): Likewise.
63777         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63778         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63779         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63780         * doc/posix-functions/cexp.texi (cexp): Likewise.
63781         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63782         * doc/posix-functions/cimag.texi (cimag): Likewise.
63783         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63784         * doc/posix-functions/clog.texi (clog): Likewise.
63785         * doc/posix-functions/clogf.texi (clogf): Likewise.
63786         * doc/posix-functions/conj.texi (conj): Likewise.
63787         * doc/posix-functions/conjf.texi (conjf): Likewise.
63788         * doc/posix-functions/cpow.texi (cpow): Likewise.
63789         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63790         * doc/posix-functions/cproj.texi (cproj): Likewise.
63791         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63792         * doc/posix-functions/creal.texi (creal): Likewise.
63793         * doc/posix-functions/crealf.texi (crealf): Likewise.
63794         * doc/posix-functions/csin.texi (csin): Likewise.
63795         * doc/posix-functions/csinf.texi (csinf): Likewise.
63796         * doc/posix-functions/csinh.texi (csinh): Likewise.
63797         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63798         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63799         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63800         * doc/posix-functions/ctan.texi (ctan): Likewise.
63801         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63802         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63803         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63804         * doc/posix-headers/complex.texi (complex.h): Likewise.
63806 2010-10-07  Jim Meyering  <meyering@redhat.com>
63808         parse-datetime: avoid compilation failure on OpenBSD 4.7
63809         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63810         This works around a compilation failure on OpenBSD 4.7:
63811         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63813 2010-10-07  Eric Blake  <eblake@redhat.com>
63815         docs: update cygwin progress
63816         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63817         1.7.6.
63818         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63819         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63820         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63821         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63822         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63823         Likewise.
63824         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63825         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63826         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63827         Likewise.
63828         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63829         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63830         Likewise.
63831         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63832         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63833         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63834         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63835         Likewise.
63836         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63837         Likewise.
63838         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63840         docs: update parse-datetime history
63841         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63842         documentation of this function's history and alternatives.
63844         cygwin: use more robust version check
63845         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63846         exclude an eventual cygwin 1.9.1.
63847         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63849         (gl_FUNC_STRCASESTR): Likewise.
63850         Reported by Bruno Haible.
63852 2010-10-06  Bruno Haible  <bruno@clisp.org>
63854         string, sys_select: Avoid #including large headers unless necessary.
63855         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63856         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63857         OSF/1, BeOS, Haiku.
63858         Reported by Jim Meyering.
63860 2010-10-05  Eric Blake  <eblake@redhat.com>
63862         memmem, strstr, strcasestr: fix bug with long periodic needle
63863         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63864         periodic needle having false positive.
63865         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63866         and cygwin 1.7.7.
63867         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63869         (gl_FUNC_STRCASESTR): Likewise.
63870         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63871         * tests/test-memmem.c (main): Expose the bug.
63872         * tests/test-strcasestr.c (main): Likewise.
63873         * tests/test-strstr.c (main): Likewise.
63874         * tests/test-c-strcasestr.c (main): Likewise.
63875         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63876         * doc/posix-functions/strstr.texi (strstr): Likewise.
63877         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63878         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63880 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63882         parse-datetime: do some more renaming
63883         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63884         parse_datetime, not get_date.  Mention the renaming.
63885         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63886         in comments.
63887         * m4/bison.m4: Likewise.
63889 2010-10-05  Eric Blake  <eblake@redhat.com>
63891         parse-datetime: better name than get_date
63892         * NEWS: Reword the deprecation notice.
63893         * modules/get_date: Rename to modules/parse-datetime.
63894         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63895         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63896         * lib/get_date.y: Rename to lib/parse-datetime.y.
63897         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63898         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63899         * doc/getdate.texi: Provide fallback wrapper.
63900         * lib/getdate.h: Move guts, and wrap...
63901         * lib/parse-datetime.h: ...new file.
63902         * lib/parse-datetime.y (get_date): Rename...
63903         (parse_datetime): ...to this.
63904         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63905         (gl_PARSE_DATETIME): ...to this.
63906         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63907         documentation.
63908         * modules/getdate (Files): Provide fallback docs and header.
63909         (Notice, Depends-on): Update references.
63910         * tests/test-parse-datetime.c: Likewise.
63911         * DEPENDENCIES: Likewise.
63912         * MODULES.html.sh (Date and time <time.h>): Likewise.
63913         * doc/parse-datetime.texi (Date input formats)
63914         (Authors of parse_datetime): Likewise.
63915         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63916         (Include): Likewise.
63917         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63918         * gnulib-tool: Likewise.
63919         * m4/bison.m4 (gl_BISON): Likewise.
63920         Suggested by Bruno Haible.
63922 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63924         more ports to Solaris tr, which needs [] around ranges
63925         * gnulib-tool: Solaris tr needs [] around ranges.
63926         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63927         * tests/test-pipe-filter-gi1.c (main): Likewise.
63928         * tests/test-pipe-filter-ii1.c (main): Likewise.
63930 2010-10-05  Eric Blake  <eblake@redhat.com>
63932         bootstrap: fix Solaris regression
63933         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63934         around ranges.
63935         Reported by Pádraig Brady.
63937         bootstrap: work with pkg-config
63938         * build-aux/bootstrap (check_versions): Also transliterate - in
63939         prerequisite name.
63940         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63941         prerequisites that were already found, to avoid confusion.
63942         Reported by Justin Clift.
63944         faccessat: remove unused wrappers
63945         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63946         presence of these wrappers dragged in -lgen on Solaris.
63947         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63949 2010-10-05  Jim Meyering  <meyering@redhat.com>
63951         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63952         * Makefile (sc_pragma_columns): New syntax-check rule.
63954 2010-10-04  Bruno Haible  <bruno@clisp.org>
63956         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63957         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63958         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63959         Reported by Bruce Korb and Eric Blake.
63961 2010-10-04  Bruno Haible  <bruno@clisp.org>
63963         threadlib: Make option --with-libpth-prefix work.
63964         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63965         use $LIBPTH, not just -lpth.
63967 2010-10-04  Bruno Haible  <bruno@clisp.org>
63969         Avoid line length limitation from HP NonStop system header files.
63970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63971         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63972         * lib/ctype.in.h: Likewise.
63973         * lib/dirent.in.h: Likewise.
63974         * lib/errno.in.h: Likewise.
63975         * lib/fcntl.in.h: Likewise.
63976         * lib/float.in.h: Likewise.
63977         * lib/getopt.in.h: Likewise.
63978         * lib/iconv.in.h: Likewise.
63979         * lib/inttypes.in.h: Likewise.
63980         * lib/langinfo.in.h: Likewise.
63981         * lib/locale.in.h: Likewise.
63982         * lib/math.in.h: Likewise.
63983         * lib/netdb.in.h: Likewise.
63984         * lib/netinet_in.in.h: Likewise.
63985         * lib/poll.in.h: Likewise.
63986         * lib/pthread.in.h: Likewise.
63987         * lib/pty.in.h: Likewise.
63988         * lib/sched.in.h: Likewise.
63989         * lib/se-selinux.in.h: Likewise.
63990         * lib/search.in.h: Likewise.
63991         * lib/signal.in.h: Likewise.
63992         * lib/spawn.in.h: Likewise.
63993         * lib/stdarg.in.h: Likewise.
63994         * lib/stddef.in.h: Likewise.
63995         * lib/stdint.in.h: Likewise.
63996         * lib/stdio.in.h: Likewise.
63997         * lib/stdlib.in.h: Likewise.
63998         * lib/string.in.h: Likewise.
63999         * lib/strings.in.h: Likewise.
64000         * lib/sys_file.in.h: Likewise.
64001         * lib/sys_ioctl.in.h: Likewise.
64002         * lib/sys_select.in.h: Likewise.
64003         * lib/sys_socket.in.h: Likewise.
64004         * lib/sys_stat.in.h: Likewise.
64005         * lib/sys_time.in.h: Likewise.
64006         * lib/sys_times.in.h: Likewise.
64007         * lib/sys_utsname.in.h: Likewise.
64008         * lib/sys_wait.in.h: Likewise.
64009         * lib/sysexits.in.h: Likewise.
64010         * lib/termios.in.h: Likewise.
64011         * lib/time.in.h: Likewise.
64012         * lib/unistd.in.h: Likewise.
64013         * lib/wchar.in.h: Likewise.
64014         * lib/wctype.in.h: Likewise.
64015         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
64016         * modules/ctype (Makefile.am): Likewise.
64017         * modules/dirent (Makefile.am): Likewise.
64018         * modules/errno (Makefile.am): Likewise.
64019         * modules/fcntl-h (Makefile.am): Likewise.
64020         * modules/float (Makefile.am): Likewise.
64021         * modules/getopt-posix (Makefile.am): Likewise.
64022         * modules/iconv-h (Makefile.am): Likewise.
64023         * modules/inttypes (Makefile.am): Likewise.
64024         * modules/langinfo (Makefile.am): Likewise.
64025         * modules/locale (Makefile.am): Likewise.
64026         * modules/math (Makefile.am): Likewise.
64027         * modules/netdb (Makefile.am): Likewise.
64028         * modules/netinet_in (Makefile.am): Likewise.
64029         * modules/poll-h (Makefile.am): Likewise.
64030         * modules/pthread (Makefile.am): Likewise.
64031         * modules/pty (Makefile.am): Likewise.
64032         * modules/sched (Makefile.am): Likewise.
64033         * modules/search (Makefile.am): Likewise.
64034         * modules/selinux-h (Makefile.am): Likewise.
64035         * modules/signal (Makefile.am): Likewise.
64036         * modules/spawn (Makefile.am): Likewise.
64037         * modules/stdarg (Makefile.am): Likewise.
64038         * modules/stddef (Makefile.am): Likewise.
64039         * modules/stdint (Makefile.am): Likewise.
64040         * modules/stdio (Makefile.am): Likewise.
64041         * modules/stdlib (Makefile.am): Likewise.
64042         * modules/string (Makefile.am): Likewise.
64043         * modules/strings (Makefile.am): Likewise.
64044         * modules/sys_file (Makefile.am): Likewise.
64045         * modules/sys_ioctl (Makefile.am): Likewise.
64046         * modules/sys_select (Makefile.am): Likewise.
64047         * modules/sys_socket (Makefile.am): Likewise.
64048         * modules/sys_stat (Makefile.am): Likewise.
64049         * modules/sys_time (Makefile.am): Likewise.
64050         * modules/sys_times (Makefile.am): Likewise.
64051         * modules/sys_utsname (Makefile.am): Likewise.
64052         * modules/sys_wait (Makefile.am): Likewise.
64053         * modules/sysexits (Makefile.am): Likewise.
64054         * modules/termios (Makefile.am): Likewise.
64055         * modules/time (Makefile.am): Likewise.
64056         * modules/unistd (Makefile.am): Likewise.
64057         * modules/wchar (Makefile.am): Likewise.
64058         * modules/wctype (Makefile.am): Likewise.
64060 2010-10-04  Bruno Haible  <bruno@clisp.org>
64062         read-file tests: Avoid a test failure on NonStop Kernel.
64063         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
64064         a regular file.
64065         Reported by Joachim Schmitz <schmitz@hp.com>.
64067 2010-10-03  Bruno Haible  <bruno@clisp.org>
64069         gnulib-tool: Fixes for --create-testdir with --libtool.
64070         * gnulib-tool (func_get_automake_snippet): Don't augment
64071         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
64072         an executable.
64073         (func_create_testdir): Handle module 'alloca' like func_import.
64074         Reported by Bruce Korb <bruce.korb@gmail.com>.
64076 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64078         Avoid some lines longer than 80 characters.
64079         * lib/stdint.in.h: Break long comment lines.
64080         * lib/math.in.h: Likewise.
64081         (_GL_NUM_UINT_WORDS): New macro, for readability.
64082         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
64083         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
64084         * lib/stdlib.in.h: Likewise.
64085         * lib/spawn.in.h: Likewise.
64086         * lib/sys_socket.in.h: Update an URL.
64087         * lib/sys_stat.in.h: Break long line.
64089 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
64091         Improve pmccabe2html.
64092         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
64093         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
64094         when the sources change. Remove the line in the HTML about "Used
64095         ranges" (which implied that there might be other unused ranges),
64096         rename "Resume" to "Summary" (easier to understand for more users).
64097         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
64098         styles, and some unnecessary blank lines.
64100 2010-10-03  Bruno Haible  <bruno@clisp.org>
64101             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64103         acl: Add support for ACLs on NonStop Kernel.
64104         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
64105         Check whether the function aclsort() exists.
64106         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
64107         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
64108         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64109         (acl_nontrivial [HAVE_ACLSORT]: New function.
64110         (file_has_acl): Implement for NonStop Kernel.
64111         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64112         (qset_acl): Implement for NonStop Kernel.
64113         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
64114         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64115         (main): Implement for NonStop Kernel.
64116         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
64117         Kernel. Handle this flavor.
64118         * tests/test-set-mode-acl.sh: Likewise.
64119         * tests/test-copy-acl.sh: Likewise.
64120         * tests/test-copy-file.sh: Likewise.
64122 2010-10-03  Bruno Haible  <bruno@clisp.org>
64124         Info about ACLs on NonStop Kernel.
64125         * doc/acl-resources.txt: Add info about NonStop Kernel.
64126         References by Joachim Schmitz <schmitz@hp.com>.
64128 2010-10-02  Bruno Haible  <bruno@clisp.org>
64130         Define missing EDQUOT on NonStop Kernel.
64131         * lib/errno.in.h (EDQUOT): Assign a value if missing.
64132         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
64133         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
64134         missing.
64135         * doc/posix-headers/errno.texi: Mention the NSK bug.
64136         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
64137         Reported by Joachim Schmitz <schmitz@hp.com>.
64139 2010-10-02  Bruno Haible  <bruno@clisp.org>
64141         Update doc for POSIX:2008.
64142         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
64143         Update URL of POSIX specification.
64145 2010-10-02  Bruno Haible  <bruno@clisp.org>
64147         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
64148         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
64149         from gnulib, not from Automake.
64151 2010-10-02  Bruno Haible  <bruno@clisp.org>
64153         New module 'system-posix'.
64154         * modules/system-posix: New file.
64155         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
64156         module is present.
64157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64158         GNULIB_SYSTEM_POSIX.
64159         * modules/stdlib (Depends-on): Remove sys_wait.
64160         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
64161         * doc/posix-functions/system.texi: Mention the new module.
64162         * doc/posix-headers/stdlib.texi: Likewise.
64163         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
64164         define test_sys_wait_macros to a no-op.
64165         Reported by Sam Steingold <sds@gnu.org>.
64167 2010-09-30  Bruno Haible  <bruno@clisp.org>
64169         More renaming from 'getdate' to 'get_date'.
64170         * doc/get_date.texi: Renamed from doc/getdate.texi.
64171         * modules/get_date (Files): Update.
64172         * MODULES.html.sh (Date and time <time.h>): Update.
64173         * DEPENDENCIES: Update.
64174         * gnulib-tool: Update comment.
64175         * m4/bison.m4 (gl_BISON): Likewise.
64176         * m4/get_date.m4 (gl_GET_DATE): Likewise.
64178 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
64180         bootstrap: support ACLOCAL_FLAGS during aclocal
64181         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
64182         can add additional -I dir for third-party .m4 files.
64184 2010-09-30  Eric Blake  <eblake@redhat.com>
64186         bootstrap: use glibtoolize on MacOS
64187         * build-aux/bootstrap (check_versions): Convert libtool into
64188         libtoolize.
64189         (tool search): Move libtool check earlier, and look for
64190         glibtoolize for MacOS.
64191         (gnulib_tool_options): Auto-add --libtool when appropriate.
64192         Reported by Justin Clift.
64194         poll: fix typo that broke test on MacOS
64195         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
64196         Reported by Justin Clift.
64198         getdate: rename to get_date
64199         Note: getdate.h is not renamed, to minimize client impact.
64200         * modules/getdate: Mark obsolete.  Move old contents...
64201         * modules/get_date: ...to new module name.
64202         * modules/getdate-tests: Move...
64203         * modules/get_date-tests: ...here.
64204         * m4/getdate.m4: Move...
64205         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
64206         * lib/getdate.y: Move...
64207         * lib/get_date.y: ...here.
64208         * tests/test-getdate.c: Move...
64209         * tests/test-get_date.c: ...here.
64210         * doc/posix-functions/getdate.texi (getdate): Update name.
64211         * NEWS: Mention the change.
64213 2010-09-29  Bruno Haible  <bruno@clisp.org>
64215         Separate the module 'waitpid' from the module 'sys_wait'.
64216         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
64217         present.
64218         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
64219         gl_MODULE_INDICATOR_FOR_TESTS.
64220         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
64221         * modules/sys_wait (Depends-on): Remove waitpid.
64222         (Makefile.am): Substitute GNULIB_WAITPID.
64223         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
64224         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
64225         signature only if the 'waitpid' module is present.
64226         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
64227         * NEWS: Mention the change.
64228         * modules/grantpt (Depends-on): Add waitpid.
64229         * modules/wait-process (Depends-on): Likewise.
64231 2010-09-29  Bruno Haible  <bruno@clisp.org>
64233         More tests for module 'sys_wait'.
64234         * modules/sys_wait-c++-tests: New file.
64235         * tests/test-sys_wait-c++.cc: New file.
64236         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
64237         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64239 2010-09-29  Bruno Haible  <bruno@clisp.org>
64241         New module 'waitpid'.
64242         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
64243         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
64244         Don't include <process.h>.
64245         (waitpid): Declare only, using modern idiom.
64246         * m4/waitpid.m4: New file.
64247         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
64248         * modules/waitpid: New file.
64249         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
64250         (Makefile.am): Update.
64251         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64253 2010-09-28  Bruno Haible  <bruno@clisp.org>
64255         poll: Assume ANSI C.
64256         * lib/poll.c (poll): Use an ANSI C declaration.
64258 2010-09-28  Bruno Haible  <bruno@clisp.org>
64260         poll-h: Create poll.h on all platforms.
64261         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
64262         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
64263         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
64264         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
64265         (gl_REPLACE_POLL_H): Don't set POLL_H.
64266         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
64267         * modules/poll-h (Depends-on): Add include_next.
64268         (Makefile.am): Create poll.h unconditionally. Substitute also
64269         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
64271 2010-09-28  Bruno Haible  <bruno@clisp.org>
64273         Tests for module 'poll-h'.
64274         * modules/poll-h-c++-tests: New file.
64275         * tests/test-poll-h-c++.cc: New file.
64277         Tests for module 'poll-h'.
64278         * modules/poll-h-tests: New file.
64279         * tests/test-poll-h.c: New file.
64281 2010-09-28  Bruno Haible  <bruno@clisp.org>
64283         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
64284         * modules/poll-h (Depends-on): Add 'extensions'.
64286 2010-09-28  Bruno Haible  <bruno@clisp.org>
64288         New module 'poll-h'.
64289         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
64290         (poll): Use modern idiom.
64291         * modules/poll-h: New file.
64292         * modules/poll (Files): Remove lib/poll.in.h.
64293         (Depends-on): Add poll-h.
64294         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
64295         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
64296         * m4/poll_h.m4: New file.
64297         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
64298         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
64299         and invoke gl_REPLACE_POLL_H.
64300         * lib/poll.c: Use common idiom.
64301         * tests/test-poll.c: Likewise.
64302         * doc/posix-headers/poll.texi: Mention the poll-h module.
64303         Suggested by Eric Blake.
64305 2010-09-26  Bruno Haible  <bruno@clisp.org>
64307         sys_wait: Implement WSTOPSIG.
64308         * lib/sys_wait.in.h (WSTOPSIG): New macro.
64309         Reported by Simon Josefsson.
64311 2010-09-26  Simon Josefsson  <simon@josefsson.org>
64313         stdlib, sys_wait: Avoid compilation error on mingw.
64314         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
64316 2010-09-26  Bruno Haible  <bruno@clisp.org>
64318         stdlib tests: Avoid code duplication.
64319         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
64320         * modules/sys_wait-tests (Files): Likewise.
64321         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
64322         * tests/test-stdlib.c: Include test-sys_wait.h.
64323         (main): Invoke test_sys_wait_macros.
64324         * tests/test-sys_wait.c: Include test-sys_wait.h.
64325         (main): Invoke test_sys_wait_macros.
64327 2010-09-25  Simon Josefsson  <simon@josefsson.org>
64329         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
64330         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
64331         sure Windows sockets are working before calling getaddrinfo.
64332         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
64333         * doc/gnulib.texi (Windows sockets): Fix typo.
64335 2010-09-25  Bruno Haible  <bruno@clisp.org>
64337         Tests for module 'regex-quote'.
64338         * modules/regex-quote-tests: New file.
64339         * tests/test-regex-quote.c: New file.
64341         New module 'regex-quote'.
64342         * lib/regex-quote.h: New file.
64343         * lib/regex-quote.c: New file.
64344         * modules/regex-quote: New file.
64345         Suggested by Reuben Thomas <rrt@sc3d.org>.
64347 2010-09-24  Bruno Haible  <bruno@clisp.org>
64349         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64350         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64352 2010-09-23  Bruno Haible  <bruno@clisp.org>
64354         setenv: Relax license.
64355         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64356         Blake.
64357         Requested by Eric Blake.
64359 2010-09-22  Bruno Haible  <bruno@clisp.org>
64361         termios: Relax license.
64362         * modules/termios (License): Change to LGPLv2+.
64363         Requested by Eric Blake.
64365 2010-09-22  Bruno Haible  <bruno@clisp.org>
64367         threadlib: Allow the package to change the default to 'no'.
64368         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64369         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64370         Reported by Paul Eggert.
64372 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64373             Bruno Haible  <bruno@clisp.org>
64375         Fix endless loop in mbmemcasecoll.
64376         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64377         byte.
64378         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64380 2010-09-22  Bruno Haible  <bruno@clisp.org>
64382         Tests for module 'memcoll'.
64383         * modules/memcoll-tests: New file.
64384         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64386         memcoll, xmemcoll: Clarify size vs. length.
64387         * modules/memcoll.c (memcoll0): Clarify specification.
64388         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64389         passed to collate_error.
64391 2010-09-22  Bruno Haible  <bruno@clisp.org>
64393         Tests for module 'memcasecmp'.
64394         * modules/memcasecmp-tests: New file.
64395         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64397 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64399         * lib/pthread.in.h: Add split double-inclusion guard, and include
64400         system <pthread.h> if there is one.  Use @@-style as in other
64401         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64402         pthread.h doesn't.
64403         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64404         (pthread_mutexattr_settype, pthread_mutex_trylock):
64405         New static inline functions, if there's no system <pthread.h>.
64406         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64407         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64408         Approximate with mutexes if the system lacks spinlocks, as in
64409         MacOS.
64410         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64411         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64412         @@-style.  Check for spinlocks separately.
64413         (gl_PTHREAD_DEFAULTS): New macro.
64414         * modules/pthread: Redo to use a more typical style for in.h files.
64416 2010-09-21  Eric Blake  <eblake@redhat.com>
64418         net_if: enhance tests
64419         * tests/test-net_if.c (main): Move signature checks earlier.
64420         Print failures to stderr.
64421         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64422         Document the bug that we do not yet fix.
64424 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64426         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64427         about gnulib, not GSS.
64429 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64431         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64432         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64433         for Emacs.
64434         * build-aux/pmccabe2html: Make Makefile.am example code more
64435         cut-and-paste friendly.
64437 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64439         * tests/test-net_if.c: New file.
64440         * modules/net_if-tests: New file.
64442 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64444         pthread: add pthread_spin_destroy
64445         * lib/pthread.in.h (pthread_spin_destroy): New function.
64447 2010-09-19  Bruno Haible  <bruno@clisp.org>
64449         gnulib-tool: Fix --help output.
64450         * gnulib-tool (func_usage): Fix help message.
64451         Reported by Reuben Thomas <rrt@sc3d.org>.
64453 2010-09-18  Jim Meyering  <meyering@redhat.com>
64455         maint.mk: avoid unexpanded \n in two diagnostics
64456         * top/maint.mk (sc_prohibit_always_true_header_tests):
64457         Don't use a literal \n in a halt=... assignment.  It would not be
64458         expanded, and the two \n bytes would appear in the diagnostic output
64459         rather than the desired newline.  Use halt=$$(printf ... instead.
64460         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64462 2010-09-18  Bruno Haible  <bruno@clisp.org>
64464         netinet_in: Doc tweak.
64465         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
64466         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64468 2010-09-18  Jim Meyering  <meyering@redhat.com>
64470         init.sh: correct an outdated comment
64471         * tests/init.sh (create_exe_shims_):  s/function/alias/
64473         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
64474         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
64475         a file named "*.exe" is removed between the glob expansion and the
64476         processing of that oddly named file.
64478 2010-09-17  Eric Blake  <eblake@redhat.com>
64480         mirbsd: add some more support
64481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
64482         in BSD family.
64483         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
64484         devices as OpenBSD.
64485         * m4/host-os.m4 (mirbsd): Add MirBSD.
64487         tests: fix unportable assumption on sys/wait.h
64488         * tests/test-sys_wait.c (main): Relax test.
64489         * tests/test-stdlib.c (main): Likewise.
64491         init.sh: accommodate directory with no .exes
64492         * tests/init.sh: Accomodate directory containing only scripts.
64494         tests: avoid compiler warning
64495         * tests/test-stdlib.c (main): Use the variable.
64497         fdutimens, fdutimensat: update signature, again
64498         * lib/utimens.h (gl_futimens): Delete, and move signature...
64499         (fdutimens): ...here.
64500         (fdutimensat): Rearrange signature.
64501         (lutimensat): Rename variable for clarity.
64502         * lib/fdutimensat.c (fdutimensat): Update signature.
64503         * lib/utimens.c (fdutimens): Likewise.
64504         (gl_futimens): Delete.
64505         (utimens, lutimens): Update callers.
64506         * lib/futimens.c (futimens): Likewise.
64507         * tests/test-fdutimensat.c: Likewise.
64508         * tests/test-utimens.c: Likewise.
64509         * tests/test-futimens.h: Update comment.
64510         * NEWS: Mention this.
64511         Suggested by Paul Eggert.
64513 2010-09-17  Bruno Haible  <bruno@clisp.org>
64515         Take over the maintenance of some older macros from Autoconf.
64516         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
64517         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
64518         GNU Autoconf.
64519         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
64520         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
64522 2010-09-17  Eric Blake  <eblake@redhat.com>
64524         fdutimensat: drop atflag validation
64525         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
64526         with valid fd, to close a race scenario where futimens is
64527         unsupported and FILE was replaced by a symlink.
64528         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
64529         accordingly.
64530         Suggested by Paul Eggert.
64532 2010-09-16  Bruno Haible  <bruno@clisp.org>
64534         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
64535         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
64537 2010-09-16  Bruno Haible  <bruno@clisp.org>
64539         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
64540         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
64541         login_tty exists.
64542         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64544 2010-09-16  Bruno Haible  <bruno@clisp.org>
64546         login_tty: Make the replacement code work on BSD systems.
64547         * lib/login_tty.c: Include <sys/ioctl.h>.
64548         (login_tty): Use ioctl TIOCSCTTY when available.
64549         * modules/login_tty (Depends-on): Add sys_ioctl.
64550         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64552 2010-09-16  Bruno Haible  <bruno@clisp.org>
64554         login_tty: Stricter unit test.
64555         * modules/login_tty-tests (Depends-on): Add tcgetsid.
64556         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
64557         and tcgetsid() after login_tty.
64558         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64560 2010-09-16  Bruno Haible  <bruno@clisp.org>
64562         New module 'tcgetsid'.
64563         * lib/tcgetsid.c: New file.
64564         * m4/tcgetsid.m4: New file.
64565         * modules/tcgetsid: New file.
64566         * modules/termios (Depends-on): Add c++defs, warn-on-use.
64567         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
64568         GNULIB_TCGETSID, HAVE_TCGETSID.
64569         * lib/termios.in.h: Include <sys/types.h>.
64570         (tcgetsid): New declaration.
64571         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
64572         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
64573         * doc/posix-functions/tcgetsid.texi: Mention the new module.
64574         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
64576 2010-09-16  Bruno Haible  <bruno@clisp.org>
64578         Tests for module 'termios'.
64579         * modules/termios-c++-tests: New file.
64580         * modules/termios-tests: New file.
64581         * tests/test-termios-c++.cc: New file.
64582         * tests/test-termios.c: New file.
64584         New module 'termios'.
64585         * modules/termios: New file.
64586         * lib/termios.in.h: New file.
64587         * m4/termios_h.m4: New file.
64588         * doc/posix-headers/termios.texi: Mention the new module.
64590 2010-09-16  Eric Blake  <eblake@redhat.com>
64592         fdutimensat: add an atflag parameter
64593         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64594         * lib/utimens.h (fdutimensat): Update prototype.
64595         * tests/test-fdutimensat.c: Adjust test to match.
64596         * NEWS: Document the change.
64597         Suggested by Paul Eggert.
64599 2010-09-16  Bruno Haible  <bruno@clisp.org>
64601         Fix typos in comments.
64602         * lib/striconveh.h: Fix typo in comment.
64603         * lib/login_tty.c (login_tty): Likewise.
64605 2010-09-15  Bruno Haible  <bruno@clisp.org>
64607         stdlib: clarify MirBSD WEXITSTATUS bug
64608         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
64609         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64611 2010-09-15  Eric Blake  <eblake@redhat.com>
64613         stdlib: work around MirBSD WEXITSTATUS bug
64614         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
64615         * modules/stdlib (Depends-on): Add sys_wait.
64616         * tests/test-sys_wait.c (main): Enhance test.
64617         * tests/test-stdlib.c (main): Likewise.
64618         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
64620         docs: mention MacOS issue with WEXITSTATUS(constant)
64621         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
64622         issue.
64623         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64625         strnlen: add tests
64626         * modules/strnlen-tests: New file.
64627         * tests/test-strnlen.c: Likewise.
64629 2010-09-14  Bruno Haible  <bruno@clisp.org>
64631         unistr/base: Avoid link errors when module 'libunistring' is also used.
64632         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
64633         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
64634         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
64635         Declare also when HAVE_LIBUNISTRING is set.
64636         Reported by Pádraig Brady <P@draigbrady.com>.
64638 2010-09-14  Eric Blake  <eblake@redhat.com>
64640         test-rawmemchr: make more robust
64641         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
64642         (Depends-on, configure.ac): Add needed prerequisites to use it.
64643         * modules/memchr-tests (Files, Depends-on, configure.ac):
64644         Likewise, to avoid implicit reliance on memchr module prereqs.
64645         * tests/test-memchr.c (main): Ensure proper masking.
64646         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
64647         reads.
64649         memchr: detect glibc Alpha bug
64650         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
64651         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
64652         Alpha.
64653         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
64654         * tests/test-memchr.c (main): Enhance test.
64655         Reported by Nelson H. F. Beebe.
64657 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64659         fts, getcwd, glob: audit for dirfd returning -1
64660         * lib/fts.c (opendir): Remove #define; no longer used.
64661         (opendirat): New arg PDIR_FD.  All callers changed.
64662         (fts_build, _opendir2): Use new opendirat to avoid the need for
64663         dirfd, or for checking whether dirfd returns a negative value.
64664         Don't use opendir; always use openat followed by fdopendir.
64665         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64666         it.
64667         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64668         returns -1 here.
64669         * modules/fts (Depends-on): Remove dirfd.
64670         * modules/getcwd (Depends-on): Likewise.
64672 2010-09-13  Eric Blake  <eblake@redhat.com>
64674         float: fix broken MirBSD header
64675         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64676         * doc/posix-headers/float.texi (float.h): Document it.
64678 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64680         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64681         * lib/fts.c (opendirat): New arg extra_flags.
64682         (__opendir2): Use it to avoid following symlinks when opening
64683         a directory, if symlinks are not supposed to be followed.  See
64684         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64686         fdopendir: preserve argument fd before returning
64687         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64688         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64689         (fdopendir): Use them, arranging for FD to be open to the same
64690         directory that it was when it started.  (It might be temporarily
64691         closed while fdopendir is running, so this not thread- or
64692         signal-safe.)  Be careful to do the right thing even when file
64693         descriptors are scarce and dup fails with errno == EMFILE.  See
64694         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64696 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64698         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64699         * NEWS: Document change.
64700         * m4/regex.m4: Disable test for regoff_t size.
64702 2010-09-13  Jim Meyering  <meyering@redhat.com>
64704         fts: don't operate on an invalid file descriptor after failed dup
64705         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64706         negative file descriptor.
64708 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64710         savedir: add streamsavedir, deprecate fdsavedir
64711         * NEWS: Mention deprecation of fdsavedir.
64712         * lib/savedir.c (streamsavedir): New extern function, whose name
64713         ends in "savedir" to be consistent with the others.  This differs
64714         from savedirstream in that it doesn't close its argument.  The
64715         next version of GNU tar will use this instead of fdsavedir, to
64716         avoid some race conditions and conserve file descriptors.
64717         (savedirstream): Reimplement as a wrapper around streamsavedir.
64718         (fdsavedir): Add a comment deprecating this function.  As far as
64719         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64720         * lib/savedir.h (streamsavedir): New decl.
64721         (fdsavedir): Add a comment deprecating this.
64723 2010-09-10  Bruno Haible  <bruno@clisp.org>
64725         langinfo: Fix last commit.
64726         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64727         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64730 2010-09-10  Bruno Haible  <bruno@clisp.org>
64732         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64733         * lib/progreloc.c (O_EXEC): Define fallback.
64735 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64737         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64738         * NEWS: Document recent changes to fcntl-h.
64739         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64740         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64741         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64742         Similarly for O_SEARCH; this last was already true, but not documented.
64743         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64744         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64745         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64746         Likewise.
64747         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64748         is zero, not whether it is defined.
64749         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64750         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64751         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64753 2010-09-10  Bruno Haible  <bruno@clisp.org>
64755         langinfo, nl_langinfo: Fix for IRIX 5.3.
64756         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64757         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64758         HAVE_LANGINFO_YESEXPR.
64759         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64760         HAVE_LANGINFO_YESEXPR.
64761         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64762         HAVE_LANGINFO_T_FMT_AMPM is 0.
64763         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64764         HAVE_LANGINFO_YESEXPR is 0.
64765         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64766         NOEXPR.
64767         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64768         * doc/posix-functions/nl_langinfo.texi: Likewise.
64769         Reported by Eric Blake.
64771 2010-09-10  Bruno Haible  <bruno@clisp.org>
64773         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64774         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64775         on FreeBSD 8.0 and OpenBSD 4.6.
64776         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64777         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64778         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64779         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64780         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64781         ac_includes_default.
64782         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64784 2010-09-09  Eric Blake  <eblake@redhat.com>
64786         strsignal: work around NetBSD bug
64787         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64788         * lib/string.in.h (includes): Likewise.
64789         * doc/posix-functions/strsignal.texi (strsignal): Document the
64790         bug.
64791         Reported by Nelson H. F. Beebe.
64793         gnulib-tool: work with NetBSD /bin/sh
64794         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64795         (func_get_description, func_get_comment, func_get_status)
64796         (func_get_notice, func_get_applicability, func_get_filelist)
64797         (func_get_dependencies, func_get_autoconf_early_snippet)
64798         (func_get_autoconf_snippet, func_get_automake_snippet)
64799         (func_get_include_directive, func_get_link_directive)
64800         (func_get_license, func_get_maintainer, func_import): Avoid
64801         shell syntax errors from parsing syntax extensions.
64803 2010-09-09  Bruno Haible  <bruno@clisp.org>
64805         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64806         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64807         a reliable way to determine whether the 'alias' command works.
64809 2010-09-08  Jim Meyering  <meyering@redhat.com>
64811         init.sh: penalize a set-x-impaired shell; don't disqualify it
64812         * tests/init.sh: Too many shells corrupt application stderr when
64813         you set -x, so we can't afford to disqualify them, since at least
64814         on Irix-6.5, that would disqualify all bourne shells.
64815         Instead, use a two-pass approach.
64816         On the first pass, try to find a shell that meets the stricter
64817         condition that set -x does not corrupt stderr.
64818         If no shell meets the stricter condition, retest each candidate
64819         shell, but without that extra condition.  Finally, when
64820         VERBOSE=yes is requested and set -x might cause trouble, simply
64821         issue a warning and refrain from enabling debug output.
64823 2010-09-08  Eric Blake  <eblake@redhat.com>
64825         unsetenv: fix OpenBSD bug
64826         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64827         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64828         documentation.
64829         Reported by Jim Meyering.
64831         strtod: work around IRIX 6.5 bug
64832         * lib/strtod.c (strtod): Reparse number on shorter string if
64833         exponent parse was invalid.
64834         * tests/test-strtod.c (main): Add check for "0x1p 2".
64835         Reported by Tom G. Christensen.
64837         getopt: optimize previous patch
64838         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64839         empty variable.  Speed up awk script.
64840         Reported by Paolo Bonzini.
64842 2010-09-08  Jim Meyering  <meyering@redhat.com>
64844         test.sh: disqualify shells for which set -x corrupts stderr
64845         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64846         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64847         appear in stderr output.  For example, this command:
64848             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64849         prints "P=1" on those two systems:
64851 2010-09-08  Bruno Haible  <bruno@clisp.org>
64853         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64854         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64855         commands, because some shells ignore redirections when there is an
64856         error in the command lookup.
64857         Reported by Eric Blake.
64859 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64861         * lib/regex.h: Fix a mention of `regex_compile' (should be
64862         `re_compile_pattern').
64863         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64864         (re_set_registers): Correct name of parameter in comment.
64866         * doc/regex.texi: Add documentation for missing syntax flags.
64867         Remove commented-out documentation of defunct syntax option
64868         RE_NO_EMPTY_ALTS.
64869         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64870         Add documentation of re_set_registers.
64871         Document trick to re-use a pattern buffer by setting fastmap manually.
64872         Update documentation of struct re_pattern_buffer per public members.
64873         Uncomment documentation of equivalence class operators and
64874         collating symbol operators, since they are now implemented,
64875         Explain leftmost-longest matching in relation to alternatives.
64876         Tidy documentation of substring matching.
64877         Remove POSIX documentation, which is done better in
64878         glibc, and refer the reader there. Keep BSD API documentation, as
64879         that is not readily available elsewhere.
64881 2010-09-07  Eric Blake  <eblake@redhat.com>
64883         getopt: handle POSIXLY_CORRECT set but not exported
64884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64885         export state of POSIXLY_CORRECT, due to bash set -o posix.
64886         Reported by Dustin J. Mitchell.
64888 2010-09-05  Bruno Haible  <bruno@clisp.org>
64890         gnulib-tool: Highlight the changed options.
64891         * gnulib-tool (func_usage): Display the --import, --add-import,
64892         --remove-import explanations in bold font.
64894 2010-09-06  Karl Berry  <karl@gnu.org>
64896         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64898 2010-09-05  Bruno Haible  <bruno@clisp.org>
64900         uniwidth/width: Update comment.
64901         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64902         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64904 2010-09-05  Bruno Haible  <bruno@clisp.org>
64906         isinf, isnan: Relax license.
64907         * modules/isinf (License): Change from GPL to LGPL, with consent from
64908         Ben Pfaff.
64909         * modules/isnan (License): Likewise.
64910         Requested by Ludovic Courtès.
64912 2010-09-04  Bruno Haible  <bruno@clisp.org>
64914         gnulib-tool: Help migration from --import to --add-import or --update.
64915         * gnulib-tool: Emit a verbose error message when --import is used
64916         without any module name.
64918 2010-09-04  Bruno Haible  <bruno@clisp.org>
64920         Update doc about gnulib-tool.
64921         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64922         'gnulib-tool --update' in more detail.
64923         Reported by Eric Blake.
64925 2010-09-04  Bruno Haible  <bruno@clisp.org>
64927         gnulib-tool: Change --import. New options --add/remove-import.
64928         * gnulib-tool: New options --add-import, --remove-import.
64929         (func_usage): Document them.
64930         (have_associative): Define always.
64931         (func_import): In import mode, don't merge the specified settings with
64932         the cached settings. Implement remove-import mode.
64933         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64934         Explain when to use them versus --import.
64935         (Simple update): Use --add-import instead of --import.
64936         * NEWS: Mention the change.
64938 2010-09-04  Bruno Haible  <bruno@clisp.org>
64940         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64941         separate gnulib.mk.
64943 2010-09-04  Bruno Haible  <bruno@clisp.org>
64945         gnulib-tool: Don't talk about CVS any more.
64946         * gnulib-tool (func_usage, func_import): Write "version control"
64947         instead of CVS.
64949 2010-09-04  Jim Meyering  <meyering@redhat.com>
64951         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64952         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64953         false positives (whose names may be ill-chosen) when searching
64954         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64955         would cause a false-positive.
64957         avoid coreutils "make distcheck" failure
64958         Coreutils tests with an absolute build directory name that contains
64959         a space.  Not quoting this directory name caused a failure.
64960         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64961         * tests/test-vc-list-files-cvs.sh: Likewise.
64963 2010-09-04  Bruno Haible  <bruno@clisp.org>
64965         gnulib-tool: Avoid error when run in a package without Makefile.am.
64966         * gnulib-tool: When collecting the m4dirs in a package that does not
64967         have a Makefile.am, eliminate those directories that contain no
64968         gnulib-cache.m4. Fix expression that counts these directories.
64970 2010-09-04  Bruno Haible  <bruno@clisp.org>
64972         update-copyright test: Improve output when perl is missing or too old.
64973         * tests/test-update-copyright.sh: Move test of Perl version down after
64974         the test whether Perl exists. Provide an explanation relating Perl's
64975         error message to Automake's SKIP: message.
64977 2010-09-04  Bruno Haible  <bruno@clisp.org>
64979         Don't augment PATH in TESTS_ENVIRONMENT.
64980         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64981         set abs_aux_dir instead of augmenting PATH.
64982         * modules/vc-list-files-tests (Makefile.am): Likewise.
64983         * tests/test-update-copyright.sh: Augment PATH here.
64984         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64985         path_prepend_.
64986         * tests/test-vc-list-files-git.sh: Likewise.
64988 2010-09-04  Jim Meyering  <meyering@redhat.com>
64990         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64991         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64993 2010-09-04  Bruno Haible  <bruno@clisp.org>
64995         strdup: Fix compilation error in C++ mode.
64996         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64997         the macro.
64999 2010-09-04  Bruno Haible  <bruno@clisp.org>
65001         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
65002         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
65003         macro into a function.
65004         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65006 2010-09-04  Bruno Haible  <bruno@clisp.org>
65008         Set PATH_SEPARATOR the same way autoconf does.
65009         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
65010         the value of PATH_SEPARATOR the same way autoconf-generated configure
65011         scripts do.
65012         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
65013         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65015 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65017         Set PATH_SEPARATOR the same way autoconf does.
65018         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
65019         the same way autoconf-generated configure scripts do.
65020         * posix-modules: Likewise.
65022 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65024         hash: fix safe_hasher const typo
65025         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
65026         const; otherwise, there is a type error later.
65028 2010-09-02  Jim Meyering  <meyering@redhat.com>
65030         test-update-copyright.sh: require perl 5.8.0
65031         * tests/test-update-copyright.sh: Require 5.8.0,
65032         which Tom G. Christensen has confirmed is adequate,
65033         while 5.6.1 is not.
65035 2010-09-02  Eric Blake  <eblake@redhat.com>
65037         tests: init.sh improvements for re-exec'ing with zsh
65038         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
65039         -vx through shell re-exec.
65040         Reported by Tom G. Christensen.
65042         wctype: fix typo in previous commit
65043         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
65044         Reported by Ludovic Courtès.
65046 2010-09-02  Jim Meyering  <meyering@redhat.com>
65048         test-update-copyright.sh: skip test if Perl is too old
65049         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
65050         Reported by Tom G. Christensen.
65052 2010-09-02  Bruno Haible  <bruno@clisp.org>
65054         wctype: Avoid compilation error on IRIX 6.5.30.
65055         * lib/wctype.in.h (iswblank): Declare with a replacement if
65056         REPLACE_ISWBLANK is set.
65057         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
65058         declared. Set REPLACE_ISWBLANK.
65059         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
65060         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
65061         * doc/posix-headers/wctype.texi: Likewise.
65062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65064 2010-09-01  Bruno Haible  <bruno@clisp.org>
65066         New module 'socketlib'.
65067         * modules/socketlib: New file.
65068         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
65069         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
65070         * modules/sockets (Depends-on): Add socketlib.
65071         Suggested by Sam Steingold <sds@gnu.org>.
65073 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65075         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
65077         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
65078         when one needs search access to a directory but not read access.
65079         On systems where it is available, it works in some cases where
65080         O_RDONLY does not, namely on directories that are searchable but
65081         not readable, and which need only to be searchable.  If O_SEARCH
65082         is not available, fall back to the traditional method of using
65083         O_RDONLY.
65085         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
65086         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
65087         when opening a directory that needs only to be searchable.
65088         * lib/chdir-safer.c (chdir_no_follow): Likewise.
65089         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
65090         * lib/openat-proc.c (openat_proc_name): Likewise.
65091         * lib/openat.c (openat_needs_fchdir): Likewise.
65092         * lib/save-cwd.c (save_cwd): Likewise.
65093         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
65095 2010-08-28  Bruno Haible  <bruno@clisp.org>
65097         New module 'host-cpu-c-abi'.
65098         * modules/host-cpu-c-abi: New file.
65099         * m4/host-cpu-c-abi.m4: New file, based on part of
65100         clisp/src/m4/general.m4.
65101         Requested by Sam Steingold <sds@gnu.org>.
65103 2010-08-31  Eric Blake  <eblake@redhat.com>
65104         and Jim Meyering  <meyering@redhat.com>
65106         hash: factor, and guard against misbehaving hasher function
65107         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
65108         of table->hasher's return value.  Also protect against a hash value
65109         so large that adding it to table->bucket results in a NULL pointer.
65110         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
65111         Use it in place of open-coded check-and-abort.
65113 2010-08-30  Bruno Haible  <bruno@clisp.org>
65115         hash: silence spurious clang warning
65116         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
65117         Reported by Eric Blake.
65119 2010-08-30  Eric Blake  <eblake@redhat.com>
65121         strstr, memmem, strcasestr: avoid leaked shell message
65122         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
65123         FreeBSD.
65124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65125         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65127         tests: silence clang warning
65128         * tests/test-malloca.c (do_allocation): Avoid dead store.
65130 2010-08-29  Bruno Haible  <bruno@clisp.org>
65132         gettext: Fix recent mistake.
65133         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
65135 2010-08-29  Bruno Haible  <bruno@clisp.org>
65137         selinux-h: Offer a --without-selinux option.
65138         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
65139         --without-selinux was specified, skip all tests and define
65140         HAVE_SELINUX_SELINUX_H to 0.
65141         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
65142         set LIB_SELINUX to empty.
65143         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
65144         gl_LIBSELINUX. If --without-selinux was specified, replace
65145         selinux/context.h.
65146         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
65148 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65149             Bruno Haible  <bruno@clisp.org>
65151         Make the module 'realloc-gnu' work again on AIX and OSF/1.
65152         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
65153         of HAVE_REALLOC.
65154         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
65155         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
65156         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
65157         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65159 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65160             Bruno Haible  <bruno@clisp.org>
65162         Make the module 'calloc-gnu' work again on AIX and OSF/1.
65163         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
65164         HAVE_CALLOC.
65165         * lib/xmalloc.c: Update accordingly.
65166         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
65167         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
65168         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
65170 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65171             Bruno Haible  <bruno@clisp.org>
65173         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65174         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65175         HAVE_MALLOC.
65176         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
65177         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
65178         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65180 2010-08-29  Bruno Haible  <bruno@clisp.org>
65182         Update modules list.
65183         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65184         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
65185         (String handling <string.h>): Add astrxfrm.
65186         (File system functions): Add readlinkat.
65188 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65190         Tests for module 'realloc-gnu'.
65191         * modules/realloc-gnu-tests: New file.
65192         * tests/test-realloc-gnu.c: New file.
65194         Tests for module 'calloc-gnu'.
65195         * modules/calloc-gnu-tests: New file.
65196         * tests/test-calloc-gnu.c: New file.
65198         Tests for module 'malloc-gnu'.
65199         * modules/malloc-gnu-tests: New file.
65200         * tests/test-malloc-gnu.c: New file.
65202 2010-08-28  Bruno Haible  <bruno@clisp.org>
65204         Rename module 'realloc' -> 'realloc-gnu'.
65205         * modules/realloc-gnu: New file, copied from modules/realloc.
65206         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
65207         obsolete.
65208         * modules/mgetgroups (Depends-on): Update.
65209         * doc/posix-functions/realloc.texi: Update.
65210         * NEWS: Mention the change.
65212         Rename module 'calloc' -> 'calloc-gnu'.
65213         * modules/calloc-gnu: New file, copied from modules/calloc.
65214         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
65215         obsolete.
65216         * doc/posix-functions/calloc.texi: Update.
65217         * NEWS: Mention the change.
65219         Rename module 'malloc' -> 'malloc-gnu'.
65220         * modules/malloc-gnu: New file, copied from modules/malloc.
65221         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
65222         obsolete.
65223         * modules/argp (Depends-on): Update.
65224         * modules/regex (Depends-on): Update.
65225         * doc/posix-functions/malloc.texi: Update.
65226         * NEWS: Mention the change.
65228 2010-08-28  Eric Blake  <eblake@redhat.com>
65230         pread, pwrite: add missing dependency
65231         * modules/pread (Depends-on): Add extensions.
65232         * modules/pwrite (Depends-on): Likewise.
65234 2010-08-28  Bruno Haible  <bruno@clisp.org>
65236         unistr/u*-strchr: Fix tests dependencies.
65237         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
65238         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
65239         Reported by Ian Beckwith <ianb@erislabs.net>.
65241 2010-08-28  Bruno Haible  <bruno@clisp.org>
65243         read-file: Don't occupy too much unused memory.
65244         * lib/read-file.c (fread_file): Shrink the buffer at the end.
65246 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
65247             Eric Blake  <eblake@redhat.com>
65248             Bruno Haible  <bruno@clisp.org>
65250         read-file: Avoid memory reallocations with regular files.
65251         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
65252         (fread_file): With regular files, use the remaining length as the
65253         initial buffer size.  Check against overflow.
65254         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
65255         sys_stat.
65257 2010-08-28  Bruno Haible  <bruno@clisp.org>
65259         ftello: Relax license.
65260         * modules/ftello (License): Relax to LGPLv2+.
65261         Reported by Eric Blake.
65263 2010-08-28  Bruno Haible  <bruno@clisp.org>
65265         Avoid relocwrapper link errors due to gnulib replacement functions.
65266         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
65267         function.
65268         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65270 2010-08-28  Bruno Haible  <bruno@clisp.org>
65272         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
65273         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
65274         defined.
65275         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
65276         Suggested by Eric Blake.
65278 2010-08-28  Bruno Haible  <bruno@clisp.org>
65280         sys_socket, netdb: Ensure socklen_t gets defined.
65281         * modules/sys_socket (Depends-on): Add socklen.
65282         * modules/netdb (Depends-on): Likewise.
65283         * modules/getaddrinfo (Depends-on): Remove socklen.
65284         * modules/getsockopt (Depends-on): Likewise.
65285         * modules/setsockopt (Depends-on): Likewise.
65286         * tests/test-sys_socket.c: Check that socklen_t is defined.
65287         * tests/test-netdb.c: Likewise.
65288         * m4/socklen.m4: Update comments.
65289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65291 2010-08-27  Eric Blake  <eblake@redhat.com>
65293         login_tty: add missing dependency
65294         * modules/login_tty (Depends-on): Add pty.
65296 2010-08-26  Eric Blake  <eblake@redhat.com>
65298         lib-symbol-versions: fix m4 quoting
65299         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
65300         format for AC_LINK_IFELSE.
65302         glob: fix compile test
65303         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
65305         btowc: fix missing file
65306         * modules/btowc (Files): Also ship locale-fr.m4.
65308         lseek: fix link test
65309         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
65310         AC_LINK_IFELSE.
65312         include_next: silence autoconf 2.68 warning
65313         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
65314         AC_COMPILE_IFELSE as special.
65315         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
65316         autoconf < 2.68.
65318         acl: fix compilation test
65319         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
65320         AC_COMPILE_IFELSE.
65322 2010-08-26  Bruno Haible  <bruno@clisp.org>
65324         Modernize AC_TRY_RUN invocations.
65325         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
65326         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
65327         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
65328         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
65329         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
65330         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
65332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65333         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65334         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65335         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
65336         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65337         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
65338         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
65340         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
65341         gl_MBRLEN_NUL_RETVAL): Likewise.
65342         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65343         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65344         Likewise.
65345         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65346         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65347         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65348         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65349         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65350         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65351         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65352         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65353         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65354         Likewise.
65355         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65356         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65358         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65359         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65360         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65361         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65362         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65363         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65366 2010-08-26  Bruno Haible  <bruno@clisp.org>
65368         Modernize AC_TRY_LINK invocations.
65369         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65370         AC_TRY_LINK.
65371         * m4/argp.m4 (gl_ARGP): Likewise.
65372         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65373         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65374         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65375         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65376         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65377         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65378         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65379         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65380         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65381         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65382         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65383         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65384         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65385         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65386         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65387         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65388         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65389         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65390         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65391         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65392         Likewise.
65393         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65394         Likewise.
65395         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65396         Likewise.
65397         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65398         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65399         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65400         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65401         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65402         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65403         * m4/servent.m4 (gl_SERVENT): Likewise.
65404         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65405         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65406         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65407         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65408         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65409         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65410         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65411         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65412         * modules/tsearch-tests (configure.ac): Likewise.
65414 2010-08-26  Bruno Haible  <bruno@clisp.org>
65416         Modernize AC_TRY_COMPILE invocations.
65417         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65418         AC_TRY_COMPILE.
65419         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65420         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65421         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65422         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65423         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65424         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65425         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65426         * m4/lock.m4 (gl_LOCK): Likewise.
65427         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65428         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65429         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65430         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65431         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65432         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65433         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65434         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65435         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65436         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65437         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65438         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65439         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65440         extraneous semicolon.
65442 2010-08-26  Jim Meyering  <meyering@redhat.com>
65444         stat-time: relax license LGPL
65445         * modules/stat-time (License): Change from GPL to LGPL,
65446         with consent from all contributors, for use in libguile.
65447         Requested by Ludovic Courtès.
65449 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65451         poll: return immediately on POLLHUP.
65452         * lib/poll.c (poll): Always set timeout before wait_timeout is
65453         computed.
65455 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65457         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
65458         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
65459         rmdir ("dir/.//"), unlinkat.
65461 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65463         stdbool: avoid spurious failure with modern xlc
65464         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65466 2010-08-24  Bruno Haible  <bruno@clisp.org>
65468         getloadavg: simplify code
65469         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
65470         gl_have_func. Update comments.
65472 2010-08-24  Eric Blake  <eblake@redhat.com>
65474         getloadavg: don't define SVR4 on cygwin
65475         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
65476         only define SVR4 when -lkvm is required.
65477         Reported by Yaakov Selkowitz.
65479 2010-08-24  Bruno Haible  <bruno@clisp.org>
65481         priv-set: fix comment
65482         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
65484 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65486         priv-set: fix comments
65487         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
65488         to match code, as suggested by David Bartley in:
65489         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
65491 2010-08-23  Eric Blake  <eblake@redhat.com>
65493         stdbool: avoid rejecting clang
65494         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65495         * tests/test-stdbool.c: Enable more tests if using the system
65496         <stdbool.h> instead of the gnulib replacement.
65497         (main): Move xlc bug test to a runtime test for all compilers.
65498         Reported by Anders Kaseorg.
65500         argz: fix shell quoting issue
65501         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
65502         Reported by Charles Wilson.
65504 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
65505             Erik Faye-Lund <kusmabite@gmail.com>
65507         poll, select: handle ERROR_BROKEN_PIPE.
65508         * lib/poll.c (win32_compute_revents): Return POLLHUP when
65509         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65510         * lib/select.c (win32_compute_revents): Do not mark a pipe
65511         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65513 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
65515         fts: allow compilation with C++
65516         * lib/fts_.h: Specify extern "C" linkage with C++.
65518 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65520         Fix gnulib-tool sed script de-commentation for AIX sed.
65521         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
65522         sed.
65524 2010-08-17  Eric Blake  <eblake@redhat.com>
65526         test-stddef: test for (some) offsetof bugs
65527         * tests/test-stddef.c: Enhance test to ensure correct type of
65528         offsetof.
65529         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
65530         that we are not fixing at this time.
65532 2010-08-15  Bruno Haible  <bruno@clisp.org>
65534         stpncpy: Allow stpncpy to be defined as a macro.
65535         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
65536         if it's already correctly declared.
65537         * lib/string.in.h (stpncpy): Undefine before redefining.
65538         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
65540 2010-08-14  Bruno Haible  <bruno@clisp.org>
65542         Rename module 'memxfrm' to 'amemxfrm'.
65543         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
65544         (amemxfrm): Renamed from memxfrm.
65545         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
65546         (amemxfrm): Renamed from memxfrm.
65547         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
65548         * NEWS: Mention the change.
65549         * MODULES.html.sh (String handling <string.h>): Update.
65550         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
65551         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
65552         * lib/unicase/u16-casexfrm.c: Likewise.
65553         * lib/unicase/u32-casexfrm.c: Likewise.
65554         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
65555         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
65556         * lib/uninorm/u16-normxfrm.c: Likewise.
65557         * lib/uninorm/u32-normxfrm.c: Likewise.
65558         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
65559         memxfrm.
65560         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
65561         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
65562         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
65563         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
65564         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
65565         Suggested by Paul Eggert.
65567 2010-08-14  Bruno Haible  <bruno@clisp.org>
65569         Tests for module 'astrxfrm'.
65570         * modules/astrxfrm-tests: New file.
65571         * tests/test-astrxfrm.c: New file.
65573         New module 'astrxfrm'.
65574         * lib/astrxfrm.h: New file.
65575         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
65576         * modules/astrxfrm: New file.
65578 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
65580         regex: Tweak doc.
65581         * doc/regex.texi (Overview): Don't mention regex.c.
65582         (GNU Regular Expression Compiling): Likewise.
65583         (Match-end-of-line Operator): Mention 'not_eol'.
65585 2010-08-14  Brian Gough  <bjg@gnu.org>
65586             Bruno Haible  <bruno@clisp.org>
65588         git-merge-changelog: add doc relating to use with bzr and hg.
65589         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65591 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65593         pthread: fix pthread.h creation for srcdir != builddir
65594         * modules/pthread (Makefile.am): Fix the rule to work also in a
65595         non-srcdir build.
65597 2010-08-13  Karl Berry  <karl@gnu.org>
65599         * doc/regex.texi (Predefined Syntaxes): @smallexample.
65600         * doc/posix-*/*: force line break before @url of POSIX
65601         specifications.
65602         Suggested by Werner Lemberg.
65604 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65606         strtod: fix const diagnostic
65607         * lib/strtod.c (strtod): Don't assign const char * to char *,
65608         as this elicits a warning from GCC when warnings are enabled.
65610 2010-08-10  Pádraig Brady  <P@draigbrady.com>
65611         and Eric Blake  <eblake@redhat.com>
65613         copy-acl: ignore ENOTSUP on HP-UX
65614         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
65615         so that it is available for HP-UX.
65616         * lib/copy-acl.c (qcopy_acl): Use it.
65617         Reported by Patrick M. Callahan.
65619 2010-08-10  Eric Blake  <eblake@redhat.com>
65621         open, chown: relax license
65622         * modules/open (License): Change to LGPLv2+, with consent by all
65623         authors, for use in augeas.
65624         * modules/chown (License): Likewise.
65625         * modules/lchown (Likewise): Likewise.
65626         Requested by Adam Stokes.
65628 2010-08-09  Karl Berry  <karl@gnu.org>
65630         * build-aux/ar-lib: new file, import from Automake.
65631         * config/srclist.txt: autocheck for updates.
65633 2010-08-09  Eric Blake  <eblake@redhat.com>
65635         readlinkat: adjust client modules
65636         * modules/areadlinkat (Depends-on): Use readlinkat, not
65637         symlinkat.
65638         * modules/areadlinkat-with-size (Depends-on): Likewise.
65640         mknod: be more vocal about danger of running tests as root
65641         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
65642         root, since that is just asking for problems.
65643         Suggested by Bruno Haible, based on a report by Rainer Tammer.
65645         readlinkat: split into its own module
65646         * modules/symlinkat: Split readlinkat...
65647         * modules/readlinkat: ...into separate module.
65648         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
65649         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
65650         * lib/symlinkat.c (readlinkat): Move...
65651         * lib/readlinkat.c: ...into new file.
65652         * modules/symlinkat-tests: Split readlinkat test...
65653         * modules/readlinkat-tests: ...into separate module.
65654         * tests/test-symlinkat.c: Split...
65655         * tests/test-readlinkat.c: ...into new file.
65656         * NEWS: Document the split.
65657         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65658         * lib/unistd.in.h (readlinkat): Likewise.
65659         Suggested by Bruno Haible.
65661 2010-08-08  Bruno Haible  <bruno@clisp.org>
65663         memxfrm: Speed up.
65664         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65665         that usually only one call to strxfrm is necessary for each string
65666         part.
65667         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65669 2010-08-07  Karl Berry  <karl@gnu.org>
65671         * doc/posix-headers/limits.texi,
65672         * doc/posix-functions/malloc.texi,
65673         * doc/posix-functions/strsignal.texi: missing @item.
65674         * doc/ld-version-script.texi: spurious leading i.
65675         * doc/regex.texi (Interval Operators): no commas inside @var.
65677 2010-08-01  Bruno Haible  <bruno@clisp.org>
65679         Integrate the regex documentation.
65680         * doc/gnulib.texi: Define 'cn' index.
65681         (Regular expressions): New a chapter that includes regex.texi and
65682         regexprops-generic.texi.
65683         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65684         syntax.
65686         Whitespace cleanup.
65687         * doc/regex.texi: Remove trailing spaces.
65689         Add regex documentation.
65690         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65691         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65692         Written by Kathy A. Hargreaves and Karl Berry.
65694 2010-08-01  Bruno Haible  <bruno@clisp.org>
65696         link: Update documentation.
65697         * doc/posix-functions/link.texi: Update regarding Solaris.
65699 2010-07-31  Bruno Haible  <bruno@clisp.org>
65701         Update modules list.
65702         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65703         (String handling <string.h>): Add memcmp2, memxfrm.
65704         (Container data structures): Add xlist, xsublist, xoset.
65705         (Core language properties): Add alignof, unused-parameter.
65706         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65707         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65708         (Unibyte characters <ctype.h>): New section.
65709         (String handling <string.h>): New section.
65710         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65711         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65712         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65713         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65714         tan, tanh, tanl, y0, y1, yn.
65715         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65716         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65717         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65718         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65719         unlockpt, vdprintf, vdprintf-posix.
65720         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65721         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65722         xconcat-filename.
65723         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65724         getdtablesize, pipe2, pipe2-safer.
65725         (Security): New section.
65726         (Networking functions): Add accept4.
65727         (Signal handling): Add sigpipe.
65728         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65729         mbmemcasecoll.
65730         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65731         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65732         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65733         pipe-filter-ii.
65734         (Misc): Add argp-version-etc, login_tty, parse-duration.
65736 2010-07-31  Bruno Haible  <bruno@clisp.org>
65738         Improve doc in MODULES.html.
65739         * modules/linkat (Description): Add the word "function".
65740         * modules/mkfifo (Description): Likewise.
65741         * modules/mknod (Description): Likewise.
65742         * modules/remove (Description): Likewise.
65743         * modules/renameat (Description): Likewise.
65744         * modules/stat (Description): Likewise.
65745         * modules/symlink (Description): Likewise.
65746         * modules/unlink (Description): Likewise.
65748 2010-07-31  Bruno Haible  <bruno@clisp.org>
65750         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65751         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65752         option --enable/disable-c++ instead of --enable/disable-cxx.
65753         * NEWS: Mention the change.
65755 2010-07-31  Bruno Haible  <bruno@clisp.org>
65757         readlink, areadlink: Relax test a bit.
65758         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65759         alternative to ENOTDIR.
65760         * tests/test-areadlink.h (test_areadlink): Likewise.
65761         Reported by Rainer Tammer.
65763 2010-07-31  Bruno Haible  <bruno@clisp.org>
65765         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65766         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65767         character, perform the search using U_STRCHR.
65768         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65769         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65770         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65771         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65772         Suggested by Paolo Bonzini.
65774 2010-07-31  Bruno Haible  <bruno@clisp.org>
65776         unistr/u*-strstr: Fix dependencies.
65777         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65778         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65779         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65781 2010-07-31  Bruno Haible  <bruno@clisp.org>
65783         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65784         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65785         the beginning of the loop.
65786         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65787         cases in 'switch' statement.
65789         unistr/u8-strchr: Fix several bugs.
65790         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65791         the string. When not found, return NULL, not a pointer near the end.
65793         More tests for unistr/u8-strchr.
65794         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65795         that the function does not read past the first occurrence of the byte
65796         being searched.
65797         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65798         * tests/unistr/test-u16-strchr.c (main): New function.
65799         * tests/unistr/test-u32-strchr.c (main): New function.
65801 2010-07-31  Bruno Haible  <bruno@clisp.org>
65803         posix-modules: Ignore backup files of documentation files.
65804         * posix-modules: grep only through files named *.texi.
65806 2010-07-31  Bruno Haible  <bruno@clisp.org>
65808         symlinkat: Fix documentation.
65809         * doc/posix-functions/readlinkat.texi: Fix module name.
65811 2010-07-31  Bruno Haible  <bruno@clisp.org>
65813         fchownat: Replace also when chown has the trailing slash bug.
65814         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65815         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65816         introduced on 2010-04-10.
65817         Reported by Rainer Tammer.
65819 2010-07-31  Bruno Haible  <bruno@clisp.org>
65821         linkat: Work around AIX 7.1 bug.
65822         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65823         whether linkat handles trailing slash correctly. If not, replace linkat
65824         and define LINKAT_TRAILING_SLASH_BUG.
65825         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65826         check whether (fd1,file1) points to a directory if file1 or file2 ends
65827         in a slash. Code taken from lib/link.c.
65828         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65829         Reported by Rainer Tammer.
65831 2010-07-31  Bruno Haible  <bruno@clisp.org>
65833         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65834         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65835         This disables an xlc optimization that was causing wrong test results.
65836         Reported by Rainer Tammer.
65838 2010-07-31  Bruno Haible  <bruno@clisp.org>
65840         iconv: Work around AIX 6.1..7.1 bug.
65841         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65842         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65843         cross-compiling, guess no on all versions of AIX.
65844         Reported by Rainer Tammer.
65846 2010-07-31  Bruno Haible  <bruno@clisp.org>
65848         readlink: Relax test a bit.
65849         * tests/test-readlink.h (test_readlink): Allow different errno value
65850         when readlink is called with a file name that ends in / and refers to
65851         a file.
65852         Suggested by Eric Blake.
65853         Reported by Rainer Tammer.
65855 2010-07-31  Bruno Haible  <bruno@clisp.org>
65857         copysign: Does not require -lm on glibc systems.
65858         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65859         gl_COMMON_DOUBLE_MATHFUNC.
65860         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65862 2010-07-31  Bruno Haible  <bruno@clisp.org>
65864         duplocale: Work around AIX 7.1 bug.
65865         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65866         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65867         * lib/duplocale.c (rpl_duplocale): Update comment.
65868         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65869         Reported by Rainer Tammer.
65871 2010-07-30  Bruno Haible  <bruno@clisp.org>
65873         dirfd: Avoid link error on AIX 7.1.
65874         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65875         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65876         exist, set REPLACE_DIRFD.
65877         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65878         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65879         * doc/posix-functions/dirfd.texi: Update.
65880         Reported by Rainer Tammer.
65882 2010-07-30  Eric Blake  <eblake@redhat.com>
65884         strtod: next round of AIX fixes
65885         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65886         exponent.
65887         * tests/test-strtod.c (main): Enhance tests.
65888         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65889         Reported by Rainer Tammer.
65891         futimens: fix configure check
65892         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65893         Reported by Bruno Haible.
65895 2010-07-30  Bruno Haible  <bruno@clisp.org>
65897         getline: Update regarding AIX.
65898         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65899         Reported by Rainer Tammer.
65901 2010-07-30  Bruno Haible  <bruno@clisp.org>
65903         wcwidth: Drop replacement on AIX 7.
65904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65905         AIX 7.
65906         Reported by Rainer Tammer.
65908 2010-07-30  Bruno Haible  <bruno@clisp.org>
65910         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65911         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65912         a 'char *'.
65913         Reported by Rainer Tammer.
65915 2010-07-30  Bruno Haible  <bruno@clisp.org>
65917         unlink: Update regarding AIX.
65918         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65919         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65920         Reported by Rainer Tammer.
65922 2010-07-30  Bruno Haible  <bruno@clisp.org>
65924         symlink: Update regarding AIX.
65925         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65926         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65927         Reported by Rainer Tammer.
65929 2010-07-30  Bruno Haible  <bruno@clisp.org>
65931         strndup: Update regarding AIX.
65932         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65933         AIX 7.
65934         Reported by Rainer Tammer.
65936 2010-07-30  Bruno Haible  <bruno@clisp.org>
65938         stat: Update regarding AIX.
65939         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65940         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65941         Reported by Rainer Tammer.
65943 2010-07-30  Bruno Haible  <bruno@clisp.org>
65945         truncl: Fix autoconf test.
65946         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65947         whether truncl works.
65948         Reported by Rainer Tammer.
65950 2010-07-30  Bruno Haible  <bruno@clisp.org>
65952         round: Update regarding AIX.
65953         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65954         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65955         Reported by Rainer Tammer.
65957 2010-07-30  Bruno Haible  <bruno@clisp.org>
65959         rename: Update regarding AIX.
65960         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65961         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65962         Reported by Rainer Tammer.
65964 2010-07-30  Bruno Haible  <bruno@clisp.org>
65966         printf.m4: Update regarding AIX.
65967         * m4/printf.m4: Update comments regarding AIX.
65968         Reported by Rainer Tammer.
65970 2010-07-30  Bruno Haible  <bruno@clisp.org>
65972         iconv: Update regarding AIX.
65973         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65974         AIX 7.
65975         Reported by Rainer Tammer.
65977 2010-07-30  Bruno Haible  <bruno@clisp.org>
65979         getopt: Update regarding AIX.
65980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65981         no on AIX.
65982         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65983         Reported by Rainer Tammer.
65985 2010-07-30  Bruno Haible  <bruno@clisp.org>
65987         ldexpl; Update regarding AIX.
65988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
65989         on AIX 7.
65990         Reported by Rainer Tammer.
65992 2010-07-30  Bruno Haible  <bruno@clisp.org>
65994         frexpl: Update regarding AIX.
65995         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65996         on AIX 7.
65997         Reported by Rainer Tammer.
65999 2010-07-30  Bruno Haible  <bruno@clisp.org>
66001         open, fopen: Update regarding AIX.
66002         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
66003         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66004         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
66005         * doc/posix-functions/fopen.texi: Likewise.
66006         Reported by Rainer Tammer.
66008 2010-07-30  Bruno Haible  <bruno@clisp.org>
66010         chown: Update doc regarding AIX.
66011         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
66012         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
66013         Reported by Rainer Tammer.
66015 2010-07-30  Eric Blake  <eblake@redhat.com>
66017         strtod: fix bug in replacement function on AIX
66018         * lib/strtod.c (strtod): Special case broken "0x" parse in
66019         underlying strtod.
66020         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
66021         * doc/posix-functions/strtod.texi (strtod): Likewise.
66022         Reported by Rainer Tammer.
66024 2010-07-30  Bruno Haible  <bruno@clisp.org>
66026         mbrlen: Fix cross-compilation guess for AIX.
66027         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
66028         guess. Leftover from 2008-12-22.
66030 2010-07-30  Bruno Haible  <bruno@clisp.org>
66032         mbrtowc: Fix cross-compilation guess for AIX.
66033         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
66034         guess. Leftover from 2008-12-21.
66036 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
66038         init.sh: work around trap limitation of some shells
66039         * tests/init.sh (setup_): Move exit trap outside of shell function.
66041 2010-07-29  Eric Blake  <eblake@redhat.com>
66043         strtod: aid debugging
66044         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
66045         understanding why strtod is rejected.
66047 2010-07-28  Bruno Haible  <bruno@clisp.org>
66049         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
66050         * lib/unistr/u8-chr.c: Include <string.h>.
66051         * tests/unistr/test-u8-chr.c: Likewise.
66052         * tests/unistr/test-u16-chr.c: Likewise.
66053         * tests/unistr/test-u32-chr.c: Likewise.
66054         * tests/unistr/test-u8-strchr.c: Likewise.
66055         * tests/unistr/test-u16-strchr.c: Likewise.
66056         * tests/unistr/test-u32-strchr.c: Likewise.
66057         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
66058         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
66059         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
66060         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
66062 2010-07-28  Bruno Haible  <bruno@clisp.org>
66064         Use spaces for indentation, not tabs.
66065         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66067 2010-07-27  Bruno Haible  <bruno@clisp.org>
66069         mbspcasecmp: Fix function specification.
66070         * lib/string.in.h (mbspcasecmp): Fix specification comment.
66071         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
66072         Reported by Eric Blake <eblake@redhat.com>.
66074 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
66076         timespec: use cast and not conditional, as truncation isn't possible
66077         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
66078         instead of a conditional.  Comment about the situation in more detail.
66079         This undoes most of the 2009-10-29 patch.
66081 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
66083         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
66084         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
66085         * lib/unistr/u8-strchr.c: Likewise.
66086         * modules/unistr/u8-chr: Depend on memchr.
66088         unistr/u*-strchr: add tests
66089         * modules/unistr/u8-strchr-tests: New file.
66090         * modules/unistr/u16-strchr-tests: New file.
66091         * modules/unistr/u32-strchr-tests: New file.
66092         * tests/unistr/test-strchr.h: New file.
66093         * tests/unistr/test-u8-strchr.c: New file.
66094         * tests/unistr/test-u16-strchr.c: New file.
66095         * tests/unistr/test-u32-strchr.c: New file.
66097         unistr/u*-chr: test multibyte sequences more
66098         * tests/unistr/test-chr.h: Do complete testing of the characters in the
66099         test vector.
66100         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
66101         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
66102         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
66104         unistr/u*-chr: test multibyte sequences
66105         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
66107         unistr/u*-chr: prepare for multibyte tests
66108         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
66109         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
66110         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
66111         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
66112         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
66113         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
66115 2010-07-18  Bruno Haible  <bruno@clisp.org>
66117         unistr/u8-strchr: Optimize non-ASCII argument case.
66118         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
66119         because the first byte often matches anyway.
66120         Reported by Pádraig Brady <P@draigbrady.com>.
66122 2010-07-15  Karl Berry  <karl@gnu.org>
66124         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
66126 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
66128         getcwd: on Solaris, work better if ancestors are inaccessible
66129         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
66130         buffer and size, try again with a large buffer.  This works better
66131         on Solaris, since its getcwd succeeds even if the path to the root
66132         is inaccessible, and this is helpful in common cases such as .zfs
66133         hidden directories.  Problem reported by J Chapman Flack in
66134         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
66135         Use system getcwd if it's declared, not merely if it's partly
66136         working; use the partly-working test only to avoid needless effort
66137         if the system getcwd fails.
66138         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
66139         comment that was already obsolete and is now even more obsolete.
66140         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
66141         now might call strdup.
66143 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
66145         pthread: Add enough so that coreutils/src/sort.c compiles.
66146         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
66147         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
66148         gnulib. Include <sched.h> and <time.h>, as per POSIX.
66149         Include <sys/types.h>, in case it defines pthread_t.
66150         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
66151         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
66152         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
66153         (pthread_rwlockattr_t, pthread_spinlock_t):
66154         New typedefs, if HAVE_PTHREAD_T is not defined.
66155         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
66156         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
66157         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
66158         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
66159         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
66160         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
66161         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
66162         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
66163         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
66164         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
66165         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
66166         New macros.
66167         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
66168         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
66169         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
66170         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
66171         (pthread_spin_unlock): New dummy functions.
66172         (pthread_create): Return EAGAIN; don't set errno.
66173         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66174         require AC_C_INLINE.
66175         * modules/pthread (Depends-on): Add sched, time.
66176         (pthread.h): Use AM_V_GEN.
66178 2010-07-13  Bruno Haible  <bruno@clisp.org>
66180         striconveh: Don't malloc memory if the result buffer is sufficient.
66181         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
66182         buffer if its size is sufficient.
66183         Reported by Ludovic Courtès <ludo@gnu.org>.
66185 2010-07-13  Bruno Haible  <bruno@clisp.org>
66187         strtod: Add safety check.
66188         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
66190 2010-07-12  Bruno Haible  <bruno@clisp.org>
66192         Unify tests that set gl_cv_func_ldexpl_no_libm.
66193         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
66194         gl_FUNC_LDEXPL.
66195         (gl_FUNC_LDEXPL): Invoke it.
66196         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66198 2010-07-12  Bruno Haible  <bruno@clisp.org>
66200         Unify tests that set gl_cv_func_ldexp_no_libm.
66201         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
66202         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
66203         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
66204         (configure.ac): Simply invoke gl_FUNC_LDEXP.
66205         * modules/strtod (Files): Add m4/ldexp.m4.
66207 2010-07-12  Bruno Haible  <bruno@clisp.org>
66209         Unify tests that set gl_cv_func_frexpl_no_libm.
66210         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
66211         gl_FUNC_FREXPL_NO_LIBM.
66212         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
66213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66215 2010-07-12  Bruno Haible  <bruno@clisp.org>
66217         Unify tests that set gl_cv_func_frexp_no_libm.
66218         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
66219         gl_FUNC_FREXP_NO_LIBM.
66220         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
66221         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66223 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66225         memcoll: clarify sizes versus lengths, document better, and tweak perf
66226         * lib/memcoll.c (strcoll_loop, memcoll0):
66227         Improve quality of descriptive comments.  Name variables
66228         consistently as to whether they are lengths (which do not include
66229         terminating null) versus sizes (which do).
66230         * lib/xmemcoll.c (xmemcoll0): Likewise.
66231         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
66232         returned when s1size == 0; this is easier to compile and saves
66233         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
66235 2010-07-12  Bruno Haible  <bruno@clisp.org>
66237         Tests for module '_Exit'.
66238         * modules/_Exit-tests: New file.
66239         * tests/test-_Exit.sh: New file.
66240         * tests/test-_Exit.c: New file.
66242         New module '_Exit'.
66243         * lib/stdlib.in.h (__attribute__): New macro.
66244         (_Exit): New declaration.
66245         * lib/_Exit.c: New file.
66246         * m4/_Exit.m4: New file.
66247         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
66248         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
66249         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
66250         * modules/_Exit: New file.
66251         * tests/test-stdlib-c++.cc (_Exit): Check signature.
66252         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
66254 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66256         strtod: make it more-accurate typically, and don't require libm
66257         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
66258         Include limits.h.  Don't include string.h.
66259         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
66260         (locale_isspace): New function, so that no casts are needed to
66261         check whether *s is a space.
66262         (ldexp): Provide an unused dummy if not available.
66263         (scale_radix_exp, parse_number, underlying_strtod): New functions.
66264         (strtod): Use them.  This implementation prefers to use the
66265         underlying strtod if available, falling back on our own code
66266         only to fix known bugs.  This is more likely to produce an
66267         accurate result.  Also, it avoids the use of libm functions.
66268         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
66269         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
66270         was absent, but it caused a test failure with coreutils.
66271         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
66272         with libm.
66273         * modules/strtod (Makefile.am, Link): libm is no longer needed.
66274         * modules/strtod-tests (Makefile.am): Likewise.
66276 2010-07-11  Pádraig Brady  <P@draigBrady.com>
66277             Bruno Haible  <bruno@clisp.org>
66279         unistr/u8-strchr: Optimize ASCII argument case.
66280         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
66282 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66284         (x)memcoll: minor tweaks
66285         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
66286         is after the type that it qualifies.
66287         (memcoll0): Likewise.
66288         * lib/memcoll.h (memcoll0): Likewise.
66289         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
66290         * lib/xmemcoll.h (xmemcoll0): Likewise.
66291         * lib/memcoll.c (memcoll0): Correct the comment.  This function
66292         differs from memcoll in that the NUL byte is part of the argument.
66293         Omit the abort-checks, as performance is a real issue here.  Plus,
66294         the checks were wrong anyway (an off-by-one error).  Omit local
66295         variable 'diff', as it's a bit clearer that way.
66296         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
66297         no longer needed.
66299 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
66301         (x)memcoll: speedup when input is known to be NUL delimited
66302         * lib/memcoll.c: Include stdlib.
66303         (memcoll0): New function.
66304         (strcoll_loop): New function, refactored for use in both memcoll
66305         and memcoll0.
66306         * lib/memcoll.h (memcoll0): Add prototype.
66307         * lib/xmemcoll.c (xmemcoll0): New function.
66308         (collate_error): New function, refactored for use in both xmemcoll
66309         and xmemcoll0.
66310         * lib/xmemcoll.h (xmemcoll0): Add prototype.
66311         * m4/memcoll.m4: add inline invocation.
66313 2010-07-06  Pádraig Brady  <P@draigBrady.com>
66315         * build-aux/bootstrap: Remove any local translations
66316         from the translation project synchronization directory,
66317         so that local only translations are not distributed.
66319 2010-07-04  Bruno Haible  <bruno@clisp.org>
66321         fsusage: Clarify which code applies to which platforms.
66322         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
66323         platform.
66324         * lib/fsusage.c (get_fs_usage): Likewise.
66326 2010-07-04  Bruno Haible  <bruno@clisp.org>
66328         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
66329         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
66330         Reported by Martin Lambers <marlam@marlam.de>.
66332 2010-07-04  Jim Meyering  <meyering@redhat.com>
66334         hash: once again explicitly disallow insertion of NULL
66335         * lib/hash.c (hash_insert0): Reinstate just-removed test:
66336         inserting a NULL pointer cannot work with these functions.
66337         Add a comment with details.
66338         This reverts part of the 2010-07-01 commit, 5bef1a35
66339         "hash: extend module to deal with non-pointer keys".
66341 2010-07-01  Bruno Haible  <bruno@clisp.org>
66343         stdbool: Update doc.
66344         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66345         Info from Christian Weisgerber <naddy@mips.inka.de>.
66347 2010-07-01  Jim Meyering  <meyering@redhat.com>
66349         hash: extend module to deal with non-pointer keys
66350         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66351         but that allows insertion of non-pointer entries.
66352         Do not disallow an ENTRY value of NULL.
66353         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66354         * lib/hash.h (hash_insert0): Declare.
66356 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66358         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66359         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66360         not present (i.e. with autoconf 2.59 and when using gettextize, not
66361         gnulib), require AC_GNU_SOURCE instead.
66363 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66365         idpriv-drop: Fix tests.
66366         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66367         not to the test-idpriv-droptemp program.
66369 2010-06-29  Bruno Haible  <bruno@clisp.org>
66371         string: Fix syntax error with g++ 2.96.
66372         * lib/string.in.h (__pure__): Remove definition.
66373         (_GL_ATTRIBUTE_PURE): New macro.
66374         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66375         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66376         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66378 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66380         unitypes: Fix bug introduced on 2010-05-18.
66381         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66383 2010-06-22  Eric Blake  <eblake@redhat.com>
66385         memmem: slight optimization
66386         * lib/str-two-way.h (critical_factorization): Update comments.
66387         Reduce work during factorization phase.
66388         Reported by Carlos Bueno <carlos@bueno.org>.
66390 2010-06-21  Bruno Haible  <bruno@clisp.org>
66392         Fix HAVE_CALLOC_POSIX misnomer.
66393         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66394         !HAVE_CALLOC_POSIX.
66395         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66396         HAVE_CALLOC_POSIX.
66397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66398         instead of HAVE_CALLOC_POSIX.
66399         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66400         HAVE_CALLOC_POSIX.
66402         Use modern idiom for calloc() replacement.
66403         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66404         AC_FUNC_CALLOC.
66405         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66406         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66407         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66408         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66409         (gl_REPLACE_CALLOC): New macro.
66411 2010-06-21  Bruno Haible  <bruno@clisp.org>
66413         Fix HAVE_REALLOC_POSIX misnomer.
66414         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66415         !HAVE_REALLOC_POSIX.
66416         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66417         HAVE_REALLOC_POSIX.
66418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66419         instead of HAVE_REALLOC_POSIX.
66420         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66421         HAVE_REALLOC_POSIX.
66423         Use modern idiom for realloc() replacement.
66424         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66425         AC_FUNC_REALLOC.
66426         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66427         Autoconf's AC_FUNC_REALLOC.
66428         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66429         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66430         (gl_REPLACE_REALLOC): New macro.
66431         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66433 2010-06-21  Bruno Haible  <bruno@clisp.org>
66435         Fix HAVE_MALLOC_POSIX misnomer.
66436         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66437         !HAVE_MALLOC_POSIX.
66438         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66439         HAVE_MALLOC_POSIX.
66440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66441         instead of HAVE_MALLOC_POSIX.
66442         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66443         HAVE_MALLOC_POSIX.
66445         Use modern idiom for malloc() replacement.
66446         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66447         AC_FUNC_MALLOC.
66448         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66449         Autoconf's AC_FUNC_MALLOC.
66450         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66451         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66452         (gl_REPLACE_MALLOC): New macro.
66453         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66455 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
66457         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
66458         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
66459         This macro takes 3 arguments, not 4.
66461 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
66463         ipv6: fix detection under mingw
66464         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
66465         in6_addr.
66467 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
66469         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
66470         that strtod() works when cross-compiling to a glibc version known
66471         to work.
66473 2010-06-15  Bruno Haible  <bruno@clisp.org>
66475         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
66477 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
66479         select: Correct timeout.
66480         * lib/select.c (rpl_select): Compute wait_timeout correctly.
66482 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66484         git-version-gen: init shell var to avoid env var influence
66485         * build-aux/git-version-gen (v): Init shell var to empty.
66487 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
66489         priv-set: Don't assume that priv.h exists merely because getppriv does.
66490         See Jan Andersen's bug report about AIX 5L in
66491         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
66492         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
66493         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
66494         * lib/priv-set.h: Likewise.
66495         * tests/test-priv-set.c: Likewise.
66497 2010-06-13  Bruno Haible  <bruno@clisp.org>
66499         relocatable: Make it easier to test whether to install wrappers.
66500         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
66501         RELOCATABLE_VIA_WRAPPER.
66503 2010-06-13  Bruno Haible  <bruno@clisp.org>
66505         gnulib-tool: Display specified modules and dependencies differently.
66506         * gnulib-tool (func_show_module_list): New function.
66507         (func_import, func_create_testdir): Invoke it.
66508         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
66510 2010-06-13  Bruno Haible  <bruno@clisp.org>
66512         gnulib-tool: Align code of func_import and func_create_testdir.
66513         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
66514         specified_modules.
66516 2010-06-12  Jim Meyering  <meyering@redhat.com>
66518         test-inttostr: avoid spurious failure on Solaris 9
66519         * tests/test-inttostr.c (main): Skip the test when snprintf fails
66520         to accept "%ju".  Reported by Bruno Haible.
66522 2010-06-11  Jim Meyering  <meyering@redhat.com>
66524         test-sys_socket: mark variables as used more readably
66525         * tests/test-sys_socket.c (main): Mark otherwise unused variables
66526         as "used" explicitly via (void) statement casts.  This is more
66527         readable than using them in an artificial return expression.
66528         Suggestion from Bruno Haible.
66530 2010-06-11  Bruno Haible  <bruno@clisp.org>
66532         Avoid some more warnings from "gcc -Wwrite-strings".
66533         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
66534         to 'const char *'.
66535         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
66536         * tests/test-c-strcasestr.c (main): Likewise.
66537         * tests/test-mbscasestr1.c (main): Likewise.
66538         * tests/test-mbscasestr2.c (main): Likewise.
66539         * tests/test-memmem.c (main): Likewise.
66540         * tests/test-strstr.c (main): Likewise.
66541         * tests/test-strcasestr.c (main): Likewise.
66543 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66545         init.sh: change framework_failure_ to fail with status 99, not 1
66546         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66547         automake's parallel-tests rule that this is an unexpected failure,
66548         even if the test is listed in XFAIL_TESTS.
66550 2010-06-11  Jim Meyering  <meyering@redhat.com>
66552         test-inttostr: avoid warnings about 4-6KB literal strings
66553         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
66554         Include "macros.h", for its definition of ASSERT.
66555         (CK): s/assert/ASSERT/
66556         * modules/inttostr-tests (Files): Add macros.h.
66558         init.sh: don't use $ME_ or skip_ before they are defined
66559         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
66560         their first uses.  Also hoist their companions: warn_, fail_,
66561         framework_failure_, $stderr_fileno.  Prompted by a patch from
66562         Stefano Lattarini.
66564         test-sys_socket: avoid set-but-not-used warnings from gcc
66565         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
66566         avoid warning about set-but-not-used variables.
66568         test-xvasprintf: avoid 'const' discard warnings
66569         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
66570         "const" when assigning from literal strings.
66571         (test_xasprintf): Add "void" in function argument list to placate
66572         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
66574         tests: avoid compilation warnings in argmatch and exclude tests...
66575         in packages that define ARGMATCH_DIE_DECL, like coreutils.
66576         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
66577         Since it always exits, declare with the "noreturn" attribute.
66578         * tests/test-argmatch.c: Likewise.
66580         tests: avoid 'const' discard warnings in mbsstr tests
66581         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
66582         * tests/test-mbsstr2.c (main): Likewise.
66584         test-verify: avoid warning from gcc's -Wmissing-declarations
66585         * tests/test-verify.c (function): Declare to be static.
66587         test-inttostr.c: include <string.h> for use of strcmp
66588         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66590         test-linkat: avoid failed assertion on "other" architectures
66591         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66592         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66593         sparc: https://bugs.launchpad.net/bugs/591968
66595 2010-06-11  Jim Meyering  <meyering@redhat.com>
66597         printf.m4: avoid autoconf's "Expanded Before Required" warning
66598         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
66599         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
66600         autoconf warning.
66602 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
66604         Replacement header templates are now named with ".in", not "_".
66605         * doc/gnulib-intro.texi: Correct.
66607 2010-06-10  Jim Meyering  <meyering@redhat.com>
66609         inttostr-tests: depend on snprintf, not snprintf-posix
66610         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
66611         snprintf-posix, to avoid this aclocal failure:
66612           missing file gnulib-tests/vasnprintf.c
66613           configure.ac:45: error: expected source file, required through \
66614           AC_LIBSOURCES, not found
66616 2010-06-10  Jim Meyering  <meyering@redhat.com>
66618         inttostr: add a new function, inttostr, and tests
66619         The namesake function was not available.  The existence of the
66620         template file, inttostr.c makes its addition nontrivial.
66621         * lib/anytostr.c: Rename from inttostr.c.
66622         (anytostr): Rename from inttostr.
66623         * lib/inttostr.c: New file.
66624         * modules/inttostr (Files): Add anytostr.c.
66625         (Makefile.am): Set lib_SOURCES instead of ...
66626         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
66627         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
66628         * lib/offtostr.c: Likewise.
66629         * lib/uinttostr.c: Likewise.
66630         * lib/umaxtostr.c: Likewise.
66631         * modules/inttostr-tests: New file.
66632         * tests/test-inttostr.c: New file.  Test these functions.
66634 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
66635             Bruno Haible  <bruno@clisp.org>
66637         Add "Extending Gnulib" chapter to manual.
66638         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
66639         chapter.
66640         (Extending Gnulib): New chapter.
66641         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
66642         chapter.
66644 2010-06-09  Bruno Haible  <bruno@clisp.org>
66646         Avoid relocwrapper link errors due to gnulib replacement functions.
66647         * lib/areadlink.c: Use the system's malloc, realloc functions.
66648         (areadlink): Set errno to ENOMEM explicitly.
66649         * modules/areadlink (Depends-on): Remove malloc-posix.
66650         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66652 2010-06-09  Bruno Haible  <bruno@clisp.org>
66654         Avoid relocwrapper link errors due to gnulib replacement functions.
66655         * lib/canonicalize-lgpl.c: Use the system's malloc function.
66656         * lib/malloca.c: Likewise.
66657         * lib/relocatable.c: Likewise.
66658         * lib/progreloc.c: Use the system's malloc, sprintf functions.
66659         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
66660         * lib/setenv.c: Use the system's malloc, realloc functions.
66661         * lib/strerror.c: Use the system's sprintf function.
66662         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66664 2010-06-04  Bruno Haible  <bruno@clisp.org>
66666         Prefer documented low-level autoconf macro names.
66667         * m4/lib-link.m4: Use m4_translit instead of translit.
66668         * m4/environ.m4: Likewise.
66669         * m4/mathfunc.m4: Likewise.
66670         * m4/onceonly.m4: Likewise.
66671         * m4/stdint.m4: Likewise.
66672         Suggested by Eric Blake.
66674 2010-06-04  Martin Lambers  <marlam@marlam.de>
66675             Bruno Haible  <bruno@clisp.org>
66677         havelib: Allow library names with '+' characters.
66678         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66679         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66681 2010-06-09  Bruno Haible  <bruno@clisp.org>
66683         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66684         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66685         realloc failed.
66687 2010-06-08  Peter Simons  <simons@cryp.to>
66689         maint.mk: make the news-check rule more configurable
66690         * top/maint.mk (news-check-lines-spec): New variable.
66691         (news-check): Use "sed -n 1,10p" in place of "head".
66693 2010-06-07  Jim Meyering  <meyering@redhat.com>
66695         do-release-commit-and-tag: fix typo in --help
66696         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66698         regex: avoid new dead-code warning with gcc-4.6.0
66699         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66700         if-block containing a while-loop.  It's been unused for at least
66701         5 years.
66703 2010-06-05  Bruno Haible  <bruno@clisp.org>
66705         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66706         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66708 2010-06-04  Bruno Haible  <bruno@clisp.org>
66710         Update to GNU gettext 0.18.1.
66711         * modules/gettext (configure.ac): Require gettext infrastructure from
66712         version 0.18.1.
66714 2010-06-03  Bruno Haible  <bruno@clisp.org>
66716         Don't use AC_LIBOBJ with file names in subdirectories.
66717         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66718         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66719         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66720         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66721         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66722         gl_LIBUNISTRING_LIBSOURCE.
66723         (Makefile.am): Augment lib_SOURCES here, conditionally.
66724         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66726 2010-06-03  Bruno Haible  <bruno@clisp.org>
66728         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66729         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66730         expansion does not end with a newline.
66731         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66732         unnecessary newline.
66734 2010-06-03  Bruno Haible  <bruno@clisp.org>
66736         Reduce dependencies.
66737         * tests/test-quotearg.h: New file, extracted from
66738         tests/test-quotearg.c.
66739         * tests/test-quotearg-simple.c: New file, extracted from
66740         tests/test-quotearg.c.
66741         * tests/test-quotearg.c: Don't include <ctype.h>.
66742         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66743         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66744         use_quote_double_quotes, use_quotearg_colon): Moved to
66745         tests/test-quotearg.h.
66746         (results_g, flag_results, custom_quotes, custom_results): Moved
66747         to tests/test-quotearg-simple.c.
66748         (main): Moved the part that does not depend on gettext to
66749         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66750         performed.
66751         * modules/quotearg-simple: New file.
66752         * modules/quotearg-simple-tests: New file.
66753         * modules/quotearg (Depends-on): Add quotearg-simple.
66754         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66755         (Files): Add tests/test-quotearg.h.
66756         Reported by Paolo Bonzini.
66758 2010-06-03  Bruno Haible  <bruno@clisp.org>
66760         Reduce dependencies.
66761         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66763 2010-06-03  Bruno Haible  <bruno@clisp.org>
66765         time: Undefine more broken macros.
66766         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66767         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66768         Reported by Eric Blake.
66770 2010-06-03  Bruno Haible  <bruno@clisp.org>
66772         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66773         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66774         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66775         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66776         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66777         Reported by Ludovic Courtès <ludo@gnu.org>.
66779 2010-06-02  Eric Blake  <eblake@redhat.com>
66781         time: work with mingw + pthreads-win32 library
66782         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66783         if timespec is defined only in pthread.h.
66784         * modules/time (Makefile.am): Substitute it.
66785         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66786         <pthread.h>, when needed.
66787         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66788         from the library.
66790 2010-05-31  Bruno Haible  <bruno@clisp.org>
66792         Avoid expanding two macros in the wrong order.
66793         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66794         gl_LIBUNISTRING if it is defined.
66795         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66796         autoconf >= 2.64.
66797         Reported by Ludovic Courtès <ludo@gnu.org>.
66799 2010-05-27  Jim Meyering  <meyering@redhat.com>
66801         maint.mk: also prohibit "#undef" of always-defined symbols
66802         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66803         Allow more than one space before the symbol name.
66804         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66805         the regexp uses alternation.
66807 2010-05-26  Eric Blake  <eblake@redhat.com>
66809         maint.mk: avoid echo -e
66810         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66811         Convert all uses of echo -* to printf.
66812         Reported by Matthias Bolte.
66814 2010-05-25  Bruno Haible  <bruno@clisp.org>
66816         Update to GNU gettext 0.18, part 2.
66817         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66818         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66820 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66822         Add missing include in test-pwrite.c.
66823         * tests/test-pwrite.c: Include string.h, for strcmp.
66825 2010-05-24  Bruno Haible  <bruno@clisp.org>
66827         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66829 2010-05-24  Bruno Haible  <bruno@clisp.org>
66831         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66832         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66833         iconveh_error argument.
66834         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66835         U_STRCONV_TO_LOCALE.
66836         * lib/unistr/u16-strcoll.c: Likewise.
66837         * lib/unistr/u32-strcoll.c: Likewise.
66838         * modules/unistr/u8-strcoll (Depends-on): Add
66839         uniconv/u8-strconv-to-enc, localcharset. Remove
66840         uniconv/u8-strconv-to-locale.
66841         (configure.ac): Bump version number.
66842         * modules/unistr/u16-strcoll (Depends-on): Add
66843         uniconv/u16-strconv-to-enc, localcharset. Remove
66844         uniconv/u16-strconv-to-locale.
66845         (configure.ac): Bump version number.
66846         * modules/unistr/u32-strcoll (Depends-on): Add
66847         uniconv/u32-strconv-to-enc, localcharset. Remove
66848         uniconv/u32-strconv-to-locale.
66849         (configure.ac): Bump version number.
66851 2010-05-24  Bruno Haible  <bruno@clisp.org>
66853         Avoid a test failure on NetBSD 5.0.
66854         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66855         an iconv() bug.
66857 2010-05-24  Bruno Haible  <bruno@clisp.org>
66859         Adjust #include directive style.
66860         * modules/regex (Includes): Recommend to write <regex.h>.
66862 2010-05-24  Bruno Haible  <bruno@clisp.org>
66864         regex: Don't require alloca.
66865         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66866         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66867         only inside if (0).
66869 2010-05-23  Jim Meyering  <meyering@redhat.com>
66871         test-renameat.c: include <sys/stat.h>
66872         * tests/test-renameat.c: Include <sys/stat.h>; required for
66873         definition of S_IS* macros.
66875 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66877         Update maintainer documentation for 'relocatable-prog' module.
66878         * doc/relocatable-maint.texi: Update.
66879         Comments by Bruno Haible.
66881 2010-05-23  Bruno Haible  <bruno@clisp.org>
66883         git-merge-changelog: Enable --split-merged-entry by default.
66884         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66885         (usage): Don't mention this option any more.
66886         Reported by Ralf Wildenhues.
66888 2010-05-23  Jim Meyering  <meyering@redhat.com>
66890         test-pwrite: do not leave behind a test file named "out"
66891         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66892         The trivial-looking use of init.sh is really necessary.
66893         It ensures that the temporary file, "out", is created in
66894         a temporary directory, and removed upon termination.
66895         * tests/test-pwrite.sh: Re-add file.
66896         * modules/pwrite-tests: Reference it.
66898 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66900         Fix output redirection buglet in init.sh.
66901         * tests/init.sh: Fix redirection of stderr.
66903 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66905         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66907 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66909         * modules/valgrind-tests: New file.
66910         * m4/valgrind-tests.m4: New file.
66911         * doc/valgrind-tests.texi: New file.
66912         * doc/gnulib.texi (Running self-tests under valgrind): New
66913         section.
66915 2010-05-19  Bruno Haible  <bruno@clisp.org>
66917         Clean up dead code in recent commit.
66918         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66919         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66920         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66921         Suggested by Paolo Bonzini.
66923 2010-05-19  Bruno Haible  <bruno@clisp.org>
66925         Avoid valgrind error reports from libunistring.
66926         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66927         * modules/libunistring (Files): Add it.
66928         * modules/libunistring-optional (Files): Likewise.
66930 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66931             Bruno Haible  <bruno@clisp.org>
66933         New module 'libunistring-optional'.
66934         * modules/libunistring-optional: New file.
66935         * m4/libunistring-base.m4: New file.
66936         * m4/libunistring-optional.m4: New file.
66937         * lib/unicase.in.h: Renamed from lib/unicase.h.
66938         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66939         * lib/unictype.in.h: Renamed from lib/unictype.h.
66940         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66941         * lib/uniname.in.h: Renamed from lib/uniname.h.
66942         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66943         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66944         * lib/unistr.in.h: Renamed from lib/unistr.h.
66945         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66946         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66947         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66948         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66949         gl_LIBUNISTRING. If the library was found, determine the installed
66950         version and set LIBUNISTRING_VERSION.
66951         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66952         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66953         handle a configuration option --with-included-libunistring.
66954         * modules/libunistring (Files): Add m4/absolute-header.m4.
66955         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66956         Add m4/libunistring-base.m4.
66957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66958         (Makefile.am): Build unicase.h from unicase.in.h.
66959         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66960         Add m4/libunistring-base.m4.
66961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66962         (Makefile.am): Build uniconv.h from uniconv.in.h.
66963         * modules/unictype/base (Files): Use unictype.in.h instead of
66964         unictype.h. Add m4/libunistring-base.m4.
66965         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66966         (Makefile.am): Build unictype.h from unictype.in.h.
66967         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66968         Add m4/libunistring-base.m4.
66969         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66970         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66971         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66972         Add m4/libunistring-base.m4.
66973         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66974         (Makefile.am): Build uniname.h from uniname.in.h.
66975         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66976         Add m4/libunistring-base.m4.
66977         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66978         (Makefile.am): Build uninorm.h from uninorm.in.h.
66979         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66980         unistdio.h. Add m4/libunistring-base.m4.
66981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66982         (Makefile.am): Build unistdio.h from unistdio.in.h.
66983         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66984         Add m4/libunistring-base.m4.
66985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66986         (Makefile.am): Build unistr.h from unistr.in.h.
66987         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66988         Add m4/libunistring-base.m4.
66989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66990         (Makefile.am): Build unitypes.h from unitypes.in.h.
66991         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66992         Add m4/libunistring-base.m4.
66993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66994         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66995         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66996         uniwidth.h. Add m4/libunistring-base.m4.
66997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66998         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66999         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
67000         instead of augmenting lib_SOURCES.
67001         * modules/unicase/empty-suffix-context: Likewise.
67002         * modules/unicase/locale-language: Likewise.
67003         * modules/unicase/tolower: Likewise.
67004         * modules/unicase/totitle: Likewise.
67005         * modules/unicase/toupper: Likewise.
67006         * modules/unicase/u8-casecmp: Likewise.
67007         * modules/unicase/u8-casecoll: Likewise.
67008         * modules/unicase/u8-casefold: Likewise.
67009         * modules/unicase/u8-casexfrm: Likewise.
67010         * modules/unicase/u8-ct-casefold: Likewise.
67011         * modules/unicase/u8-ct-tolower: Likewise.
67012         * modules/unicase/u8-ct-totitle: Likewise.
67013         * modules/unicase/u8-ct-toupper: Likewise.
67014         * modules/unicase/u8-is-cased: Likewise.
67015         * modules/unicase/u8-is-casefolded: Likewise.
67016         * modules/unicase/u8-is-lowercase: Likewise.
67017         * modules/unicase/u8-is-titlecase: Likewise.
67018         * modules/unicase/u8-is-uppercase: Likewise.
67019         * modules/unicase/u8-prefix-context: Likewise.
67020         * modules/unicase/u8-suffix-context: Likewise.
67021         * modules/unicase/u8-tolower: Likewise.
67022         * modules/unicase/u8-totitle: Likewise.
67023         * modules/unicase/u8-toupper: Likewise.
67024         * modules/unicase/u16-casecmp: Likewise.
67025         * modules/unicase/u16-casecoll: Likewise.
67026         * modules/unicase/u16-casefold: Likewise.
67027         * modules/unicase/u16-casexfrm: Likewise.
67028         * modules/unicase/u16-ct-casefold: Likewise.
67029         * modules/unicase/u16-ct-tolower: Likewise.
67030         * modules/unicase/u16-ct-totitle: Likewise.
67031         * modules/unicase/u16-ct-toupper: Likewise.
67032         * modules/unicase/u16-is-cased: Likewise.
67033         * modules/unicase/u16-is-casefolded: Likewise.
67034         * modules/unicase/u16-is-lowercase: Likewise.
67035         * modules/unicase/u16-is-titlecase: Likewise.
67036         * modules/unicase/u16-is-uppercase: Likewise.
67037         * modules/unicase/u16-prefix-context: Likewise.
67038         * modules/unicase/u16-suffix-context: Likewise.
67039         * modules/unicase/u16-tolower: Likewise.
67040         * modules/unicase/u16-totitle: Likewise.
67041         * modules/unicase/u16-toupper: Likewise.
67042         * modules/unicase/u32-casecmp: Likewise.
67043         * modules/unicase/u32-casecoll: Likewise.
67044         * modules/unicase/u32-casefold: Likewise.
67045         * modules/unicase/u32-casexfrm: Likewise.
67046         * modules/unicase/u32-ct-casefold: Likewise.
67047         * modules/unicase/u32-ct-tolower: Likewise.
67048         * modules/unicase/u32-ct-totitle: Likewise.
67049         * modules/unicase/u32-ct-toupper: Likewise.
67050         * modules/unicase/u32-is-cased: Likewise.
67051         * modules/unicase/u32-is-casefolded: Likewise.
67052         * modules/unicase/u32-is-lowercase: Likewise.
67053         * modules/unicase/u32-is-titlecase: Likewise.
67054         * modules/unicase/u32-is-uppercase: Likewise.
67055         * modules/unicase/u32-prefix-context: Likewise.
67056         * modules/unicase/u32-suffix-context: Likewise.
67057         * modules/unicase/u32-tolower: Likewise.
67058         * modules/unicase/u32-totitle: Likewise.
67059         * modules/unicase/u32-toupper: Likewise.
67060         * modules/unicase/ulc-casecmp: Likewise.
67061         * modules/unicase/ulc-casecoll: Likewise.
67062         * modules/unicase/ulc-casexfrm: Likewise.
67063         * modules/uniconv/u8-conv-from-enc: Likewise.
67064         * modules/uniconv/u8-conv-to-enc: Likewise.
67065         * modules/uniconv/u8-strconv-from-enc: Likewise.
67066         * modules/uniconv/u8-strconv-from-locale: Likewise.
67067         * modules/uniconv/u8-strconv-to-enc: Likewise.
67068         * modules/uniconv/u8-strconv-to-locale: Likewise.
67069         * modules/uniconv/u16-conv-from-enc: Likewise.
67070         * modules/uniconv/u16-conv-to-enc: Likewise.
67071         * modules/uniconv/u16-strconv-from-enc: Likewise.
67072         * modules/uniconv/u16-strconv-from-locale: Likewise.
67073         * modules/uniconv/u16-strconv-to-enc: Likewise.
67074         * modules/uniconv/u16-strconv-to-locale: Likewise.
67075         * modules/uniconv/u32-conv-from-enc: Likewise.
67076         * modules/uniconv/u32-conv-to-enc: Likewise.
67077         * modules/uniconv/u32-strconv-from-enc: Likewise.
67078         * modules/uniconv/u32-strconv-from-locale: Likewise.
67079         * modules/uniconv/u32-strconv-to-enc: Likewise.
67080         * modules/uniconv/u32-strconv-to-locale: Likewise.
67081         * modules/unictype/bidicategory-byname: Likewise.
67082         * modules/unictype/bidicategory-name: Likewise.
67083         * modules/unictype/bidicategory-of: Likewise.
67084         * modules/unictype/bidicategory-test: Likewise.
67085         * modules/unictype/block-list: Likewise.
67086         * modules/unictype/block-test: Likewise.
67087         * modules/unictype/category-C: Likewise.
67088         * modules/unictype/category-Cc: Likewise.
67089         * modules/unictype/category-Cf: Likewise.
67090         * modules/unictype/category-Cn: Likewise.
67091         * modules/unictype/category-Co: Likewise.
67092         * modules/unictype/category-Cs: Likewise.
67093         * modules/unictype/category-L: Likewise.
67094         * modules/unictype/category-Ll: Likewise.
67095         * modules/unictype/category-Lm: Likewise.
67096         * modules/unictype/category-Lo: Likewise.
67097         * modules/unictype/category-Lt: Likewise.
67098         * modules/unictype/category-Lu: Likewise.
67099         * modules/unictype/category-M: Likewise.
67100         * modules/unictype/category-Mc: Likewise.
67101         * modules/unictype/category-Me: Likewise.
67102         * modules/unictype/category-Mn: Likewise.
67103         * modules/unictype/category-N: Likewise.
67104         * modules/unictype/category-Nd: Likewise.
67105         * modules/unictype/category-Nl: Likewise.
67106         * modules/unictype/category-No: Likewise.
67107         * modules/unictype/category-P: Likewise.
67108         * modules/unictype/category-Pc: Likewise.
67109         * modules/unictype/category-Pd: Likewise.
67110         * modules/unictype/category-Pe: Likewise.
67111         * modules/unictype/category-Pf: Likewise.
67112         * modules/unictype/category-Pi: Likewise.
67113         * modules/unictype/category-Po: Likewise.
67114         * modules/unictype/category-Ps: Likewise.
67115         * modules/unictype/category-S: Likewise.
67116         * modules/unictype/category-Sc: Likewise.
67117         * modules/unictype/category-Sk: Likewise.
67118         * modules/unictype/category-Sm: Likewise.
67119         * modules/unictype/category-So: Likewise.
67120         * modules/unictype/category-Z: Likewise.
67121         * modules/unictype/category-Zl: Likewise.
67122         * modules/unictype/category-Zp: Likewise.
67123         * modules/unictype/category-Zs: Likewise.
67124         * modules/unictype/category-and: Likewise.
67125         * modules/unictype/category-and-not: Likewise.
67126         * modules/unictype/category-byname: Likewise.
67127         * modules/unictype/category-name: Likewise.
67128         * modules/unictype/category-none: Likewise.
67129         * modules/unictype/category-of: Likewise.
67130         * modules/unictype/category-or: Likewise.
67131         * modules/unictype/category-test: Likewise.
67132         * modules/unictype/combining-class: Likewise.
67133         * modules/unictype/ctype-alnum: Likewise.
67134         * modules/unictype/ctype-alpha: Likewise.
67135         * modules/unictype/ctype-blank: Likewise.
67136         * modules/unictype/ctype-cntrl: Likewise.
67137         * modules/unictype/ctype-digit: Likewise.
67138         * modules/unictype/ctype-graph: Likewise.
67139         * modules/unictype/ctype-lower: Likewise.
67140         * modules/unictype/ctype-print: Likewise.
67141         * modules/unictype/ctype-punct: Likewise.
67142         * modules/unictype/ctype-space: Likewise.
67143         * modules/unictype/ctype-upper: Likewise.
67144         * modules/unictype/ctype-xdigit: Likewise.
67145         * modules/unictype/decimal-digit: Likewise.
67146         * modules/unictype/digit: Likewise.
67147         * modules/unictype/mirror: Likewise.
67148         * modules/unictype/numeric: Likewise.
67149         * modules/unictype/property-alphabetic: Likewise.
67150         * modules/unictype/property-ascii-hex-digit: Likewise.
67151         * modules/unictype/property-bidi-arabic-digit: Likewise.
67152         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
67153         * modules/unictype/property-bidi-block-separator: Likewise.
67154         * modules/unictype/property-bidi-boundary-neutral: Likewise.
67155         * modules/unictype/property-bidi-common-separator: Likewise.
67156         * modules/unictype/property-bidi-control: Likewise.
67157         * modules/unictype/property-bidi-embedding-or-override: Likewise.
67158         * modules/unictype/property-bidi-eur-num-separator: Likewise.
67159         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
67160         * modules/unictype/property-bidi-european-digit: Likewise.
67161         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
67162         * modules/unictype/property-bidi-left-to-right: Likewise.
67163         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
67164         * modules/unictype/property-bidi-other-neutral: Likewise.
67165         * modules/unictype/property-bidi-pdf: Likewise.
67166         * modules/unictype/property-bidi-segment-separator: Likewise.
67167         * modules/unictype/property-bidi-whitespace: Likewise.
67168         * modules/unictype/property-byname: Likewise.
67169         * modules/unictype/property-combining: Likewise.
67170         * modules/unictype/property-composite: Likewise.
67171         * modules/unictype/property-currency-symbol: Likewise.
67172         * modules/unictype/property-dash: Likewise.
67173         * modules/unictype/property-decimal-digit: Likewise.
67174         * modules/unictype/property-default-ignorable-code-point: Likewise.
67175         * modules/unictype/property-deprecated: Likewise.
67176         * modules/unictype/property-diacritic: Likewise.
67177         * modules/unictype/property-extender: Likewise.
67178         * modules/unictype/property-format-control: Likewise.
67179         * modules/unictype/property-grapheme-base: Likewise.
67180         * modules/unictype/property-grapheme-extend: Likewise.
67181         * modules/unictype/property-grapheme-link: Likewise.
67182         * modules/unictype/property-hex-digit: Likewise.
67183         * modules/unictype/property-hyphen: Likewise.
67184         * modules/unictype/property-id-continue: Likewise.
67185         * modules/unictype/property-id-start: Likewise.
67186         * modules/unictype/property-ideographic: Likewise.
67187         * modules/unictype/property-ids-binary-operator: Likewise.
67188         * modules/unictype/property-ids-trinary-operator: Likewise.
67189         * modules/unictype/property-ignorable-control: Likewise.
67190         * modules/unictype/property-iso-control: Likewise.
67191         * modules/unictype/property-join-control: Likewise.
67192         * modules/unictype/property-left-of-pair: Likewise.
67193         * modules/unictype/property-line-separator: Likewise.
67194         * modules/unictype/property-logical-order-exception: Likewise.
67195         * modules/unictype/property-lowercase: Likewise.
67196         * modules/unictype/property-math: Likewise.
67197         * modules/unictype/property-non-break: Likewise.
67198         * modules/unictype/property-not-a-character: Likewise.
67199         * modules/unictype/property-numeric: Likewise.
67200         * modules/unictype/property-other-alphabetic: Likewise.
67201         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
67202         * modules/unictype/property-other-grapheme-extend: Likewise.
67203         * modules/unictype/property-other-id-continue: Likewise.
67204         * modules/unictype/property-other-id-start: Likewise.
67205         * modules/unictype/property-other-lowercase: Likewise.
67206         * modules/unictype/property-other-math: Likewise.
67207         * modules/unictype/property-other-uppercase: Likewise.
67208         * modules/unictype/property-paired-punctuation: Likewise.
67209         * modules/unictype/property-paragraph-separator: Likewise.
67210         * modules/unictype/property-pattern-syntax: Likewise.
67211         * modules/unictype/property-pattern-white-space: Likewise.
67212         * modules/unictype/property-private-use: Likewise.
67213         * modules/unictype/property-punctuation: Likewise.
67214         * modules/unictype/property-quotation-mark: Likewise.
67215         * modules/unictype/property-radical: Likewise.
67216         * modules/unictype/property-sentence-terminal: Likewise.
67217         * modules/unictype/property-soft-dotted: Likewise.
67218         * modules/unictype/property-space: Likewise.
67219         * modules/unictype/property-terminal-punctuation: Likewise.
67220         * modules/unictype/property-test: Likewise.
67221         * modules/unictype/property-titlecase: Likewise.
67222         * modules/unictype/property-unassigned-code-value: Likewise.
67223         * modules/unictype/property-unified-ideograph: Likewise.
67224         * modules/unictype/property-uppercase: Likewise.
67225         * modules/unictype/property-variation-selector: Likewise.
67226         * modules/unictype/property-white-space: Likewise.
67227         * modules/unictype/property-xid-continue: Likewise.
67228         * modules/unictype/property-xid-start: Likewise.
67229         * modules/unictype/property-zero-width: Likewise.
67230         * modules/unictype/scripts: Likewise.
67231         * modules/unictype/syntax-c-ident: Likewise.
67232         * modules/unictype/syntax-c-whitespace: Likewise.
67233         * modules/unictype/syntax-java-ident: Likewise.
67234         * modules/unictype/syntax-java-whitespace: Likewise.
67235         * modules/unilbrk/u8-possible-linebreaks: Likewise.
67236         * modules/unilbrk/u8-width-linebreaks: Likewise.
67237         * modules/unilbrk/u16-possible-linebreaks: Likewise.
67238         * modules/unilbrk/u16-width-linebreaks: Likewise.
67239         * modules/unilbrk/u32-possible-linebreaks: Likewise.
67240         * modules/unilbrk/u32-width-linebreaks: Likewise.
67241         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
67242         * modules/unilbrk/ulc-width-linebreaks: Likewise.
67243         * modules/uniname/uniname: Likewise.
67244         * modules/uninorm/canonical-decomposition: Likewise.
67245         * modules/uninorm/composition: Likewise.
67246         * modules/uninorm/decomposing-form: Likewise.
67247         * modules/uninorm/decomposition: Likewise.
67248         * modules/uninorm/filter: Likewise.
67249         * modules/uninorm/nfc: Likewise.
67250         * modules/uninorm/nfd: Likewise.
67251         * modules/uninorm/nfkc: Likewise.
67252         * modules/uninorm/nfkd: Likewise.
67253         * modules/uninorm/u8-normalize: Likewise.
67254         * modules/uninorm/u8-normcmp: Likewise.
67255         * modules/uninorm/u8-normcoll: Likewise.
67256         * modules/uninorm/u8-normxfrm: Likewise.
67257         * modules/uninorm/u16-normalize: Likewise.
67258         * modules/uninorm/u16-normcmp: Likewise.
67259         * modules/uninorm/u16-normcoll: Likewise.
67260         * modules/uninorm/u16-normxfrm: Likewise.
67261         * modules/uninorm/u32-normalize: Likewise.
67262         * modules/uninorm/u32-normcmp: Likewise.
67263         * modules/uninorm/u32-normcoll: Likewise.
67264         * modules/uninorm/u32-normxfrm: Likewise.
67265         * modules/unistdio/u8-asnprintf: Likewise.
67266         * modules/unistdio/u8-asprintf: Likewise.
67267         * modules/unistdio/u8-snprintf: Likewise.
67268         * modules/unistdio/u8-sprintf: Likewise.
67269         * modules/unistdio/u8-u8-asnprintf: Likewise.
67270         * modules/unistdio/u8-u8-asprintf: Likewise.
67271         * modules/unistdio/u8-u8-snprintf: Likewise.
67272         * modules/unistdio/u8-u8-sprintf: Likewise.
67273         * modules/unistdio/u8-u8-vasnprintf: Likewise.
67274         * modules/unistdio/u8-u8-vasprintf: Likewise.
67275         * modules/unistdio/u8-u8-vsnprintf: Likewise.
67276         * modules/unistdio/u8-u8-vsprintf: Likewise.
67277         * modules/unistdio/u8-vasnprintf: Likewise.
67278         * modules/unistdio/u8-vasprintf: Likewise.
67279         * modules/unistdio/u8-vsnprintf: Likewise.
67280         * modules/unistdio/u8-vsprintf: Likewise.
67281         * modules/unistdio/u16-asnprintf: Likewise.
67282         * modules/unistdio/u16-asprintf: Likewise.
67283         * modules/unistdio/u16-snprintf: Likewise.
67284         * modules/unistdio/u16-sprintf: Likewise.
67285         * modules/unistdio/u16-u16-asnprintf: Likewise.
67286         * modules/unistdio/u16-u16-asprintf: Likewise.
67287         * modules/unistdio/u16-u16-snprintf: Likewise.
67288         * modules/unistdio/u16-u16-sprintf: Likewise.
67289         * modules/unistdio/u16-u16-vasnprintf: Likewise.
67290         * modules/unistdio/u16-u16-vasprintf: Likewise.
67291         * modules/unistdio/u16-u16-vsnprintf: Likewise.
67292         * modules/unistdio/u16-u16-vsprintf: Likewise.
67293         * modules/unistdio/u16-vasnprintf: Likewise.
67294         * modules/unistdio/u16-vasprintf: Likewise.
67295         * modules/unistdio/u16-vsnprintf: Likewise.
67296         * modules/unistdio/u16-vsprintf: Likewise.
67297         * modules/unistdio/u32-asnprintf: Likewise.
67298         * modules/unistdio/u32-asprintf: Likewise.
67299         * modules/unistdio/u32-snprintf: Likewise.
67300         * modules/unistdio/u32-sprintf: Likewise.
67301         * modules/unistdio/u32-u32-asnprintf: Likewise.
67302         * modules/unistdio/u32-u32-asprintf: Likewise.
67303         * modules/unistdio/u32-u32-snprintf: Likewise.
67304         * modules/unistdio/u32-u32-sprintf: Likewise.
67305         * modules/unistdio/u32-u32-vasnprintf: Likewise.
67306         * modules/unistdio/u32-u32-vasprintf: Likewise.
67307         * modules/unistdio/u32-u32-vsnprintf: Likewise.
67308         * modules/unistdio/u32-u32-vsprintf: Likewise.
67309         * modules/unistdio/u32-vasnprintf: Likewise.
67310         * modules/unistdio/u32-vasprintf: Likewise.
67311         * modules/unistdio/u32-vsnprintf: Likewise.
67312         * modules/unistdio/u32-vsprintf: Likewise.
67313         * modules/unistdio/ulc-asnprintf: Likewise.
67314         * modules/unistdio/ulc-asprintf: Likewise.
67315         * modules/unistdio/ulc-fprintf: Likewise.
67316         * modules/unistdio/ulc-snprintf: Likewise.
67317         * modules/unistdio/ulc-sprintf: Likewise.
67318         * modules/unistdio/ulc-vasnprintf: Likewise.
67319         * modules/unistdio/ulc-vasprintf: Likewise.
67320         * modules/unistdio/ulc-vfprintf: Likewise.
67321         * modules/unistdio/ulc-vsnprintf: Likewise.
67322         * modules/unistdio/ulc-vsprintf: Likewise.
67323         * modules/unistr/u8-check: Likewise.
67324         * modules/unistr/u8-chr: Likewise.
67325         * modules/unistr/u8-cmp: Likewise.
67326         * modules/unistr/u8-cmp2: Likewise.
67327         * modules/unistr/u8-cpy: Likewise.
67328         * modules/unistr/u8-cpy-alloc: Likewise.
67329         * modules/unistr/u8-endswith: Likewise.
67330         * modules/unistr/u8-mblen: Likewise.
67331         * modules/unistr/u8-mbsnlen: Likewise.
67332         * modules/unistr/u8-mbtouc: Likewise.
67333         * modules/unistr/u8-mbtouc-unsafe: Likewise.
67334         * modules/unistr/u8-mbtoucr: Likewise.
67335         * modules/unistr/u8-move: Likewise.
67336         * modules/unistr/u8-next: Likewise.
67337         * modules/unistr/u8-prev: Likewise.
67338         * modules/unistr/u8-set: Likewise.
67339         * modules/unistr/u8-startswith: Likewise.
67340         * modules/unistr/u8-stpcpy: Likewise.
67341         * modules/unistr/u8-stpncpy: Likewise.
67342         * modules/unistr/u8-strcat: Likewise.
67343         * modules/unistr/u8-strchr: Likewise.
67344         * modules/unistr/u8-strcmp: Likewise.
67345         * modules/unistr/u8-strcoll: Likewise.
67346         * modules/unistr/u8-strcpy: Likewise.
67347         * modules/unistr/u8-strcspn: Likewise.
67348         * modules/unistr/u8-strdup: Likewise.
67349         * modules/unistr/u8-strlen: Likewise.
67350         * modules/unistr/u8-strmblen: Likewise.
67351         * modules/unistr/u8-strmbtouc: Likewise.
67352         * modules/unistr/u8-strncat: Likewise.
67353         * modules/unistr/u8-strncmp: Likewise.
67354         * modules/unistr/u8-strncpy: Likewise.
67355         * modules/unistr/u8-strnlen: Likewise.
67356         * modules/unistr/u8-strpbrk: Likewise.
67357         * modules/unistr/u8-strrchr: Likewise.
67358         * modules/unistr/u8-strspn: Likewise.
67359         * modules/unistr/u8-strstr: Likewise.
67360         * modules/unistr/u8-strtok: Likewise.
67361         * modules/unistr/u8-to-u16: Likewise.
67362         * modules/unistr/u8-to-u32: Likewise.
67363         * modules/unistr/u8-uctomb: Likewise.
67364         * modules/unistr/u16-check: Likewise.
67365         * modules/unistr/u16-chr: Likewise.
67366         * modules/unistr/u16-cmp: Likewise.
67367         * modules/unistr/u16-cmp2: Likewise.
67368         * modules/unistr/u16-cpy: Likewise.
67369         * modules/unistr/u16-cpy-alloc: Likewise.
67370         * modules/unistr/u16-endswith: Likewise.
67371         * modules/unistr/u16-mblen: Likewise.
67372         * modules/unistr/u16-mbsnlen: Likewise.
67373         * modules/unistr/u16-mbtouc: Likewise.
67374         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67375         * modules/unistr/u16-mbtoucr: Likewise.
67376         * modules/unistr/u16-move: Likewise.
67377         * modules/unistr/u16-next: Likewise.
67378         * modules/unistr/u16-prev: Likewise.
67379         * modules/unistr/u16-set: Likewise.
67380         * modules/unistr/u16-startswith: Likewise.
67381         * modules/unistr/u16-stpcpy: Likewise.
67382         * modules/unistr/u16-stpncpy: Likewise.
67383         * modules/unistr/u16-strcat: Likewise.
67384         * modules/unistr/u16-strchr: Likewise.
67385         * modules/unistr/u16-strcmp: Likewise.
67386         * modules/unistr/u16-strcoll: Likewise.
67387         * modules/unistr/u16-strcpy: Likewise.
67388         * modules/unistr/u16-strcspn: Likewise.
67389         * modules/unistr/u16-strdup: Likewise.
67390         * modules/unistr/u16-strlen: Likewise.
67391         * modules/unistr/u16-strmblen: Likewise.
67392         * modules/unistr/u16-strmbtouc: Likewise.
67393         * modules/unistr/u16-strncat: Likewise.
67394         * modules/unistr/u16-strncmp: Likewise.
67395         * modules/unistr/u16-strncpy: Likewise.
67396         * modules/unistr/u16-strnlen: Likewise.
67397         * modules/unistr/u16-strpbrk: Likewise.
67398         * modules/unistr/u16-strrchr: Likewise.
67399         * modules/unistr/u16-strspn: Likewise.
67400         * modules/unistr/u16-strstr: Likewise.
67401         * modules/unistr/u16-strtok: Likewise.
67402         * modules/unistr/u16-to-u32: Likewise.
67403         * modules/unistr/u16-to-u8: Likewise.
67404         * modules/unistr/u16-uctomb: Likewise.
67405         * modules/unistr/u32-check: Likewise.
67406         * modules/unistr/u32-chr: Likewise.
67407         * modules/unistr/u32-cmp: Likewise.
67408         * modules/unistr/u32-cmp2: Likewise.
67409         * modules/unistr/u32-cpy: Likewise.
67410         * modules/unistr/u32-cpy-alloc: Likewise.
67411         * modules/unistr/u32-endswith: Likewise.
67412         * modules/unistr/u32-mblen: Likewise.
67413         * modules/unistr/u32-mbsnlen: Likewise.
67414         * modules/unistr/u32-mbtouc: Likewise.
67415         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67416         * modules/unistr/u32-mbtoucr: Likewise.
67417         * modules/unistr/u32-move: Likewise.
67418         * modules/unistr/u32-next: Likewise.
67419         * modules/unistr/u32-prev: Likewise.
67420         * modules/unistr/u32-set: Likewise.
67421         * modules/unistr/u32-startswith: Likewise.
67422         * modules/unistr/u32-stpcpy: Likewise.
67423         * modules/unistr/u32-stpncpy: Likewise.
67424         * modules/unistr/u32-strcat: Likewise.
67425         * modules/unistr/u32-strchr: Likewise.
67426         * modules/unistr/u32-strcmp: Likewise.
67427         * modules/unistr/u32-strcoll: Likewise.
67428         * modules/unistr/u32-strcpy: Likewise.
67429         * modules/unistr/u32-strcspn: Likewise.
67430         * modules/unistr/u32-strdup: Likewise.
67431         * modules/unistr/u32-strlen: Likewise.
67432         * modules/unistr/u32-strmblen: Likewise.
67433         * modules/unistr/u32-strmbtouc: Likewise.
67434         * modules/unistr/u32-strncat: Likewise.
67435         * modules/unistr/u32-strncmp: Likewise.
67436         * modules/unistr/u32-strncpy: Likewise.
67437         * modules/unistr/u32-strnlen: Likewise.
67438         * modules/unistr/u32-strpbrk: Likewise.
67439         * modules/unistr/u32-strrchr: Likewise.
67440         * modules/unistr/u32-strspn: Likewise.
67441         * modules/unistr/u32-strstr: Likewise.
67442         * modules/unistr/u32-strtok: Likewise.
67443         * modules/unistr/u32-to-u16: Likewise.
67444         * modules/unistr/u32-to-u8: Likewise.
67445         * modules/unistr/u32-uctomb: Likewise.
67446         * modules/uniwbrk/u8-wordbreaks: Likewise.
67447         * modules/uniwbrk/u16-wordbreaks: Likewise.
67448         * modules/uniwbrk/u32-wordbreaks: Likewise.
67449         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67450         * modules/uniwbrk/wordbreak-property: Likewise.
67451         * modules/uniwidth/u8-strwidth: Likewise.
67452         * modules/uniwidth/u8-width: Likewise.
67453         * modules/uniwidth/u16-strwidth: Likewise.
67454         * modules/uniwidth/u16-width: Likewise.
67455         * modules/uniwidth/u32-strwidth: Likewise.
67456         * modules/uniwidth/u32-width: Likewise.
67457         * modules/uniwidth/width: Likewise.
67458         * modules/unicase/cased-tests (Makefile.am): Link all test programs
67459         with $(LIBUNISTRING).
67460         * modules/unicase/ignorable-tests: Likewise.
67461         * modules/unicase/locale-language-tests: Likewise.
67462         * modules/unicase/tolower-tests: Likewise.
67463         * modules/unicase/totitle-tests: Likewise.
67464         * modules/unicase/toupper-tests: Likewise.
67465         * modules/unicase/u8-casecmp-tests: Likewise.
67466         * modules/unicase/u8-casecoll-tests: Likewise.
67467         * modules/unicase/u8-casefold-tests: Likewise.
67468         * modules/unicase/u8-is-cased-tests: Likewise.
67469         * modules/unicase/u8-is-casefolded-tests: Likewise.
67470         * modules/unicase/u8-is-lowercase-tests: Likewise.
67471         * modules/unicase/u8-is-titlecase-tests: Likewise.
67472         * modules/unicase/u8-is-uppercase-tests: Likewise.
67473         * modules/unicase/u8-tolower-tests: Likewise.
67474         * modules/unicase/u8-totitle-tests: Likewise.
67475         * modules/unicase/u8-toupper-tests: Likewise.
67476         * modules/unicase/u16-casecmp-tests: Likewise.
67477         * modules/unicase/u16-casecoll-tests: Likewise.
67478         * modules/unicase/u16-casefold-tests: Likewise.
67479         * modules/unicase/u16-is-cased-tests: Likewise.
67480         * modules/unicase/u16-is-casefolded-tests: Likewise.
67481         * modules/unicase/u16-is-lowercase-tests: Likewise.
67482         * modules/unicase/u16-is-titlecase-tests: Likewise.
67483         * modules/unicase/u16-is-uppercase-tests: Likewise.
67484         * modules/unicase/u16-tolower-tests: Likewise.
67485         * modules/unicase/u16-totitle-tests: Likewise.
67486         * modules/unicase/u16-toupper-tests: Likewise.
67487         * modules/unicase/u32-casecmp-tests: Likewise.
67488         * modules/unicase/u32-casecoll-tests: Likewise.
67489         * modules/unicase/u32-casefold-tests: Likewise.
67490         * modules/unicase/u32-is-cased-tests: Likewise.
67491         * modules/unicase/u32-is-casefolded-tests: Likewise.
67492         * modules/unicase/u32-is-lowercase-tests: Likewise.
67493         * modules/unicase/u32-is-titlecase-tests: Likewise.
67494         * modules/unicase/u32-is-uppercase-tests: Likewise.
67495         * modules/unicase/u32-tolower-tests: Likewise.
67496         * modules/unicase/u32-totitle-tests: Likewise.
67497         * modules/unicase/u32-toupper-tests: Likewise.
67498         * modules/unicase/ulc-casecmp-tests: Likewise.
67499         * modules/unicase/ulc-casecoll-tests: Likewise.
67500         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
67501         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
67502         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
67503         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
67504         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
67505         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
67506         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
67507         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
67508         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
67509         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
67510         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
67511         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
67512         * modules/unictype/bidicategory-byname-tests: Likewise.
67513         * modules/unictype/bidicategory-name-tests: Likewise.
67514         * modules/unictype/bidicategory-of-tests: Likewise.
67515         * modules/unictype/bidicategory-test-tests: Likewise.
67516         * modules/unictype/block-list-tests: Likewise.
67517         * modules/unictype/block-of-tests: Likewise.
67518         * modules/unictype/block-test-tests: Likewise.
67519         * modules/unictype/category-C-tests: Likewise.
67520         * modules/unictype/category-Cc-tests: Likewise.
67521         * modules/unictype/category-Cf-tests: Likewise.
67522         * modules/unictype/category-Cn-tests: Likewise.
67523         * modules/unictype/category-Co-tests: Likewise.
67524         * modules/unictype/category-Cs-tests: Likewise.
67525         * modules/unictype/category-L-tests: Likewise.
67526         * modules/unictype/category-Ll-tests: Likewise.
67527         * modules/unictype/category-Lm-tests: Likewise.
67528         * modules/unictype/category-Lo-tests: Likewise.
67529         * modules/unictype/category-Lt-tests: Likewise.
67530         * modules/unictype/category-Lu-tests: Likewise.
67531         * modules/unictype/category-M-tests: Likewise.
67532         * modules/unictype/category-Mc-tests: Likewise.
67533         * modules/unictype/category-Me-tests: Likewise.
67534         * modules/unictype/category-Mn-tests: Likewise.
67535         * modules/unictype/category-N-tests: Likewise.
67536         * modules/unictype/category-Nd-tests: Likewise.
67537         * modules/unictype/category-Nl-tests: Likewise.
67538         * modules/unictype/category-No-tests: Likewise.
67539         * modules/unictype/category-P-tests: Likewise.
67540         * modules/unictype/category-Pc-tests: Likewise.
67541         * modules/unictype/category-Pd-tests: Likewise.
67542         * modules/unictype/category-Pe-tests: Likewise.
67543         * modules/unictype/category-Pf-tests: Likewise.
67544         * modules/unictype/category-Pi-tests: Likewise.
67545         * modules/unictype/category-Po-tests: Likewise.
67546         * modules/unictype/category-Ps-tests: Likewise.
67547         * modules/unictype/category-S-tests: Likewise.
67548         * modules/unictype/category-Sc-tests: Likewise.
67549         * modules/unictype/category-Sk-tests: Likewise.
67550         * modules/unictype/category-Sm-tests: Likewise.
67551         * modules/unictype/category-So-tests: Likewise.
67552         * modules/unictype/category-Z-tests: Likewise.
67553         * modules/unictype/category-Zl-tests: Likewise.
67554         * modules/unictype/category-Zp-tests: Likewise.
67555         * modules/unictype/category-Zs-tests: Likewise.
67556         * modules/unictype/category-and-not-tests: Likewise.
67557         * modules/unictype/category-and-tests: Likewise.
67558         * modules/unictype/category-byname-tests: Likewise.
67559         * modules/unictype/category-name-tests: Likewise.
67560         * modules/unictype/category-none-tests: Likewise.
67561         * modules/unictype/category-of-tests: Likewise.
67562         * modules/unictype/category-or-tests: Likewise.
67563         * modules/unictype/category-test-withtable-tests: Likewise.
67564         * modules/unictype/combining-class-tests: Likewise.
67565         * modules/unictype/ctype-alnum-tests: Likewise.
67566         * modules/unictype/ctype-alpha-tests: Likewise.
67567         * modules/unictype/ctype-blank-tests: Likewise.
67568         * modules/unictype/ctype-cntrl-tests: Likewise.
67569         * modules/unictype/ctype-digit-tests: Likewise.
67570         * modules/unictype/ctype-graph-tests: Likewise.
67571         * modules/unictype/ctype-lower-tests: Likewise.
67572         * modules/unictype/ctype-print-tests: Likewise.
67573         * modules/unictype/ctype-punct-tests: Likewise.
67574         * modules/unictype/ctype-space-tests: Likewise.
67575         * modules/unictype/ctype-upper-tests: Likewise.
67576         * modules/unictype/ctype-xdigit-tests: Likewise.
67577         * modules/unictype/decimal-digit-tests: Likewise.
67578         * modules/unictype/digit-tests: Likewise.
67579         * modules/unictype/mirror-tests: Likewise.
67580         * modules/unictype/numeric-tests: Likewise.
67581         * modules/unictype/property-alphabetic-tests: Likewise.
67582         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
67583         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
67584         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
67585         * modules/unictype/property-bidi-block-separator-tests: Likewise.
67586         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
67587         * modules/unictype/property-bidi-common-separator-tests: Likewise.
67588         * modules/unictype/property-bidi-control-tests: Likewise.
67589         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67590         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67591         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67592         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67593         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67594         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67595         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67596         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
67597         * modules/unictype/property-bidi-pdf-tests: Likewise.
67598         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
67599         * modules/unictype/property-bidi-whitespace-tests: Likewise.
67600         * modules/unictype/property-byname-tests: Likewise.
67601         * modules/unictype/property-combining-tests: Likewise.
67602         * modules/unictype/property-composite-tests: Likewise.
67603         * modules/unictype/property-currency-symbol-tests: Likewise.
67604         * modules/unictype/property-dash-tests: Likewise.
67605         * modules/unictype/property-decimal-digit-tests: Likewise.
67606         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
67607         * modules/unictype/property-deprecated-tests: Likewise.
67608         * modules/unictype/property-diacritic-tests: Likewise.
67609         * modules/unictype/property-extender-tests: Likewise.
67610         * modules/unictype/property-format-control-tests: Likewise.
67611         * modules/unictype/property-grapheme-base-tests: Likewise.
67612         * modules/unictype/property-grapheme-extend-tests: Likewise.
67613         * modules/unictype/property-grapheme-link-tests: Likewise.
67614         * modules/unictype/property-hex-digit-tests: Likewise.
67615         * modules/unictype/property-hyphen-tests: Likewise.
67616         * modules/unictype/property-id-continue-tests: Likewise.
67617         * modules/unictype/property-id-start-tests: Likewise.
67618         * modules/unictype/property-ideographic-tests: Likewise.
67619         * modules/unictype/property-ids-binary-operator-tests: Likewise.
67620         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
67621         * modules/unictype/property-ignorable-control-tests: Likewise.
67622         * modules/unictype/property-iso-control-tests: Likewise.
67623         * modules/unictype/property-join-control-tests: Likewise.
67624         * modules/unictype/property-left-of-pair-tests: Likewise.
67625         * modules/unictype/property-line-separator-tests: Likewise.
67626         * modules/unictype/property-logical-order-exception-tests: Likewise.
67627         * modules/unictype/property-lowercase-tests: Likewise.
67628         * modules/unictype/property-math-tests: Likewise.
67629         * modules/unictype/property-non-break-tests: Likewise.
67630         * modules/unictype/property-not-a-character-tests: Likewise.
67631         * modules/unictype/property-numeric-tests: Likewise.
67632         * modules/unictype/property-other-alphabetic-tests: Likewise.
67633         * modules/unictype/property-other-default-ignorable-code-point-tests:
67634         Likewise.
67635         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
67636         * modules/unictype/property-other-id-continue-tests: Likewise.
67637         * modules/unictype/property-other-id-start-tests: Likewise.
67638         * modules/unictype/property-other-lowercase-tests: Likewise.
67639         * modules/unictype/property-other-math-tests: Likewise.
67640         * modules/unictype/property-other-uppercase-tests: Likewise.
67641         * modules/unictype/property-paired-punctuation-tests: Likewise.
67642         * modules/unictype/property-paragraph-separator-tests: Likewise.
67643         * modules/unictype/property-pattern-syntax-tests: Likewise.
67644         * modules/unictype/property-pattern-white-space-tests: Likewise.
67645         * modules/unictype/property-private-use-tests: Likewise.
67646         * modules/unictype/property-punctuation-tests: Likewise.
67647         * modules/unictype/property-quotation-mark-tests: Likewise.
67648         * modules/unictype/property-radical-tests: Likewise.
67649         * modules/unictype/property-sentence-terminal-tests: Likewise.
67650         * modules/unictype/property-soft-dotted-tests: Likewise.
67651         * modules/unictype/property-space-tests: Likewise.
67652         * modules/unictype/property-terminal-punctuation-tests: Likewise.
67653         * modules/unictype/property-test-tests: Likewise.
67654         * modules/unictype/property-titlecase-tests: Likewise.
67655         * modules/unictype/property-unassigned-code-value-tests: Likewise.
67656         * modules/unictype/property-unified-ideograph-tests: Likewise.
67657         * modules/unictype/property-uppercase-tests: Likewise.
67658         * modules/unictype/property-variation-selector-tests: Likewise.
67659         * modules/unictype/property-white-space-tests: Likewise.
67660         * modules/unictype/property-xid-continue-tests: Likewise.
67661         * modules/unictype/property-xid-start-tests: Likewise.
67662         * modules/unictype/property-zero-width-tests: Likewise.
67663         * modules/unictype/scripts-tests: Likewise.
67664         * modules/unictype/syntax-c-ident-tests: Likewise.
67665         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67666         * modules/unictype/syntax-java-ident-tests: Likewise.
67667         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67668         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67669         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67670         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67671         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67672         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67673         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67674         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67675         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67676         * modules/uniname/uniname-tests: Likewise.
67677         * modules/uninorm/canonical-decomposition-tests: Likewise.
67678         * modules/uninorm/compat-decomposition-tests: Likewise.
67679         * modules/uninorm/composition-tests: Likewise.
67680         * modules/uninorm/decomposing-form-tests: Likewise.
67681         * modules/uninorm/decomposition-tests: Likewise.
67682         * modules/uninorm/filter-tests: Likewise.
67683         * modules/uninorm/nfc-tests: Likewise.
67684         * modules/uninorm/nfd-tests: Likewise.
67685         * modules/uninorm/nfkc-tests: Likewise.
67686         * modules/uninorm/nfkd-tests: Likewise.
67687         * modules/uninorm/u8-normcmp-tests: Likewise.
67688         * modules/uninorm/u8-normcoll-tests: Likewise.
67689         * modules/uninorm/u16-normcmp-tests: Likewise.
67690         * modules/uninorm/u16-normcoll-tests: Likewise.
67691         * modules/uninorm/u32-normcmp-tests: Likewise.
67692         * modules/uninorm/u32-normcoll-tests: Likewise.
67693         * modules/unistdio/u8-asnprintf-tests: Likewise.
67694         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67695         * modules/unistdio/u8-vasprintf-tests: Likewise.
67696         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67697         * modules/unistdio/u8-vsprintf-tests: Likewise.
67698         * modules/unistdio/u16-asnprintf-tests: Likewise.
67699         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67700         * modules/unistdio/u16-vasprintf-tests: Likewise.
67701         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67702         * modules/unistdio/u16-vsprintf-tests: Likewise.
67703         * modules/unistdio/u32-asnprintf-tests: Likewise.
67704         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67705         * modules/unistdio/u32-vasprintf-tests: Likewise.
67706         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67707         * modules/unistdio/u32-vsprintf-tests: Likewise.
67708         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67709         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67710         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67711         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67712         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67713         * modules/unistr/u8-check-tests: Likewise.
67714         * modules/unistr/u8-chr-tests: Likewise.
67715         * modules/unistr/u8-cmp-tests: Likewise.
67716         * modules/unistr/u8-cmp2-tests: Likewise.
67717         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67718         * modules/unistr/u8-cpy-tests: Likewise.
67719         * modules/unistr/u8-mblen-tests: Likewise.
67720         * modules/unistr/u8-mbsnlen-tests: Likewise.
67721         * modules/unistr/u8-mbtouc-tests: Likewise.
67722         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67723         * modules/unistr/u8-mbtoucr-tests: Likewise.
67724         * modules/unistr/u8-move-tests: Likewise.
67725         * modules/unistr/u8-next-tests: Likewise.
67726         * modules/unistr/u8-prev-tests: Likewise.
67727         * modules/unistr/u8-set-tests: Likewise.
67728         * modules/unistr/u8-stpcpy-tests: Likewise.
67729         * modules/unistr/u8-stpncpy-tests: Likewise.
67730         * modules/unistr/u8-strcat-tests: Likewise.
67731         * modules/unistr/u8-strcmp-tests: Likewise.
67732         * modules/unistr/u8-strcoll-tests: Likewise.
67733         * modules/unistr/u8-strcpy-tests: Likewise.
67734         * modules/unistr/u8-strdup-tests: Likewise.
67735         * modules/unistr/u8-strlen-tests: Likewise.
67736         * modules/unistr/u8-strmblen-tests: Likewise.
67737         * modules/unistr/u8-strmbtouc-tests: Likewise.
67738         * modules/unistr/u8-strncat-tests: Likewise.
67739         * modules/unistr/u8-strncmp-tests: Likewise.
67740         * modules/unistr/u8-strncpy-tests: Likewise.
67741         * modules/unistr/u8-strnlen-tests: Likewise.
67742         * modules/unistr/u8-to-u16-tests: Likewise.
67743         * modules/unistr/u8-to-u32-tests: Likewise.
67744         * modules/unistr/u8-uctomb-tests: Likewise.
67745         * modules/unistr/u16-check-tests: Likewise.
67746         * modules/unistr/u16-chr-tests: Likewise.
67747         * modules/unistr/u16-cmp-tests: Likewise.
67748         * modules/unistr/u16-cmp2-tests: Likewise.
67749         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67750         * modules/unistr/u16-cpy-tests: Likewise.
67751         * modules/unistr/u16-mblen-tests: Likewise.
67752         * modules/unistr/u16-mbsnlen-tests: Likewise.
67753         * modules/unistr/u16-mbtouc-tests: Likewise.
67754         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67755         * modules/unistr/u16-mbtoucr-tests: Likewise.
67756         * modules/unistr/u16-move-tests: Likewise.
67757         * modules/unistr/u16-next-tests: Likewise.
67758         * modules/unistr/u16-prev-tests: Likewise.
67759         * modules/unistr/u16-set-tests: Likewise.
67760         * modules/unistr/u16-stpcpy-tests: Likewise.
67761         * modules/unistr/u16-stpncpy-tests: Likewise.
67762         * modules/unistr/u16-strcat-tests: Likewise.
67763         * modules/unistr/u16-strcmp-tests: Likewise.
67764         * modules/unistr/u16-strcoll-tests: Likewise.
67765         * modules/unistr/u16-strcpy-tests: Likewise.
67766         * modules/unistr/u16-strdup-tests: Likewise.
67767         * modules/unistr/u16-strlen-tests: Likewise.
67768         * modules/unistr/u16-strmblen-tests: Likewise.
67769         * modules/unistr/u16-strmbtouc-tests: Likewise.
67770         * modules/unistr/u16-strncat-tests: Likewise.
67771         * modules/unistr/u16-strncmp-tests: Likewise.
67772         * modules/unistr/u16-strncpy-tests: Likewise.
67773         * modules/unistr/u16-strnlen-tests: Likewise.
67774         * modules/unistr/u16-to-u32-tests: Likewise.
67775         * modules/unistr/u16-to-u8-tests: Likewise.
67776         * modules/unistr/u16-uctomb-tests: Likewise.
67777         * modules/unistr/u32-check-tests: Likewise.
67778         * modules/unistr/u32-chr-tests: Likewise.
67779         * modules/unistr/u32-cmp-tests: Likewise.
67780         * modules/unistr/u32-cmp2-tests: Likewise.
67781         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67782         * modules/unistr/u32-cpy-tests: Likewise.
67783         * modules/unistr/u32-mblen-tests: Likewise.
67784         * modules/unistr/u32-mbsnlen-tests: Likewise.
67785         * modules/unistr/u32-mbtouc-tests: Likewise.
67786         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67787         * modules/unistr/u32-mbtoucr-tests: Likewise.
67788         * modules/unistr/u32-move-tests: Likewise.
67789         * modules/unistr/u32-next-tests: Likewise.
67790         * modules/unistr/u32-prev-tests: Likewise.
67791         * modules/unistr/u32-set-tests: Likewise.
67792         * modules/unistr/u32-stpcpy-tests: Likewise.
67793         * modules/unistr/u32-stpncpy-tests: Likewise.
67794         * modules/unistr/u32-strcat-tests: Likewise.
67795         * modules/unistr/u32-strcmp-tests: Likewise.
67796         * modules/unistr/u32-strcoll-tests: Likewise.
67797         * modules/unistr/u32-strcpy-tests: Likewise.
67798         * modules/unistr/u32-strdup-tests: Likewise.
67799         * modules/unistr/u32-strlen-tests: Likewise.
67800         * modules/unistr/u32-strmblen-tests: Likewise.
67801         * modules/unistr/u32-strmbtouc-tests: Likewise.
67802         * modules/unistr/u32-strncat-tests: Likewise.
67803         * modules/unistr/u32-strncmp-tests: Likewise.
67804         * modules/unistr/u32-strncpy-tests: Likewise.
67805         * modules/unistr/u32-strnlen-tests: Likewise.
67806         * modules/unistr/u32-to-u16-tests: Likewise.
67807         * modules/unistr/u32-to-u8-tests: Likewise.
67808         * modules/unistr/u32-uctomb-tests: Likewise.
67809         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67810         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67811         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67812         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67813         * modules/uniwidth/u8-strwidth-tests: Likewise.
67814         * modules/uniwidth/u8-width-tests: Likewise.
67815         * modules/uniwidth/u16-strwidth-tests: Likewise.
67816         * modules/uniwidth/u16-width-tests: Likewise.
67817         * modules/uniwidth/u32-strwidth-tests: Likewise.
67818         * modules/uniwidth/u32-width-tests: Likewise.
67819         * modules/uniwidth/width-tests: Likewise.
67821 2010-05-18  Richard Jones  <rjones@redhat.com>
67823         doc: users.txt: list hivex
67824         * users.txt: Add hivex.
67826 2010-05-18  Richard Jones  <rjones@redhat.com>
67828         doc: users.txt: list febootstrap
67829         * users.txt: Add febootstrap.
67831 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67833         bootstrap: fix an error when gnulib is not used as a git submodule
67834         * build-aux/bootstrap (gnulib_path): If its length is zero then
67835         assign "gnulib" to it.
67836         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67838 2010-05-16  Bruno Haible  <bruno@clisp.org>
67840         Avoid autoconf warnings about AM_ICONV.
67841         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67842         2.64.
67844 2010-05-16  Bruno Haible  <bruno@clisp.org>
67846         absolute-header: Make the macro usable in more situations.
67847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67848         from gl_ABSOLUTE_HEADER.
67849         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67851 2010-05-16  James Youngman  <jay@gnu.org>
67853         doc: update users.txt
67854         * users.txt: Add CSSC.
67856 2010-05-16  Jim Meyering  <meyering@redhat.com>
67858         init.sh: fix an error in the previous change; add more comments
67859         * tests/init.sh: Compare exit code in loop against 9, not 2.
67860         Patch by Bruno Haible.
67861         Make the two tests more similar by adding an empty "then" clause.
67862         Add comments.
67864         init.sh: avoid unnecessary shell re-exec
67865         * tests/init.sh: Improve the re-exec-required check to first test the
67866         current shell.  If it passes the test, do not search for a shell that
67867         does pass, and do not re-exec.  This test is particularly contorted to
67868         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67869         of $(...) evokes a syntax error and causes immediate shell exit with
67870         status 2.  Bruno Haible reported that the re-exec made it impossible
67871         to single-step through any init.sh-using script.
67873 2010-05-16  Bruno Haible  <bruno@clisp.org>
67875         Fix collision between gnulib's and libintl's printf replacements.
67876         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67877         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67878         (printf): When using GNU C, map the __printf__ function to rpl_printf
67879         via __asm__. When not using GNU C, define rpl_printf instead of
67880         __printf__.
67881         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67882         commit.
67883         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67884         commit.
67885         * m4/asm-underscore.m4: New file.
67886         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67887         * modules/stdio (Files): Add m4/asm-underscore.m4.
67888         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67889         Reported by Ben Pfaff.
67891 2010-05-16  Bruno Haible  <bruno@clisp.org>
67893         verify: Avoid skipping the test on openSUSE 11.0.
67894         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67896 2010-05-13  Bruno Haible  <bruno@clisp.org>
67898         Avoid useless warnings from G++.
67899         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67900         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67901         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67903 2010-05-11  Jim Meyering  <meyering@redhat.com>
67905         maint.mk: tweak preceding change
67906         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67907         regexps tighter by anchoring at EOL, and make the new group "shy"
67908         for slightly decreased overhead.
67910 2010-05-11  Eric Blake  <eblake@redhat.com>
67912         maint.mk: gnulib doesn't guarantee NSIG
67913         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67915 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67917         test-pwrite.c: Remove unused variable declaration.
67918         * tests/test-pwrite.c (main): Remove read_buf declaration.
67920         Remove useless test-pwrite.sh file.
67921         * tests/test-pwrite.sh: Delete file.
67922         * modules/pwrite-tests: Remove references.
67923         Reported by Bruno Haible.
67925 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67927         init.sh: fix a typo
67928         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67930 2010-05-10  Jim Meyering  <meyering@redhat.com>
67932         maint.mk: avoid using a temporary file in the always-defined-macros check
67933         * top/maint.mk (.re-defmac): Remove rule.
67934         (gl_trap_): Remove definition.
67935         (sc_prohibit_always-defined_macros): Rewrite not to create and
67936         depend on a temporary file.  Instead, depend on GNU grep's ability
67937         to read a list of regular expressions from stdin when given "-f -".
67939 2010-05-09  Bruno Haible  <bruno@clisp.org>
67941         Update to GNU gettext 0.18, part 1.
67942         * m4/gettext.m4: Update to GNU gettext 0.18.
67943         * m4/intl.m4: Likewise.
67944         * m4/po.m4: Likewise.
67945         * modules/gettext (Files): Add m4/fcntl-o.m4.
67946         (configure.ac): Require gettext infrastructure from version 0.18.
67948 2010-05-09  Jim Meyering  <meyering@redhat.com>
67950         init.sh: enable MALLOC_PERTURB_
67951         * tests/init.sh: Enable glibc's malloc-perturbing option.
67953         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67954         With my recent change in init.sh from the two-line form:
67955             -#   : ${srcdir=.}
67956             -#   . "$srcdir/init.sh"; path_prepend_ .
67957             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67958         I noticed that using the one-line form would cause this test
67959         to fail with a false-positive, or to stop working altogether,
67960         depending on whether help-version changed or all the tests did.
67961         * top/maint.mk (_hv_regex): Remove this definition.
67962         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67963         (_hv_regex_strong): Use a stronger regex to check for conformance.
67964         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67965         Give a separate diagnostic for lack of conforming use.
67967         maint.mk: prohibit definition of symbols defined by gnulib
67968         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67969         definition of symbols defined by gnulib.
67971 2010-05-09  Bruno Haible  <bruno@clisp.org>
67973         acl: Avoid test failure on Cygwin-hosted mingw.
67974         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67976 2010-05-09  Bruno Haible  <bruno@clisp.org>
67978         error: Use system's fcntl function.
67979         * lib/error.c (fcntl): Undefine.
67981 2010-05-09  Jim Meyering  <meyering@redhat.com>
67983         verify: adjust formatting to be more consistent
67984         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67985         argument-list '('s, and after one comma.
67987 2010-05-09  Bruno Haible  <bruno@clisp.org>
67989         error: More reliable output on mingw.
67990         * lib/error.c: Include <windows.h>.
67991         (is_open): New function.
67992         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67993         defined.
67995 2010-05-09  Bruno Haible  <bruno@clisp.org>
67997         vasnprintf: Fix syntax errors in libintl build on mingw.
67998         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67999         pad_ourselves and prec_ourselves after use.
68001 2010-05-08  Bruno Haible  <bruno@clisp.org>
68003         * lib/config.charset: Update comments for Cygwin 1.7.
68004         * lib/localcharset.c: Likewise.
68006 2010-05-07  Jim Meyering  <meyering@redhat.com>
68008         init.sh: improve comments
68009         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
68010         . "${srcdir=.}/init.sh"; path_prepend_ .
68011         Add a note about path_prepend_ and the alternative of using
68012         TESTS_ENVIRONMENT.
68014 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
68016         exclude: Unescape hashed patterns in wildcard mode.
68017         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
68018         to the hash list.
68019         * tests/test-exclude8.sh: New test case.
68020         * modules/exclude-tests: Add new test.
68022 2010-05-05  Eric Blake  <eblake@redhat.com>
68024         verify: automate tests
68025         * modules/verify-tests: New module.
68026         * tests/test-verify.sh: New file.
68027         * tests/test-verify.c: Guard each negative test with a unique id.
68028         Also avoid warning about unused left hand of comma expressions.
68030 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68032         Further improvements to verify.h, suggested by Eric Blake.
68033         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
68034         the GL_* versions, to avoid collision with OpenGL.
68035         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
68036         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
68037         than testing merely whether it's defined.
68039         Modify verify.h to pacify gcc -Wredundant_decls.
68040         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
68041         These use the prefix "GL_" since they're likely to be useful elsewhere.
68042         We may need to break them out into a different .h file.
68043         (__COUNTER__): Define to 0 if the compiler doesn't support it.
68044         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
68045         of verify_function__.
68047 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68049         Tests for module pwrite.
68050         * modules/pwrite-tests: New file.
68051         * tests/test-pwrite.sh: New file.
68052         * tests/test-pwrite.c: New file.
68054         New module pwrite.
68055         * lib/unistd.in.h (pwrite): New declaration.
68056         * lib/pwrite.c: New file, from glibc with modifications.
68057         * m4/pwrite.m4: New file.
68058         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
68059         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
68060         REPLACE_PWRITE.
68061         * modules/pwrite: New file.
68062         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
68063         REPLACE_PWRITE.
68064         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
68065         * doc/posix-functions/pwrite.texi: Mention the new module.
68067 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68069         pread: Update documentation.
68070         * doc/posix-functions/pread.texi: Mention the 'pread' module.
68072 2010-05-04  Eric Blake  <eblake@redhat.com>
68074         docs: update cygwin progress
68075         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
68076         this bug.
68077         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
68078         Added in cygwin 1.7.2.
68079         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
68080         Likewise.
68081         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
68082         Likewise.
68083         * doc/glibc-functions/dup3.texi (dup3): Likewise.
68084         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
68085         * doc/glibc-functions/accept4.texi (accept4): Likewise.
68086         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
68087         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
68088         Mention nproc module.
68089         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
68090         bug in cygwin 1.7.5 addition.
68091         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
68092         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
68093         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
68094         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
68095         1.7.5.
68096         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
68097         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
68098         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
68099         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
68100         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
68101         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
68102         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
68103         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
68104         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
68105         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
68106         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
68107         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
68108         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
68109         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
68110         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
68111         Likewise.
68112         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
68113         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
68114         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
68115         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
68116         Likewise.
68117         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
68118         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
68119         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
68120         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
68121         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
68122         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
68123         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
68124         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
68125         Likewise.
68126         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
68127         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
68128         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
68129         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
68130         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
68131         Likewise.
68132         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
68133         Likewise.
68134         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
68135         Likewise.
68136         * doc/glibc-functions/xdrrec_endofrecord.texi
68137         (xdrrec_endofrecord): Likewise.
68138         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
68139         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
68140         Likewise.
68141         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
68142         Likewise.
68144 2010-05-04  Jim Meyering  <meyering@redhat.com>
68146         gendocs.sh: make its "-s FILE" option more useful
68147         * build-aux/gendocs.sh: When honoring the -s FILE option, update
68148         $PACKAGE to reflect the probably-different basename of "FILE".
68150 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68152         bootstrap: don't ignore download_po_files failure
68153         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
68154         failure.
68156 2010-05-03  Jim Meyering  <meyering@redhat.com>
68158         maint.mk: allow to pass options to gendocs.sh
68159         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
68160         (gendocs_options_): New overridable variable.
68162         gnu-web-doc-update: don't ignore configure or build failure
68163         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
68165         announce-gen: backslash-escape '@'s in --help output
68166         * build-aux/announce-gen: Fix syntax errors.
68168         maint.mk, announce-gen: allow project-specific announcement mail headers
68169         * top/maint.mk (translation_project_): Define default.
68170         (announcement_Cc_, announcement_mail_headers_): Likewise.
68171         (announcement): Invoke announce-gen with new --mail-headers option.
68172         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68174         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68175         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68176         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
68177         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
68178         line in the "err2" output file when running "make check" in verbose
68179         mode (i.e., with set -x enabled).
68181 2010-05-03  Bruno Haible  <bruno@clisp.org>
68183         wctob: Fix for weird platforms.
68184         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
68185         argument value.
68187 2010-05-03  Jim Meyering  <meyering@redhat.com>
68189         maint.mk: prohibit unwarranted use of <strings.h>
68190         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
68191         strings.h in a file that does not also use strcasecmp, strncasecmp,
68192         ffs or ffsll.
68194         maint.mk: remove obsolete comments
68195         * top/maint.mk: Remove stale, commented-out rules.
68197 2010-05-02  Bruno Haible  <bruno@clisp.org>
68199         wcwidth: Declare also when it's aliased.
68200         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
68201         macro.
68203 2010-05-02  Bruno Haible  <bruno@clisp.org>
68205         Fix regression from 2010-04-25.
68206         * gnulib-tool (func_modules_transitive_closure): Check the status of
68207         all modules, not only of the tests that are of the form foo-tests where
68208         foo is a module.
68210 2010-05-02  Bruno Haible  <bruno@clisp.org>
68212         wctob: Work around nasty Cygwin 1.7.2 bug.
68213         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
68214         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
68216 2010-05-01  Bruno Haible  <bruno@clisp.org>
68218         fpurge: Sharper test.
68219         * tests/test-fpurge.c (main): Add one more ftell check.
68220         * modules/fpurge-tests (Depends-on): Add ftell.
68221         Suggested by Eric Blake.
68223 2010-05-01  Bruno Haible  <bruno@clisp.org>
68225         ftello: Another test.
68226         * tests/test-ftello3.c: New file.
68227         * modules/ftello-tests (Files): Add it.
68228         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68229         MOSTLYCLEANFILES.
68231         ftell: Another test.
68232         * tests/test-ftell3.c: New file.
68233         * modules/ftell-tests (Files): Add it.
68234         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68235         MOSTLYCLEANFILES.
68237 2010-05-01  Bruno Haible  <bruno@clisp.org>
68239         ftell, ftello: Work around Solaris bug.
68240         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
68241         * lib/ftello.c: Include stdio-impl.h.
68242         (ftello): On Solaris, when _IOWRT is set, compute the result without
68243         looking at _IOREAD.
68244         * modules/ftello (Files): Add lib/stdio-impl.h.
68245         * doc/posix-functions/ftell.texi: Mention Solaris bug.
68246         * doc/posix-functions/ftello.texi: Likewise.
68247         Reported by Eric Blake.
68249 2010-05-01  Bruno Haible  <bruno@clisp.org>
68251         freading: Adapt to special meaning of _IOREAD flag on Solaris.
68252         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
68253         the _IOWRT flag is also set.
68255 2010-05-01  Bruno Haible  <bruno@clisp.org>
68257         Fix doc about a HP-UX stdio bug.
68258         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
68259         * doc/posix-functions/ftello.texi: Likewise.
68261 2010-05-01  Bruno Haible  <bruno@clisp.org>
68263         lseek test: Fix failure on Solaris.
68264         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
68265         output.
68267 2010-04-30  Jim Meyering  <meyering@redhat.com>
68269         bootstrap: don't ignore failure to generate po*/Makevars
68270         * build-aux/bootstrap (with_gettext): Don't ignore failure
68271         to create po/Makevars or runtime-po/Makevars.
68273 2010-04-29  Eric Blake  <eblake@redhat.com>
68275         headers: relax license to LGPLv2+
68276         * modules/fcntl-h (License): Relax license.
68277         * modules/getopt-posix (License): Likewise.
68278         * modules/locale (License): Likewise.
68279         * modules/math (License): Likewise.
68280         * modules/pty (License): Likewise.
68281         * modules/sched (License): Likewise.
68282         * modules/search (License): Likewise.
68283         * modules/spawn (License): Likewise.
68284         * modules/stdarg (License): Likewise.
68285         * modules/sysexits (License): Likewise.
68287 2010-04-29  Jim Meyering  <meyering@redhat.com>
68289         inttypes: relax license to LGPLv2+
68290         * modules/inttypes (License): Relax license.
68292 2010-04-29  Simon Josefsson  <simon@josefsson.org>
68294         * top/maint.mk (indent): Run twice to produce idempotent results.
68296 2010-04-28  Bruno Haible  <bruno@clisp.org>
68298         getdate: Generate getdate.c in the source directory.
68299         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
68300         MOSTLYCLEANFILES.
68301         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
68303 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
68305         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
68306         is not declared as a const *; avoid warnings in that case.
68308 2010-04-28  Eric Blake  <eblake@redhat.com>
68310         canonicalize-lgpl: avoid compiler warning
68311         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
68312         declaration' / 'extraneous semicolon' warning with some compilers.
68313         Reported by Andreas Gruenbacher.
68315 2010-04-28  Jim Meyering  <meyering@redhat.com>
68317         init.sh: ensure a more reliable exit status when exiting via trap
68318         * tests/init.sh (setup_): Don't rely on $? in signal handler.
68319         Inspired by patches from Dmitry V. Levin.
68320         Also trap on signal 3 (SIGQUIT).
68322 2010-04-27  Bruno Haible  <bruno@clisp.org>
68324         Update doc about utimes().
68325         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
68326         'utimens' module.
68327         Reported by Andreas Gruenbacher <agruen@suse.de>.
68329 2010-04-27  Eric Blake  <eblake@redhat.com>
68331         full-read, full-write: relax license
68332         * modules/full-read (License): Drop to LGPLv2+.
68333         * modules/full-write (License): Likewise.
68334         * modules/safe-read (License): Likewise.
68335         * modules/safe-write (License): Likewise.
68337         pthread: mention library for linking
68338         * modules/pthread (Link): Mention $(LIB_PTHREAD).
68340 2010-04-27  Jim Meyering  <meyering@redhat.com>
68342         maint.mk: fix a bug introduced in last change
68343         * top/maint.mk (gl_assured_headers_): Now that all names are on
68344         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68345         is not anchored to end of word, it should be adequate.
68347         maint.mk: avoid side-effect in latest syntax-check
68348         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68349         to run commands via $(shell...), and hence to incur cost only when
68350         the new rule is actually run.
68352         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68353         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68354         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68355         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68356         (gl_assured_headers_, az_, AZ_): Define.
68357         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68359 2010-04-26  Jim Meyering  <jim@meyering.net>
68360             Bruno Haible  <bruno@clisp.org>
68362         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68363         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68364         Prompted by an exchange with Gilles Espinasse.
68366 2010-04-26  Jim Meyering  <meyering@redhat.com>
68368         git-version-gen: aesthetic tweak
68369         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68370         so that the command remains on a single line.
68372 2010-04-26  Eric Blake  <eblake@redhat.com>
68374         git-version-gen: allow use on EBCDIC hosts
68375         * build-aux/git-version-gen (dirty): Use literal rather than tying
68376         ourselves to ascii.
68377         Reported by Steve Goetze.
68379 2010-04-25  Bruno Haible  <bruno@clisp.org>
68381         netdb: Add support for GNULIB_POSIXCHECK.
68382         * lib/netdb.in.h: Include warn-on-use.h.
68383         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68384         functions are used when GNULIB_POSIXCHECK is defined and the
68385         getaddrinfo module is not in use.
68386         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68387         freeaddrinfo, gai_strerror, getnameinfo are declared.
68388         * modules/netdb (Depends-on): Add warn-on-use.
68389         (Makefile.am): Include warn-on-use.h in netdb.h.
68391 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68393         build: avoid "make check" failure without .git/ directory
68394         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68395         there is no .git/ directory.
68397 2010-04-25  Bruno Haible  <bruno@clisp.org>
68399         ptsname: Fix misuse of ttyname_r.
68400         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68401         of errno.
68403 2010-04-25  Bruno Haible  <bruno@clisp.org>
68405         ttyname_r: Make it work on Solaris 10.
68406         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68407         if the system function has the POSIX declaration. Test whether the
68408         function fails if the buffer is less than 128 bytes large.
68409         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68410         system's ttyname_r function. Provide a reasonably large buffer.
68411         * modules/ttyname_r (Depends-on): Add extensions.
68412         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68414 2010-04-25  Bruno Haible  <bruno@clisp.org>
68416         Use the 'extensions' module for some more functions on Solaris.
68417         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68418         module.
68419         * doc/posix-functions/ctime_r.texi: Likewise.
68420         * doc/posix-functions/getgrgid_r.texi: Likewise.
68421         * doc/posix-functions/getgrnam_r.texi: Likewise.
68422         * doc/posix-functions/getpwnam_r.texi: Likewise.
68423         * doc/posix-functions/getpwuid_r.texi: Likewise.
68424         * doc/posix-functions/readdir_r.texi: Likewise.
68425         * doc/posix-functions/sigwait.texi: Likewise.
68426         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68427         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68429 2010-04-25  Bruno Haible  <bruno@clisp.org>
68431         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68432         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68433         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68434         * lib/ttyname_r.c: Include <limits.h>.
68435         (ttyname_r): Define using the system's ttyname_r function, if it exists
68436         and not on Solaris.
68437         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68438         set.
68439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68440         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68441         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68442         Reported by Simon Josefsson.
68444 2010-04-25  Bruno Haible  <bruno@clisp.org>
68446         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68447         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68448         * doc/posix-functions/ctime_r.texi: Likewise.
68449         * doc/posix-functions/getgrgid_r.texi: Likewise.
68450         * doc/posix-functions/getgrnam_r.texi: Likewise.
68451         * doc/posix-functions/getlogin_r.texi: Likewise.
68452         * doc/posix-functions/getpwnam_r.texi: Likewise.
68453         * doc/posix-functions/getpwuid_r.texi: Likewise.
68454         * doc/posix-functions/readdir_r.texi: Likewise.
68455         * doc/posix-functions/sigwait.texi: Likewise.
68456         * doc/posix-functions/ttyname_r.texi: Likewise.
68457         Reported by Simon Josefsson.
68459 2010-04-25  Bruno Haible  <bruno@clisp.org>
68461         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
68462         * gnulib-tool (func_usage): Document that --with-*-tests options apply
68463         also to --create-testdir.
68464         (func_acceptable): Don't consider the status of *-tests modules here.
68465         (func_modules_transitive_closure): Consider it here, before including a
68466         test module.
68467         (func_import, func_create_testdir): Set inc_all_direct_tests,
68468         inc_all_indirect_tests.
68469         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
68470         --create-testdir and --create-megatestdir.
68472 2010-04-25  Bruno Haible  <bruno@clisp.org>
68474         gnulib-tool: Add --without-*-tests options.
68475         * gnulib-tool (func_usage): Document the --without-*-tests options.
68476         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
68477         excl_unportable_tests): New variables.
68478         Fail if they are specified with --import or --update.
68479         (func_acceptable): Respect the excl_*_tests variables.
68480         (func_import): Set the excl_*_tests variables to empty.
68482 2010-04-25  Simon Josefsson  <simon@josefsson.org>
68483             Bruno Haible  <bruno@clisp.org>
68485         Work around a MacOS X 10.4 bug with openpty.
68486         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
68487         * tests/test-openpty.c (main): Close the master side explicitly.
68489 2010-04-25  Bruno Haible  <bruno@clisp.org>
68491         strnlen: Fix a C++ test error on MacOS X and Solaris.
68492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
68493         the function is not declared.
68494         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
68495         Simon Josefsson.
68497 2010-04-24  Bruno Haible  <bruno@clisp.org>
68499         Avoid a gcc warning.
68500         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
68501         of correct type for %08lx directive.
68502         Reported by Eric Blake.
68504 2010-04-24  Bruno Haible  <bruno@clisp.org>
68506         vasnprintf: Correct errno value in case of out-of-memory.
68507         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
68508         or sprintf. Use the errno value from SNPRINTF or sprintf.
68509         Reported by Ian Beckwith <ianb@erislabs.net>.
68511 2010-04-24  Bruno Haible  <bruno@clisp.org>
68513         ansi-c++-opt: Find correct compiler when cross-compiling.
68514         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
68515         AC_CHECK_PROGS.
68516         Reported by Simon Josefsson.
68518 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
68520         vc-list-files: Add support for subversion
68521         * build-aux/vc-list-files: Use "svn list" to generate the list of
68522         files controlled by subversion.
68524 2010-04-23  Jim Meyering  <meyering@redhat.com>
68526         vc-list-files tests: convert to use init.sh
68527         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
68528         path_prepend_.
68529         Use Exit, not exit.
68530         Use skip_ rather than open coding it.
68531         Remove trap set-up and compare definitions.
68532         * tests/test-vc-list-files-git.sh: Likewise.
68533         * modules/vc-list-files-tests (Files): Add tests/init.sh.
68535 2010-04-22  Simon Josefsson  <simon@josefsson.org>
68537         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
68538         backup files.
68540 2010-04-21  Simon Josefsson  <simon@josefsson.org>
68542         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
68544 2010-04-20  Eric Blake  <eblake@redhat.com>
68546         tests: be robust to ignored SIGPIPE
68547         * tests/test-select-in.sh: Consume all output.
68548         * tests/test-lseek.sh: Check correct exit status, while avoiding
68549         EPIPE.
68551 2010-04-20  Simon Josefsson  <simon@josefsson.org>
68552             Bruno Haible  <bruno@clisp.org>
68554         visibility: Don't use -fvisibility if it leads to a warning.
68555         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
68556         yes, don't pretend that visibility works if it leads to a warning.
68557         Reported by Mike Gran <spk121@yahoo.com>.
68559 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
68561         * build-aux/bootstrap: Use "git -h" for testing for supported options
68562         instead of "git --help".  The short-form option only shows a summary,
68563         and doesn't layout the full man page.  Grep for the full option name
68564         in the summary, too.
68566 2010-04-19  Bruno Haible  <bruno@clisp.org>
68568         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
68569         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
68570         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
68571         mention of RELOCATABLE_STRIP.
68572         Reported by Sylvain Beucler <beuc@beuc.net>.
68574 2010-04-19  Bruno Haible  <bruno@clisp.org>
68576         * lib/diffseq.h: Fix typo in comment.
68577         Reported by Eric Blake.
68579 2010-04-19  Bruno Haible  <bruno@clisp.org>
68581         ioctl: Move autoconf macro to a .m4 file.
68582         * m4/ioctl.m4: New file, extracted from modules/ioctl.
68583         * modules/ioctl (Files): Add it.
68584         (configure.ac): Simply invoke gl_FUNC_IOCTL.
68585         Reported by Ian Beckwith <ianb@erislabs.net>.
68587 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
68588             Bruno Haible  <bruno@clisp.org>
68590         diffseq: Accommodate use-case with abstract arrays.
68591         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68592         is not defined.
68593         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68594         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68596 2010-04-18  Bruno Haible  <bruno@clisp.org>
68598         * doc/posix-headers/stdbool.texi: More precise wording.
68600 2010-04-17  Jim Meyering  <meyering@redhat.com>
68602         maint.mk: use gnu-style indentation in an embedded perl script
68603         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
68604         Rename variable: s/two/last_two_bytes/
68606 2010-04-16  Eric Blake  <eblake@redhat.com>
68608         test-stdbool: skip test that fails with Solaris CC
68609         * tests/test-stdbool.c (f): Skip test that causes compilation
68610         error under buggy C++ compiler.
68611         * lib/stdbool.in.h: Document the limitation.
68612         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
68614         setenv: allow compilation with C++
68615         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
68616         register keyword.
68618         stdint: allow test to pass with C++
68619         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
68621         getopt: allow compilation with C++
68622         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
68623         struct.
68624         * lib/getopt.c (_getopt_internal_r): Use correct type.
68625         Reported by Dagobert Michelson, via Joel E. Denny.
68627 2010-04-16  Bruno Haible  <bruno@clisp.org>
68629         Override netdb.h always.
68630         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
68631         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
68632         Reported by Ludovic Courtès <ludo@gnu.org>.
68634 2010-04-15  Bruno Haible  <bruno@clisp.org>
68636         openpty: Fix mistake from 2010-03-21.
68637         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
68638         Reported by Simon Josefsson.
68640 2010-04-15  Eric Blake  <eblake@redhat.com>
68642         test-forkpty: fix expected signature
68643         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
68644         Reported by Simon Josefsson.
68646 2010-04-15  Jim Meyering  <meyering@redhat.com>
68648         maint.mk: texinfo_suffix_re_: correct the default regexp
68649         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
68651         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
68652         make it configurable via texinfo_suffix_re_.
68654 2010-04-14  Eric Blake  <eblake@redhat.com>
68656         strtok_r: relax license to LGPLv2+
68657         * modules/strtok_r (License): Relax license.
68658         Reported by Matthias Bolte.
68660 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68662         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68663         version 1.4.4 by default instead of requiring the libgcrypt
68664         version used during build.  This makes it possible to use the
68665         application with older but still binary compatible libgcrypt
68666         versions.
68668 2010-04-13  Eric Blake  <eblake@redhat.com>
68670         getopt-gnu: match recent glibc fixes and posix ruling
68671         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68672         '+' handling, when requesting extensions.
68673         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68674         'W;' handling.
68675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68676         * doc/posix-functions/getopt.texi (getopt): Document this.
68677         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68678         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68679         Likewise.
68681         getopt: merge bug fixes from glibc
68682         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68683         diagnostics.  Honor '+:' correctly.  Reject ';'.
68685         getopt-posix: detect MacOS bug
68686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68687         optind when missing a required argument.
68688         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68689         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68690         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68691         Likewise.
68693         getopt-posix: avoid spurious failure on Solaris
68694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68695         an indicator that setting optind=1 is sufficient for reset.
68697         getopt-posix: avoid spurious failure on FreeBSD
68698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68699         in POSIX mode, since the m4 test uses it.
68701         gnulib-tool: silence warning on BSD sh
68702         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68704 2010-04-13  Jim Meyering  <meyering@redhat.com>
68706         doc: users.txt: GNU patch now uses gnulib
68707         * users.txt: Add patch.
68709 2010-04-12  Jim Meyering  <meyering@redhat.com>
68711         maint.mk: generate more concise timing data for syntax-check rules
68712         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68713         " done" from each line that reports a syntax-check test duration.
68715 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68717         git-version-gen: use "git update-index..." rather than "git status"
68718         * build-aux/git-version-gen: Use git update-index --refresh, not
68719         "git status".  With some versions of git, "git status" would fail
68720         to update the index and result in an unwarranted "-dirty" suffix.
68722 2010-04-11  Jim Meyering  <meyering@redhat.com>
68724         openat: correct formatting (no semantic change)
68725         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68726         Suggested by Bruno Haible.
68728 2010-04-11  Bruno Haible  <bruno@clisp.org>
68730         Stricter declaration checking in testdirs.
68731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68732         If for_tests is true, augment AM_CPPFLAGS to define
68733         GNULIB_STRICT_CHECKING.
68734         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68735         GNULIB_STRICT_CHECKING is defined, verify that the function is
68736         declared.
68738 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68739             Bruno Haible  <bruno@clisp.org>
68741         libunistring: Improve configure output.
68742         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68743         Don't say "consider installing GNU libunistring" when checking again
68744         with libiconv.
68746 2010-04-11  Bruno Haible  <bruno@clisp.org>
68748         libunistring: Correct value of $LTLIBUNISTRING.
68749         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68750         correct the value of $LTLIBUNISTRING.
68752 2010-04-11  Bruno Haible  <bruno@clisp.org>
68754         havelib: Add static libraries to LIBS in the right order.
68755         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68756         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68758 2010-04-11  Bruno Haible  <bruno@clisp.org>
68760         libunistring: Detect libunistring also when it depends on libiconv.
68761         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68762         the second AC_LIB_HAVE_LINKFLAGS invocation.
68764 2010-04-11  James Youngman  <jay@gnu.org>
68766         close-stream: declare local scalars to be "const"
68767         * lib/close-stream.c (close_stream): Make boolean variables const
68768         to document the fact that we set but do not change them.
68770 2010-04-11  Bruno Haible  <bruno@clisp.org>
68772         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68774 2010-04-11  Jim Meyering  <meyering@redhat.com>
68776         maint.mk: don't include dist-check.mk
68777         * top/maint.mk: Remove bogus include directive.
68779         maint.mk: improve empty-line-at-EOF check
68780         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68781         solution, rather than tail+Perl-based one.  The latter would read
68782         a few kilobytes from the end of each file, and did not handle empty
68783         files properly.
68785         maint.mk: print the elapsed time for each syntax-check rule
68786         * top/maint.mk (sc_m_rules_): Save start time in a file.
68787         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68788         (local-check): Interpose the .z rules
68790 2010-04-11  Jim Meyering  <meyering@redhat.com>
68792         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68793         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68794         empty file with one that ends in an empty line.
68796 2010-04-10  Bruno Haible  <bruno@clisp.org>
68798         mkdir: Make it work on mingw64.
68799         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68800         * lib/mkdir.c: Update comment.
68801         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68803 2010-04-10  Bruno Haible  <bruno@clisp.org>
68805         Don't override improved macro from newer autoconf.
68806         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68807         autoconf >= 2.62.
68808         Reported by Joel E. Denny <jdenny@clemson.edu>.
68810 2010-04-10  Jim Meyering  <meyering@redhat.com>
68812         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68813         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68815         maint.mk: correct a diagnostic
68816         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68817         in diagnostic; now use $prohibit.
68819 2010-04-10  Bruno Haible  <address@hidden>
68821         fchownat: Fix a C++ test error on Solaris 8.
68822         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68823         the function does not exist.
68825 2010-04-10  Bruno Haible  <bruno@clisp.org>
68827         vasnprintf: Add more tests.
68828         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68829         (test_function): Test converting an invalid wide string.
68831         vasnprintf: Correct handling of unconvertible wide string arguments.
68832         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68833         VASNPRINTF.
68834         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68835         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68836         smaller than the expected maximum need for the directive. Set errno to
68837         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68838         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68840         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68841         * modules/vasnprintf (Files): Add m4/printf.m4.
68842         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68844 2010-04-10  Bruno Haible  <bruno@clisp.org>
68846         vasnprintf: Fix crash in %ls directive.
68847         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68848         string is passed as argument to %ls, with no precision and no width.
68849         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68851 2010-04-10  Bruno Haible  <bruno@clisp.org>
68853         vasnprintf: Fix multiple test failures on mingw.
68854         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68855         _snprintf, or snwprintf, not _snwprintf.
68857 2010-04-10  Bruno Haible  <bruno@clisp.org>
68859         write: Fix a C++ test error on mingw.
68860         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68862 2010-04-10  Bruno Haible  <bruno@clisp.org>
68864         vasnprintf test: Reduce code duplication.
68865         * tests/test-vasnprintf.c (test_function): New function, extracted from
68866         test_vasnprintf.
68867         (test_vasnprintf, test_asnprintf): Invoke it.
68869 2010-04-10  Bruno Haible  <bruno@clisp.org>
68871         strnlen: Fix warning in C++ mode on MacOS X.
68872         * lib/string.in.h (strnlen): Use the modern idiom.
68873         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68874         defining strnlen as a macro already in <config.h>.
68875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68876         REPLACE_STRNLEN.
68877         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68878         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68880 2010-04-08  James Youngman  <jay@gnu.org>
68882         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68883         the example.
68885 2010-04-09  Jim Meyering  <meyering@redhat.com>
68887         maint.mk: print better diagnostic when there is no $(_hv_file)
68888         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68889         announce that when $(_hv_file) (aka help-version) does not exist.
68891         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68892         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68893         not try to interpret its random input bytes.  Jarno Rajahalme reported
68894         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68895         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68896         (mktempd_): Likewise, just in case.
68898         ftruncate: add two years to projected module removal date: 2012
68899         * m4/ftruncate.m4: Adjust comments.
68901         ftruncate: mark module as obsolete; even MinGW provides it, now
68902         * modules/ftruncate (Status): Obsolete.
68903         (Notice): Say that.
68904         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68905         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68907 2010-04-08  Bruno Haible  <bruno@clisp.org>
68909         Fix side effects from tests-related modules.
68910         * modules/dprintf-posix (Comment): New section.
68911         * modules/fprintf-posix (Comment): Likewise.
68912         * modules/obstack-printf-posix (Comment): Likewise.
68913         * modules/printf-posix (Comment): Likewise.
68914         * modules/snprintf-posix (Comment): Likewise.
68915         * modules/sprintf-posix (Comment): Likewise.
68916         * modules/vasnprintf-posix (Comment): Likewise.
68917         * modules/vasprintf-posix (Comment): Likewise.
68918         * modules/vdprintf-posix (Comment): Likewise.
68919         * modules/vfprintf-posix (Comment): Likewise.
68920         * modules/vprintf-posix (Comment): Likewise.
68921         * modules/vsnprintf-posix (Comment): Likewise.
68922         * modules/vsprintf-posix (Comment): Likewise.
68923         * modules/xprintf-posix (Comment): Likewise.
68924         * modules/xvasprintf-posix (Comment): Likewise.
68925         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68926         * modules/floorf-tests (Depends-on): Likewise.
68927         * modules/round-tests (Depends-on): Likewise.
68928         * modules/roundf-tests (Depends-on): Likewise.
68929         * modules/trunc-tests (Depends-on): Likewise.
68930         * modules/truncf-tests (Depends-on): Likewise.
68931         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68932         'fprintf-posix' module is not present.
68933         * tests/test-floorf2.c (check): Likewise.
68934         * tests/test-trunc2.c (check): Likewise.
68935         * tests/test-truncf2.c (check): Likewise.
68936         * tests/test-round2.c (equal): Likewise.
68937         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68939 2010-04-07  Karl Berry  <karl@gnu.org>
68941         * config/srclist.txt,
68942         * config/srclistvars.sh,
68943         * config/srclist-update: doc fixes.
68945 2010-04-07  Jim Meyering  <meyering@redhat.com>
68947         maint.mk: add a PATH crosschecking syntax-check rule
68948         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68949         Useful if you use a test like the one in help-version (coreutils,
68950         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68951         printed by prog --version.
68953 2010-04-06  Bruno Haible  <bruno@clisp.org>
68955         Fix link error on mingw.
68956         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68957         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68959 2010-04-06  Bruno Haible  <bruno@clisp.org>
68961         Assume rmdir exists.
68962         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68964 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68966         doc: update users.txt
68967         * users.txt: Add gcal.
68969 2010-04-06  Jim Meyering  <meyering@redhat.com>
68971         init.sh: simply unset TMPDIR rather than risking env -i
68972         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68973         although it probably works fine on all Unix-based systems, some
68974         systems (Cygwin?) cannot tolerate a totally cleared environment.
68975         Suggestion from Eric Blake.
68977 2010-04-06  Jim Meyering  <meyering@redhat.com>
68979         init.sh: portability fix: use env's POSIX-specified -i option not -u
68980         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68981         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68983 2010-04-05  Bruno Haible  <bruno@clisp.org>
68985         btowc: Work around Cygwin 1.7.2 bug.
68986         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68987         does not map NUL to 0.
68988         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68990 2010-04-05  Bruno Haible  <bruno@clisp.org>
68992         Make the multithread modules work on Cygwin 1.7.2.
68993         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68994         imported symbols can be declared weak, so that it returns "no" on
68995         Cygwin 1.7.2.
68997 2010-04-05  Bruno Haible  <bruno@clisp.org>
68999         Use the module 'strncat'.
69000         * modules/unistr/u8-strncat (Depends-on): Add strncat.
69002         Tests for module 'strncat'.
69003         * modules/strncat-tests: New file.
69004         * tests/test-strncat.c: New file.
69006         New module 'strncat'.
69007         * lib/string.in.h (strncat): New declaration.
69008         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
69009         * m4/strncat.m4: New file, based on m4/memchr.m4.
69010         * modules/strncat: New file.
69011         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
69012         is declared.
69013         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
69014         REPLACE_STRNCAT.
69015         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
69016         REPLACE_STRNCAT.
69017         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
69018         module.
69019         * tests/test-string-c++.cc: Check signature of strncat.
69021 2010-04-05  Jim Meyering  <meyering@redhat.com>
69023         xstrtoumax-tests: convert to use init.sh
69024         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
69025         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69026         Use Exit, not exit.
69027         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69029         xstrtoimax-tests: convert to use init.sh
69030         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
69031         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69032         Use Exit, not exit.
69033         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69035 2010-04-05  Bruno Haible  <bruno@clisp.org>
69037         sys_socket: Avoid #define replacements in C++ mode.
69038         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
69039         warning to the function if possible, rather than #defining the symbol
69040         to a dysfunctional alias.
69042 2010-04-05  Bruno Haible  <bruno@clisp.org>
69044         fseeko: Fix C++ test error on mingw.
69045         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
69046         gl_FUNC_FSEEKO.
69047         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
69048         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
69049         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
69050         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
69052 2010-04-05  Bruno Haible  <bruno@clisp.org>
69054         duplocale: Improve test output.
69055         * tests/test-duplocale.c (main): Print reason for skipped test.
69057 2010-04-05  Bruno Haible  <bruno@clisp.org>
69059         Assume rmdir exists.
69060         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
69061         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
69063 2010-04-05  Bruno Haible  <bruno@clisp.org>
69065         Fix link error on Solaris 8 with cc.
69066         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
69068 2010-04-05  Bruno Haible  <bruno@clisp.org>
69070         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69071         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
69073 2010-04-05  Bruno Haible  <bruno@clisp.org>
69075         vasprintf: Update documentation.
69076         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
69078 2010-04-05  Bruno Haible  <bruno@clisp.org>
69080         ptsname: Improve test.
69081         * tests/test-ptsname.c (main): Also try the various master names of BSD
69082         systems.
69084 2010-04-05  Bruno Haible  <bruno@clisp.org>
69086         memchr: Avoid a possible C++ test error.
69087         * lib/string.in.h (memchr): Provide declaration if function is missing.
69088         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69089         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
69090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
69091         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
69093 2010-04-05  Bruno Haible  <bruno@clisp.org>
69095         strtok_r: Improve idiom.
69096         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
69097         AC_LIBOBJ is used.
69099 2010-04-05  Bruno Haible  <bruno@clisp.org>
69101         strdup: Improve idiom.
69102         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
69103         AC_LIBOBJ is used.
69104         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
69105         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
69106         when AC_LIBOBJ is used.
69108 2010-04-05  Bruno Haible  <bruno@clisp.org>
69110         mbsinit, mbrtowc, wcrtomb: Improve idioms.
69111         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
69112         don't set REPLACE_MBSINIT to 1.
69113         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
69114         don't set REPLACE_MBRTOWC to 1.
69115         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
69116         exist, don't set REPLACE_MBSRTOWCS to 1.
69117         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
69118         exist, don't set REPLACE_MBSNRTOWCS to 1.
69119         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69120         don't set REPLACE_WCRTOMB to 1.
69121         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
69122         exist, don't set REPLACE_WCSRTOMBS to 1.
69123         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
69124         exist, don't set REPLACE_WCSNRTOMBS to 1.
69126 2010-04-05  Bruno Haible  <bruno@clisp.org>
69128         ldexpl: Improve idiom.
69129         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
69130         make sure to set HAVE_DECL_LDEXPL to 0.
69132 2010-04-05  Jim Meyering  <meyering@redhat.com>
69134         xstrtol-tests: convert to use init.sh
69135         * modules/xstrtol-tests (Files): Add tests/init.sh.
69136         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69137         Use Exit, not exit.
69138         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69140         atexit-tests: convert to use init.sh
69141         * modules/atexit-tests (Files): Add tests/init.sh.
69142         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69143         Use Exit, not exit.
69144         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69146         init.sh: fix typo
69147         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
69149         init.sh: make it easier for a test script to write to the tty, ...
69150         when using automake's parallel-tests mode.
69151         * tests/init.sh (stderr_fileno_): Define overridable variable.
69152         (warn_): New function, to use it.
69153         (fail_, skip_, framework_failure_): Use warn_.
69155 2010-04-04  Bruno Haible  <bruno@clisp.org>
69157         btowc: Avoid warning.
69158         * lib/btowc.c: Include <stdlib.h>.
69159         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
69161 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69162             Bruno Haible  <bruno@clisp.org>
69164         wchar: Port to NetBSD 1.5.
69165         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
69166         * lib/wctype.in.h (WEOF): Likewise.
69168 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69169             Bruno Haible  <bruno@clisp.org>
69171         Port extended stdio to NetBSD 1.5.
69172         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69173         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69174         older.
69176 2010-04-04  Bruno Haible  <bruno@clisp.org>
69178         string: Remove unused substitution.
69179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69180         HAVE_DECL_STRERROR.
69181         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
69183 2010-04-04  Bruno Haible  <bruno@clisp.org>
69185         strtod: Avoid a possible C++ test error.
69186         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
69187         set REPLACE_STRTOD.
69189 2010-04-04  Bruno Haible  <bruno@clisp.org>
69191         strerror: Update documentation.
69192         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
69194 2010-04-04  Bruno Haible  <bruno@clisp.org>
69196         stdio: Fix some C++ test errors on Solaris 8 with GCC.
69197         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
69198         _GL_CXXALIAS_SYS_CAST.
69200 2010-04-04  Bruno Haible  <bruno@clisp.org>
69202         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69203         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
69204         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
69205         REPLACE_FREXPL to 1.
69206         * doc/posix-functions/frexpl.texi: Update documentation.
69208 2010-04-04  Bruno Haible  <bruno@clisp.org>
69210         math: Fix some C++ test errors on Solaris 8 and Cygwin.
69211         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69213 2010-04-04  Bruno Haible  <bruno@clisp.org>
69215         Implement nanosleep for native Windows.
69216         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
69218 2010-04-04  Bruno Haible  <bruno@clisp.org>
69220         math: Fix some C++ test errors on Solaris 8.
69221         * lib/math.in.h (truncf, trunc): Use simpler idiom.
69223 2010-04-04  Bruno Haible  <bruno@clisp.org>
69225         math: Fix some C++ test errors on Cygwin.
69226         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
69227         truncl): Provide declaration if the system does not have it.
69228         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
69229         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
69230         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
69231         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
69232         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
69233         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
69234         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
69235         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
69236         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
69237         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
69238         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
69239         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
69240         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
69241         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
69242         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
69243         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
69244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
69245         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69246         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69247         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
69248         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69249         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69251 2010-04-04  Bruno Haible  <bruno@clisp.org>
69253         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
69254         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
69255         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
69256         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
69257         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69258         * m4/isinf.m4 (gl_ISINF): Likewise.
69259         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
69261 2010-04-04  Bruno Haible  <bruno@clisp.org>
69263         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
69264         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
69266 2010-04-04  Bruno Haible  <bruno@clisp.org>
69268         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
69269         * modules/tmpfile (configure.ac): Update.
69271         tmpfile: Fix C++ test error on mingw.
69272         * lib/stdio.in.h (tmpfile): New declaration.
69273         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
69274         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
69275         * modules/tmpfile (Depends-on): Add stdio.
69276         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69277         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
69278         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
69279         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
69280         REPLACE_TMPFILE.
69281         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
69283 2010-04-04  Bruno Haible  <bruno@clisp.org>
69285         ioctl: Fix C++ test error on mingw.
69286         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
69287         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
69288         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
69290 2010-04-03  Bruno Haible  <bruno@clisp.org>
69292         wcwidth: Fix C++ test error on mingw.
69293         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
69294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
69295         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
69297 2010-04-03  Bruno Haible  <bruno@clisp.org>
69299         nanosleep: Fix C++ test error on mingw.
69300         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
69301         * lib/time.in.h (nanosleep): Use modern idiom.
69302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
69303         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
69304         REPLACE_NANOSLEEP to 1.
69305         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
69306         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
69308 2010-04-03  Bruno Haible  <bruno@clisp.org>
69310         strptime: Fix C++ test error on mingw.
69311         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
69312         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
69313         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
69314         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
69315         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
69316         not REPLACE_STRPTIME.
69317         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
69318         REPLACE_STRPTIME.
69320 2010-04-03  Bruno Haible  <bruno@clisp.org>
69322         timegm: Fix C++ test error on mingw.
69323         * lib/time.in.h (timegm): Use modern idiom.
69324         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
69325         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
69326         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
69327         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
69329 2010-04-03  Bruno Haible  <bruno@clisp.org>
69331         timegm: Assume declaration if function exists.
69332         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
69333         if it exists. Don't clobber ac_cv_func_timegm.
69335 2010-04-03  Bruno Haible  <bruno@clisp.org>
69337         time_r: Fix C++ test error on mingw.
69338         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
69339         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
69340         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
69341         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69342         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69344 2010-04-03  Bruno Haible  <bruno@clisp.org>
69346         time_r: Minor updates.
69347         * modules/time_r (Description): Mention the provided functions.
69348         * lib/time_r.c: Don't include <string.h>.
69349         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69350         * doc/posix-functions/localtime_r.texi: Likewise.
69352 2010-04-03  Bruno Haible  <bruno@clisp.org>
69354         time: Fix regression introduced on 2010-03-08.
69355         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69356         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69358 2010-04-03  Jim Meyering  <meyering@redhat.com>
69360         maint.mk: don't silently disable project-specific syntax-check rules
69361         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69362         that they need to convert their project-specific syntax-check rules
69363         to use the new _sc_search_regexp.
69365 2010-04-03  Bruno Haible  <bruno@clisp.org>
69367         fchdir: Fix regression introduced on 2010-03-08.
69368         * lib/unistd.in.h (fchdir): Fix declaration.
69369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69371         REPLACE_FCHDIR.
69372         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69373         REPLACE_FCHDIR.
69375 2010-04-03  Bruno Haible  <bruno@clisp.org>
69377         getpagesize: Fix C++ test error on mingw.
69378         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69379         system does not declare the function.
69380         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69381         declared.
69382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69383         HAVE_DECL_GETPAGESIZE.
69384         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69386 2010-04-03  Bruno Haible  <bruno@clisp.org>
69388         stdio: Make C++ tests work on mingw.
69389         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69390         does not declare the function.
69392 2010-04-03  Bruno Haible  <bruno@clisp.org>
69394         ftello: Fix C++ test error on mingw.
69395         * lib/stdio.in.h (ftello): Use modern idiom.
69396         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69397         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69398         is missing and that it needs to be replaced.
69399         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69401         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69403 2010-04-03  Bruno Haible  <bruno@clisp.org>
69405         fseeko: Fix C++ test error on mingw.
69406         * lib/stdio.in.h (fseeko): Use modern idiom.
69407         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69409         is missing and that it needs to be replaced.
69410         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69412         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69414 2010-04-03  Bruno Haible  <bruno@clisp.org>
69416         mkstemp: Fix C++ test error on mingw.
69417         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69419         function is missing and that it needs to be replaced.
69420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69421         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69423 2010-04-03  Bruno Haible  <bruno@clisp.org>
69425         stpncpy: Fix C++ test error on mingw.
69426         * lib/string.in.h (stpncpy): Use modern idiom.
69427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69428         function is missing and that it needs to be replaced.
69429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69430         REPLACE_STPNCPY.
69431         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69433 2010-04-03  Bruno Haible  <bruno@clisp.org>
69435         sys_stat: Fix C++ test error on mingw.
69436         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69437         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69439 2010-04-03  Bruno Haible  <bruno@clisp.org>
69441         pty: Update doc.
69442         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69444 2010-04-03  Bruno Haible  <bruno@clisp.org>
69446         unistd: Fix C++ test error on mingw.
69447         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69449 2010-04-03  Bruno Haible  <bruno@clisp.org>
69451         Update doc regarding mingw.
69452         * doc/glibc-functions/openpty.texi: Update regarding mingw.
69453         * doc/glibc-functions/login_tty.texi: Likewise.
69454         * doc/glibc-functions/forkpty.texi: Likewise.
69456 2010-04-03  Bruno Haible  <bruno@clisp.org>
69458         stdlib: Avoid compilation failure of c-strtold on mingw.
69459         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
69461 2010-04-03  Bruno Haible  <bruno@clisp.org>
69463         locale: Make C++ tests work on Cygwin and mingw.
69464         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
69465         cannot provide the function.
69466         Reported by Simon Josefsson.
69468 2010-04-03  Bruno Haible  <bruno@clisp.org>
69470         localename: Port to MacOS X 10.6.
69471         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
69472         memory layout of the locales in MacOS X 10.6 as well.
69473         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
69475 2010-04-02  Bruno Haible  <bruno@clisp.org>
69477         gnulib-tool: Ensure that long-running tests are executed last.
69478         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
69479         running tests after the one for the other tests.
69481 2010-04-02  Bruno Haible  <bruno@clisp.org>
69483         gnulib-tool: Ensure the tests in the main directory are executed first.
69484         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
69485         start with the current directory.
69487 2010-04-02  Bruno Haible  <bruno@clisp.org>
69489         Tests for module 'havelib', moved here from GNU gettext.
69490         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
69491         modifications.
69492         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
69493         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
69494         with modifications.
69495         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
69496         modifications.
69497         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
69498         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
69499         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
69500         with modifications.
69501         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
69502         with modifications.
69503         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
69504         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
69505         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
69506         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69507         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
69508         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
69509         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
69510         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
69511         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
69512         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
69513         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
69514         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
69515         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
69516         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
69517         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
69518         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
69519         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
69520         with modifications.
69521         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
69522         with modifications.
69523         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69524         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
69525         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
69526         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
69527         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
69528         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
69529         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
69530         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
69531         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
69532         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
69533         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
69534         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
69535         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69536         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
69537         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
69538         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
69539         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
69540         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
69541         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
69542         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
69543         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
69544         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
69545         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
69546         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
69547         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
69548         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
69549         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
69550         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
69551         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
69552         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
69553         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
69554         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
69555         * tests/havelib/rpathx/rpathx.c: New file, from
69556         gettext/autoconf-lib-link.
69557         * tests/havelib/rpathx/Makefile.am: New file, from
69558         gettext/autoconf-lib-link.
69559         * tests/havelib/rpathx/configure.ac: New file, from
69560         gettext/autoconf-lib-link with modifications.
69561         * tests/havelib/rpathy/rpathy.c: New file, from
69562         gettext/autoconf-lib-link.
69563         * tests/havelib/rpathy/Makefile.am: New file, from
69564         gettext/autoconf-lib-link.
69565         * tests/havelib/rpathy/configure.ac: New file, from
69566         gettext/autoconf-lib-link with modifications.
69567         * tests/havelib/rpathz/rpathz.c: New file, from
69568         gettext/autoconf-lib-link.
69569         * tests/havelib/rpathz/Makefile.am: New file, from
69570         gettext/autoconf-lib-link.
69571         * tests/havelib/rpathz/configure.ac: New file, from
69572         gettext/autoconf-lib-link with modifications.
69573         * tests/havelib/rpathlx/usex.c: New file, from
69574         gettext/autoconf-lib-link.
69575         * tests/havelib/rpathlx/Makefile.am: New file, from
69576         gettext/autoconf-lib-link.
69577         * tests/havelib/rpathlx/configure.ac: New file, from
69578         gettext/autoconf-lib-link with modifications.
69579         * tests/havelib/rpathly/usey.c: New file, from
69580         gettext/autoconf-lib-link.
69581         * tests/havelib/rpathly/Makefile.am: New file, from
69582         gettext/autoconf-lib-link.
69583         * tests/havelib/rpathly/configure.ac: New file, from
69584         gettext/autoconf-lib-link with modifications.
69585         * tests/havelib/rpathlz/usez.c: New file, from
69586         gettext/autoconf-lib-link.
69587         * tests/havelib/rpathlz/Makefile.am: New file, from
69588         gettext/autoconf-lib-link.
69589         * tests/havelib/rpathlz/configure.ac: New file, from
69590         gettext/autoconf-lib-link with modifications.
69591         * tests/havelib/rpathlyx/usey.c: New file, from
69592         gettext/autoconf-lib-link.
69593         * tests/havelib/rpathlyx/Makefile.am: New file, from
69594         gettext/autoconf-lib-link.
69595         * tests/havelib/rpathlyx/configure.ac: New file, from
69596         gettext/autoconf-lib-link with modifications.
69597         * tests/havelib/rpathlzyx/usez.c: New file, from
69598         gettext/autoconf-lib-link.
69599         * tests/havelib/rpathlzyx/Makefile.am: New file, from
69600         gettext/autoconf-lib-link.
69601         * tests/havelib/rpathlzyx/configure.ac: New file, from
69602         gettext/autoconf-lib-link with modifications.
69603         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
69604         with modifications.
69606 2010-04-02  Bruno Haible  <bruno@clisp.org>
69608         gnulib-tool: Create distributed built sources also for the tests.
69609         * gnulib-tool (func_create_testdir): Also generate distributed built
69610         sources in the tests directory.
69612 2010-04-02  Bruno Haible  <bruno@clisp.org>
69614         gnulib-tool: Obey user's environment variables.
69615         * gnulib-tool (func_create_testdir): When creating built sources,
69616         respect the environment variables for autoconf, automake, etc. given by
69617         the user.
69619 2010-04-02  Bruno Haible  <bruno@clisp.org>
69621         gnulib-tool: Provide the value of --m4-base to modules.
69622         * gnulib-tool (func_import, func_create_testdir): Emit a definition
69623         of gl_m4_base.
69625 2010-04-02  Eric Blake  <eblake@redhat.com>
69627         maint.mk: fix some fallout
69628         * NEWS: Document the incompatible change, and its effect on cfg.mk.
69629         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
69631 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69633         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
69634         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
69635         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
69636         (sc_cast_of_x_alloc_return_value): Likewise.
69637         (sc_cast_of_alloca_return_value): Likewise.
69638         (sc_space_tab): Likewise.
69639         (sc_prohibit_atoi_atof): Likewise.
69640         (sc_prohibit_magic_number_exit): Likewise.
69641         (sc_error_exit_success): Likewise.
69642         (sc_file_system): Likewise.
69643         (sc_prohibit_have_config_h): Likewise.
69644         (sc_require_config_h): Likewise.
69645         (sc_prohibit_HAVE_MBRTOWC): Likewise.
69646         (sc_obsolete_symbols): Likewise.
69647         (sc_changelog): Likewise.
69648         (sc_program_name): Likewise.
69649         (sc_the_the): Likewise.
69650         (sc_trailing_blank): Likewise.
69651         (sc_two_space_separator_in_usage): Likewise.
69652         (sc_useless_cpp_parens): Likewise.
69653         (sc_GPL_version): Likewise.
69654         (sc_GFDL_version): Likewise.
69655         (sc_texinfo_acronym): Likewise.
69656         (sc_prohibit_cvs_keyword): Likewise.
69657         (sc_prohibit_stat_st_blocks): Likewise.
69658         (sc_prohibit_S_IS_definition): Likewise.
69659         (sc_redundant_const): Likewise.
69660         (sc_makefile_TAB_only_indentation): Likewise.
69661         (sc_m4_quote_check): Likewise.
69662         (sc_makefile_path_separator_check): Likewise.
69663         (sc_copyright_check): Likewise.
69664         (sc_Wundef_boolean): Likewise.
69665         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69667         maint.mk: match 0 or more whitespace-before-function-call '('
69668         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69669         that have zero or two-and-more spaces between the function name
69670         and the open parenthesis.
69671         (sc_error_message_warn_fatal): Likewise.
69672         (sc_error_message_uppercase): Likewise.
69673         (sc_error_message_period): Likewise.
69675 2010-03-31  Eric Blake  <eblake@redhat.com>
69677         maint.mk: check for [ as well as test
69678         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69679         Based on a libvirt report by Matthias Bolte.
69681         gnumakefile: don't squelch _version output
69682         * top/GNUmakefile (_version): Create one-shot dependency rather
69683         than using $(shell) when version must be regenerated.
69684         (_autoreconf): Run verbosely, by default.
69686         sys_time: avoid compiler warnings
69687         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69688         unconditional, fixing regression from 2010-03-29.
69689         Reported by Simon Josefsson.
69691 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69693         maint.mk: s/_header_without_use/_sc_header_without_use/
69694         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69695         (sc_prohibit_assert_without_use): Use the new name.
69696         (sc_prohibit_close_stream_without_use): Likewise.
69697         (sc_prohibit_getopt_without_use): Likewise.
69698         (sc_prohibit_quotearg_without_use): Likewise.
69699         (sc_prohibit_quote_without_use): Likewise.
69700         (sc_prohibit_long_options_without_use): Likewise.
69701         (sc_prohibit_inttostr_without_use): Likewise.
69702         (sc_prohibit_ignore_value_without_use): Likewise.
69703         (sc_prohibit_error_without_use): Likewise.
69704         (sc_prohibit_xalloc_without_use): Likewise.
69705         (sc_prohibit_hash_without_use): Likewise.
69706         (sc_prohibit_hash_pjw_without_use): Likewise.
69707         (sc_prohibit_safe_read_without_use): Likewise.
69708         (sc_prohibit_argmatch_without_use): Likewise.
69709         (sc_prohibit_canonicalize_without_use): Likewise.
69710         (sc_prohibit_root_dev_ino_without_use): Likewise.
69711         (sc_prohibit_openat_without_use): Likewise.
69712         (sc_prohibit_c_ctype_without_use): Likewise.
69713         (sc_prohibit_signal_without_use): Likewise.
69714         (sc_prohibit_intprops_without_use): Likewise.
69716 2010-03-30  Eric Blake  <eblake@redhat.com>
69718         maint: improve module indicators
69719         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69720         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69721         columns, and avoid extra macro expansion.
69723         fdopendir: work around FreeBSD bug
69724         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69725         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69726         * modules/dirent (Makefile.am): Substitute it.
69727         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69728         declaration.
69729         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69730         fix.
69731         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69733 2010-03-29  Bruno Haible  <bruno@clisp.org>
69735         Emit #pragma system_header after the inclusion guard, not before.
69736         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69737         guard that spans the entire file, not before. This enables an
69738         optimization in GCC's preprocessor.
69739         * lib/ctype.in.h: Likewise.
69740         * lib/dirent.in.h: Likewise.
69741         * lib/errno.in.h: Likewise.
69742         * lib/float.in.h: Likewise.
69743         * lib/getopt.in.h: Likewise.
69744         * lib/iconv.in.h: Likewise.
69745         * lib/langinfo.in.h: Likewise.
69746         * lib/locale.in.h: Likewise.
69747         * lib/math.in.h: Likewise.
69748         * lib/netdb.in.h: Likewise.
69749         * lib/netinet_in.in.h: Likewise.
69750         * lib/pty.in.h: Likewise.
69751         * lib/sched.in.h: Likewise.
69752         * lib/se-selinux.in.h: Likewise.
69753         * lib/search.in.h: Likewise.
69754         * lib/spawn.in.h: Likewise.
69755         * lib/stdarg.in.h: Likewise.
69756         * lib/stdint.in.h: Likewise.
69757         * lib/string.in.h: Likewise.
69758         * lib/strings.in.h: Likewise.
69759         * lib/sys_file.in.h: Likewise.
69760         * lib/sys_ioctl.in.h: Likewise.
69761         * lib/sys_time.in.h: Likewise.
69762         * lib/sys_times.in.h: Likewise.
69763         * lib/sys_utsname.in.h: Likewise.
69764         * lib/sys_wait.in.h: Likewise.
69765         * lib/sysexits.in.h: Likewise.
69766         * lib/wctype.in.h: Likewise.
69768 2010-03-28  James Youngman  <jay@gnu.org>
69770         save-cwd: don't leak a file descriptor when the caller execs.
69771         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69772         saved file descriptor.
69773         * modules/save-cwd (Depends-on): Depend on cloexec.
69775 2010-03-29  Bruno Haible  <bruno@clisp.org>
69777         Remove vestiges of fts-lgpl module.
69778         * lib/fts_.h: Assume GNULIB_FTS is 1.
69779         * lib/fts.c: Likewise.
69780         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69782 2010-03-28  Bruno Haible  <bruno@clisp.org>
69784         Fix definition of tests witness macro.
69785         * gnulib-tool (func_import): Fix definition of witness macro.
69787 2010-03-28  Bruno Haible  <bruno@clisp.org>
69789         Fix ioctl's protoype on glibc systems.
69790         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69791         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69792         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69793         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69794         signature. If not, arrange to replace the ioctl function.
69795         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69796         REPLACE_IOCTL.
69797         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69798         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69799         Reported by Ludovic Courtès <ludo@gnu.org>.
69801 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69803         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69804         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69805         made it so grep -r --include=GLOB* ... did not work.
69807 2010-03-26  Jim Meyering  <meyering@redhat.com>
69808             Eric Blake  <eblake@redhat.com>
69810         maint.mk: prohibit use of test's -o and -a operators
69811         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69813 2010-03-28  Bruno Haible  <bruno@clisp.org>
69815         Remove unused GNULIB_XYZ macro definitions.
69816         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69817         invocation.
69819 2010-03-28  Bruno Haible  <bruno@clisp.org>
69821         Mark privileged tests modules.
69822         * modules/idpriv-drop-tests (Status): New section.
69823         * modules/idpriv-droptemp-tests (Status): New section.
69825 2010-03-28  Bruno Haible  <bruno@clisp.org>
69827         Split C++ tests into separate tests modules.
69828         * modules/dirent-c++-tests: New file, extracted from
69829         modules/dirent-tests.
69830         * modules/dirent-tests: Depend on it.
69831         * modules/fcntl-h-c++-tests: New file, extracted from
69832         modules/fcntl-h-tests.
69833         * modules/fcntl-h-tests: Depend on it.
69834         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69835         * modules/glob-tests: Depend on it.
69836         * modules/iconv-h-c++-tests: New file, extracted from
69837         modules/iconv-h-tests.
69838         * modules/iconv-h-tests: Depend on it.
69839         * modules/langinfo-c++-tests: New file, extracted from
69840         modules/langinfo-tests.
69841         * modules/langinfo-tests: Depend on it.
69842         * modules/locale-c++-tests: New file, extracted from
69843         modules/locale-tests.
69844         * modules/locale-tests: Depend on it.
69845         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69846         * modules/math-tests: Depend on it.
69847         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69848         * modules/pty-tests: Depend on it.
69849         * modules/search-c++-tests: New file, extracted from
69850         modules/search-tests.
69851         * modules/search-tests: Depend on it.
69852         * modules/signal-c++-tests: New file, extracted from
69853         modules/signal-tests.
69854         * modules/signal-tests: Depend on it.
69855         * modules/spawn-c++-tests: New file, extracted from
69856         modules/spawn-tests.
69857         * modules/spawn-tests: Depend on it.
69858         * modules/stdio-c++-tests: New file, extracted from
69859         modules/stdio-tests.
69860         * modules/stdio-tests: Depend on it.
69861         * modules/stdlib-c++-tests: New file, extracted from
69862         modules/stdlib-tests.
69863         * modules/stdlib-tests: Depend on it.
69864         * modules/string-c++-tests: New file, extracted from
69865         modules/string-tests.
69866         * modules/string-tests: Depend on it.
69867         * modules/sys_ioctl-c++-tests: New file, extracted from
69868         modules/sys_ioctl-tests.
69869         * modules/sys_ioctl-tests: Depend on it.
69870         * modules/sys_select-c++-tests: New file, extracted from
69871         modules/sys_select-tests.
69872         * modules/sys_select-tests: Depend on it.
69873         * modules/sys_socket-c++-tests: New file, extracted from
69874         modules/sys_socket-tests.
69875         * modules/sys_socket-tests: Depend on it.
69876         * modules/sys_stat-c++-tests: New file, extracted from
69877         modules/sys_stat-tests.
69878         * modules/sys_stat-tests: Depend on it.
69879         * modules/sys_time-c++-tests: New file, extracted from
69880         modules/sys_time-tests.
69881         * modules/sys_time-tests: Depend on it.
69882         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69883         * modules/time-tests: Depend on it.
69884         * modules/unistd-c++-tests: New file, extracted from
69885         modules/unistd-tests.
69886         * modules/unistd-tests: Depend on it.
69887         * modules/wchar-c++-tests: New file, extracted from
69888         modules/wchar-tests.
69889         * modules/wchar-tests: Depend on it.
69890         * modules/wctype-c++-tests: New file, extracted from
69891         modules/wctype-tests.
69892         * modules/wctype-tests: Depend on it.
69893         Reported by Simon Josefsson.
69895 2010-03-28  Bruno Haible  <bruno@clisp.org>
69897         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69898         * gnulib-tool (func_exists_module): New function, extracted from
69899         func_verify_module.
69900         (func_verify_module): Use it.
69901         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69902         'foo' only if 'foo' exists.
69903         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69904         module.
69906 2010-03-28  Bruno Haible  <bruno@clisp.org>
69908         gnulib-tool: Add support for special categories of tests.
69909         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69910         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69911         (func_usage): Document them.
69912         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69913         inc_unportable_tests, inc_all_tests): New variables.
69914         (func_acceptable): Consider these variables.
69915         (func_modules_transitive_closure): Make it work when the 'Status' field
69916         consists of multiple words.
69917         (func_import): Store and restore the values of inc_cxx_tests,
69918         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69919         inc_all_tests in gnulib-comp.m4.
69920         (func_create_testdir): Set inc_all_tests to true.
69921         * doc/gnulib.texi (Extra tests modules): New section.
69922         Suggested by Jim Meyering.
69924 2010-03-28  Bruno Haible  <bruno@clisp.org>
69926         ansi-c++-opt: Allow turning off the C++ build by default.
69927         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69928         gl_CXX_CHOICE_DEFAULT_NO is defined.
69929         Requested by Eric Blake.
69931 2010-03-28  Bruno Haible  <bruno@clisp.org>
69933         unistd: Avoid #define replacements in C++ mode.
69934         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69935         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69936         setsockopt, shutdown, select): In C++, attach a warning to the function
69937         if possible, rather than #defining the symbol to a dysfunctional alias.
69938         Reported by John W. Eaton <jwe@gnu.org>.
69940 2010-03-28  Bruno Haible  <bruno@clisp.org>
69942         Fix link errors on mingw.
69943         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69944         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69945         $(LIBSOCKET).
69946         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69947         $(LIBSOCKET).
69949 2010-03-28  Bruno Haible  <bruno@clisp.org>
69950             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69952         lib-ignore: Determine different options for different compilers.
69953         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69954         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69955         Add comments.
69956         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69957         * NEWS: Mention the change.
69959 2010-03-27  Bruno Haible  <bruno@clisp.org>
69961         Remove unused GNULIB_XYZ macro definitions.
69962         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69963         * modules/fseek (configure.ac): Likewise.
69964         * modules/ioctl (configure.ac): Likewise.
69965         * modules/open (configure.ac): Likewise.
69966         * modules/stdlib-safer (configure.ac): Likewise.
69968 2010-03-27  Bruno Haible  <bruno@clisp.org>
69970         Add a remark about certain modules.
69971         * modules/malloc (Comment): New section.
69972         * modules/realloc (Comment): Likewise.
69973         * modules/sigpipe (Comment): Likewise.
69975 2010-03-27  Bruno Haible  <bruno@clisp.org>
69977         Resolve conflict between the two kinds of module indicators.
69978         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69979         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69980         * modules/canonicalize (configure.ac): Invoke
69981         gl_MODULE_INDICATOR_FOR_TESTS.
69982         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69983         GNULIB_XYZ.
69984         * tests/test-dirent-c++.cc: Likewise.
69985         * tests/test-dirent-safer.c: Likewise.
69986         * tests/test-dup2.c: Likewise.
69987         * tests/test-fchdir.c: Likewise.
69988         * tests/test-fcntl-h-c++.cc: Likewise.
69989         * tests/test-getopt.c: Likewise.
69990         * tests/test-getopt.h: Likewise.
69991         * tests/test-langinfo-c++.cc: Likewise.
69992         * tests/test-locale-c++.cc: Likewise.
69993         * tests/test-math-c++.cc: Likewise.
69994         * tests/test-pty-c++.cc: Likewise.
69995         * tests/test-search-c++.cc: Likewise.
69996         * tests/test-signal-c++.cc: Likewise.
69997         * tests/test-spawn-c++.cc: Likewise.
69998         * tests/test-stdio-c++.cc: Likewise.
69999         * tests/test-stdlib-c++.cc: Likewise.
70000         * tests/test-string-c++.cc: Likewise.
70001         * tests/test-sys_ioctl-c++.cc: Likewise.
70002         * tests/test-sys_select-c++.cc: Likewise.
70003         * tests/test-sys_socket-c++.cc: Likewise.
70004         * tests/test-sys_stat-c++.cc: Likewise.
70005         * tests/test-sys_time-c++.cc: Likewise.
70006         * tests/test-time-c++.cc: Likewise.
70007         * tests/test-unistd-c++.cc: Likewise.
70008         * tests/test-wchar-c++.cc: Likewise.
70009         * tests/uninorm/test-u8-nfc.c: Likewise.
70010         * tests/uninorm/test-u8-nfd.c: Likewise.
70011         * tests/uninorm/test-u8-nfkc.c: Likewise.
70012         * tests/uninorm/test-u8-nfkd.c: Likewise.
70013         * tests/uninorm/test-u16-nfc.c: Likewise.
70014         * tests/uninorm/test-u16-nfd.c: Likewise.
70015         * tests/uninorm/test-u16-nfkc.c: Likewise.
70016         * tests/uninorm/test-u16-nfkd.c: Likewise.
70017         * tests/uninorm/test-u32-nfc.c: Likewise.
70018         * tests/uninorm/test-u32-nfc-big.c: Likewise.
70019         * tests/uninorm/test-u32-nfd.c: Likewise.
70020         * tests/uninorm/test-u32-nfd-big.c: Likewise.
70021         * tests/uninorm/test-u32-nfkc.c: Likewise.
70022         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
70023         * tests/uninorm/test-u32-nfkd.c: Likewise.
70024         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
70025         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70027 2010-03-27  Bruno Haible  <bruno@clisp.org>
70029         Distinguish two kinds of module indicators.
70030         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
70031         gl_MODULE_INDICATOR.
70032         (gl_MODULE_INDICATOR): New macro.
70033         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70034         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
70035         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70036         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70037         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70038         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70039         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70040         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70041         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70042         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70043         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70044         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70046         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70047         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70048         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70049         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70050         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70051         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70052         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70053         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70054         * modules/cloexec (configure.ac): Likewise.
70055         * modules/getopt-gnu (configure.ac): Likewise.
70056         * modules/uninorm/u8-normalize (configure.ac): Likewise.
70057         * modules/uninorm/u16-normalize (configure.ac): Likewise.
70058         * modules/uninorm/u32-normalize (configure.ac): Likewise.
70059         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
70061 2010-03-27  Bruno Haible  <bruno@clisp.org>
70063         New module description field 'Comment'.
70064         * gnulib-tool: New option --extract-comment.
70065         (func_usage): Document it.
70066         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
70067         (func_get_comment): New function.
70068         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
70070 2010-03-27  Bruno Haible  <bruno@clisp.org>
70072         Addendum to 2010-02-07 commit.
70073         * gnulib-tool (func_usage): Document --extract-applicability option.
70075 2010-03-27  Bruno Haible  <bruno@clisp.org>
70077         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
70078         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
70079         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
70080         rather than link errors.
70082 2010-03-27  Bruno Haible  <bruno@clisp.org>
70084         Avoid side effects from tests-related modules on the compilation of lib.
70085         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
70086         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
70087         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
70088         parameter. Emit into AM_CPPFLAGS a definition of the designated C
70089         macro.
70090         (func_import): Define a witness macro. Assign it a value that depends
70091         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
70092         tests-related modules.
70093         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
70094         Reported by Jim Meyering.
70096 2010-03-27  Bruno Haible  <bruno@clisp.org>
70098         Factorize common .m4 code.
70099         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
70100         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
70101         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
70102         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
70103         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70104         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
70105         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
70106         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70107         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70108         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70109         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
70110         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70111         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70112         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70113         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70114         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
70115         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70116         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70118         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
70119         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
70120         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70121         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70122         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70123         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70124         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70125         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
70126         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
70127         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
70128         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70129         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70130         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70132 2010-03-27  Bruno Haible  <bruno@clisp.org>
70134         Fix a compilation error on Cygwin with g++ >= 4.3.
70135         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
70136         if it is undefined or if we alias it to chmod.
70137         (lstat): Don't warn about the use of this function if it is undefined
70138         or if we alias it to stat.
70139         Reported by Simon Josefsson.
70141 2010-03-27  Bruno Haible  <bruno@clisp.org>
70143         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
70144         * modules/getlogin (configure.ac): Update.
70146         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
70147         * modules/getlogin_r (configure.ac): Update.
70149         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
70150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70151         * modules/inet_ntop (configure.ac): Update.
70153         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
70154         * modules/inet_pton (configure.ac): Update.
70156         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
70157         * modules/mbslen (configure.ac): Update.
70159         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
70160         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
70161         * modules/forkpty (configure.ac): Update.
70162         * modules/openpty (configure.ac): Update.
70164 2010-03-26  Simon Josefsson  <simon@josefsson.org>
70166         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
70167         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
70169 2010-03-25  Eric Blake  <eblake@redhat.com>
70171         maint: use pragma consistently across replacement headers
70172         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70173         * lib/dirent.in.h (system_header): Likewise.
70174         * lib/errno.in.h (system_header): Likewise.
70175         * lib/float.in.h (system_header): Likewise.
70176         * lib/getopt.in.h (system_header): Likewise.
70177         * lib/iconv.in.h (system_header): Likewise.
70178         * lib/inttypes.in.h (system_header): Likewise.
70179         * lib/langinfo.in.h (system_header): Likewise.
70180         * lib/locale.in.h (system_header): Likewise.
70181         * lib/math.in.h (system_header): Likewise.
70182         * lib/netdb.in.h (system_header): Likewise.
70183         * lib/netinet_in.in.h (system_header): Likewise.
70184         * lib/pty.in.h (system_header): Likewise.
70185         * lib/sched.in.h (system_header): Likewise.
70186         * lib/se-selinux.in.h (system_header): Likewise.
70187         * lib/search.in.h (system_header): Likewise.
70188         * lib/spawn.in.h (system_header): Likewise.
70189         * lib/stdarg.in.h (system_header): Likewise.
70190         * lib/stdint.in.h (system_header): Likewise.
70191         * lib/string.in.h (system_header): Likewise.
70192         * lib/strings.in.h (system_header): Likewise.
70193         * lib/sys_file.in.h (system_header): Likewise.
70194         * lib/sys_ioctl.in.h (system_header): Likewise.
70195         * lib/sys_socket.in.h (system_header): Likewise.
70196         * lib/sys_times.in.h (system_header): Likewise.
70197         * lib/sys_utsname.in.h (system_header): Likewise.
70198         * lib/sys_wait.in.h (system_header): Likewise.
70199         * lib/sysexits.in.h (system_header): Likewise.
70200         * lib/unistd.in.h (system_header): Likewise.
70201         * lib/wctype.in.h (system_header): Likewise.
70203         arpa/inet: fix mingw compilation warning
70204         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
70205         Reported by Matthew Bolte.
70207 2010-03-25  Bruno Haible  <bruno@clisp.org>
70209         Avoid collision between gnulib wrapper and libintl wrapper.
70210         * lib/printf.c (printf): Don't define if a printf wrapper is already
70211         defined in intl/printf.c.
70212         Reported by Michel Boaventura <michel@michelboaventura.com>.
70214 2010-03-25  Bruno Haible  <bruno@clisp.org>
70216         Use ANSI C.
70217         * lib/readutmp.h (getutent): Provide ANSI C prototype.
70219 2010-03-25  Bruno Haible  <bruno@clisp.org>
70221         Minor formatting changes.
70222         * lib/acosl.c: Insert space before function argument list.
70223         * lib/argz.c: Likewise.
70224         * lib/asinl.c: Likewise.
70225         * lib/expl.c: Likewise.
70226         * lib/gen-uni-tables.c: Likewise.
70227         * lib/gettext.h: Likewise.
70228         * lib/glthread/lock.h: Likewise.
70229         * lib/tanl.c: Likewise.
70230         * lib/uniname/uniname.c: Likewise.
70231         * tests/test-idpriv-drop.c: Likewise.
70232         * tests/test-idpriv-droptemp.c: Likewise.
70233         * tests/test-lock.c: Likewise.
70234         * tests/test-tls.c: Likewise.
70235         * lib/argp-help.c: Insert space before function-like macro argument
70236         list.
70237         * lib/memcmp.c: Likewise.
70238         * tests/test-base64.c: Likewise.
70239         * lib/localename.c: Insert space before sizeof's argument list.
70240         * lib/safe-alloc.h: Likewise.
70241         * lib/file-set.h: Insert space before macro argument list.
70242         * tests/test-argp.c: Likewise.
70243         * lib/argp-namefrob.h: Insert space before function parameter list.
70244         * lib/getaddrinfo.c: Likewise.
70245         * lib/netdb.in.h: Likewise.
70246         * lib/parse-duration.h: Likewise.
70247         * lib/parse-duration.c: Likewise.
70248         * lib/poll.c: Likewise.
70249         * lib/select.c: Likewise.
70250         * lib/trim.h: Likewise.
70251         * tests/test-usleep.c: Likewise.
70252         * lib/ldexpl.c: Insert space before function parameter list and before
70253         function argument list.
70254         * lib/logl.c: Likewise.
70255         * lib/sqrtl.c: Likewise.
70256         * lib/trim.c: Likewise.
70257         * lib/cosl.c: Use GNU style indentation. Insert space before function
70258         argument list.
70259         * lib/sinl.c: Likewise.
70260         * lib/tsearch.c: Insert space after 'for'.
70261         Reported by Jim Meyering.
70263 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
70265         * maint.mk (sc_Wundef_boolean): Check for the presence of the
70266         config header before grepping, as it's not present before
70267         autoreconf/configure are run.  Reported by Simon Josefsson.
70269 2010-03-23  Bruno Haible  <bruno@clisp.org>
70271         pt_chown: Make it work with automake < 1.11.
70272         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
70273         Reported by Simon Josefsson.
70275 2010-03-23  Bruno Haible  <bruno@clisp.org>
70277         pt_chown: Don't depend on GPLed modules.
70278         * lib/pt_chown.c: Don't include idpriv.h.
70279         (main): Don't drop privileges.
70280         * modules/pt_chown (Depends-on): Remove idpriv-drop.
70281         Reported by Simon Josefsson.
70283 2010-03-24  Simon Josefsson  <simon@josefsson.org>
70285         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
70286         suggestions from karl@freefriends.org (Karl Berry).
70288 2010-03-22  Eric Blake  <eblake@redhat.com>
70290         gethostname: further tweaks
70291         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
70292         are overriding gethostname.
70293         Suggested by Bruno Haible.
70295 2010-03-21  Bruno Haible  <bruno@clisp.org>
70297         Fix comments.
70298         * lib/forkpty.c (rpl_forkpty): Fix comment.
70299         * lib/openpty.c (rpl_openpty): Likewise.
70300         Reported by Eric Blake.
70302 2010-03-22  Eric Blake  <eblake@redhat.com>
70304         gethostname: fix build on mingw
70305         * lib/unistd.in.h (includes): Work around fact that mingw
70306         <winsock2.h> re-includes <unistd.h>, by avoiding any
70307         redeclarations if we are being included by <winsock2.h>.
70308         Reported by Matthias Bolte.
70310 2010-03-21  Bruno Haible  <bruno@clisp.org>
70312         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70313         * lib/forkpty.c (forkpty): New replacement function, from glibc with
70314         modifications.
70315         * lib/pty.in.h (forkpty): Update declaration. Add comments.
70316         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
70317         provide the replacement.
70318         * modules/forkpty (Depends-on): Add openpty, login_tty.
70319         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
70320         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
70321         * doc/glibc-functions/forkpty.texi: More supported platforms.
70322         * config/srclist.txt: Add forkpty.c (commented).
70324 2010-03-21  Bruno Haible  <bruno@clisp.org>
70326         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
70327         (Makefile.am): Verify that PTY_LIB is defined.
70329         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
70331 2010-03-21  Bruno Haible  <bruno@clisp.org>
70333         Tests for module 'login_tty'.
70334         * modules/login_tty-tests: New file.
70335         * tests/test-login_tty.c: New file.
70337         New module 'login_tty'.
70338         * lib/login_tty.c: New file.
70339         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
70340         * modules/login_tty: New file.
70341         * doc/glibc-functions/login_tty.texi: Mention the new module.
70343 2010-03-21  Bruno Haible  <bruno@clisp.org>
70345         login_tty: Documentation.
70346         * doc/glibc-functions/login_tty.texi: New file.
70347         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70349 2010-03-21  Bruno Haible  <bruno@clisp.org>
70351         pty: Consistent macro naming.
70352         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70353         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70354         * modules/pty (configure.ac): Update.
70356 2010-03-21  Bruno Haible  <bruno@clisp.org>
70358         Tests for openpty: Make stricter.
70359         * tests/test-openpty.c (main): Add test of canonical processing and
70360         erase.
70361         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70363         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70364         * lib/openpty.c (openpty): New replacement function.
70365         * lib/pty.in.h: Include <termios.h>.
70366         (openpty): Update declaration. Add comments.
70367         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70368         is not declared, arrange to provide the replacement. Check for _getpty
70369         and posix_openpt.
70370         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70371         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70372         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70373         * modules/pty-tests (test_pty_c___LDADD): New variable.
70374         * doc/glibc-functions/openpty.texi: More supported platforms.
70376 2010-03-21  Bruno Haible  <bruno@clisp.org>
70378         setenv: Tweaks.
70379         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70380         the test program.
70381         * doc/posix-functions/setenv.texi: Update platforms list.
70383 2010-03-21  Bruno Haible  <bruno@clisp.org>
70385         New module 'unlockpt'.
70386         * lib/unlockpt.c: New file, from glibc with modifications.
70387         * m4/unlockpt.m4: New file.
70388         * modules/unlockpt: New file.
70389         * lib/stdlib.in.h (unlockpt): New declaration.
70390         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70391         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70392         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70393         HAVE_UNLOCKPT.
70394         * doc/posix-functions/unlockpt.texi: Mention the new module.
70395         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70396         * config/srclist.txt: Add unlockpt.c (commented).
70398 2010-03-21  Jim Meyering  <meyering@redhat.com>
70400         maint.mk: prohibit inclusion of "intprops.h" without use
70401         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70403 2010-03-21  Bruno Haible  <bruno@clisp.org>
70405         New module 'grantpt'.
70406         * lib/grantpt.c: New file, from glibc with modifications.
70407         * m4/grantpt.m4: New file.
70408         * modules/grantpt: New file.
70409         * lib/stdlib.in.h (grantpt): New declaration.
70410         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70411         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70412         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70413         HAVE_GRANTPT.
70414         * doc/posix-functions/grantpt.texi: Mention the new module.
70415         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70416         * config/srclist.txt: Add grantpt.c (commented).
70418 2010-03-21  Bruno Haible  <bruno@clisp.org>
70420         New module 'pt_chown'.
70421         * lib/pt_chown.c: New file, from glibc with modifications.
70422         * lib/pty-private.h: New file, from glibc with modifications.
70423         * modules/pt_chown: New file.
70424         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70426 2010-03-21  Bruno Haible  <bruno@clisp.org>
70428         Tests for module 'ptsname'.
70429         * modules/ptsname-tests: New file.
70430         * tests/test-ptsname.c: New file.
70432         New module 'ptsname'.
70433         * lib/ptsname.c: New file, from glibc with modifications.
70434         * m4/ptsname.m4: New file.
70435         * modules/ptsname: New file.
70436         * lib/stdlib.in.h (ptsname): New declaration.
70437         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70438         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70439         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70440         HAVE_PTSNAME.
70441         * doc/posix-functions/ptsname.texi: Mention the new module.
70442         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70443         * config/srclist.txt: Add ptsname.c (commented).
70445 2010-03-21  Bruno Haible  <bruno@clisp.org>
70447         Tests for module 'ttyname_r'.
70448         * modules/ttyname_r-tests: New file.
70449         * tests/test-ttyname_r.c: New file.
70451         New module 'ttyname_r'.
70452         * lib/ttyname_r.c: New file.
70453         * m4/ttyname_r.m4: New file.
70454         * modules/ttyname_r: New file.
70455         * lib/unistd.in.h (ttyname_r): New declaration.
70456         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
70457         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
70458         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
70459         HAVE_TTYNAME_R.
70460         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
70461         * doc/posix-functions/ttyname_r.texi: Mention the new module.
70463 2010-03-20  Bruno Haible  <bruno@clisp.org>
70465         signal: Undefine macro definitions in C++ mode.
70466         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
70467         sigfillset): Undefine macro definitions from the system header in C++
70468         mode.
70469         Reported by John W. Eaton <jwe@gnu.org>.
70471 2010-03-20  Bruno Haible  <bruno@clisp.org>
70473         Ensure no #include statements inside extern "C" { ... }.
70474         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
70475         contain #include statements.
70476         * lib/time.in.h: Likewise.
70478 2010-03-20  Bruno Haible  <bruno@clisp.org>
70480         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
70481         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
70482         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
70483         Reported by John W. Eaton <jwe@gnu.org>.
70485 2010-03-20  Bruno Haible  <bruno@clisp.org>
70487         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
70488         Reported by Jim Meyering.
70490 2010-03-20  Bruno Haible  <bruno@clisp.org>
70492         pipe: Set errno upon failure.
70493         * lib/pipe.h: Specify that when -1 is returned, errno is set.
70494         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70495         errno value in error message.
70497 2010-03-20  Bruno Haible  <bruno@clisp.org>
70498             Jim Meyering  <meyering@redhat.com>
70500         lchown: Avoid "unused variable" warning.
70501         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
70503 2010-03-20  Bruno Haible  <bruno@clisp.org>
70505         Work around unlink() bug on MacOS X 10.5.6.
70506         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
70507         attempting to unlink a parent directory.
70508         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
70509         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
70510         activate for the replacement function.
70511         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
70513 2010-03-20  Bruno Haible  <bruno@clisp.org>
70515         Fix link errors on Solaris 8.
70516         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
70517         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
70519 2010-03-19  Jim Meyering  <meyering@redhat.com>
70521         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
70522         The _LIBC implementation of build_range_exp correctly honors the
70523         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
70524         However, the non-_LIBC implementation would ignore that syntax-bit
70525         flag and return REG_ERANGE unconditionally.
70526         This change makes it honor that flag.
70527         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
70528         Make two pointer parameters "const".
70529         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
70530         (parse_bracket_exp): Update caller.
70532         regex.m4: correct the reversed range endpoint ([b-a]) test
70533         * m4/regex.m4: When requiring that [b-a] evoke failure,
70534         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
70535         test pass once again for x86-based systems.
70537 2010-03-19  Bruno Haible  <bruno@clisp.org>
70539         scandir: Fix link error on Solaris 8.
70540         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
70541         macros.
70543 2010-03-19  Bruno Haible  <bruno@clisp.org>
70545         getusershell: Fix documentation.
70546         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
70547         module.
70548         * doc/glibc-functions/setusershell.texi: Likewise.
70550         getusershell: Provide declaration, missing on Solaris 9.
70551         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
70552         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
70553         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
70554         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
70555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70556         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
70557         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
70558         HAVE_GETUSERSHELL.
70559         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
70561 2010-03-19  Bruno Haible  <bruno@clisp.org>
70563         wctype: Provide iswblank function.
70564         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
70565         exists and is fine.
70566         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
70567         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
70568         * tests/test-wctype.c (main): Re-enable the iswblank tests.
70569         * doc/posix-functions/iswblank.texi: Update.
70571 2010-03-19  Bruno Haible  <bruno@clisp.org>
70573         Tests of module 'pty' in C++ mode.
70574         * modules/pty-tests: New file.
70575         * tests/test-pty-c++.cc: New file.
70576         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70578 2010-03-19  Eric Blake  <eblake@redhat.com>
70580         logb: fix documentation
70581         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
70582         1.5 declaration bug.
70584         forkpty, openpty: prefer glibc's const-safe prototype
70585         * lib/forkpty.c (rpl_forkpty): New file.
70586         * lib/openpty.c (rpl_openpty): Likewise.
70587         * modules/forkpty (Files): Distribute it.
70588         * modules/openpty (Files): Likewise.
70589         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70590         check...
70591         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70592         replacement for non-const BSD signature.
70593         * modules/pty (Makefile.am): Substitute witnesses.
70594         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70595         * tests/test-forkpty.c: Update signature check.
70596         * tests/test-openpty.c: Likewise.
70597         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
70598         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70600         forkpty, openpty: split functions into new modules
70601         * modules/pty (Makefile.am): Substitute new witnesses.
70602         (Libraries): Move library detection...
70603         * modules/forkpty: ...into new module.
70604         * modules/openpty: Another new module.
70605         * modules/pty-tests: Rename and split...
70606         * modules/forkpty-tests: ...to this...
70607         * modules/openpty-tests: ...and this.
70608         * tests/test-pty.c: Rename and split...
70609         * tests/test-forkpty.c: ...to this...
70610         * tests/test-openpty.c: ...and this.
70611         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
70612         (gl_PTY): Split library searching...
70613         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
70614         (gl_FORKPTY, gl_OPENPTY): New macros.
70615         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
70616         * NEWS: Mention the split.
70617         * MODULES.html.sh (Misc): Document the modules.
70618         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
70619         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70621         pty: improve replacement header
70622         * lib/pty.in.h: New file.
70623         * modules/pty (Files): Ship it.
70624         (Makefile.am): Always build replacement.
70625         * m4/pty.m4: Rename...
70626         * m4/pty_h.m4: ...to this.
70627         (gl_PTY): Modernize setting of witness macros; update check of
70628         forkpty to take proper advantage of cache.
70629         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
70631         getopt: avoid compiler warning
70632         * lib/getopt.c (attribute_hidden): Remove unused macro.
70634 2010-03-18  Bruno Haible  <bruno@clisp.org>
70636         Fix link errors on Solaris 8.
70637         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
70638         * modules/search-tests (test_search_c___LDADD): Likewise.
70639         * modules/signal-tests (test_signal_c___LDADD): Likewise.
70640         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
70641         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
70642         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
70643         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
70644         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
70645         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
70647 2010-03-18  Bruno Haible  <bruno@clisp.org>
70649         Fix bug introduced on 2010-03-14.
70650         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
70651         (gl_SPAWN_H): Require it.
70652         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
70653         Reported by Simon Josefsson.
70655 2010-03-18  Bruno Haible  <bruno@clisp.org>
70657         Fix typo introduced on 2009-12-31.
70658         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
70659         posix_spawn_file_actions_adddup2.
70661 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70662         and Eric Blake  <eblake@redhat.com>
70664         test-vc-list-files-git: make more robust
70665         * tests/test-vc-list-files-git.sh: Unset problematic environment
70666         variables.  Chain commands together.
70668 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70670         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70671         `AC_CHECK_DECL' invocation.
70673 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70675         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70676         appears before executable statements. Suggested by Petr Sumbera
70677         <Petr.Sumbera@Sun.COM>.
70679 2010-03-14  Bruno Haible  <bruno@clisp.org>
70681         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70682         portability problems. Instead use a simpler test.
70683         (main): Check that invalid arguments are rejected only on Linux.
70685 2010-03-14  Bruno Haible  <bruno@clisp.org>
70687         Fix bug introduced on 2009-12-31.
70688         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70689         gl_PREREQ_SYS_H_WINSOCK2 always.
70690         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70691         SYS_SOCKET_H variable.
70692         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70693         Update comments.
70694         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70695         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70696         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70697         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70698         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70700 2010-03-14  Bruno Haible  <bruno@clisp.org>
70702         Fix values returned by sinl, cosl.
70703         * lib/trigl.h: Add specification comments.
70704         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70705         that combines the values from the precomputed table with the values of
70706         the Chebyshev polynomials.
70708 2010-03-14  Bruno Haible  <bruno@clisp.org>
70710         Fix compilation error when modules 'posix_spawn[p]' are not used.
70711         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70712         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70714 2010-03-14  Bruno Haible  <bruno@clisp.org>
70716         Fix compilation error on mingw when module 'time_r' is not used.
70717         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70718         is 1.
70719         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70720         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70721         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70722         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70724 2010-03-14  Bruno Haible  <bruno@clisp.org>
70726         Fix compilation error with Sun C.
70727         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70728         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70729         instead of GCC specific ULONG_LONG_MAX.
70730         * lib/xstrtoll.c: Likewise.
70731         * lib/xstrtoull.c: Likewise.
70733 2010-03-13  Bruno Haible  <bruno@clisp.org>
70735         Allow the user to disable C++ code and tests.
70736         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70737         (gl_PROG_ANSI_CXX): Require it.
70739 2010-03-13  Bruno Haible  <bruno@clisp.org>
70741         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70742         cases.
70744 2010-03-13  Bruno Haible  <bruno@clisp.org>
70746         Test that gnulib does not break the standard C++ headers.
70747         * tests/test-locale-c++2.cc: New file.
70748         * modules/locale-tests (Files): Add it.
70749         (Makefile.am): Compile it for test-locale-c++.
70750         * tests/test-math-c++2.cc: New file.
70751         * modules/math-tests (Files): Add it.
70752         (Makefile.am): Compile it for test-math-c++.
70753         * tests/test-signal-c++2.cc: New file.
70754         * modules/signal-tests (Files): Add it.
70755         (Makefile.am): Compile it for test-signal-c++.
70756         * tests/test-stdio-c++2.cc: New file.
70757         * modules/stdio-tests (Files): Add it.
70758         (Makefile.am): Compile it for test-stdio-c++.
70759         * tests/test-stdlib-c++2.cc: New file.
70760         * modules/stdlib-tests (Files): Add it.
70761         (Makefile.am): Compile it for test-stdlib-c++.
70762         * tests/test-string-c++2.cc: New file.
70763         * modules/string-tests (Files): Add it.
70764         (Makefile.am): Compile it for test-string-c++.
70765         * tests/test-time-c++2.cc: New file.
70766         * modules/time-tests (Files): Add it.
70767         (Makefile.am): Compile it for test-time-c++.
70768         Reported by John W. Eaton <jwe@gnu.org>.
70770 2010-03-13  Bruno Haible  <bruno@clisp.org>
70772         * gnulib-tool (func_usage): Clarify which options are available for
70773         --create-testdir and --create-megatestdir.
70775 2010-03-13  Bruno Haible  <bruno@clisp.org>
70777         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70778         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70779         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70780         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70781         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70782         when appropriate.
70783         Reported by Jim Meyering.
70785 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70787         * gnulib-tool (func_import): Explain origin of code.
70789 2010-03-12  Bruno Haible  <bruno@clisp.org>
70791         Fix problem with automake's definition of CXXLINK.
70792         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70793         Reported by Simon Josefsson and Ludovic Courtès.
70795 2010-03-12  Bruno Haible  <bruno@clisp.org>
70797         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70798         stable releases.
70800 2010-03-11  Bruno Haible  <bruno@clisp.org>
70802         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70803         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70804         whether the system provides one variant or multiple variants of the
70805         function.
70806         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70807         C++ compilers.
70808         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70809         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70810         Reported by Jim Meyering.
70812 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70814         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70816 2010-03-08  Bruno Haible  <bruno@clisp.org>
70818         gnulib-tool: Add support for --libtool in --create-testdir.
70819         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70820         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70822 2010-03-08  Eric Blake  <eblake@redhat.com>
70824         gnulib-tool.texi: mention possibility of git submodule
70825         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70826         submodules.
70827         * doc/.gitignore: Ignore another generated file.
70829 2010-03-08  Karl Berry  <karl@gnu.org>
70831         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70832         of committing gnulib files while skipping others.
70834 2010-03-07  Bruno Haible  <bruno@clisp.org>
70836         Tests of module 'wctype' in C++ mode.
70837         * tests/test-wctype-c++.cc: New file.
70838         * modules/wctype-tests (Files): Add it and tests/signature.h.
70839         (Depends-on): Add ansi-c++-opt.
70840         (Makefile.am): Arrange to compile and run test-wctype-c++.
70842         Tests of module 'wchar' in C++ mode.
70843         * tests/test-wchar-c++.cc: New file.
70844         * modules/wchar-tests (Files): Add it and tests/signature.h.
70845         (Depends-on): Add ansi-c++-opt.
70846         (Makefile.am): Arrange to compile and run test-wchar-c++.
70847         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70848         gl_MODULE_INDICATOR.
70850         Tests of module 'unistd' in C++ mode.
70851         * tests/test-unistd-c++.cc: New file.
70852         * modules/unistd-tests (Files): Add it and tests/signature.h.
70853         (Depends-on): Add ansi-c++-opt.
70854         (Makefile.am): Arrange to compile and run test-unistd-c++.
70855         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70856         gl_MODULE_INDICATOR.
70858         Tests of module 'time' in C++ mode.
70859         * tests/test-time-c++.cc: New file.
70860         * modules/time-tests (Files): Add it and tests/signature.h.
70861         (Depends-on): Add ansi-c++-opt.
70862         (Makefile.am): Arrange to compile and run test-time-c++.
70863         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70865         Tests of module 'sys_time' in C++ mode.
70866         * tests/test-sys_time-c++.cc: New file.
70867         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70868         (Depends-on): Add ansi-c++-opt.
70869         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70870         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70871         gl_MODULE_INDICATOR.
70873         Tests of module 'sys_stat' in C++ mode.
70874         * tests/test-sys_stat-c++.cc: New file.
70875         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70876         (Depends-on): Add ansi-c++-opt.
70877         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70878         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70879         gl_MODULE_INDICATOR.
70881         Tests of module 'sys_socket' in C++ mode.
70882         * tests/test-sys_socket-c++.cc: New file.
70883         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70884         (Depends-on): Add ansi-c++-opt.
70885         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70886         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70887         gl_MODULE_INDICATOR.
70889         Tests of module 'sys_select' in C++ mode.
70890         * tests/test-sys_select-c++.cc: New file.
70891         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70892         (Depends-on): Add ansi-c++-opt.
70893         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70894         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70895         gl_MODULE_INDICATOR.
70897         Tests of module 'sys_ioctl' in C++ mode.
70898         * tests/test-sys_ioctl-c++.cc: New file.
70899         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70900         (Depends-on): Add ansi-c++-opt.
70901         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70902         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70903         gl_MODULE_INDICATOR.
70905         Tests of module 'string' in C++ mode.
70906         * tests/test-string-c++.cc: New file.
70907         * modules/string-tests (Files): Add it and tests/signature.h.
70908         (Depends-on): Add ansi-c++-opt.
70909         (Makefile.am): Arrange to compile and run test-string-c++.
70910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70911         gl_MODULE_INDICATOR.
70913         Tests of module 'stdlib' in C++ mode.
70914         * tests/test-stdlib-c++.cc: New file.
70915         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70916         (Depends-on): Add ansi-c++-opt.
70917         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70918         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70919         gl_MODULE_INDICATOR.
70921         Tests of module 'stdio' in C++ mode.
70922         * tests/test-stdio-c++.cc: New file.
70923         * modules/stdio-tests (Files): Add it and tests/signature.h.
70924         (Depends-on): Add ansi-c++-opt.
70925         (Makefile.am): Arrange to compile and run test-stdio-c++.
70926         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70927         gl_MODULE_INDICATOR.
70929         Tests of module 'spawn' in C++ mode.
70930         * tests/test-spawn-c++.cc: New file.
70931         * modules/spawn-tests (Files): Add it and tests/signature.h.
70932         (Depends-on): Add ansi-c++-opt.
70933         (Makefile.am): Arrange to compile and run test-spawn-c++.
70934         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70935         gl_MODULE_INDICATOR.
70937         Tests of module 'signal' in C++ mode.
70938         * tests/test-signal-c++.cc: New file.
70939         * modules/signal-tests (Files): Add it and tests/signature.h.
70940         (Depends-on): Add ansi-c++-opt.
70941         (Makefile.am): Arrange to compile and run test-signal-c++.
70942         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70943         gl_MODULE_INDICATOR.
70945         Tests of module 'search' in C++ mode.
70946         * tests/test-search-c++.cc: New file.
70947         * modules/search-tests (Files): Add it and tests/signature.h.
70948         (Depends-on): Add ansi-c++-opt.
70949         (Makefile.am): Arrange to compile and run test-search-c++.
70950         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70951         gl_MODULE_INDICATOR.
70953         Tests of module 'math' in C++ mode.
70954         * tests/test-math-c++.cc: New file.
70955         * modules/math-tests (Files): Add it and tests/signature.h.
70956         (Depends-on): Add ansi-c++-opt.
70957         (Makefile.am): Arrange to compile and run test-math-c++.
70958         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70960         Tests of module 'locale' in C++ mode.
70961         * tests/test-locale-c++.cc: New file.
70962         * modules/locale-tests (Files): Add it and tests/signature.h.
70963         (Depends-on): Add ansi-c++-opt.
70964         (Makefile.am): Arrange to compile and run test-locale-c++.
70965         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70966         gl_MODULE_INDICATOR.
70968         Tests of module 'langinfo' in C++ mode.
70969         * tests/test-langinfo-c++.cc: New file.
70970         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70971         (Depends-on): Add ansi-c++-opt.
70972         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70973         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70974         gl_MODULE_INDICATOR.
70976         Tests of module 'iconv-h' in C++ mode.
70977         * tests/test-iconv-h-c++.cc: New file.
70978         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70979         (Depends-on): Add ansi-c++-opt.
70980         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70982         Tests of module 'glob' in C++ mode.
70983         * tests/test-glob-c++.cc: New file.
70984         * modules/glob-tests (Files): Add it.
70985         (Depends-on): Add ansi-c++-opt.
70986         (Makefile.am): Arrange to compile and run test-glob-c++.
70988         Tests of module 'fcntl-h' in C++ mode.
70989         * tests/test-fcntl-h-c++.cc: New file.
70990         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70991         (Depends-on): Add ansi-c++-opt.
70992         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70993         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70994         gl_MODULE_INDICATOR.
70996         Tests of module 'dirent' in C++ mode.
70997         * tests/test-dirent-c++.cc: New file.
70998         * modules/dirent-tests (Files): Add it and tests/signature.h.
70999         (Depends-on): Add ansi-c++-opt.
71000         (Makefile.am): Arrange to compile and run test-dirent-c++.
71001         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71002         gl_MODULE_INDICATOR.
71004         New module 'ansi-c++-opt'.
71005         * modules/ansi-c++-opt: New file.
71006         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
71008         Document C++ namespace mode.
71009         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
71011         wctype: Avoid #define replacements in C++ mode.
71012         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
71013         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
71014         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
71015         In C++, define a namespaced alias symbol.
71016         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
71017         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
71018         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
71019         rule.
71021         wchar: Avoid #define replacements in C++ mode.
71022         * lib/wchar.in.h: Include c++defs.h.
71023         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
71024         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
71025         symbol.
71026         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
71027         * modules/wchar (Depends-on): Add c++defs.
71028         (Makefile.am): Update wchar.h rule.
71030         unistd: Avoid #define replacements in C++ mode.
71031         * lib/unistd.in.h: Include c++defs.h.
71032         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
71033         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
71034         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
71035         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
71036         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
71037         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
71038         symbol.
71039         (environ): Update.
71040         * modules/unistd (Depends-on): Add c++defs.
71041         (Makefile.am): Update unistd.h rule.
71043         time: Avoid #define replacements in C++ mode.
71044         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
71045         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
71046         define a namespaced alias symbol.
71047         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
71048         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
71049         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
71050         * modules/time (Depends-on): Add c++defs, warn-on-use.
71051         (Makefile.am): Update time.h rule.
71052         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71053         * modules/nanosleep (configure.ac): Likewise.
71054         * modules/strptime (configure.ac): Likewise.
71055         * modules/timegm (configure.ac): Likewise.
71057         sys_time: Avoid #define replacements in C++ mode.
71058         * lib/sys_time.in.h: Include c++defs.h.
71059         (gettimeofday): In C++, define a namespaced alias symbol.
71060         * modules/sys_time (Depends-on): Add c++defs.
71061         (Makefile.am): Update sys/time.h rule.
71063         sys_stat: Avoid #define replacements in C++ mode.
71064         * lib/sys_stat.in.h: Include c++defs.h.
71065         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
71066         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
71067         namespaced alias symbol.
71068         In C++, define a namespaced alias symbol.
71069         * modules/sys_stat (Depends-on): Add c++defs.
71070         (Makefile.am): Update sys/stat.h rule.
71072         sys_socket: Avoid #define replacements in C++ mode.
71073         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
71074         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
71075         definitions also when the system has a <sys/socket.h>.
71076         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71077         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
71078         In C++, define a namespaced alias symbol.
71079         * modules/sys_socket (Depends-on): Add c++defs.
71080         (Makefile.am): Update sys/socket.h rule.
71082         sys_select: Avoid #define replacements in C++ mode.
71083         * lib/sys_select.in.h: Include c++defs.h. Enable the function
71084         definitions also when the system has a <sys/select.h>.
71085         (select): In C++, define a namespaced alias symbol.
71086         * modules/sys_select (Depends-on): Add c++defs.
71087         (Makefile.am): Update sys/select.h rule.
71089         sys_ioctl: Avoid #define replacements in C++ mode.
71090         * lib/sys_ioctl.in.h: Include c++defs.h.
71091         (ioctl): In C++, define a namespaced alias symbol.
71092         * modules/sys_ioctl (Depends-on): Add c++defs.
71093         (Makefile.am): Update sys/ioctl.h rule.
71095         string: Avoid #define replacements in C++ mode.
71096         * lib/string.in.h: Include c++defs.h.
71097         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
71098         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71099         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71100         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
71101         strsignal, strverscmp): In C++, define a namespaced alias symbol.
71102         * modules/string (Depends-on): Add c++defs.
71103         (Makefile.am): Update string.h rule.
71105         stdlib: Avoid #define replacements in C++ mode.
71106         * lib/stdlib.in.h: Include c++defs.h.
71107         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
71108         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
71109         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
71110         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
71111         symbol.
71112         * modules/stdlib (Depends-on): Add c++defs.
71113         (Makefile.am): Update stdlib.h rule.
71115         stdio: Avoid #define replacements in C++ mode.
71116         * lib/stdio.in.h: Include c++defs.h.
71117         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
71118         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
71119         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
71120         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
71121         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
71122         namespaced alias symbol.
71123         * modules/stdio (Depends-on): Add c++defs.
71124         (Makefile.am): Update stdio.h rule.
71126         spawn: Avoid #define replacements in C++ mode.
71127         * lib/spawn.in.h: Include c++defs.h.
71128         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71129         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71130         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71131         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71132         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71133         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71134         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71135         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71136         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71137         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71138         In C++, define a namespaced alias symbol.
71139         * modules/spawn (Depends-on): Add c++defs.
71140         (Makefile.am): Update spawn.h rule.
71142         signal: Avoid #define replacements in C++ mode.
71143         * lib/signal.in.h: Include c++defs.h.
71144         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71145         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
71146         namespaced alias symbol.
71147         * modules/signal (Depends-on): Add c++defs.
71148         (Makefile.am): Update signal.h rule.
71150         search: Avoid #define replacements in C++ mode.
71151         * lib/search.in.h: Include c++defs.h.
71152         (_gl_search_compar_fn, _gl_search_action_fn): New types.
71153         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
71154         symbol.
71155         * modules/search (Depends-on): Add c++defs.
71156         (Makefile.am): Update search.h rule.
71158         math: Avoid #define replacements in C++ mode.
71159         * lib/math.in.h: Include c++defs.h.
71160         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
71161         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
71162         trunc, truncl): In C++, define a namespaced alias symbol.
71163         * modules/math (Depends-on): Add c++defs.
71164         (Makefile.am): Update math.h rule.
71166         locale: Avoid #define replacements in C++ mode.
71167         * lib/locale.in.h: Include c++defs.h.
71168         (duplocale): In C++, define a namespaced alias symbol.
71169         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
71170         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
71171         * modules/locale (Depends-on): Add c++defs.
71172         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71174         langinfo: Avoid #define replacements in C++ mode.
71175         * lib/langinfo.in.h: Include c++defs.h.
71176         (nl_langinfo): In C++, define a namespaced alias symbol.
71177         * modules/langinfo (Depends-on): Add c++defs.
71178         (Makefile.am): Update langinfo.h rule.
71180         iconv-h: Avoid #define replacements in C++ mode.
71181         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
71182         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
71183         symbol.
71184         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71185         whenever iconv is present.
71186         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
71187         (Makefile.am): Update iconv.h rule.
71189         glob: Avoid #define replacements in C++ mode.
71190         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
71191         (_gl_glob_errfunc_fn): New type.
71192         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
71193         symbol.
71194         * modules/glob (Depends-on): Add c++defs, warn-on-use.
71195         (Makefile.am): Update glob.h rule.
71197         fcntl-h: Avoid #define replacements in C++ mode.
71198         * lib/fcntl.in.h: Include c++defs.h.
71199         (fcntl, open, openat): In C++, define a namespaced alias symbol.
71200         * modules/fcntl-h (Depends-on): Add c++defs.
71201         (Makefile.am): Update fcntl.h rule.
71203         dirent: Avoid #define replacements in C++ mode.
71204         * lib/dirent.in.h: Include c++defs.h.
71205         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
71206         namespaced alias symbol.
71207         (dirfd): Update declaration.
71208         * modules/dirent (Depends-on): Add c++defs.
71209         (Makefile.am): Update dirent.h rule.
71211         ctype: Make it usable in C++ code.
71212         * lib/ctype.in.h: Include c++defs.h.
71213         (isblank): Declare as extern "C".
71214         * modules/ctype (Depends-on): Add c++defs.
71215         (Makefile.am): Update ctype.h rule.
71217         New module 'c++defs'.
71218         * modules/c++defs: New file.
71219         * build-aux/c++defs.h: New file.
71220         Reported by John W. Eaton <jwe@gnu.org>.
71222 2010-03-07  Bruno Haible  <bruno@clisp.org>
71224         logb: Provide missing declaration for Cygwin.
71225         * lib/math.in.h (logb): New declaration.
71226         * m4/logb.m4: New file.
71227         * modules/logb (Files): Add m4/logb.m4.
71228         (Depends-on): Add math.
71229         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
71230         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
71231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
71232         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
71233         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
71235 2010-03-07  Bruno Haible  <bruno@clisp.org>
71237         Fix test-cond link error.
71238         * tests/test-cond.c: Include <stdio.h>.
71240 2010-03-07  Bruno Haible  <bruno@clisp.org>
71242         Fix test-dirent-safer link error.
71243         * modules/dirent-safer-tests (Makefile.am): Define
71244         test_dirent_safer_LDADD.
71246 2010-03-07  Bruno Haible  <bruno@clisp.org>
71248         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
71249         among default module list.
71251 2010-03-07  Bruno Haible  <bruno@clisp.org>
71253         Fix link error on platforms with GNU libiconv.
71254         * modules/unistr/u8-strcoll-tests (Makefile): Define
71255         test_u8_strcoll_LDADD.
71256         * modules/unistr/u16-strcoll-tests (Makefile): Define
71257         test_u16_strcoll_LDADD.
71258         * modules/unistr/u32-strcoll-tests (Makefile): Define
71259         test_u32_strcoll_LDADD.
71261 2010-03-07  Bruno Haible  <bruno@clisp.org>
71263         Use POSIX declarations for socket functions.
71264         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
71265         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
71266         rpl_sendto): Change declaration to match POSIX.
71267         * lib/connect.c (rpl_connect): Likewise.
71268         * lib/accept.c (rpl_accept): Likewise.
71269         * lib/bind.c (rpl_bind): Likewise.
71270         * lib/getpeername.c (rpl_getpeername): Likewise.
71271         * lib/getsockname.c (rpl_getsockname): Likewise.
71272         * lib/recv.c (rpl_recv): Likewise.
71273         * lib/send.c (rpl_send): Likewise.
71274         * lib/recvfrom.c (rpl_recvfrom): Likewise.
71275         * lib/sendto.c (rpl_sendto): Likewise.
71277 2010-03-06  Bruno Haible  <bruno@clisp.org>
71279         Clarify access, euidaccess, faccessat.
71280         * doc/posix-functions/faccessat.texi: Mention security problem under
71281         "Other problems", not "Portability problems".
71282         * doc/posix-functions/access.texi: Likewise. Mention a related security
71283         problem.
71284         * doc/glibc-functions/euidaccess.texi: Mention security problems.
71285         * lib/euidaccess.c: Add comments about platforms.
71286         * lib/unistd.in.h (access, euidaccess): Add warnings.
71288 2010-03-07  Bruno Haible  <bruno@clisp.org>
71290         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
71291         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
71292         (POSIX_SPAWN_SETSCHEDULER): Likewise.
71293         (POSIX_SPAWN_USEVFORK): Define in a way that works when
71294         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71295         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
71296         declare when POSIX_SPAWN_SETSCHEDULER is zero.
71297         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
71298         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
71299         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
71300         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
71301         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
71302         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
71303         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
71304         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
71305         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
71306         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
71307         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
71308         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
71309         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
71310         Likewise.
71311         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
71312         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
71313         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
71314         Likewise.
71315         * tests/test-spawn.c (main): Make it work when
71316         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71318 2010-03-07  Bruno Haible  <bruno@clisp.org>
71320         Fix incorrect Makefile.am generation in German locale.
71321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71322         Execute sed command with character range in C locale.
71324 2010-03-06  Bruno Haible  <bruno@clisp.org>
71326         Tests for module 'iconv-h'.
71327         * modules/iconv-h-tests: New file.
71328         * tests/test-iconv-h.c: New file.
71330         New module 'iconv-h'.
71331         * modules/iconv-h: New file.
71332         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
71333         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
71334         (configure.ac): Remove gl_ICONV_H.
71335         (Makefile.am): Remove rule for iconv.h.
71337 2010-03-06  Bruno Haible  <bruno@clisp.org>
71339         More consistent naming of *.m4 files.
71340         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
71341         * modules/wctype (Files): Update.
71343         More consistent naming of *.m4 files.
71344         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71345         * modules/wchar (Files): Update.
71347 2010-03-06  Jim Meyering  <meyering@redhat.com>
71349         euidaccess: relax license to LGPLv2+
71350         * modules/euidaccess (License): Relax to LGPLv2+.
71352 2010-03-06  Bruno Haible  <bruno@clisp.org>
71354         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71355         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71356         (Makefile.am): Augment lib_SOURCES instead.
71358 2010-03-04  Jim Meyering  <meyering@redhat.com>
71360         utime: remove obsolete module
71361         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71362         unnecessary for years, and has been marked as obsolete for 10 months.
71363         * modules/utime: Remove file.
71364         * lib/utime.c: Remove file.
71365         * m4/utime.m4: Remove file.
71366         * m4/utimes-null.m4: Remove file.
71367         * doc/posix-functions/utime.texi (utime): Remove reference to
71368         the module.  Move the sole "fixed by gnulib" item into the
71369         "problems not fixed by Gnulib" list.
71370         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71372 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71374         * modules/exit (License): Relax license to LGPLv2+.
71375         (Status): Mark as obsolete.
71376         * NEWS: Mention deprecated 'exit' module.
71377         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71378         of now obsolete 'exit'.
71380 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71382         fts-lgpl: remove unused module
71383         * modules/fts-lgpl: Remove.
71384         * MODULES.html.sh (func_all_modules): Adjust.
71385         * check-module (find_included_lib_files): Adjust.
71386         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71388 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71390         copy-acl: enhance Solaris ACL error handling
71391         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71392         * lib/set-mode-acl.c (qset_acl): Likewise.
71394 2010-03-02  Bruno Haible  <bruno@clisp.org>
71396         spawn: Don't override the system defined values on FreeBSD 8.
71397         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71398         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71399         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71400         if HAVE_POSIX_SPAWN is 1.
71401         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71403 2010-03-01  Bruno Haible  <bruno@clisp.org>
71405         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71406         regarding Automake.
71408 2010-02-25  Bruno Haible  <bruno@clisp.org>
71410         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71411         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71412         setting, not afterwards.
71413         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71415 2010-02-24  Eric Blake  <eblake@redhat.com>
71417         bootstrap, git-version-gen: use timestamp
71418         * build-aux/git-version-gen (scriptversion): Force UTC.
71419         * build-aux/bootstrap (scriptversion): New variable.
71421         bootstrap: allow older git
71422         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71423         older than 1.6.4.  Requested by the libvirt project.
71425 2010-02-23  Eric Blake  <eblake@redhat.com>
71427         warn-on-use: work with old autoconf
71428         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71429         AS_VAR semantics of autoconf 2.60.
71430         Reported by Bruno Haible.
71432         bootstrap: improve some comments
71433         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71434         clarification comments.
71436         gettimeofday: provide correct function
71437         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71438         when replacement is declared, otherwise provide gettimeofday.
71439         Reported by Michael Goffioul.
71441 2010-02-23  Jim Meyering  <meyering@redhat.com>
71443         lib-ignore: relax license to "unlimited", not LGPLv2+
71444         * modules/lib-ignore (License): Relax to "unlimited".
71446 2010-02-23  Jim Meyering  <meyering@redhat.com>
71448         lib-ignore: relax license to LGPLv2+
71449         * modules/lib-ignore (License): Relax to LGPLv2+.
71451 2010-02-22  Eric Blake  <eblake@redhat.com>
71453         lseek: avoid bash 3.2 broken pipe bug
71454         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
71455         warning from bash 3.2.
71456         Reported by Ben Pfaff, with analysis from Bruno Haible.
71458         bootstrap: support non-FSF copyright holder
71459         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
71460         bootstrap.conf override of COPYRIGHT_HOLDER.
71461         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
71463         bootstrap: interoperate with gettext 0.14.1
71464         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
71466         bootstrap: allow for alternate submodule location
71467         * build-aux/bootstrap (gnulib_path): New variable; use instead of
71468         hardcoding submodule location.
71469         (gnulib_mk): Allow direct use of Makefile.am.
71471         bootstrap: use GNULIB_SRCDIR to reduce disk usage
71472         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
71473         rather than reconfiguring where the submodule points.
71475         gettimeofday: restore support for platforms that lack function
71476         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
71477         replacement if function is missing.
71478         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
71479         * modules/sys_time (Makefile.am): Substitute it.
71480         * lib/sys_time.in.h (gettimeofday): Check it.
71481         Reported by Michael Goffioul.
71483 2010-02-21  Bruno Haible  <bruno@clisp.org>
71485         * lib/stdio.in.h (obstack_printf): Fix typo.
71487 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
71489         vc-list-files: use bzr ls's -R option
71490         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
71491         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
71493 2010-02-21  Jim Meyering  <meyering@redhat.com>
71495         init.sh: fix EXEEXT shims to work also for names like test-prog
71496         * tests/init.sh: Re-exec a better shell, when needed.
71497         If the current shell lacks support for posix $(...), an init.sh-using
71498         test will now try to find a shell that supports that.  If EXEEXT is
71499         nonempty, we also require support for hyphen-in-alias-name and shell
71500         substitutions like ${var#glob}.  Failure to find such a shell results
71501         in a skipped test.
71503 2010-02-21  Bruno Haible  <bruno@clisp.org>
71505         Really work around "broken pipe" error message from bash 3.2.
71506         * gnulib-tool (func_reset_sigpipe): Remove function.
71507         (echo): In bash 3.2, define to a function that uses printf.
71508         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
71510 2010-02-20  Bruno Haible  <bruno@clisp.org>
71512         Restore support for automake 1.9.6 with autoconf 2.61.
71513         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
71514         Reported by James Youngman <jay@gnu.org>.
71516 2010-02-20  Bruno Haible  <bruno@clisp.org>
71518         Improve *printf warning condition.
71519         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
71520         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71521         and the function is overridden due to SIGPIPE emulation.
71523 2010-02-20  Bruno Haible  <bruno@clisp.org>
71525         * lib/stdio.in.h: Tweak comments.
71527 2010-02-19  Bruno Haible  <bruno@clisp.org>
71529         Make it easier to find modules. New gnulib-tool option '--find'.
71530         * gnulib-tool: New option --find.
71531         (func_usage): Document it.
71532         (func_sanitize_modulelist): New function, extracted from
71533         func_all_modules.
71534         (func_all_modules): Invoke it.
71535         * doc/gnulib-tool.texi (Which modules?): New node.
71537 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
71539         * lib/sys_select.in.h: Provide select replacement even if
71540         sys/select.h exists on a system, for Interix.
71542 2010-02-18  Jim Meyering  <meyering@redhat.com>
71544         init.sh: don't use $(...) just yet
71545         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
71546         to accommodate e.g., Solaris' /bin/sh.
71548 2010-02-17  Bruno Haible  <bruno@clisp.org>
71550         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
71551         Reported by Ludovic Courtès <ludo@gnu.org>.
71553 2010-02-16  Simon Josefsson  <simon@josefsson.org>
71555         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
71556         linking with -lintl.
71558 2010-02-17  Simon Josefsson  <simon@josefsson.org>
71560         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
71561         if not provided by the system's netdb.h.  Reported by
71562         ludo@gnu.org (Ludovic Courtès).
71564 2010-02-15  Jim Meyering  <meyering@redhat.com>
71566         init.sh: improve portability and efficiency
71567         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
71568         "dummy" in a for loop.
71569         Use '!', not '^' to select the complement of a character set used
71570         in a "case" statement.
71571         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
71572         Suggestions from Eric Blake.
71574         init.sh: automatically accommodate programs with the .exe suffix
71575         Automatically arrange for an invocation of "prog" to execute the
71576         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
71577         may use the simpler "prog", yet still work when built on a system
71578         that requires specifying the added suffix.
71579         Do this by constructing a function named "prog" that invokes
71580         "prog.exe" for each .exe file in selected directories.
71581         * tests/init.sh (find_exe_basenames_): New function.
71582         (create_exe_shim_functions_): New function.
71583         (path_prepend_): Use it.
71585         maint.mk: mark syntax-check sc_*.m rules as .PHONY
71586         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
71587         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71589 2010-02-14  Jim Meyering  <meyering@redhat.com>
71591         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71592         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71593         (sc_prohibit_hash_pjw_without_use): New rule.
71595         maint.mk: allow the default upload destination dir to be overridden
71596         * top/maint.mk (upload_dest_dir_): Define with a default that
71597         preserves the status quo.
71598         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
71599         Reported by Peter Simons.
71601         maint.mk: prohibit inclusion of "hash.h" without_use
71602         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
71604 2010-02-10  Jim Meyering  <meyering@redhat.com>
71606         maint.mk: prohibit inclusion of "ignore-value.h" without_use
71607         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
71609 2010-02-09  Eric Blake  <ebb9@byu.net>
71610         and Bruno Haible  <bruno@clisp.org>
71612         obstack-printf-posix: ensure declaration
71613         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
71614         extracted from gl_FUNC_OBSTACK_PRINTF.
71615         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
71616         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71617         Likewise.
71618         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
71619         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
71620         0.
71622 2010-02-08  Bruno Haible  <bruno@clisp.org>
71624         gnulib-tool: Fix typo in 2010-02-07 commit.
71625         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
71626         Reported by Eric Blake.
71628 2010-02-07  Bruno Haible  <bruno@clisp.org>
71630         gnulib-tool: Fix up caching patches.
71631         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
71632         option --no-cache. Use associative arrays when supported by the shell.
71633         (sed_comments): New variable.
71634         (modcache): Renamed from do_cache.
71635         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
71636         abbreviate unnecessarily.
71637         (have_associative): New variable.
71638         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
71639         way also for ksh and zsh.
71640         (func_init_sed_convert_to_cache_statements): New function, extracted
71641         from func_cache_lookup_module. Add support for associative arrays.
71642         Don't set the c_MODULE_cached variable here. Ignore all lines before
71643         the first field header. Remove only the final newline, not all trailing
71644         newlines. Support empty fields correctly. Limit the use of 'eval' to
71645         assignments.
71646         (func_get_description, func_get_status, func_get_notice,
71647         func_get_applicability, func_get_filelist, func_get_dependencies,
71648         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
71649         func_get_automake_snippet, func_get_include_directive,
71650         func_get_link_directive, func_get_license, func_get_maintainer):
71651         Update documentation. List the unoptimized code first. Add support for
71652         associative arrays. Limit the use of 'eval' to assignments.
71653         (func_get_applicability): Undo stylistic pessimisations.
71654         (func_get_automake_snippet, func_get_include_directive): Reduce code
71655         duplication.
71656         (func_modules_transitive_closure, func_modules_add_dummy,
71657         func_modules_notice, func_modules_to_filelist, func_add_file,
71658         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
71659         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
71660         func_create_testdir, func_create_megatestdir): Update documentation.
71662 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71664         * gnulib-tool (func_cache_lookup_module): Store the module name
71665         belonging to the cache variable; error out if two different
71666         module names map to the same cache variable name.
71668 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71670         gnulib-tool: Make caching optional.
71671         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71672         Update matching short versions of --no-changelog.
71673         (func_usage): Update.
71674         (sed_extract_cache_prog): Renamed from ...
71675         (sed_extract_prog): ... this; revert to old extraction script.
71676         (func_get_description, func_get_status)
71677         (func_get_notice, func_get_applicability, func_get_filelist)
71678         (func_get_dependencies, func_get_autoconf_early_snippet)
71679         (func_get_autoconf_snippet, func_get_automake_snippet)
71680         (func_get_include_directive, func_get_link_directive)
71681         (func_get_license, func_get_maintainer): If $do_cache is false,
71682         use old, non-caching extraction scripts.
71683         Suggestion by Bruno Haible.
71685 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71687         gnulib-tool: cache module metainformation.
71688         * gnulib-tool (sed_extract_prog): Match newline before each
71689         header, and rewrite header to a shell variable suffix.
71690         (func_cache_var, func_cache_lookup_module): New functions,
71691         to turn a module name into a cache variable prefix, and to
71692         look up and cache module metainformation.
71693         (func_get_description, func_get_status)
71694         (func_get_notice, func_get_applicability, func_get_filelist)
71695         (func_get_dependencies, func_get_autoconf_early_snippet)
71696         (func_get_autoconf_snippet, func_get_automake_snippet)
71697         (func_get_include_directive, func_get_link_directive)
71698         (func_get_license, func_get_maintainer): Use
71699         func_cache_lookup_module.
71701 2010-02-07  Bruno Haible  <bruno@clisp.org>
71703         fnctl: Fix missing dependency.
71704         * modules/fcntl (Depends-on): Add getdtablesize.
71705         Reported by John W. Eaton <jwe@gnu.org>.
71707 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71709         Argp: fix recognition of short alias options.
71711         * lib/argp-parse.c (convert_options): Fix improper use of
71712         `|' between character values.
71713         * tests/test-argp.c (group1_option): New alias option
71714         --read (-r).
71715         (group1_parser): Special handling for 'r'.
71716         (test15): New test case.
71717         (test_fun): Add test15.
71718         * tests/test-argp-2.sh: Update expected --help and --usage
71719         outputs.
71721 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71723         * tests/test-argp.c: Fix indentation.
71725 2010-02-04  Eric Blake  <ebb9@byu.net>
71727         gettimeofday: expose type of second argument
71728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71729         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71730         * tests/test-gettimeofday.c: Use it to silence warning.
71731         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71732         the issue.
71734 2010-02-03  Jim Meyering  <meyering@redhat.com>
71736         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71737         * lib/regcomp.c (TYPE_SIGNED): Define.
71738         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71740         regcomp.c: avoid a new -Wshadow warning
71741         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71743 2010-02-01  Jim Meyering  <meyering@redhat.com>
71745         removing useless parentheses in cpp #define directives
71746         For motivation, see commit c0221df4, "define STREQ(a,b)
71747         consistently, removing useless parentheses"
71748         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71749         * lib/mountlist.c (MNT_IGNORE): Likewise.
71750         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71752 2010-02-01  Eric Blake  <ebb9@byu.net>
71754         sys_time: use link-warning
71755         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71756         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71757         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71758         * modules/sys_time (Depends-on): Add warn-on-use.
71759         (Makefile.am): Always build replacement.
71760         (configure.ac): Update substitutions.
71761         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71762         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71763         bother with SYS_TIME_H.
71764         * modules/gettimeofday (configure.ac): Declare indicator.
71765         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71766         in use.
71768         closein-tests: silence compiler warning
71769         * tests/test-closein.c (main): Ignore fread result.
71770         * modules/closein-tests (Depends-on): Add ignore-value.
71772         tests: silence warning about system return
71773         * tests/test-areadlink-with-size.c (main): Ignore system result.
71774         * tests/test-areadlink.c (main): Likewise.
71775         * tests/test-areadlinkat-with-size.c (main): Likewise.
71776         * tests/test-areadlinkat.c (main): Likewise.
71777         * tests/test-canonicalize-lgpl.c (main): Likewise.
71778         * tests/test-canonicalize.c (main): Likewise.
71779         * tests/test-chown.c (main): Likewise.
71780         * tests/test-fchownat.c (main): Likewise.
71781         * tests/test-fdutimensat.c (main): Likewise.
71782         * tests/test-fstatat.c (main): Likewise.
71783         * tests/test-futimens.c (main): Likewise.
71784         * tests/test-lchown.c (main): Likewise.
71785         * tests/test-link.c (main): Likewise.
71786         * tests/test-linkat.c (main): Likewise.
71787         * tests/test-lstat.c (main): Likewise.
71788         * tests/test-mkdir.c (main): Likewise.
71789         * tests/test-mkdirat.c (main): Likewise.
71790         * tests/test-mkfifo.c (main): Likewise.
71791         * tests/test-mkfifoat.c (main): Likewise.
71792         * tests/test-mknod.c (main): Likewise.
71793         * tests/test-readlink.c (main): Likewise.
71794         * tests/test-remove.c (main): Likewise.
71795         * tests/test-rename.c (main): Likewise.
71796         * tests/test-renameat.c (main): Likewise.
71797         * tests/test-rmdir.c (main): Likewise.
71798         * tests/test-symlink.c (main): Likewise.
71799         * tests/test-symlinkat.c (main): Likewise.
71800         * tests/test-unlink.c (main): Likewise.
71801         * tests/test-unlinkat.c (main): Likewise.
71802         * tests/test-utimens.c (main): Likewise.
71803         * tests/test-utimensat.c (main): Likewise.
71804         * modules/areadlink-tests (Depends-on): Add ignore-value.
71805         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71806         * modules/areadlinkat-tests (Depends-on): Likewise.
71807         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71808         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71809         * modules/canonicalize-tests (Depends-on): Likewise.
71810         * modules/chown-tests (Depends-on): Likewise.
71811         * modules/fdutimensat-tests (Depends-on): Likewise.
71812         * modules/futimens-tests (Depends-on): Likewise.
71813         * modules/lchown-tests (Depends-on): Likewise.
71814         * modules/link-tests (Depends-on): Likewise.
71815         * modules/linkat-tests (Depends-on): Likewise.
71816         * modules/lstat-tests (Depends-on): Likewise.
71817         * modules/mkdir-tests (Depends-on): Likewise.
71818         * modules/mkfifo-tests (Depends-on): Likewise.
71819         * modules/mkfifoat-tests (Depends-on): Likewise.
71820         * modules/mknod-tests (Depends-on): Likewise.
71821         * modules/openat-tests (Depends-on): Likewise.
71822         * modules/readlink-tests (Depends-on): Likewise.
71823         * modules/remove-tests (Depends-on): Likewise.
71824         * modules/rename-tests (Depends-on): Likewise.
71825         * modules/renameat-tests (Depends-on): Likewise.
71826         * modules/rmdir-tests (Depends-on): Likewise.
71827         * modules/symlink-tests (Depends-on): Likewise.
71828         * modules/symlinkat-tests (Depends-on): Likewise.
71829         * modules/unlink-tests (Depends-on): Likewise.
71830         * modules/utimens-tests (Depends-on): Likewise.
71831         * modules/utimensat-tests (Depends-on): Likewise.
71833 2010-01-31  Bruno Haible  <bruno@clisp.org>
71835         Perform the same test for many <math.h> functions.
71836         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71837         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71838         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71839         of gl_MATHFUNC.
71840         * modules/acos (configure.ac): Likewise.
71841         * modules/asin (configure.ac): Likewise.
71842         * modules/atan (configure.ac): Likewise.
71843         * modules/atan2 (configure.ac): Likewise.
71844         * modules/cbrt (configure.ac): Likewise.
71845         * modules/copysign (configure.ac): Likewise.
71846         * modules/cos (configure.ac): Likewise.
71847         * modules/cosh (configure.ac): Likewise.
71848         * modules/erf (configure.ac): Likewise.
71849         * modules/erfc (configure.ac): Likewise.
71850         * modules/exp (configure.ac): Likewise.
71851         * modules/fmod (configure.ac): Likewise.
71852         * modules/hypot (configure.ac): Likewise.
71853         * modules/j0 (configure.ac): Likewise.
71854         * modules/j1 (configure.ac): Likewise.
71855         * modules/jn (configure.ac): Likewise.
71856         * modules/lgamma (configure.ac): Likewise.
71857         * modules/log (configure.ac): Likewise.
71858         * modules/log10 (configure.ac): Likewise.
71859         * modules/log1p (configure.ac): Likewise.
71860         * modules/pow (configure.ac): Likewise.
71861         * modules/remainder (configure.ac): Likewise.
71862         * modules/sin (configure.ac): Likewise.
71863         * modules/sinh (configure.ac): Likewise.
71864         * modules/tan (configure.ac): Likewise.
71865         * modules/tanh (configure.ac): Likewise.
71866         * modules/y0 (configure.ac): Likewise.
71867         * modules/y1 (configure.ac): Likewise.
71868         * modules/yn (configure.ac): Likewise.
71869         Suggested by Paolo Bonzini.
71871 2010-01-31  Bruno Haible  <bruno@clisp.org>
71873         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71875 2010-01-31  Bruno Haible  <bruno@clisp.org>
71877         Work around getdelim() bug on FreeBSD 8.0.
71878         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71879         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71880         not work.
71881         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71882         is 1.
71883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71884         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71885         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71886         a non-zero size.
71887         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71889 2010-01-31  Bruno Haible  <bruno@clisp.org>
71891         Work around getline() bug on FreeBSD 8.0.
71892         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71893         and a non-zero size.
71894         * tests/test-getline.c (main): Likewise.
71895         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71896         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71898 2010-01-28  Eric Blake  <ebb9@byu.net>
71900         regex: fix build failure
71901         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71902         platforms.
71904 2010-01-28  Jim Meyering  <meyering@redhat.com>
71906         regex: do not ignore memory allocation failure
71907         * lib/regex_internal.c (create_cd_newstate): Detect
71908         re_node_set_init_copy failure.   Extracted from glibc commit
71909         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71911         regex: sync more white-space changes from libc
71912         * lib/regex_internal.c: White-space only changes.
71913         * lib/regexec.c: Likewise.
71915         regex: add many uses of __attribute_warn_unused_result__
71916         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71917         * lib/regexec.c: Likewise.
71918         Extracted from a messy glibc commit.
71920         regcomp.c: spelling and merge-artifact from glibc
71921         * lib/regcomp.c: Merge remainder of glibc's
71922         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71924         regcomp.c: sync white-space changes from glibc
71925         * lib/regcomp.c: Merge to accommodate white space
71926         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71928         regcomp.c: do not ignore internal return values
71929         * lib/regcomp.c: Do not ignore internal return values.
71930         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71931         but without its white-space changes and spelling fixes.
71933         regex_internal.h: define __attribute_warn_unused_result__
71934         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71936         maint: add a syntax-check rule to check for vulnerable Makefile.in
71937         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71939 2010-01-27  Jim Meyering  <meyering@redhat.com>
71941         ncftpput-ftp: clean up spaces
71942         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71943         Remove trailing blanks.
71945 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71947         * build-aux/git-version-gen: Fix copyright statement.
71948         * build-aux/gnupload: Likewise.
71949         * tests/test-arcfour.c: Likewise.
71950         * tests/test-arctwo.c: Likewise.
71951         * tests/test-count-one-bits.c: Likewise.
71952         * tests/test-crc.c: Likewise.
71953         * tests/test-des.c: Likewise.
71954         * tests/test-gc-arcfour.c: Likewise.
71955         * tests/test-gc-arctwo.c: Likewise.
71956         * tests/test-gc-des.c: Likewise.
71957         * tests/test-gc-hmac-md5.c: Likewise.
71958         * tests/test-gc-hmac-sha1.c: Likewise.
71959         * tests/test-gc-md2.c: Likewise.
71960         * tests/test-gc-md4.c: Likewise.
71961         * tests/test-gc-md5.c: Likewise.
71962         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71963         * tests/test-gc-rijndael.c: Likewise.
71964         * tests/test-gc-sha1.c: Likewise.
71965         * tests/test-gc.c: Likewise.
71966         * tests/test-gethostname.c: Likewise.
71967         * tests/test-gettimeofday.c: Likewise.
71968         * tests/test-hash.c: Likewise.
71969         * tests/test-hmac-md5.c: Likewise.
71970         * tests/test-hmac-sha1.c: Likewise.
71971         * tests/test-md2.c: Likewise.
71972         * tests/test-md4.c: Likewise.
71973         * tests/test-md5.c: Likewise.
71974         * tests/test-memchr.c: Likewise.
71975         * tests/test-memchr2.c: Likewise.
71976         * tests/test-memcmp.c: Likewise.
71977         * tests/test-memmem.c: Likewise.
71978         * tests/test-memrchr.c: Likewise.
71979         * tests/test-rawmemchr.c: Likewise.
71980         * tests/test-read-file.c: Likewise.
71981         * tests/test-rijndael.c: Likewise.
71982         * tests/test-sockets.c: Likewise.
71983         * tests/test-strchrnul.c: Likewise.
71984         * tests/test-strstr.c: Likewise.
71985         * tests/test-strtod.c: Likewise.
71986         * build-aux/ncftpput-ftp: Likewise.
71988 2010-01-26  Eric Blake  <ebb9@byu.net>
71990         ignore-value: update recommended header name
71991         * modules/ignore-value (Include): Only use <> for headers that
71992         exist in glibc.
71994 2010-01-26  Jim Meyering  <meyering@redhat.com>
71996         test-userspec.c: avoid compiler warnings
71997         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71998         and "initialization discards qualifiers..." warnings.
71999         Put the first "uid" in its own scope, and make char* members "const".
72001 2010-01-25  Bruno Haible  <bruno@clisp.org>
72003         gnulib-tool: Make warning diagnostics consistent.
72004         * gnulib-tool (func_warning): New function.
72005         Use it everywhere where gnulib-tool produces output to stderr and it is
72006         not a fatal error.
72008 2010-01-25  Bruno Haible  <bruno@clisp.org>
72010         Fix test dependencies.
72011         * modules/xstrtol-tests (Depends-on): Add inttypes.
72012         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
72014 2010-01-25  Pádraig Brady  <P@draigBrady.com>
72016         syntax-check: detect incorrect boolean macro values in config.h
72017         * modules/maintainer-makefile (configure.ac): Parameterize the location
72018         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
72019         The logic is from Eric Blake and the location indicated by Jim Meyering.
72020         Note the more natural CONFIG_HEADER name is prohibited by automake
72021         for backwards compatibility reasons.
72022         * top/maint.mk (sc_Wundef_boolean): New rule.
72024 2010-01-25  Jim Meyering  <meyering@redhat.com>
72026         bootstrap: detect MacOS 10.6's shasum, too
72027         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
72028         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
72030 2010-01-23  Jim Meyering  <meyering@redhat.com>
72032         xstrtoll: new module
72033         * modules/xstrtoll: New file.
72034         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
72035         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
72036         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
72037         ./configure fails if you use this module and lack "long long".
72038         * modules/xstrtoll-tests: New module.
72039         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
72040         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
72041         new init.sh-based test framework.
72043 2010-01-24  Bruno Haible  <bruno@clisp.org>
72045         Tests for module 'yn'.
72046         * modules/yn-tests: New file.
72047         * tests/test-yn.c: New file.
72049         Tests for module 'y1'.
72050         * modules/y1-tests: New file.
72051         * tests/test-y1.c: New file.
72053         Tests for module 'y0'.
72054         * modules/y0-tests: New file.
72055         * tests/test-y0.c: New file.
72057         Tests for module 'tanh'.
72058         * modules/tanh-tests: New file.
72059         * tests/test-tanh.c: New file.
72061         Tests for module 'tan'.
72062         * modules/tan-tests: New file.
72063         * tests/test-tan.c: New file.
72065         Tests for module 'sqrt'.
72066         * modules/sqrt-tests: New file.
72067         * tests/test-sqrt.c: New file.
72069         Tests for module 'sinh'.
72070         * modules/sinh-tests: New file.
72071         * tests/test-sinh.c: New file.
72073         Tests for module 'sin'.
72074         * modules/sin-tests: New file.
72075         * tests/test-sin.c: New file.
72077         Tests for module 'rint'.
72078         * modules/rint-tests: New file.
72079         * tests/test-rint.c: New file.
72081         Tests for module 'remainder'.
72082         * modules/remainder-tests: New file.
72083         * tests/test-remainder.c: New file.
72085         Tests for module 'pow'.
72086         * modules/pow-tests: New file.
72087         * tests/test-pow.c: New file.
72089         Tests for module 'nextafter'.
72090         * modules/nextafter-tests: New file.
72091         * tests/test-nextafter.c: New file.
72093         Tests for module 'modf'.
72094         * modules/modf-tests: New file.
72095         * tests/test-modf.c: New file.
72097         Tests for module 'logb'.
72098         * modules/logb-tests: New file.
72099         * tests/test-logb.c: New file.
72101         Tests for module 'log1p'.
72102         * modules/log1p-tests: New file.
72103         * tests/test-log1p.c: New file.
72105         Tests for module 'log10'.
72106         * modules/log10-tests: New file.
72107         * tests/test-log10.c: New file.
72109         Tests for module 'log'.
72110         * modules/log-tests: New file.
72111         * tests/test-log.c: New file.
72113         Tests for module 'lgamma'.
72114         * modules/lgamma-tests: New file.
72115         * tests/test-lgamma.c: New file.
72117         Tests for module 'ldexp'.
72118         * modules/ldexp-tests: New file.
72119         * tests/test-ldexp.c: New file.
72121         Tests for module 'jn'.
72122         * modules/jn-tests: New file.
72123         * tests/test-jn.c: New file.
72125         Tests for module 'j1'.
72126         * modules/j1-tests: New file.
72127         * tests/test-j1.c: New file.
72129         Tests for module 'j0'.
72130         * modules/j0-tests: New file.
72131         * tests/test-j0.c: New file.
72133         Tests for module 'hypot'.
72134         * modules/hypot-tests: New file.
72135         * tests/test-hypot.c: New file.
72137         Tests for module 'fmod'.
72138         * modules/fmod-tests: New file.
72139         * tests/test-fmod.c: New file.
72141         Tests for module 'fabs'.
72142         * modules/fabs-tests: New file.
72143         * tests/test-fabs.c: New file.
72145         Tests for module 'exp'.
72146         * modules/exp-tests: New file.
72147         * tests/test-exp.c: New file.
72149         Tests for module 'erfc'.
72150         * modules/erfc-tests: New file.
72151         * tests/test-erfc.c: New file.
72153         Tests for module 'erf'.
72154         * modules/erf-tests: New file.
72155         * tests/test-erf.c: New file.
72157         Tests for module 'cosh'.
72158         * modules/cosh-tests: New file.
72159         * tests/test-cosh.c: New file.
72161         Tests for module 'cos'.
72162         * modules/cos-tests: New file.
72163         * tests/test-cos.c: New file.
72165         Tests for module 'copysign'.
72166         * modules/copysign-tests: New file.
72167         * tests/test-copysign.c: New file.
72169         Tests for module 'cbrt'.
72170         * modules/cbrt-tests: New file.
72171         * tests/test-cbrt.c: New file.
72173         Tests for module 'atan2'.
72174         * modules/atan2-tests: New file.
72175         * tests/test-atan2.c: New file.
72177         Tests for module 'atan'.
72178         * modules/atan-tests: New file.
72179         * tests/test-atan.c: New file.
72181         Tests for module 'asin'.
72182         * modules/asin-tests: New file.
72183         * tests/test-asin.c: New file.
72185         Tests for module 'acos'.
72186         * modules/acos-tests: New file.
72187         * tests/test-acos.c: New file.
72189 2010-01-24  Bruno Haible  <bruno@clisp.org>
72191         Fix tests for common <math.h> functions.
72192         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
72193         code snippet that references the function pointer, rather than merely
72194         calling the function. Substitute the FUNC_LIBM variable.
72195         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
72196         * modules/acos (configure.ac): Likewise.
72197         * modules/asin (configure.ac): Likewise.
72198         * modules/atan (configure.ac): Likewise.
72199         * modules/atan2 (configure.ac): Likewise.
72200         * modules/cbrt (configure.ac): Likewise.
72201         * modules/copysign (configure.ac): Likewise.
72202         * modules/cos (configure.ac): Likewise.
72203         * modules/cosh (configure.ac): Likewise.
72204         * modules/erf (configure.ac): Likewise.
72205         * modules/erfc (configure.ac): Likewise.
72206         * modules/exp (configure.ac): Likewise.
72207         * modules/fabs (configure.ac): Likewise.
72208         * modules/fmod (configure.ac): Likewise.
72209         * modules/hypot (configure.ac): Likewise.
72210         * modules/j0 (configure.ac): Likewise.
72211         * modules/j1 (configure.ac): Likewise.
72212         * modules/jn (configure.ac): Likewise.
72213         * modules/ldexp (configure.ac): Likewise.
72214         * modules/lgamma (configure.ac): Likewise.
72215         * modules/log (configure.ac): Likewise.
72216         * modules/log10 (configure.ac): Likewise.
72217         * modules/log1p (configure.ac): Likewise.
72218         * modules/logb (configure.ac): Likewise.
72219         * modules/modf (configure.ac): Likewise.
72220         * modules/nextafter (configure.ac): Likewise.
72221         * modules/pow (configure.ac): Likewise.
72222         * modules/remainder (configure.ac): Likewise.
72223         * modules/rint (configure.ac): Likewise.
72224         * modules/sin (configure.ac): Likewise.
72225         * modules/sinh (configure.ac): Likewise.
72226         * modules/tan (configure.ac): Likewise.
72227         * modules/tanh (configure.ac): Likewise.
72228         * modules/y0 (configure.ac): Likewise.
72229         * modules/y1 (configure.ac): Likewise.
72230         * modules/yn (configure.ac): Likewise.
72232 2010-01-24  Bruno Haible  <bruno@clisp.org>
72234         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
72235         * tests/test-acosl.c (x): New variable.
72236         (main): Store argument in x and fetch it from x.
72237         * tests/test-asinl.c (x): New variable.
72238         (main): Store argument in x and fetch it from x.
72239         * tests/test-atanl.c (x): New variable.
72240         (main): Store argument in x and fetch it from x.
72241         * tests/test-cosl.c (x): New variable.
72242         (main): Store argument in x and fetch it from x.
72243         * tests/test-expl.c (x): New variable.
72244         (main): Store argument in x and fetch it from x.
72245         * tests/test-logl.c (x): New variable.
72246         (main): Store argument in x and fetch it from x.
72247         * tests/test-sinl.c (x): New variable.
72248         (main): Store argument in x and fetch it from x.
72249         * tests/test-sqrtl.c (x): New variable.
72250         (main): Store argument in x and fetch it from x.
72251         * tests/test-tanl.c (x): New variable.
72252         (main): Store argument in x and fetch it from x.
72254 2010-01-24  Bruno Haible  <bruno@clisp.org>
72256         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
72257         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
72258         assignments to the initial TESTS_ENVIRONMENT.
72259         * doc/gnulib.texi (Unit test modules): Document it.
72260         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
72261         TESTS_ENVIRONMENT.
72262         * modules/btowc-tests (Makefile.am): Likewise.
72263         * modules/c-stack-tests (Makefile.am): Likewise.
72264         * modules/c-strcase-tests (Makefile.am): Likewise.
72265         * modules/copy-file-tests (Makefile.am): Likewise.
72266         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
72267         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
72268         * modules/mbrtowc-tests (Makefile.am): Likewise.
72269         * modules/mbscasecmp-tests (Makefile.am): Likewise.
72270         * modules/mbscasestr-tests (Makefile.am): Likewise.
72271         * modules/mbschr-tests (Makefile.am): Likewise.
72272         * modules/mbscspn-tests (Makefile.am): Likewise.
72273         * modules/mbsinit-tests (Makefile.am): Likewise.
72274         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
72275         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
72276         * modules/mbspbrk-tests (Makefile.am): Likewise.
72277         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
72278         * modules/mbsrchr-tests (Makefile.am): Likewise.
72279         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
72280         * modules/mbsspn-tests (Makefile.am): Likewise.
72281         * modules/mbsstr-tests (Makefile.am): Likewise.
72282         * modules/nl_langinfo-tests (Makefile.am): Likewise.
72283         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
72284         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
72285         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
72286         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
72287         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
72288         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
72289         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
72290         * modules/wcrtomb-tests (Makefile.am): Likewise.
72291         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
72292         * modules/wcsrtombs-tests (Makefile.am): Likewise.
72293         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
72294         assignments from TESTS_ENVIRONMENT.
72295         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
72296         augmentation.
72297         * modules/argp-version-etc-tests (Makefile.am): Likewise.
72298         * modules/atexit-tests (Makefile.am): Likewise.
72299         * modules/binary-io-tests (Makefile.am): Likewise.
72300         * modules/closein-tests (Makefile.am): Likewise.
72301         * modules/dprintf-posix-tests (Makefile.am): Likewise.
72302         * modules/exclude-tests (Makefile.am): Likewise.
72303         * modules/fflush-tests (Makefile.am): Likewise.
72304         * modules/fpending-tests (Makefile.am): Likewise.
72305         * modules/fprintf-posix-tests (Makefile.am): Likewise.
72306         * modules/freadahead-tests (Makefile.am): Likewise.
72307         * modules/freadptr-tests (Makefile.am): Likewise.
72308         * modules/freadseek-tests (Makefile.am): Likewise.
72309         * modules/fseek-tests (Makefile.am): Likewise.
72310         * modules/fseeko-tests (Makefile.am): Likewise.
72311         * modules/ftell-tests (Makefile.am): Likewise.
72312         * modules/ftello-tests (Makefile.am): Likewise.
72313         * modules/idpriv-drop-tests (Makefile.am): Likewise.
72314         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
72315         * modules/lseek-tests (Makefile.am): Likewise.
72316         * modules/parse-duration-tests (Makefile.am): Likewise.
72317         * modules/perror-tests (Makefile.am): Likewise.
72318         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
72319         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
72320         * modules/pipe-tests (Makefile.am): Likewise.
72321         * modules/pread-tests (Makefile.am): Likewise.
72322         * modules/printf-posix-tests (Makefile.am): Likewise.
72323         * modules/select-tests (Makefile.am): Likewise.
72324         * modules/sigpipe-tests (Makefile.am): Likewise.
72325         * modules/tsearch-tests (Makefile.am): Likewise.
72326         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
72327         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
72328         * modules/uniname/uniname-tests (Makefile.am): Likewise.
72329         * modules/uniwidth/width-tests (Makefile.am): Likewise.
72330         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
72331         * modules/version-etc-tests (Makefile.am): Likewise.
72332         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
72333         * modules/vprintf-posix-tests (Makefile.am): Likewise.
72334         * modules/xalloc-die-tests (Makefile.am): Likewise.
72335         * modules/xprintf-posix-tests (Makefile.am): Likewise.
72336         * modules/xstrtoimax-tests (Makefile.am): Likewise.
72337         * modules/xstrtol-tests (Makefile.am): Likewise.
72338         * modules/xstrtoumax-tests (Makefile.am): Likewise.
72339         * modules/yesno-tests (Makefile.am): Likewise.
72340         Suggested by Jim Meyering.
72342 2010-01-24  Bruno Haible  <bruno@clisp.org>
72344         More documentation.
72345         * doc/gnulib.texi (Writing modules): New chapter.
72346         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72347         the new chapter.
72349 2010-01-24  Jim Meyering  <meyering@redhat.com>
72351         maint.mk: do not prepend "./" after filtering
72352         * top/maint.mk (_prepend_srcdir_prefix): New variable
72353         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72354         "./" when $(srcdir) is ".".
72356         define STREQ(a,b) consistently, removing useless parentheses
72357         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72358         since the only risk is that "a" or "b" contains an unparenthesized
72359         comma, but if either did that, STREQ would have 3 or more arguments.
72360         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72361         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72362         * lib/hash-triple.c (STREQ): Likewise.
72363         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72364         * lib/getugroups.c (STREQ): Likewise.
72366 2010-01-23  Jim Meyering  <meyering@redhat.com>
72368         maint.mk: fix syntax-check in a non-srcdir build directory
72369         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72370         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72372 2010-01-22  Jim Meyering  <meyering@redhat.com>
72374         userspec: add unit tests
72375         * tests/test-userspec.c: New file.
72376         * modules/userspec-tests: Likewise.
72378 2010-01-21  Jim Meyering  <meyering@redhat.com>
72380         maint.mk: handle source file names containing "." robustly
72381         * top/maint.mk (_dot_escaped_srcdir): Define.
72382         (VC_LIST): Use it in LHS of sed substitution.
72384 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72386         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72387         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72388         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72389         from a non-srcdir build.
72391 2010-01-20  Eric Blake  <ebb9@byu.net>
72393         warn-on-use: use instead of link-warning
72394         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72395         * modules/unistd (Depends-on, Makefile.am): Likewise.
72396         * modules/arpa_inet (Depends-on): Replace link-warning with
72397         warn-on-use.
72398         (Makefile.am): Update rules accordingly.
72399         * modules/ctype (Depends-on, Makefile.am): Likewise.
72400         * modules/dirent (Depends-on, Makefile.am): Likewise.
72401         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72402         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72403         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72404         * modules/locale (Depends-on, Makefile.am): Likewise.
72405         * modules/math (Depends-on, Makefile.am): Likewise.
72406         * modules/search (Depends-on, Makefile.am): Likewise.
72407         * modules/signal (Depends-on, Makefile.am): Likewise.
72408         * modules/spawn (Depends-on, Makefile.am): Likewise.
72409         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72410         * modules/string (Depends-on, Makefile.am): Likewise.
72411         * modules/strings (Depends-on, Makefile.am): Likewise.
72412         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72413         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72414         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72415         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72416         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72417         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72418         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72419         * modules/wchar (Depends-on, Makefile.am): Likewise.
72420         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72421         should be poisoned.
72422         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72423         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72424         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72425         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72426         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72427         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72428         * m4/math_h.m4 (gl_MATH_H): Likewise.
72429         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72430         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72431         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72432         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72433         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72434         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72435         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72436         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72437         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72439         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72440         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72441         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72442         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72443         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72444         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72445         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72446         GL_LINK_WARNING.
72447         * lib/ctype.in.h: Likewise.
72448         * lib/dirent.in.h: Likewise.
72449         * lib/fcntl.in.h: Likewise.
72450         * lib/inttypes.in.h: Likewise.
72451         * lib/langinfo.in.h: Likewise.
72452         * lib/locale.in.h: Likewise.
72453         * lib/math.in.h: Likewise.
72454         * lib/search.in.h: Likewise.
72455         * lib/signal.in.h: Likewise.
72456         * lib/spawn.in.h: Likewise.
72457         * lib/stdio.in.h: Likewise.
72458         * lib/stdlib.in.h: Likewise.
72459         * lib/string.in.h: Likewise.
72460         * lib/strings.in.h: Likewise.
72461         * lib/sys_file.in.h: Likewise.
72462         * lib/sys_ioctl.in.h: Likewise.
72463         * lib/sys_select.in.h: Likewise.
72464         * lib/sys_socket.in.h: Likewise.
72465         * lib/sys_stat.in.h: Likewise.
72466         * lib/sys_times.in.h: Likewise.
72467         * lib/sys_utsname.in.h: Likewise.
72468         * lib/unistd.in.h: Likewise.
72469         * lib/wchar.in.h: Likewise.
72471 2010-01-20  Bruno Haible  <bruno@clisp.org>
72473         Avoid duplicate -lm.
72474         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
72475         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
72476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
72477         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
72478         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
72479         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
72480         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
72481         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
72482         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
72483         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
72484         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
72485         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
72486         Reported by Paolo Bonzini.
72488 2010-01-19  Bruno Haible  <bruno@clisp.org>
72490         langinfo, nl_langinfo: Relicense under LGPLv2+.
72491         * modules/langinfo (License): Change to LGPLv2+.
72492         * modules/nl_langinfo (License): Likewise.
72493         Patch by David Lutterkort <lutter@redhat.com>.
72495 2010-01-19  Bruno Haible  <bruno@clisp.org>
72497         Avoid compilation error with cc on OSF/1 5.1.
72498         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
72499         statement, not before.
72500         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72502 2010-01-18  Bruno Haible  <bruno@clisp.org>
72504         Avoid a link error due to the __printf__ symbol.
72505         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
72506         and 2.6.x.
72507         (__format__, __printf__): Remove definitions.
72508         * lib/argp-fmtstream.h: Likewise.
72509         * lib/argp.h: Likewise.
72510         * lib/error.h: Likewise.
72511         * lib/vasnprintf.h: Likewise.
72512         * lib/xprintf.h: Likewise.
72513         * lib/xvasprintf.h: Likewise.
72514         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72516 2010-01-18  Bruno Haible  <bruno@clisp.org>
72518         Tests for module 'tanl'.
72519         * modules/tanl-tests: New file.
72520         * tests/test-tanl.c: New file.
72522         Tests for module 'sqrtl'.
72523         * modules/sqrtl-tests: New file.
72524         * tests/test-sqrtl.c: New file.
72526         Tests for module 'sinl'.
72527         * modules/sinl-tests: New file.
72528         * tests/test-sinl.c: New file.
72530         Tests for module 'logl'.
72531         * modules/logl-tests: New file.
72532         * tests/test-logl.c: New file.
72534         Tests for module 'expl'.
72535         * modules/expl-tests: New file.
72536         * tests/test-expl.c: New file.
72538         Tests for module 'cosl'.
72539         * modules/cosl-tests: New file.
72540         * tests/test-cosl.c: New file.
72542         Tests for module 'atanl'.
72543         * modules/atanl-tests: New file.
72544         * tests/test-atanl.c: New file.
72546         Tests for module 'asinl'.
72547         * modules/asinl-tests: New file.
72548         * tests/test-asinl.c: New file.
72550         Tests for module 'acosl'.
72551         * modules/acosl-tests: New file.
72552         * tests/test-acosl.c: New file.
72554         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72555         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
72556         tanl): Use the standard gnulib idiom.
72557         * lib/cosl.c: Don't include trigl.c and sincosl.c.
72558         * lib/sinl.c: Likewise.
72559         * lib/tanl.c: Don't include trigl.c.
72560         (kernel_tanl): Make static.
72561         * lib/sincosl.c: Include trigl.h first.
72562         * lib/trigl.c: Likewise.
72563         * m4/acosl.m4: New file.
72564         * m4/asinl.m4: New file.
72565         * m4/atanl.m4: New file.
72566         * m4/cosl.m4: New file.
72567         * m4/expl.m4: New file.
72568         * m4/logl.m4: New file.
72569         * m4/sinl.m4: New file.
72570         * m4/sqrtl.m4: New file.
72571         * m4/tanl.m4: New file.
72572         * m4/mathl.m4: Remove file.
72573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
72574         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72575         Don't initialize GNULIB_MATHL.
72576         * modules/acosl: New file.
72577         * modules/asinl: New file.
72578         * modules/atanl: New file.
72579         * modules/cosl: New file.
72580         * modules/expl: New file.
72581         * modules/logl: New file.
72582         * modules/sinl: New file.
72583         * modules/sqrtl: New file.
72584         * modules/tanl: New file.
72585         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
72586         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
72587         substitute GNULIB_MATHL.
72588         * modules/mathl: Rewritten.
72589         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72590         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72591         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72592         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72593         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72594         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72595         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72596         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
72597         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
72599 2010-01-18  Bruno Haible  <bruno@clisp.org>
72601         sqrt: Make gl_FUNC_SQRT requirable.
72602         * m4/sqrt.m4: New file.
72603         * modules/sqrt (Files): Add it.
72604         (configure.ac): Invoke gl_FUNC_SQRT.
72606 2010-01-18  Bruno Haible  <bruno@clisp.org>
72608         New modules for common <math.h> functions.
72609         * m4/mathfunc.m4: New file.
72610         * modules/acos: New file.
72611         * modules/asin: New file.
72612         * modules/atan: New file.
72613         * modules/atan2: New file.
72614         * modules/cbrt: New file.
72615         * modules/copysign: New file.
72616         * modules/cos: New file.
72617         * modules/cosh: New file.
72618         * modules/erf: New file.
72619         * modules/erfc: New file.
72620         * modules/exp: New file.
72621         * modules/fabs: New file.
72622         * modules/fmod: New file.
72623         * modules/hypot: New file.
72624         * modules/j0: New file.
72625         * modules/j1: New file.
72626         * modules/jn: New file.
72627         * modules/ldexp: New file.
72628         * modules/lgamma: New file.
72629         * modules/log: New file.
72630         * modules/log10: New file.
72631         * modules/log1p: New file.
72632         * modules/logb: New file.
72633         * modules/modf: New file.
72634         * modules/nextafter: New file.
72635         * modules/pow: New file.
72636         * modules/remainder: New file.
72637         * modules/rint: New file.
72638         * modules/sin: New file.
72639         * modules/sinh: New file.
72640         * modules/sqrt: New file.
72641         * modules/tan: New file.
72642         * modules/tanh: New file.
72643         * modules/y0: New file.
72644         * modules/y1: New file.
72645         * modules/yn: New file.
72646         * doc/posix-functions/acos.texi: Mention the 'acos' module.
72647         * doc/posix-functions/asin.texi: Mention the 'asin' module.
72648         * doc/posix-functions/atan.texi: Mention the 'atan' module.
72649         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
72650         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
72651         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
72652         * doc/posix-functions/cos.texi: Mention the 'cos' module.
72653         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
72654         * doc/posix-functions/erf.texi: Mention the 'erf' module.
72655         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
72656         * doc/posix-functions/exp.texi: Mention the 'exp' module.
72657         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
72658         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
72659         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
72660         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72661         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72662         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72663         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72664         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72665         * doc/posix-functions/log.texi: Mention the 'log' module.
72666         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72667         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72668         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72669         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72670         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72671         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72672         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72673         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72674         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72675         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72676         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72677         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72678         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72679         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72680         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72681         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72683 2010-01-18  Jim Meyering  <meyering@redhat.com>
72685         ignore-value: relax license to LGPLv2+
72686         * modules/ignore-value (License): Relax to LGPLv2+.
72688         getdate: don't leak when TZ contains two or more '"'s
72689         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72690         double quote in TZ after the first one.
72692         readtokens: do not leak internal token_lengths buffer
72693         * lib/readtokens.c (readtokens): Free the local, lengths,
72694         when the supplied "token_lengths" parameter is NULL.
72696 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72698         Fix a couple of missing LIBTHREAD link failures on AIX.
72699         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72700         $(LIBTHREAD).
72701         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72703         Link test-poll against INET_PTON_LIB.
72704         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72705         for inet_pton on Solaris 10.
72707 2010-01-17  Bruno Haible  <bruno@clisp.org>
72709         unistdio/*-sprintf: Fix typo in module description.
72710         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72711         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72712         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72713         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72714         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72715         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72716         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72717         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72719 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72721         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72722         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72723         variables in shell case patterns, for AIX and HP-UX ksh.
72725         Split large sed scripts, for HP-UX sed.
72726         * modules/stdio: Split sed scripts around 50 sed commands,
72727         to avoid HP-UX limit of 99 commands, in the near future.
72728         * modules/string: Likewise.
72729         * modules/unistd: Likewise.
72731         gnulib-tool: avoid writing in the current directory.
72732         * gnulib-tool (func_emit_lib_Makefile_am)
72733         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72734         not in the current directory, so concurrent gnulib-tool
72735         instances do not interfere.
72737 2010-01-16  Jim Meyering  <meyering@redhat.com>
72739         doc: update users.txt
72740         * users.txt: Add grep.
72741         (diffutils, gzip): Update URLs.
72743 2010-01-12  Bruno Haible  <bruno@clisp.org>
72745         posix_spawn: Avoid test failure on Cygwin.
72746         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72747         characters.
72748         Reported by Simon Josefsson.
72750 2010-01-12  Bruno Haible  <bruno@clisp.org>
72752         * tests/test-cond.c (main): When skipping the test, show the reason.
72754 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72756         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72758 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72760         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72761         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72763 2010-01-12  Eric Blake  <ebb9@byu.net>
72765         build: guarantee AS_VAR_IF
72766         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72767         (gl_AS_VAR_IF): Move...
72768         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72769         Reported by Simon Josefsson.
72771 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72773         * lib/stdio.in.h: Fix typo.
72775 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72777         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72778         libgpg-error.
72780 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72782         * tests/test-xalloc-die.sh: Use $EXEEXT.
72784 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72785             Bruno Haible  <bruno@clisp.org>
72787         getlogin, getlogin_r: Avoid test failure.
72788         * tests/test-getlogin.c: Include <stdio.h>.
72789         (main): Skip the test when the function fails because stdin is not a
72790         tty.
72791         * tests/test-getlogin_r.c: Include <stdio.h>.
72792         (main): Skip the test when the function fails because stdin is not a
72793         tty.
72795 2010-01-11  Eric Blake  <ebb9@byu.net>
72797         tests: avoid more large file warnings
72798         * tests/test-fflush.c: Avoid warning about ftell use.
72799         * tests/test-fseek.c: Avoid warning about fseek use.
72801 2010-01-10  Bruno Haible  <bruno@clisp.org>
72803         nproc: Work better on Linux when /proc and /sys are not mounted.
72804         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72805         as lower bound when, on glibc/Linux systems,
72806         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72807         Suggested by Pádraig Brady <P@draigbrady.com>.
72808         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72810         nproc: Refactor.
72811         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72812         extracted from num_processors.
72813         (num_processors): Call it.
72815 2010-01-11  Jim Meyering  <meyering@redhat.com>
72817         utimecmp: avoid new warning from upcoming gcc-4.5.0
72818         * lib/utimecmp.c (BILLION): Define using #define rather than an
72819         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72821 2010-01-11  Eric Blake  <ebb9@byu.net>
72823         math: add portability warnings for classification macros
72824         * modules/math (Depends-on): Add warn-on-use.
72825         (Makefile.am): Provide new substitutions.
72826         * m4/math_h.m4 (gl_MATH_H): Require inline.
72827         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72828         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72829         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72830         implement warnings.
72832         unistd: warn on use of environ without module
72833         * modules/unistd (Depends-on): Add warn-on-use.
72834         (Makefile.am): Provide new substitutions.
72835         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72836         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72838         stdio: warn on suspicious uses
72839         * modules/stdio (Depends-on): Add warn-on-use.
72840         (Makefile.am): Provide new substitutions.
72841         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72842         fseeko.
72843         * lib/stdio.in.h (gets): Always warn on use.
72844         (fseek, ftell): Adjust when warnings are issued, and honor
72845         _GL_NO_LARGE_FILES as a way to silence the warning.
72846         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72847         any warning about large file offsets.
72848         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72849         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72850         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72851         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72852         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72853         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72854         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72855         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72857         warn-on-use: new module
72858         * modules/warn-on-use: New file.
72859         * build-aux/warn-on-use.h: Likewise.
72860         * m4/warn-on-use.m4: Likewise.
72861         * MODULES.html.sh (Support for building): Mention it.
72863 2010-01-10  Bruno Haible  <bruno@clisp.org>
72865         Tests for module 'unistr/u32-strdup'.
72866         * modules/unistr/u32-strdup-tests: New file.
72867         * tests/unistr/test-u32-strdup.c: New file.
72869         Tests for module 'unistr/u16-strdup'.
72870         * modules/unistr/u16-strdup-tests: New file.
72871         * tests/unistr/test-u16-strdup.c: New file.
72873         Tests for module 'unistr/u8-strdup'.
72874         * modules/unistr/u8-strdup-tests: New file.
72875         * tests/unistr/test-u8-strdup.c: New file.
72876         * tests/unistr/test-strdup.h: New file.
72878         Tests for module 'unistr/u32-strncmp'.
72879         * modules/unistr/u32-strncmp-tests: New file.
72880         * tests/unistr/test-u32-strncmp.c: New file.
72882         Tests for module 'unistr/u16-strncmp'.
72883         * modules/unistr/u16-strncmp-tests: New file.
72884         * tests/unistr/test-u16-strncmp.c: New file.
72886         Tests for module 'unistr/u8-strncmp'.
72887         * modules/unistr/u8-strncmp-tests: New file.
72888         * tests/unistr/test-u8-strncmp.c: New file.
72889         * tests/unistr/test-strncmp.h: New file.
72891         Tests for module 'unistr/u32-strcoll'.
72892         * modules/unistr/u32-strcoll-tests: New file.
72893         * tests/unistr/test-u32-strcoll.c: New file.
72895         Tests for module 'unistr/u16-strcoll'.
72896         * modules/unistr/u16-strcoll-tests: New file.
72897         * tests/unistr/test-u16-strcoll.c: New file.
72899         Tests for module 'unistr/u8-strcoll'.
72900         * modules/unistr/u8-strcoll-tests: New file.
72901         * tests/unistr/test-u8-strcoll.c: New file.
72903         Tests for module 'unistr/u32-strcmp'.
72904         * modules/unistr/u32-strcmp-tests: New file.
72905         * tests/unistr/test-u32-strcmp.c: New file.
72906         * tests/unistr/test-u32-strcmp.h: New file.
72908         Tests for module 'unistr/u16-strcmp'.
72909         * modules/unistr/u16-strcmp-tests: New file.
72910         * tests/unistr/test-u16-strcmp.c: New file.
72911         * tests/unistr/test-u16-strcmp.h: New file.
72913         Tests for module 'unistr/u8-strcmp'.
72914         * modules/unistr/u8-strcmp-tests: New file.
72915         * tests/unistr/test-u8-strcmp.c: New file.
72916         * tests/unistr/test-u8-strcmp.h: New file.
72917         * tests/unistr/test-strcmp.h: New file.
72919         Tests for module 'unistr/u32-strncat'.
72920         * modules/unistr/u32-strncat-tests: New file.
72921         * tests/unistr/test-u32-strncat.c: New file.
72923         Tests for module 'unistr/u16-strncat'.
72924         * modules/unistr/u16-strncat-tests: New file.
72925         * tests/unistr/test-u16-strncat.c: New file.
72927         Tests for module 'unistr/u8-strncat'.
72928         * modules/unistr/u8-strncat-tests: New file.
72929         * tests/unistr/test-u8-strncat.c: New file.
72930         * tests/unistr/test-strncat.h: New file.
72932         Tests for module 'unistr/u32-strcat'.
72933         * modules/unistr/u32-strcat-tests: New file.
72934         * tests/unistr/test-u32-strcat.c: New file.
72936         Tests for module 'unistr/u16-strcat'.
72937         * modules/unistr/u16-strcat-tests: New file.
72938         * tests/unistr/test-u16-strcat.c: New file.
72940         Tests for module 'unistr/u8-strcat'.
72941         * modules/unistr/u8-strcat-tests: New file.
72942         * tests/unistr/test-u8-strcat.c: New file.
72943         * tests/unistr/test-strcat.h: New file.
72945         Tests for module 'unistr/u32-stpncpy'.
72946         * modules/unistr/u32-stpncpy-tests: New file.
72947         * tests/unistr/test-u32-stpncpy.c: New file.
72949         Tests for module 'unistr/u16-stpncpy'.
72950         * modules/unistr/u16-stpncpy-tests: New file.
72951         * tests/unistr/test-u16-stpncpy.c: New file.
72953         Tests for module 'unistr/u8-stpncpy'.
72954         * modules/unistr/u8-stpncpy-tests: New file.
72955         * tests/unistr/test-u8-stpncpy.c: New file.
72956         * tests/unistr/test-stpncpy.h: New file.
72958         Tests for module 'unistr/u32-strncpy'.
72959         * modules/unistr/u32-strncpy-tests: New file.
72960         * tests/unistr/test-u32-strncpy.c: New file.
72962         Tests for module 'unistr/u16-strncpy'.
72963         * modules/unistr/u16-strncpy-tests: New file.
72964         * tests/unistr/test-u16-strncpy.c: New file.
72966         Tests for module 'unistr/u8-strncpy'.
72967         * modules/unistr/u8-strncpy-tests: New file.
72968         * tests/unistr/test-u8-strncpy.c: New file.
72969         * tests/unistr/test-strncpy.h: New file.
72971         Tests for module 'unistr/u32-stpcpy'.
72972         * modules/unistr/u32-stpcpy-tests: New file.
72973         * tests/unistr/test-u32-stpcpy.c: New file.
72975         Tests for module 'unistr/u16-stpcpy'.
72976         * modules/unistr/u16-stpcpy-tests: New file.
72977         * tests/unistr/test-u16-stpcpy.c: New file.
72979         Tests for module 'unistr/u8-stpcpy'.
72980         * modules/unistr/u8-stpcpy-tests: New file.
72981         * tests/unistr/test-u8-stpcpy.c: New file.
72982         * tests/unistr/test-stpcpy.h: New file.
72984         Tests for module 'unistr/u32-strcpy'.
72985         * modules/unistr/u32-strcpy-tests: New file.
72986         * tests/unistr/test-u32-strcpy.c: New file.
72988         Tests for module 'unistr/u16-strcpy'.
72989         * modules/unistr/u16-strcpy-tests: New file.
72990         * tests/unistr/test-u16-strcpy.c: New file.
72992         Tests for module 'unistr/u8-strcpy'.
72993         * modules/unistr/u8-strcpy-tests: New file.
72994         * tests/unistr/test-u8-strcpy.c: New file.
72995         * tests/unistr/test-strcpy.h: New file.
72997         Tests for module 'unistr/u32-strnlen'.
72998         * modules/unistr/u32-strnlen-tests: New file.
72999         * tests/unistr/test-u32-strnlen.c: New file.
73001         Tests for module 'unistr/u16-strnlen'.
73002         * modules/unistr/u16-strnlen-tests: New file.
73003         * tests/unistr/test-u16-strnlen.c: New file.
73005         Tests for module 'unistr/u8-strnlen'.
73006         * modules/unistr/u8-strnlen-tests: New file.
73007         * tests/unistr/test-u8-strnlen.c: New file.
73008         * tests/unistr/test-strnlen.h: New file.
73010         Tests for module 'unistr/u32-strlen'.
73011         * modules/unistr/u32-strlen-tests: New file.
73012         * tests/unistr/test-u32-strlen.c: New file.
73014         Tests for module 'unistr/u16-strlen'.
73015         * modules/unistr/u16-strlen-tests: New file.
73016         * tests/unistr/test-u16-strlen.c: New file.
73018         Tests for module 'unistr/u8-strlen'.
73019         * modules/unistr/u8-strlen-tests: New file.
73020         * tests/unistr/test-u8-strlen.c: New file.
73022         Tests for module 'unistr/u32-prev'.
73023         * modules/unistr/u32-prev-tests: New file.
73024         * tests/unistr/test-u32-prev.c: New file.
73026         Tests for module 'unistr/u16-prev'.
73027         * modules/unistr/u16-prev-tests: New file.
73028         * tests/unistr/test-u16-prev.c: New file.
73030         Tests for module 'unistr/u8-prev'.
73031         * modules/unistr/u8-prev-tests: New file.
73032         * tests/unistr/test-u8-prev.c: New file.
73034         Tests for module 'unistr/u32-next'.
73035         * modules/unistr/u32-next-tests: New file.
73036         * tests/unistr/test-u32-next.c: New file.
73038         Tests for module 'unistr/u16-next'.
73039         * modules/unistr/u16-next-tests: New file.
73040         * tests/unistr/test-u16-next.c: New file.
73042         Tests for module 'unistr/u8-next'.
73043         * modules/unistr/u8-next-tests: New file.
73044         * tests/unistr/test-u8-next.c: New file.
73046         Tests for module 'unistr/u32-strmbtouc'.
73047         * modules/unistr/u32-strmbtouc-tests: New file.
73048         * tests/unistr/test-u32-strmbtouc.c: New file.
73050         Tests for module 'unistr/u16-strmbtouc'.
73051         * modules/unistr/u16-strmbtouc-tests: New file.
73052         * tests/unistr/test-u16-strmbtouc.c: New file.
73054         Tests for module 'unistr/u8-strmbtouc'.
73055         * modules/unistr/u8-strmbtouc-tests: New file.
73056         * tests/unistr/test-u8-strmbtouc.c: New file.
73058         Tests for module 'unistr/u32-strmblen'.
73059         * modules/unistr/u32-strmblen-tests: New file.
73060         * tests/unistr/test-u32-strmblen.c: New file.
73062         Tests for module 'unistr/u16-strmblen'.
73063         * modules/unistr/u16-strmblen-tests: New file.
73064         * tests/unistr/test-u16-strmblen.c: New file.
73066         Tests for module 'unistr/u8-strmblen'.
73067         * modules/unistr/u8-strmblen-tests: New file.
73068         * tests/unistr/test-u8-strmblen.c: New file.
73070         Tests for module 'unistr/u32-cpy-alloc'.
73071         * modules/unistr/u32-cpy-alloc-tests: New file.
73072         * tests/unistr/test-u32-cpy-alloc.c: New file.
73074         Tests for module 'unistr/u16-cpy-alloc'.
73075         * modules/unistr/u16-cpy-alloc-tests: New file.
73076         * tests/unistr/test-u16-cpy-alloc.c: New file.
73078         Tests for module 'unistr/u8-cpy-alloc'.
73079         * modules/unistr/u8-cpy-alloc-tests: New file.
73080         * tests/unistr/test-u8-cpy-alloc.c: New file.
73081         * tests/unistr/test-cpy-alloc.h: New file.
73083         Tests for module 'unistr/u32-mbsnlen'.
73084         * modules/unistr/u32-mbsnlen-tests: New file.
73085         * tests/unistr/test-u32-mbsnlen.c: New file.
73087         Tests for module 'unistr/u16-mbsnlen'.
73088         * modules/unistr/u16-mbsnlen-tests: New file.
73089         * tests/unistr/test-u16-mbsnlen.c: New file.
73091         Tests for module 'unistr/u8-mbsnlen'.
73092         * modules/unistr/u8-mbsnlen-tests: New file.
73093         * tests/unistr/test-u8-mbsnlen.c: New file.
73095         Tests for module 'unistr/u32-chr'.
73096         * modules/unistr/u32-chr-tests: New file.
73097         * tests/unistr/test-u32-chr.c: New file.
73099         Tests for module 'unistr/u16-chr'.
73100         * modules/unistr/u16-chr-tests: New file.
73101         * tests/unistr/test-u16-chr.c: New file.
73103         Tests for module 'unistr/u8-chr'.
73104         * modules/unistr/u8-chr-tests: New file.
73105         * tests/unistr/test-u8-chr.c: New file.
73106         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
73108         Tests for module 'unistr/u32-cmp2'.
73109         * modules/unistr/u32-cmp2-tests: New file.
73110         * tests/unistr/test-u32-cmp2.c: New file.
73112         Tests for module 'unistr/u16-cmp2'.
73113         * modules/unistr/u16-cmp2-tests: New file.
73114         * tests/unistr/test-u16-cmp2.c: New file.
73116         Tests for module 'unistr/u8-cmp2'.
73117         * modules/unistr/u8-cmp2-tests: New file.
73118         * tests/unistr/test-u8-cmp2.c: New file.
73119         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
73121         Tests for module 'unistr/u32-cmp'.
73122         * modules/unistr/u32-cmp-tests: New file.
73123         * tests/unistr/test-u32-cmp.c: New file.
73125         Tests for module 'unistr/u16-cmp'.
73126         * modules/unistr/u16-cmp-tests: New file.
73127         * tests/unistr/test-u16-cmp.c: New file.
73129         Tests for module 'unistr/u8-cmp'.
73130         * modules/unistr/u8-cmp-tests: New file.
73131         * tests/unistr/test-u8-cmp.c: New file.
73132         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
73134         Tests for module 'unistr/u32-set'.
73135         * modules/unistr/u32-set-tests: New file.
73136         * tests/unistr/test-u32-set.c: New file.
73138         Tests for module 'unistr/u16-set'.
73139         * modules/unistr/u16-set-tests: New file.
73140         * tests/unistr/test-u16-set.c: New file.
73142         Tests for module 'unistr/u8-set'.
73143         * modules/unistr/u8-set-tests: New file.
73144         * tests/unistr/test-u8-set.c: New file.
73145         * tests/unistr/test-set.h: New file.
73147         Tests for module 'unistr/u32-move'.
73148         * modules/unistr/u32-move-tests: New file.
73149         * tests/unistr/test-u32-move.c: New file.
73151         Tests for module 'unistr/u16-move'.
73152         * modules/unistr/u16-move-tests: New file.
73153         * tests/unistr/test-u16-move.c: New file.
73155         Tests for module 'unistr/u8-move'.
73156         * modules/unistr/u8-move-tests: New file.
73157         * tests/unistr/test-u8-move.c: New file.
73158         * tests/unistr/test-move.h: New file.
73160         Tests for module 'unistr/u32-cpy'.
73161         * modules/unistr/u32-cpy-tests: New file.
73162         * tests/unistr/test-u32-cpy.c: New file.
73164         Tests for module 'unistr/u16-cpy'.
73165         * modules/unistr/u16-cpy-tests: New file.
73166         * tests/unistr/test-u16-cpy.c: New file.
73168         Tests for module 'unistr/u8-cpy'.
73169         * modules/unistr/u8-cpy-tests: New file.
73170         * tests/unistr/test-u8-cpy.c: New file.
73171         * tests/unistr/test-cpy.h: New file.
73173 2010-01-09  Bruno Haible  <bruno@clisp.org>
73175         Tests for module 'unistr/u32-uctomb'.
73176         * modules/unistr/u32-uctomb-tests: New file.
73177         * tests/unistr/test-u32-uctomb.c: New file.
73179         Tests for module 'unistr/u16-uctomb'.
73180         * modules/unistr/u16-uctomb-tests: New file.
73181         * tests/unistr/test-u16-uctomb.c: New file.
73183         Tests for module 'unistr/u8-uctomb'.
73184         * modules/unistr/u8-uctomb-tests: New file.
73185         * tests/unistr/test-u8-uctomb.c: New file.
73187         Tests for module 'unistr/u32-mbtoucr'.
73188         * modules/unistr/u32-mbtoucr-tests: New file.
73189         * tests/unistr/test-u32-mbtoucr.c: New file.
73191         Tests for module 'unistr/u16-mbtoucr'.
73192         * modules/unistr/u16-mbtoucr-tests: New file.
73193         * tests/unistr/test-u16-mbtoucr.c: New file.
73195         Tests for module 'unistr/u8-mbtoucr'.
73196         * modules/unistr/u8-mbtoucr-tests: New file.
73197         * tests/unistr/test-u8-mbtoucr.c: New file.
73199         Tests for module 'unistr/u32-mbtouc'.
73200         * modules/unistr/u32-mbtouc-tests: New file.
73201         * tests/unistr/test-u32-mbtouc.c: New file.
73203         Tests for module 'unistr/u16-mbtouc'.
73204         * modules/unistr/u16-mbtouc-tests: New file.
73205         * tests/unistr/test-u16-mbtouc.c: New file.
73207         Tests for module 'unistr/u8-mbtouc'.
73208         * modules/unistr/u8-mbtouc-tests: New file.
73209         * tests/unistr/test-u8-mbtouc.c: New file.
73211         Tests for module 'unistr/u32-mbtouc-unsafe'.
73212         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
73213         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
73214         * tests/unistr/test-u32-mbtouc.h: New file.
73216         Tests for module 'unistr/u16-mbtouc-unsafe'.
73217         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
73218         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
73219         * tests/unistr/test-u16-mbtouc.h: New file.
73221         Tests for module 'unistr/u8-mbtouc-unsafe'.
73222         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
73223         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
73224         * tests/unistr/test-u8-mbtouc.h: New file.
73226         Tests for module 'unistr/u32-mblen'.
73227         * modules/unistr/u32-mblen-tests: New file.
73228         * tests/unistr/test-u32-mblen.c: New file.
73230         Tests for module 'unistr/u16-mblen'.
73231         * modules/unistr/u16-mblen-tests: New file.
73232         * tests/unistr/test-u16-mblen.c: New file.
73234         Tests for module 'unistr/u8-mblen'.
73235         * modules/unistr/u8-mblen-tests: New file.
73236         * tests/unistr/test-u8-mblen.c: New file.
73238         Tests for module 'unistr/u32-to-u16'.
73239         * modules/unistr/u32-to-u16-tests: New file.
73240         * tests/unistr/test-u32-to-u16.c: New file.
73242         Tests for module 'unistr/u32-to-u8'.
73243         * modules/unistr/u32-to-u8-tests: New file.
73244         * tests/unistr/test-u32-to-u8.c: New file.
73246         Tests for module 'unistr/u16-to-u32'.
73247         * modules/unistr/u16-to-u32-tests: New file.
73248         * tests/unistr/test-u16-to-u32.c: New file.
73250         Tests for module 'unistr/u16-to-u8'.
73251         * modules/unistr/u16-to-u8-tests: New file.
73252         * tests/unistr/test-u16-to-u8.c: New file.
73254         Tests for module 'unistr/u8-to-u32'.
73255         * modules/unistr/u8-to-u32-tests: New file.
73256         * tests/unistr/test-u8-to-u32.c: New file.
73258         Tests for module 'unistr/u8-to-u16'.
73259         * modules/unistr/u8-to-u16-tests: New file.
73260         * tests/unistr/test-u8-to-u16.c: New file.
73262         Tests for module 'unistr/u32-check'.
73263         * modules/unistr/u32-check-tests: New file.
73264         * tests/unistr/test-u32-check.c: New file.
73266         Tests for module 'unistr/u16-check'.
73267         * modules/unistr/u16-check-tests: New file.
73268         * tests/unistr/test-u16-check.c: New file.
73270         Tests for module 'unistr/u8-check'.
73271         * modules/unistr/u8-check-tests: New file.
73272         * tests/unistr/test-u8-check.c: New file.
73274         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
73275         (category_equals): New function.
73276         (main): Add more tests.
73277         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
73279         * tests/unictype/test-bidi_byname.c (main): Add more tests.
73281 2010-01-10  Bruno Haible  <bruno@clisp.org>
73283         unistr/u*-strcoll: Try harder to distinguish different strings.
73284         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
73285         compare s1 and s2 to see if they are different.
73287 2010-01-10  Bruno Haible  <bruno@clisp.org>
73289         unistr/u*-stpncpy: Fix the return value.
73290         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
73291         description of the return value consistent with stpncpy in glibc.
73292         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
73293         written non-NUL unit.
73295 2010-01-10  Bruno Haible  <bruno@clisp.org>
73297         unistr/u*-next: Add missing dependencies.
73298         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
73299         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
73300         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
73302 2010-01-10  Bruno Haible  <bruno@clisp.org>
73304         unistr/u8-mbsnlen: Fix return value for incomplete character.
73305         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
73306         u8_mblen.
73307         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
73308         Remove unistr/u8-mblen.
73309         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
73310         u16_mblen.
73311         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
73312         Remove unistr/u16-mblen.
73314 2010-01-10  Bruno Haible  <bruno@clisp.org>
73316         wchar: Fix compilation error when <wchar.h> is used from coreutils.
73317         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
73318         Reported by Brian Gough <bjg@gnu.org> and
73319         Chris Clayton <chris2553@googlemail.com> via
73320         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
73322 2010-01-09  Bruno Haible  <bruno@clisp.org>
73324         unistr/u16-to-u32: Reject invalid input.
73325         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
73326         u16_mbtouc.
73327         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
73328         Remove unistr/u16-mbtouc.
73330         unistr/u16-to-u8: Reject invalid input.
73331         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
73332         u16_mbtouc.
73333         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
73334         Remove unistr/u16-mbtouc.
73336         unistr/u8-to-u32: Reject invalid input.
73337         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
73338         u8_mbtouc.
73339         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
73340         Remove unistr/u8-mbtouc.
73342         unistr/u8-to-u16: Reject invalid input.
73343         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73344         u8_mbtouc.
73345         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73346         Remove unistr/u8-mbtouc.
73348 2010-01-09  Bruno Haible  <bruno@clisp.org>
73350         Tests for module 'getlogin'.
73351         * modules/getlogin-tests: New file.
73352         * tests/test-getlogin.c: New file.
73354         New module 'getlogin'.
73355         * lib/unistd.in.h (getlogin): New declaration.
73356         * lib/getlogin.c: New file.
73357         * m4/getlogin.m4: New file.
73358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73359         HAVE_GETLOGIN.
73360         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73361         HAVE_GETLOGIN.
73362         * modules/getlogin: New file.
73363         * doc/posix-functions/getlogin.texi: Mention the new module.
73364         Reported by John W. Eaton <jwe@gnu.org>.
73366 2010-01-09  Bruno Haible  <bruno@clisp.org>
73368         getlogin_r: Support for native Windows.
73369         * lib/getlogin_r.c: Include <windows.h>
73370         (getlogin_r): Implement for native Windows.
73371         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73372         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73373         via John W. Eaton <jwe@gnu.org>.
73375 2010-01-09  Bruno Haible  <bruno@clisp.org>
73377         getlogin_r: Small fixes.
73378         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73379         succeeds.
73380         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73381         before testing whether getlogin_r is declared. No need to set
73382         HAVE_DECL_GETLOGIN_R to 1.
73383         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73385 2010-01-09  Bruno Haible  <bruno@clisp.org>
73387         * lib/unistd.in.h (getlogin_r): Add comment.
73389 2010-01-09  Bruno Haible  <bruno@clisp.org>
73391         Tests for module 'getlogin_r'.
73392         * modules/getlogin_r-tests: New file.
73393         * tests/test-getlogin_r.c: New file.
73395 2010-01-09  Jim Meyering  <meyering@redhat.com>
73397         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73398         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73399         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73401 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73403         * lib/dup2.c (rpl_dup2): Improve comment.
73405 2010-01-08  Eric Blake  <ebb9@byu.net>
73407         maint.mk: allow packages to add makefile @@ exceptions
73408         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73409         (sc_makefile_check): Rename...
73410         (sc_makefile_at_at_check): ...to this, and use hook.
73412         dup2: work around mingw bug
73413         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73414         Reported by Simon Josefsson.
73416 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73418         glob: Fix C++ compilation.
73419         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73420         C++.
73422 2010-01-07  Bruno Haible  <bruno@clisp.org>
73424         Fix indentation of wctype.in.h, broken since 2007-01-06.
73425         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73427 2010-01-07  Bruno Haible  <bruno@clisp.org>
73429         mbslen: Avoid collision with system function.
73430         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73431         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73432         * m4/mbslen.m4: New file.
73433         * modules/mbslen (Files): Add it.
73434         (configure.ac): Invoke gl_MBSLEN.
73435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73436         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73437         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73438         via Ian Beckwith <ianb@erislabs.net>.
73440 2010-01-07  Bruno Haible  <bruno@clisp.org>
73442         dirent: Document the last fix.
73443         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73445 2010-01-07  Bruno Haible  <bruno@clisp.org>
73447         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73448         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73449         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73450         va_list are defined.
73451         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73452         Reported by Eric Blake.
73454 2010-01-07  Bruno Haible  <bruno@clisp.org>
73456         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
73457         * modules/xlist (Depends-on): Add 'list',
73458         * modules/xoset (Depends-on): Add 'oset'.
73459         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73461 2010-01-07  Bruno Haible  <bruno@clisp.org>
73463         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
73464         * doc/posix-functions/strncasecmp.texi: Likewise.
73466 2010-01-07  Bruno Haible  <bruno@clisp.org>
73468         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
73470 2010-01-07  John W. Eaton  <jwe@octave.org>
73472         wctype: allow C++ use
73473         * lib/wctype.in.h: Add extern "C" block for C++.
73475 2010-01-06  Eric Blake  <ebb9@byu.net>
73477         maint.mk: detect incorrect GFDL usage
73478         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
73480 2010-01-06  Jim Meyering  <meyering@redhat.com>
73481         and Eric Blake  <ebb9@byu.net>
73483         maint.mk: ignore multi-line copyright in NEWS
73484         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
73486 2010-01-06  Eric Blake  <ebb9@byu.net>
73488         select: add missing dependency
73489         * modules/select-tests (Depends-on): Move sockets dependency...
73490         * modules/select (Depends-on): ...here.
73491         Reported by Ian Beckwith.
73493         doc: regenerate INSTALL
73494         * doc/INSTALL: Reflect recent autoconf update.
73495         * doc/INSTALL.ISO: Likewise.
73496         * doc/INSTALL.UTF-8: Likewise.
73498         pread: fix compilation on glibc
73499         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
73500         Reported by Ralf Wildenhues.
73502         dirent: fix test failure
73503         * lib/dirent.in.h (includes): Guarantee ino_t.
73504         Reported by Ralf Wildenhues.
73506 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
73508         linkat, renameat: avoid bad free
73509         * lib/at-func2.c (at_func2): Fix typo.
73510         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
73512 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73514         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
73515         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
73516         to avoid failure of symlink test later.
73518 2010-01-06  Eric Blake  <ebb9@byu.net>
73520         stdio, unistd: guarantee ssize_t
73521         * lib/unistd.in.h (includes): Ensure that types required by POSIX
73522         2008 are exposed when needed.
73523         * lib/stdio.in.h (includes): Likewise.
73524         Reported by Ralf Wildenhues.
73526 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
73528         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
73529         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
73530         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
73532 2010-01-06  Jim Meyering  <meyering@redhat.com>
73534         readtokens: this module *does* require xalloc.h
73535         It uses only functions that were omitted by the old syntax-check rule.
73536         * lib/readtokens.c: Include "xalloc.h" once again.
73537         * modules/readtokens (Depends-on): Add xalloc.
73538         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
73540 2010-01-05  Eric Blake  <ebb9@byu.net>
73542         maint: support 'make announcement' from a VPATH build
73543         * top/maint.mk (announcement): Look for correct NEWS file.
73545 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
73547         utimens (fdutimens): ignore a negative FD, per contract
73548         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
73549         when we have a valid file descriptor.  Otherwise, using a brand
73550         new glibc (with just-patched futimens that now fails with EBADF)
73551         would cause this function to fail with ENOSYS.
73552         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
73553         See also http://bugzilla.redhat.com/552320.
73555 2010-01-05  Eric Blake  <ebb9@byu.net>
73557         strcase: document what it provides
73558         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
73559         gnulib module.
73560         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
73561         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
73563 2010-01-05  Jim Meyering  <meyering@redhat.com>
73565         maint: remove useless inclusions of "xalloc.h"
73566         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
73567         * lib/readtokens.c: Likewise.
73568         * lib/same.c: Likewise.
73569         * modules/getloadavg (Depends-on): Remove xalloc.
73570         * modules/readtokens: Likewise.
73571         * modules/same: Likewise.
73573         maint.mk: include 4 more function names in alloca.h-checking regexp
73574         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
73575         regexp.  Before, we would give a false-positive (saying alloca.h
73576         is included unnecessarily) when the only uses involved omitted symbols.
73578         xalloc.h: use consistent formatting
73579         * lib/xalloc.h: Move declarations to start in the first column.
73581 2010-01-05  Eric Blake  <ebb9@byu.net>
73583         mkdir: avoid xalloc
73584         * lib/mkdir.c (includes): Drop unused header.
73585         Reported by John W. Eaton.
73587 2010-01-04  Jim Meyering  <meyering@redhat.com>
73589         nl_langinfo: avoid configure-time syntax error
73590         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73591         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73592         the empty string.  Don't let that provoke a shell syntax error.
73594         regcomp, regexec, fnmatch: avoid array bounds read error
73595         * lib/regcomp.c (build_equiv_class): From glibc:
73596         Use only the low 24 bits of a findidx return value as an index
73597         into the weights array.  Patch by Ulrich Drepper:
73598         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
73599         * lib/regexec.c (check_node_accept_bytes): Likewise.
73600         * lib/fnmatch_loop.c (FCT): Likewise.
73602         regcomp: skip collseq lookup when there are no rules
73603         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
73604         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
73606         regcomp: recognize ill-formed { } expressions
73607         * lib/regcomp.c (parse_dup_op): From glibc:
73608         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
73610         regcomp: fix typo in comment
73611         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
73612         s/satisfy/satisfies/.
73614         regcomp: sync from glibc: remove dead store
73615         * lib/regcomp.c (duplicate_node_closure): Remove useless
73616         search_duplicated_node call and dead store.
73618         regcomp: sync from glibc; always use nl_langinfo
73619         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
73620         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
73621         * modules/regex (Depends-on): Add nl_langinfo.
73623 2010-01-04  Eric Blake  <ebb9@byu.net>
73625         fdopendir: fix configure test
73626         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
73628 2010-01-01  Bruno Haible  <bruno@clisp.org>
73630         wchar: Remove unused configure check.
73631         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
73633 2010-01-01  Eric Blake  <ebb9@byu.net>
73635         headers: make check of system header explicit
73636         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
73637         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
73638         ourselves.
73639         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73641         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
73642         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
73643         internals.
73644         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
73645         missing.
73646         Suggested by Bruno Haible.
73648 2010-01-01  Jim Meyering  <meyering@redhat.com>
73650         ChangeLog: tweak to eliminate unnecessary copyright line
73651         * ChangeLog: Remove a copyright line that was mistakenly updated
73652         by today's update-copyright run.  Reported by Eric Blake.
73654         test-update-copyright: don't let envvar setting cause test failure
73655         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73657 2010-01-01  Bruno Haible  <bruno@clisp.org>
73659         localename: Avoid gcc warning.
73660         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73661         function if it is not used.
73663 2010-01-01  Jim Meyering  <meyering@redhat.com>
73665         update nearly all FSF copyright year lists to include 2010
73666         Use the same procedure as for 2009, outlined in
73667         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73669         version-etc: set COPYRIGHT_YEAR to 2010
73670         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73672 2009-12-31  Eric Blake  <ebb9@byu.net>
73674         doc: correct availability of cygwin 1.5.x getopt
73675         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73676         variables.
73677         * doc/posix-functions/opterr.texi (opterr): Likewise.
73678         * doc/posix-functions/optind.texi (optind): Likewise.
73679         * doc/posix-functions/optopt.texi (optopt): Likewise.
73680         * doc/posix-functions/tzname.texi (tzname): Likewise.
73682         openat: update maintainer
73683         * modules/openat (Maintainer): Add myself.
73685         utimens: avoid shadowing warning
73686         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73687         buffers into one, to avoid shadowing, as well as avoiding a
73688         redundant stat.
73689         Reported by Jim Meyering.
73691         test-dup2: avoid compiler warning
73692         * tests/test-dup2.c (is_inheritable): Only define if used.
73694 2010-01-01  Bruno Haible  <bruno@clisp.org>
73696         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73697         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73698         defined, use wctomb instead of wcrtomb.
73700 2010-01-01  Bruno Haible  <bruno@clisp.org>
73702         iconv: Reject native Solaris iconv.
73703         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73704         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73706 2009-12-31  Bruno Haible  <bruno@clisp.org>
73708         * tests/test-signal.c (main): Remove test of 'SIG'.
73710 2009-12-31  Bruno Haible  <bruno@clisp.org>
73712         spawn: Fix incomplete fix.
73713         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73714         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73715         warnings for GNULIB_POSIXCHECK again.
73716         Reported by Eric Blake.
73718 2009-12-31  Bruno Haible  <bruno@clisp.org>
73720         Avoid namespace pollution on glibc systems.
73721         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73722         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73723         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73724         glibc systems.
73726 2009-12-31  Bruno Haible  <bruno@clisp.org>
73728         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73729         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73730         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73731         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73732         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73733         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73734         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73736 2009-12-31  Bruno Haible  <bruno@clisp.org>
73738         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73739         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73740         afterwards.
73742 2009-12-31  Bruno Haible  <bruno@clisp.org>
73744         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73745         SYS_UTSNAME_H.
73747 2009-12-31  Bruno Haible  <bruno@clisp.org>
73749         spawn: Fix misapplied patch.
73750         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73751         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73752         warnings for GNULIB_POSIXCHECK.
73754 2009-12-31  Bruno Haible  <bruno@clisp.org>
73756         times: Update after sys_times changed.
73757         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73758         * modules/times (Files): Add it.
73759         (configure.ac): Invoke gl_FUNC_TIMES.
73761 2009-12-31  Bruno Haible  <bruno@clisp.org>
73763         Use AC_C_INLINE where necessary.
73764         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73765         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73766         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73767         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73768         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73769         * m4/mbiter.m4 (gl_MBITER): Likewise.
73770         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73771         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73772         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73773         * modules/u64 (configure.ac): Likewise.
73775 2009-12-31  Bruno Haible  <bruno@clisp.org>
73777         Use AC_C_INLINE instead of module 'inline' where possible.
73778         * modules/inline (Description): Clarify purpose.
73779         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73780         * modules/count-one-bits (Depends-on): Remove inline.
73781         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73782         * modules/openat (Depends-on): Remove inline.
73783         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73784         instead of depending on module 'inline'.
73785         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73786         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73787         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73788         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73789         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73790         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73791         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73792         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73793         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73794         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73795         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73796         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73797         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73798         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73799         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73800         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73801         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73802         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73803         Likewise.
73804         * modules/unictype/property-ascii-hex-digit (Depends-on,
73805         configure.ac): Likewise.
73806         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73807         configure.ac): Likewise.
73808         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73809         configure.ac): Likewise.
73810         * modules/unictype/property-bidi-block-separator (Depends-on,
73811         configure.ac): Likewise.
73812         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73813         configure.ac): Likewise.
73814         * modules/unictype/property-bidi-common-separator (Depends-on,
73815         configure.ac): Likewise.
73816         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73817         Likewise.
73818         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73819         configure.ac): Likewise.
73820         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73821         configure.ac): Likewise.
73822         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73823         configure.ac): Likewise.
73824         * modules/unictype/property-bidi-european-digit (Depends-on,
73825         configure.ac): Likewise.
73826         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73827         configure.ac): Likewise.
73828         * modules/unictype/property-bidi-left-to-right (Depends-on,
73829         configure.ac): Likewise.
73830         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73831         configure.ac): Likewise.
73832         * modules/unictype/property-bidi-other-neutral (Depends-on,
73833         configure.ac): Likewise.
73834         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73835         Likewise.
73836         * modules/unictype/property-bidi-segment-separator (Depends-on,
73837         configure.ac): Likewise.
73838         * modules/unictype/property-bidi-whitespace (Depends-on,
73839         configure.ac): Likewise.
73840         * modules/unictype/property-combining (Depends-on, configure.ac):
73841         Likewise.
73842         * modules/unictype/property-composite (Depends-on, configure.ac):
73843         Likewise.
73844         * modules/unictype/property-currency-symbol (Depends-on,
73845         configure.ac): Likewise.
73846         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73847         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73848         Likewise.
73849         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73850         configure.ac): Likewise.
73851         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73852         Likewise.
73853         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73854         Likewise.
73855         * modules/unictype/property-extender (Depends-on, configure.ac):
73856         Likewise.
73857         * modules/unictype/property-format-control (Depends-on, configure.ac):
73858         Likewise.
73859         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73860         Likewise.
73861         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73862         Likewise.
73863         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73864         Likewise.
73865         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73866         Likewise.
73867         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73868         Likewise.
73869         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73870         Likewise.
73871         * modules/unictype/property-id-start (Depends-on, configure.ac):
73872         Likewise.
73873         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73874         Likewise.
73875         * modules/unictype/property-ids-binary-operator (Depends-on,
73876         configure.ac): Likewise.
73877         * modules/unictype/property-ids-trinary-operator (Depends-on,
73878         configure.ac): Likewise.
73879         * modules/unictype/property-ignorable-control (Depends-on,
73880         configure.ac): Likewise.
73881         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73882         Likewise.
73883         * modules/unictype/property-join-control (Depends-on, configure.ac):
73884         Likewise.
73885         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73886         Likewise.
73887         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73888         Likewise.
73889         * modules/unictype/property-logical-order-exception (Depends-on,
73890         configure.ac): Likewise.
73891         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73892         Likewise.
73893         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73894         * modules/unictype/property-non-break (Depends-on, configure.ac):
73895         Likewise.
73896         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73897         Likewise.
73898         * modules/unictype/property-numeric (Depends-on, configure.ac):
73899         Likewise.
73900         * modules/unictype/property-other-alphabetic (Depends-on,
73901         configure.ac): Likewise.
73902         * modules/unictype/property-other-default-ignorable-code-point
73903         (Depends-on, configure.ac): Likewise.
73904         * modules/unictype/property-other-grapheme-extend (Depends-on,
73905         configure.ac): Likewise.
73906         * modules/unictype/property-other-id-continue (Depends-on,
73907         configure.ac): Likewise.
73908         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73909         Likewise.
73910         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73911         Likewise.
73912         * modules/unictype/property-other-math (Depends-on, configure.ac):
73913         Likewise.
73914         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73915         Likewise.
73916         * modules/unictype/property-paired-punctuation (Depends-on,
73917         configure.ac): Likewise.
73918         * modules/unictype/property-paragraph-separator (Depends-on,
73919         configure.ac): Likewise.
73920         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73921         Likewise.
73922         * modules/unictype/property-pattern-white-space (Depends-on,
73923         configure.ac): Likewise.
73924         * modules/unictype/property-private-use (Depends-on, configure.ac):
73925         Likewise.
73926         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73927         Likewise.
73928         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73929         Likewise.
73930         * modules/unictype/property-radical (Depends-on, configure.ac):
73931         Likewise.
73932         * modules/unictype/property-sentence-terminal (Depends-on,
73933         configure.ac): Likewise.
73934         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73935         Likewise.
73936         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73937         * modules/unictype/property-terminal-punctuation (Depends-on,
73938         configure.ac): Likewise.
73939         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73940         Likewise.
73941         * modules/unictype/property-unassigned-code-value (Depends-on,
73942         configure.ac): Likewise.
73943         * modules/unictype/property-unified-ideograph (Depends-on,
73944         configure.ac): Likewise.
73945         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73946         Likewise.
73947         * modules/unictype/property-variation-selector (Depends-on,
73948         configure.ac): Likewise.
73949         * modules/unictype/property-white-space (Depends-on, configure.ac):
73950         Likewise.
73951         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73952         Likewise.
73953         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73954         Likewise.
73955         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73956         Likewise.
73957         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73958         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73959         Likewise.
73961 2009-12-31  Bruno Haible  <bruno@clisp.org>
73963         Remove unnecessary AC_C_INLINE invocation.
73964         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73965         since 2009-08-21.
73967 2009-12-31  Jim Meyering  <meyering@redhat.com>
73969         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73970         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73971         With this change, we can all remove the gpg_key_ID = ... definition
73972         from our respective cfg.mk files.
73974         maint.mk: create announcement template in ~/, not in /tmp
73975         * top/maint.mk (emit_upload_commands): Adjust.
73976         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73977         Remove temporary file, .ci-msg.
73979 2009-12-31  Eric Blake  <ebb9@byu.net>
73981         link-warning: always build headers with link warnings
73982         * modules/arpa_inet (Makefile.am): Always build replacement
73983         header.
73984         * modules/ctype (Makefile.am): Likewise.
73985         * modules/dirent (Makefile.am): Likewise.
73986         * modules/inttypes (Makefile.am): Likewise.
73987         * modules/langinfo (Makefile.am): Likewise.
73988         * modules/locale (Makefile.am): Likewise.
73989         * modules/spawn (Makefile.am): Likewise.
73990         * modules/sys_file (Makefile.am): Likewise.
73991         * modules/sys_ioctl (Makefile.am): Likewise.
73992         * modules/sys_select (Makefile.am): Likewise.
73993         * modules/sys_socket (Makefile.am): Likewise.
73994         * modules/sys_times (Makefile.am): Likewise.
73995         * modules/sys_utsname (Makefile.am): Likewise.
73996         * modules/sys_wait (Makefile.am): Likewise.
73997         * modules/wchar (Makefile.am): Likewise.
73998         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73999         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
74000         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
74001         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
74002         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
74003         Likewise.
74004         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74005         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
74006         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
74007         Likewise.
74008         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
74009         Likewise.
74010         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
74011         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
74012         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
74013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74014         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
74015         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74016         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74017         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
74018         (gl_WCHAR_H_DEFAULTS): Likewise.
74020 2009-12-31  Eric Blake  <ebb9@byu.net>
74022         signal, spawn: use link warnings
74023         * lib/signal.in.h (sigset_t): Make unconditional.
74024         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
74025         (sigpending, sigprocmask, sigaction): Add link warnings.
74026         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
74027         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
74028         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
74029         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
74030         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
74031         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
74032         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
74033         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
74034         (posix_spawn_file_actions_destroy)
74035         (posix_spawn_file_actions_addopen)
74036         (posix_spawn_file_actions_addclose)
74037         (posix_spawn_file_actions_adddup2): Likewise.
74038         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
74039         * tests/test-signal.c (main): Enhance test.
74041         spawn: improve wrapper support
74042         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
74043         (gl_SPAWN_H_DEFAULTS): New defaults.
74044         * modules/spawn (Makefile.am): Substitute them.
74045         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
74046         Only declare if missing or broken.
74048         sys_times, sys_utsname: use include_next
74049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
74050         header.
74051         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
74052         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74053         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74054         * modules/sys_times (Depends-on): Add include_next.
74055         (Makefile.am): Substitute additional values.
74056         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
74057         * lib/sys_times.in.h (includes): Include native header, if
74058         available.
74059         * lib/sys_utsname.in.h (includes): Likewise.
74060         * tests/test-sys_times.c (main): Enhance test.
74062         fdutimensat: revert prior patch
74063         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
74064         utimens.h.
74065         Reported by Bruno Haible.
74067 2009-12-30  Eric Blake  <ebb9@byu.net>
74069         sys_wait: drop link-warning dependency
74070         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
74071         link-warning efforts.
74072         * lib/sys_wait.in.h: Likewise.
74074         fdutimensat: remove bogus dependency
74075         * modules/fdutimensat (Depends-on): Drop inline.
74077         unistd: fix typo
74078         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
74080 2009-12-30  Bruno Haible  <bruno@clisp.org>
74082         Fix compilation error with Solaris cc.
74083         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
74084         * lib/unicase/u16-is-invariant.c: Likewise.
74085         * lib/unicase/u32-is-invariant.c: Likewise.
74086         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74088 2009-12-30  Bruno Haible  <bruno@clisp.org>
74090         Fix test crash.
74091         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
74092         locales.
74093         Reported by Simon Josefsson <simon@josefsson.org>.
74095 2009-12-30  Bruno Haible  <bruno@clisp.org>
74097         Fix compilation error on most platforms.
74098         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
74099         Reported by Simon Josefsson <simon@josefsson.org>
74100         and Nelson H. F. Beebe <beebe@math.utah.edu>.
74102 2009-12-30  Eric Blake  <ebb9@byu.net>
74104         futimens, utimensat: work around ntfs-3g bug
74105         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
74106         a ctime bug is present, and expand workaround to cover ntfs-3g.
74107         * lib/utimens.c (fdutimens, lutimens): Likewise.
74108         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
74109         (validate_timespec): Adjust return value.
74110         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
74111         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74112         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
74114 2009-12-29  Eric Blake  <ebb9@byu.net>
74116         link-warning: make usage consistent
74117         * modules/ctype (Depends-on): Add link-warning.
74118         (Makefile.am): Update rules accordingly.
74119         * modules/langinfo (Depends-on, Makefile.am): Likewise.
74120         * modules/locale (Depends-on, Makefile.am): Likewise.
74121         * modules/sys_file (Makefile.am): Likewise.
74122         * modules/getopt-posix (Makefile.am): Delete unused link warning
74123         efforts.
74124         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
74125         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
74126         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
74127         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
74129         stdio: remove unused variables
74130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
74131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
74132         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
74134         tests: test more substitute headers
74135         * modules/ctype-tests: New file.
74136         * modules/dirent-tests: Likewise.
74137         * modules/spawn-tests: Likewise.
74138         * modules/sys_file-tests: Likewise.
74139         * modules/sys_ioctl-tests: Likewise.
74140         * modules/sys_wait-tests: Likewise.
74141         * tests/test-ctype.c: Likewise.
74142         * tests/test-dirent.c: Likewise.
74143         * tests/test-spawn.c: Likewise.
74144         * tests/test-sys_file.c: Likewise.
74145         * tests/test-sys_ioctl.c: Likewise.
74146         * tests/test-sys_wait.c: Likewise.
74147         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
74148         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
74149         whether or not flock is in use.
74151         tests: remove License section from module
74152         * modules/arpa_inet-tests: Remove unneeded section.
74153         * modules/byteswap-tests: Likewise.
74154         * modules/ceilf-tests: Likewise.
74155         * modules/ceill-tests: Likewise.
74156         * modules/crypto/des-tests: Likewise.
74157         * modules/crypto/gc-arcfour-tests: Likewise.
74158         * modules/crypto/gc-arctwo-tests: Likewise.
74159         * modules/crypto/gc-des-tests: Likewise.
74160         * modules/crypto/gc-hmac-md5-tests: Likewise.
74161         * modules/crypto/gc-hmac-sha1-tests: Likewise.
74162         * modules/crypto/gc-md2-tests: Likewise.
74163         * modules/crypto/gc-md4-tests: Likewise.
74164         * modules/crypto/gc-md5-tests: Likewise.
74165         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
74166         * modules/crypto/gc-rijndael-tests: Likewise.
74167         * modules/crypto/gc-sha1-tests: Likewise.
74168         * modules/crypto/gc-tests: Likewise.
74169         * modules/crypto/md2-tests: Likewise.
74170         * modules/crypto/md4-tests: Likewise.
74171         * modules/fcntl-h-tests: Likewise.
74172         * modules/floorf-tests: Likewise.
74173         * modules/floorl-tests: Likewise.
74174         * modules/frexp-nolibm-tests: Likewise.
74175         * modules/frexp-tests: Likewise.
74176         * modules/frexpl-nolibm-tests: Likewise.
74177         * modules/frexpl-tests: Likewise.
74178         * modules/getaddrinfo-tests: Likewise.
74179         * modules/inttypes-tests: Likewise.
74180         * modules/isfinite-tests: Likewise.
74181         * modules/isinf-tests: Likewise.
74182         * modules/ldexpl-tests: Likewise.
74183         * modules/locale-tests: Likewise.
74184         * modules/math-tests: Likewise.
74185         * modules/netdb-tests: Likewise.
74186         * modules/netinet_in-tests: Likewise.
74187         * modules/printf-frexp-tests: Likewise.
74188         * modules/printf-frexpl-tests: Likewise.
74189         * modules/priv-set-tests: Likewise.
74190         * modules/random_r-tests: Likewise.
74191         * modules/round-tests: Likewise.
74192         * modules/roundf-tests: Likewise.
74193         * modules/roundl-tests: Likewise.
74194         * modules/search-tests: Likewise.
74195         * modules/select-tests: Likewise.
74196         * modules/signal-tests: Likewise.
74197         * modules/stdbool-tests: Likewise.
74198         * modules/stddef-tests: Likewise.
74199         * modules/stdint-tests: Likewise.
74200         * modules/stdio-tests: Likewise.
74201         * modules/stdlib-tests: Likewise.
74202         * modules/string-tests: Likewise.
74203         * modules/strings-tests: Likewise.
74204         * modules/sys_select-tests: Likewise.
74205         * modules/sys_socket-tests: Likewise.
74206         * modules/sys_stat-tests: Likewise.
74207         * modules/sys_time-tests: Likewise.
74208         * modules/sys_utsname-tests: Likewise.
74209         * modules/sysexits-tests: Likewise.
74210         * modules/time-tests: Likewise.
74211         * modules/trunc-tests: Likewise.
74212         * modules/truncf-tests: Likewise.
74213         * modules/truncl-tests: Likewise.
74214         * modules/tsearch-tests: Likewise.
74215         * modules/unistd-tests: Likewise.
74216         * modules/wchar-tests: Likewise.
74217         * modules/wctype-tests: Likewise.
74219         tests: fix license on several tests
74220         * tests/test-des.c: Update to GPLv3+.
74221         * tests/test-flock.c: Likewise.
74222         * tests/test-fsync.c: Likewise.
74223         * tests/test-futimens.h: Likewise.
74224         * tests/test-gc-arcfour.c: Likewise.
74225         * tests/test-gc-arctwo.c: Likewise.
74226         * tests/test-gc-des.c: Likewise.
74227         * tests/test-gc-hmac-md5.c: Likewise.
74228         * tests/test-gc-hmac-sha1.c: Likewise.
74229         * tests/test-gc-md2.c: Likewise.
74230         * tests/test-gc-md4.c: Likewise.
74231         * tests/test-gc-md5.c: Likewise.
74232         * tests/test-gc-pbkdf2-sha1.c: Likewise.
74233         * tests/test-gc-rijndael.c: Likewise.
74234         * tests/test-gc-sha1.c: Likewise.
74235         * tests/test-gc.c: Likewise.
74236         * tests/test-getcwd.c: Likewise.
74237         * tests/test-link.c: Likewise.
74238         * tests/test-link.h: Likewise.
74239         * tests/test-lutimens.h: Likewise.
74240         * tests/test-md2.c: Likewise.
74241         * tests/test-md4.c: Likewise.
74242         * tests/test-mkdir.h: Likewise.
74243         * tests/test-rename.c: Likewise.
74244         * tests/test-rename.h: Likewise.
74245         * tests/test-safe-alloc.c: Likewise.
74246         * tests/test-utimens-common.h: Likewise.
74247         * tests/test-utimens.h: Likewise.
74249         maint: sync license texts
74250         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
74251         * doc/gpl-3.0.texi: Revert copyright year update.
74252         * doc/lgpl-3.0.texi: Likewise.
74254 2009-12-29  Jim Meyering  <meyering@redhat.com>
74256         update nearly all FSF copyright year lists to include 2009
74257         The files named by the following are exempted:
74258             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
74259               test -f "$dst" && { echo "$dst"; continue; }
74260               test -d "$dst" || continue
74261               echo "$dst"/$(basename "$src")
74262             done > exempt
74263             git ls-files tests/unictype >> exempt
74264         In the remaining files, convert to all-interval notation if
74265         - there is already at least one year interval like 2000-2003
74266         - the file is maintained by me
74267         - the file is in lib/uni*/, where that style already prevails
74268         Otherwise, use update-copyright's default.
74270 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74271         and Eric Blake  <ebb9@byu.net>
74273         tests: don't require debug system() to pass
74274         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
74275         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74276         * tests/test-unlink.h (test_unlink_func): Likewise.
74277         * tests/test-fstatat.c (main): ...into callers.
74278         * tests/test-lstat.c (main): Likewise.
74279         * tests/test-rmdir.c (main): Likewise.
74280         * tests/test-unlink.c (main): Likewise.
74281         * tests/test-unlinkat.c (main): Likewise.
74282         * tests/test-areadlink-with-size.c (main): Don't require a
74283         debug-only system call to pass, aiding cross-testing to mingw.
74284         * tests/test-areadlink.c (main): Likewise.
74285         * tests/test-areadlinkat-with-size.c (main): Likewise.
74286         * tests/test-areadlinkat.c (main): Likewise.
74287         * tests/test-canonicalize-lgpl.c (main): Likewise.
74288         * tests/test-canonicalize.c (main): Likewise.
74289         * tests/test-chown.c (main): Likewise.
74290         * tests/test-fchownat.c (main): Likewise.
74291         * tests/test-lchown.c (main): Likewise.
74292         * tests/test-fdutimensat.c (main): Likewise.
74293         * tests/test-futimens.c (main): Likewise.
74294         * tests/test-link.c (main): Likewise.
74295         * tests/test-linkat.c (main): Likewise.
74296         * tests/test-mkdir.c (main): Likewise.
74297         * tests/test-mkdirat.c (main): Likewise.
74298         * tests/test-mkfifo.c (main): Likewise.
74299         * tests/test-mkfifoat.c (main): Likewise.
74300         * tests/test-mknod.c (main): Likewise.
74301         * tests/test-readlink.c (main): Likewise.
74302         * tests/test-remove.c (main): Likewise.
74303         * tests/test-rename.c (main): Likewise.
74304         * tests/test-renameat.c (main): Likewise.
74305         * tests/test-symlink.c (main): Likewise.
74306         * tests/test-symlinkat.c (main): Likewise.
74307         * tests/test-utimens.c (main): Likewise.
74308         * tests/test-utimensat.c (main): Likewise.
74310 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74312         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
74313         on $(UNUSED_PARAMETER_H) to avoid build failure.
74315 2009-12-28  Jim Meyering  <meyering@redhat.com>
74317         update-copyright: you may specify a max. line length other than 72
74318         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74320         maint: use consistent FSF copyright line syntax
74321         * lib/posixtm.c: Add missing comma in FSF copyright line.
74322         * lib/posixtm.h: Likewise.
74323         * lib/getugroups.c: Add missing ", Inc.".
74325         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
74326         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
74327         FSF copyright line.  Remove trailing blanks.
74329 2009-12-28  Eric Blake  <ebb9@byu.net>
74331         test-dup2: reduce dependencies
74332         * modules/cloexec (Configure.ac): Set witness.
74333         * modules/dup2-tests (Depends-on): Drop cloexec.
74334         * tests/test-dup2.c (main): Skip portion of test if cloexec module
74335         not present.
74336         Suggested by Bruno Haible.
74338 2009-12-26  Bruno Haible  <bruno@clisp.org>
74340         Remove an unneeded dependency.
74341         * modules/fseterr (Depends-on): Remove dup2.
74343 2009-12-26  Eric Blake  <ebb9@byu.net>
74345         tests: use macros.h in more places
74346         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74347         (ASSERT_STREAM): Provide default of stderr.
74348         * tests/test-dirent-safer.c: Include macros.h, using alternate
74349         stream for assertions.
74350         * tests/test-dup-safer.c: Likewise.
74351         * tests/test-freopen-safer.c: Likewise.
74352         * tests/test-getopt.c: Likewise.
74353         * tests/test-openat-safer.c: Likewise.
74354         * tests/test-pipe.c: Likewise.
74355         * tests/test-popen-safer.c: Likewise.
74356         * modules/dirent-safer-tests (Files): Include macros.h.
74357         * modules/unistd-safer-tests (Files): Likewise.
74358         * modules/freopen-safer-tests (Files): Likewise.
74359         * modules/getopt-posix-tests (Files): Likewise.
74360         * modules/openat-safer-tests (Files): Likewise.
74361         * modules/pipe-tests (Files): Likewise.
74363 2009-12-26  Bruno Haible  <bruno@clisp.org>
74365         javacomp-script: Portability fix.
74366         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74367         that it also works on Solaris.
74369 2009-12-26  Bruno Haible  <bruno@clisp.org>
74371         localename: Fix storage allocation of gl_locale_name_thread's result.
74372         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74373         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74374         all platforms that have 'uselocale'.
74375         (gl_locale_name_thread_unsafe): New function, extracted from
74376         gl_locale_name_thread.
74377         (gl_locale_name_thread): Call struniq on all platforms that have
74378         'uselocale'.
74379         * tests/test-localename.c (test_locale_name_thread): Check that the
74380         resulting strings are permanently allocated.
74381         * modules/localename-tests (Depends-on): Add strdup.
74383 2009-12-26  Bruno Haible  <bruno@clisp.org>
74385         * tests/test-localename.c (categories): Fill in the strings.
74387 2009-12-26  Jim Meyering  <meyering@redhat.com>
74389         isdir: complete the removal of m4/isdir.m4
74390         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74392         isdir: clean up, since at least grep still uses it
74393         * lib/isdir.c: Include "isdir.h".
74394         (S_ISDIR): Remove now-unneeded definition.
74395         * modules/isdir (Files): Add lib/isdir.h.
74396         * lib/isdir.h: New file, with declaration.
74397         * m4/isdir.m4: Remove file -- unneeded.
74399 2009-12-25  Bruno Haible  <bruno@clisp.org>
74401         selinux-h: Make generated .h files standalone.
74402         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74403         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74404         * lib/se-selinux.in.h: Likewise.
74405         * modules/selinux-h (Depends-on): Add unused-parameter.
74406         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74407         selinux/selinux.h and selinux/context.h.
74408         Suggested by Eric Blake.
74410 2009-12-25  Bruno Haible  <bruno@clisp.org>
74412         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74413         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74414         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74415         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74416         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74418 2009-12-24  Bruno Haible  <bruno@clisp.org>
74420         openat: Fix warning.
74421         * lib/openat-proc.c: Include <unistd.h>.
74423 2009-12-24  Bruno Haible  <bruno@clisp.org>
74425         New module 'unused-parameter'.
74426         * build-aux/unused-parameter.h: New file, extracted from earlier
74427         gnulib-common.m4.
74428         * modules/unused-parameter: New file.
74429         * lib/unistr.h: Include unused-parameter.h.
74430         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74431         _GL_UNUSED.
74432         * modules/unistr/base (Depends-on): Add unused-parameter.
74434 2009-12-24  Bruno Haible  <bruno@clisp.org>
74436         Add missing dependencies to 'extensions' module.
74437         * m4/extensions.m4: Add comment.
74438         * modules/accept4 (Depends-on): Add extensions.
74439         * modules/dup3 (Depends-on): Likewise.
74440         * modules/fcntl (Depends-on): Likewise.
74441         * modules/futimens (Depends-on): Likewise.
74442         * modules/mknod (Depends-on): Likewise.
74443         * modules/pipe2 (Depends-on): Likewise.
74444         * modules/stat-time (Depends-on): Likewise.
74445         * modules/strcasestr-simple (Depends-on): Likewise.
74446         * modules/strsignal (Depends-on): Likewise.
74447         * modules/utimensat (Depends-on): Likewise.
74448         * modules/localcharset (Depends-on): Likewise. Needed because of
74449         gl_FCNTL_O_FLAGS.
74450         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74451         AC_TYPE_MBSTATE_T.
74452         * modules/wcsnrtombs (Depends-on): Likewise.
74453         * modules/wcsrtombs (Depends-on): Likewise.
74455 2009-12-24  Bruno Haible  <bruno@clisp.org>
74457         binary-io: Avoid gcc warning due to SET_BINARY.
74458         * lib/binary-io.h (SET_BINARY): Cast the result to void.
74459         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
74461 2009-12-24  Bruno Haible  <bruno@clisp.org>
74463         Avoid future namespace pollution on glibc systems.
74464         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
74465         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
74466         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
74467         glibc systems.
74469 2009-12-24  Bruno Haible  <bruno@clisp.org>
74471         Refactor common macros used in tests.
74472         * tests/macros.h: New file.
74473         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
74474         and/or <stdlib.h>, if appropriate.
74475         (ASSERT, SIZEOF): Remove macros.
74476         * tests/test-areadlink-with-size.c: Likewise.
74477         * tests/test-areadlinkat.c: Likewise.
74478         * tests/test-areadlinkat-with-size.c: Likewise.
74479         * tests/test-argmatch.c: Likewise.
74480         * tests/test-argv-iter.c: Likewise.
74481         * tests/test-array-mergesort.c: Likewise.
74482         * tests/test-array_list.c: Likewise.
74483         * tests/test-array_oset.c: Likewise.
74484         * tests/test-avltree_list.c: Likewise.
74485         * tests/test-avltree_oset.c: Likewise.
74486         * tests/test-avltreehash_list.c: Likewise.
74487         * tests/test-base64.c: Likewise.
74488         * tests/test-binary-io.c: Likewise.
74489         * tests/test-bitrotate.c: Likewise.
74490         * tests/test-btowc.c: Likewise.
74491         * tests/test-byteswap.c: Likewise.
74492         * tests/test-c-ctype.c: Likewise.
74493         * tests/test-c-stack.c: Likewise.
74494         * tests/test-c-strcasecmp.c: Likewise.
74495         * tests/test-c-strcasestr.c: Likewise.
74496         * tests/test-c-strncasecmp.c: Likewise.
74497         * tests/test-c-strstr.c: Likewise.
74498         * tests/test-canonicalize-lgpl.c: Likewise.
74499         * tests/test-canonicalize.c: Likewise.
74500         * tests/test-carray_list.c: Likewise.
74501         * tests/test-ceilf1.c: Likewise.
74502         * tests/test-ceilf2.c: Likewise.
74503         * tests/test-ceill.c: Likewise.
74504         * tests/test-chown.c: Likewise.
74505         * tests/test-cloexec.c: Likewise.
74506         * tests/test-copy-acl.c: Likewise.
74507         * tests/test-copy-file.c: Likewise.
74508         * tests/test-count-one-bits.c: Likewise.
74509         * tests/test-dprintf-posix.c: Likewise.
74510         * tests/test-dup2.c: Likewise.
74511         * tests/test-dup3.c: Likewise.
74512         * tests/test-duplocale.c: Likewise.
74513         * tests/test-fbufmode.c: Likewise.
74514         * tests/test-fchdir.c: Likewise.
74515         * tests/test-fchownat.c: Likewise.
74516         * tests/test-fcntl-safer.c: Likewise.
74517         * tests/test-fcntl.c: Likewise.
74518         * tests/test-fdopendir.c: Likewise.
74519         * tests/test-fdutimensat.c: Likewise.
74520         * tests/test-fflush2.c: Likewise.
74521         * tests/test-file-has-acl.c: Likewise.
74522         * tests/test-filevercmp.c: Likewise.
74523         * tests/test-flock.c: Likewise.
74524         * tests/test-floorf1.c: Likewise.
74525         * tests/test-floorf2.c: Likewise.
74526         * tests/test-floorl.c: Likewise.
74527         * tests/test-fnmatch.c: Likewise.
74528         * tests/test-fopen.h: Likewise.
74529         * tests/test-fpending.c: Likewise.
74530         * tests/test-fprintf-posix.c: Likewise.
74531         * tests/test-fpurge.c: Likewise.
74532         * tests/test-freadable.c: Likewise.
74533         * tests/test-freadahead.c: Likewise.
74534         * tests/test-freading.c: Likewise.
74535         * tests/test-freadptr.c: Likewise.
74536         * tests/test-freadptr2.c: Likewise.
74537         * tests/test-freadseek.c: Likewise.
74538         * tests/test-freopen.c: Likewise.
74539         * tests/test-frexp.c: Likewise.
74540         * tests/test-frexpl.c: Likewise.
74541         * tests/test-fseek.c: Likewise.
74542         * tests/test-fseeko.c: Likewise.
74543         * tests/test-fstatat.c: Likewise.
74544         * tests/test-fstrcmp.c: Likewise.
74545         * tests/test-fsync.c: Likewise.
74546         * tests/test-ftell.c: Likewise.
74547         * tests/test-ftello.c: Likewise.
74548         * tests/test-func.c: Likewise.
74549         * tests/test-futimens.c: Likewise.
74550         * tests/test-fwritable.c: Likewise.
74551         * tests/test-fwriting.c: Likewise.
74552         * tests/test-getcwd.c: Likewise.
74553         * tests/test-getdate.c: Likewise.
74554         * tests/test-getdelim.c: Likewise.
74555         * tests/test-getdtablesize.c: Likewise.
74556         * tests/test-getgroups.c: Likewise.
74557         * tests/test-getline.c: Likewise.
74558         * tests/test-getndelim2.c: Likewise.
74559         * tests/test-glob.c: Likewise.
74560         * tests/test-hash.c: Likewise.
74561         * tests/test-i-ring.c: Likewise.
74562         * tests/test-iconv-utf.c: Likewise.
74563         * tests/test-iconv.c: Likewise.
74564         * tests/test-idpriv-drop.c: Likewise.
74565         * tests/test-idpriv-droptemp.c: Likewise.
74566         * tests/test-inet_ntop.c: Likewise.
74567         * tests/test-inet_pton.c: Likewise.
74568         * tests/test-isblank.c: Likewise.
74569         * tests/test-isfinite.c: Likewise.
74570         * tests/test-isinf.c: Likewise.
74571         * tests/test-isnan.c: Likewise.
74572         * tests/test-isnand.h: Likewise.
74573         * tests/test-isnanf.h: Likewise.
74574         * tests/test-isnanl.h: Likewise.
74575         * tests/test-lchown.c: Likewise.
74576         * tests/test-ldexpl.c: Likewise.
74577         * tests/test-link.c: Likewise.
74578         * tests/test-linkat.c: Likewise.
74579         * tests/test-linked_list.c: Likewise.
74580         * tests/test-linkedhash_list.c: Likewise.
74581         * tests/test-localename.c: Likewise.
74582         * tests/test-lseek.c: Likewise.
74583         * tests/test-lstat.c: Likewise.
74584         * tests/test-mbmemcasecmp.c: Likewise.
74585         * tests/test-mbmemcasecoll.c: Likewise.
74586         * tests/test-mbrtowc.c: Likewise.
74587         * tests/test-mbscasecmp.c: Likewise.
74588         * tests/test-mbscasestr1.c: Likewise.
74589         * tests/test-mbscasestr2.c: Likewise.
74590         * tests/test-mbscasestr3.c: Likewise.
74591         * tests/test-mbscasestr4.c: Likewise.
74592         * tests/test-mbschr.c: Likewise.
74593         * tests/test-mbscspn.c: Likewise.
74594         * tests/test-mbsinit.c: Likewise.
74595         * tests/test-mbsncasecmp.c: Likewise.
74596         * tests/test-mbsnrtowcs.c: Likewise.
74597         * tests/test-mbspbrk.c: Likewise.
74598         * tests/test-mbspcasecmp.c: Likewise.
74599         * tests/test-mbsrchr.c: Likewise.
74600         * tests/test-mbsrtowcs.c: Likewise.
74601         * tests/test-mbsspn.c: Likewise.
74602         * tests/test-mbsstr1.c: Likewise.
74603         * tests/test-mbsstr2.c: Likewise.
74604         * tests/test-mbsstr3.c: Likewise.
74605         * tests/test-memchr.c: Likewise.
74606         * tests/test-memchr2.c: Likewise.
74607         * tests/test-memcmp.c: Likewise.
74608         * tests/test-memmem.c: Likewise.
74609         * tests/test-memrchr.c: Likewise.
74610         * tests/test-mkdir.c: Likewise.
74611         * tests/test-mkdirat.c: Likewise.
74612         * tests/test-mkfifo.c: Likewise.
74613         * tests/test-mkfifoat.c: Likewise.
74614         * tests/test-mknod.c: Likewise.
74615         * tests/test-nanosleep.c: Likewise.
74616         * tests/test-nl_langinfo.c: Likewise.
74617         * tests/test-obstack-printf.c: Likewise.
74618         * tests/test-open.c: Likewise.
74619         * tests/test-openat.c: Likewise.
74620         * tests/test-pipe-filter-gi1.c: Likewise.
74621         * tests/test-pipe-filter-gi2-main.c: Likewise.
74622         * tests/test-pipe-filter-ii1.c: Likewise.
74623         * tests/test-pipe-filter-ii2-main.c: Likewise.
74624         * tests/test-pipe2.c: Likewise.
74625         * tests/test-popen.h: Likewise.
74626         * tests/test-posixtm.c: Likewise.
74627         * tests/test-pread.c: Likewise.
74628         * tests/test-printf-frexp.c: Likewise.
74629         * tests/test-printf-frexpl.c: Likewise.
74630         * tests/test-printf-posix.c: Likewise.
74631         * tests/test-priv-set.c: Likewise.
74632         * tests/test-quotearg.c: Likewise.
74633         * tests/test-random_r.c: Likewise.
74634         * tests/test-rawmemchr.c: Likewise.
74635         * tests/test-rbtree_list.c: Likewise.
74636         * tests/test-rbtree_oset.c: Likewise.
74637         * tests/test-rbtreehash_list.c: Likewise.
74638         * tests/test-readlink.c: Likewise.
74639         * tests/test-remove.c: Likewise.
74640         * tests/test-rename.c: Likewise.
74641         * tests/test-renameat.c: Likewise.
74642         * tests/test-rmdir.c: Likewise.
74643         * tests/test-round1.c: Likewise.
74644         * tests/test-roundf1.c: Likewise.
74645         * tests/test-roundl.c: Likewise.
74646         * tests/test-safe-alloc.c: Likewise.
74647         * tests/test-sameacls.c: Likewise.
74648         * tests/test-set-mode-acl.c: Likewise.
74649         * tests/test-setenv.c: Likewise.
74650         * tests/test-sigaction.c: Likewise.
74651         * tests/test-signbit.c: Likewise.
74652         * tests/test-sleep.c: Likewise.
74653         * tests/test-snprintf-posix.c: Likewise.
74654         * tests/test-snprintf.c: Likewise.
74655         * tests/test-sprintf-posix.c: Likewise.
74656         * tests/test-stat-time.c: Likewise.
74657         * tests/test-stat.c: Likewise.
74658         * tests/test-strcasestr.c: Likewise.
74659         * tests/test-strchrnul.c: Likewise.
74660         * tests/test-strerror.c: Likewise.
74661         * tests/test-striconv.c: Likewise.
74662         * tests/test-striconveh.c: Likewise.
74663         * tests/test-striconveha.c: Likewise.
74664         * tests/test-strsignal.c: Likewise.
74665         * tests/test-strstr.c: Likewise.
74666         * tests/test-strtod.c: Likewise.
74667         * tests/test-strverscmp.c: Likewise.
74668         * tests/test-symlink.c: Likewise.
74669         * tests/test-symlinkat.c: Likewise.
74670         * tests/test-trunc1.c: Likewise.
74671         * tests/test-trunc2.c: Likewise.
74672         * tests/test-truncf1.c: Likewise.
74673         * tests/test-truncf2.c: Likewise.
74674         * tests/test-truncl.c: Likewise.
74675         * tests/test-uname.c: Likewise.
74676         * tests/test-unlink.c: Likewise.
74677         * tests/test-unlinkat.c: Likewise.
74678         * tests/test-unsetenv.c: Likewise.
74679         * tests/test-usleep.c: Likewise.
74680         * tests/test-utimens.c: Likewise.
74681         * tests/test-utimensat.c: Likewise.
74682         * tests/test-vasnprintf-posix.c: Likewise.
74683         * tests/test-vasnprintf-posix2.c: Likewise.
74684         * tests/test-vasnprintf.c: Likewise.
74685         * tests/test-vasprintf-posix.c: Likewise.
74686         * tests/test-vasprintf.c: Likewise.
74687         * tests/test-vdprintf-posix.c: Likewise.
74688         * tests/test-vfprintf-posix.c: Likewise.
74689         * tests/test-vprintf-posix.c: Likewise.
74690         * tests/test-vsnprintf-posix.c: Likewise.
74691         * tests/test-vsnprintf.c: Likewise.
74692         * tests/test-vsprintf-posix.c: Likewise.
74693         * tests/test-wcrtomb.c: Likewise.
74694         * tests/test-wcsnrtombs.c: Likewise.
74695         * tests/test-wcsrtombs.c: Likewise.
74696         * tests/test-wctype.c: Likewise.
74697         * tests/test-wcwidth.c: Likewise.
74698         * tests/test-xfprintf-posix.c: Likewise.
74699         * tests/test-xmemdup0.c: Likewise.
74700         * tests/test-xprintf-posix.c: Likewise.
74701         * tests/test-xvasprintf.c: Likewise.
74702         * tests/unicase/test-locale-language.c: Likewise.
74703         * tests/unicase/test-mapping-part1.h: Likewise.
74704         * tests/unicase/test-predicate-part1.h: Likewise.
74705         * tests/unicase/test-u8-casecmp.c: Likewise.
74706         * tests/unicase/test-u8-casecoll.c: Likewise.
74707         * tests/unicase/test-u8-casefold.c: Likewise.
74708         * tests/unicase/test-u8-is-cased.c: Likewise.
74709         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74710         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74711         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74712         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74713         * tests/unicase/test-u8-tolower.c: Likewise.
74714         * tests/unicase/test-u8-totitle.c: Likewise.
74715         * tests/unicase/test-u8-toupper.c: Likewise.
74716         * tests/unicase/test-u16-casecmp.c: Likewise.
74717         * tests/unicase/test-u16-casecoll.c: Likewise.
74718         * tests/unicase/test-u16-casefold.c: Likewise.
74719         * tests/unicase/test-u16-is-cased.c: Likewise.
74720         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74721         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74722         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74723         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74724         * tests/unicase/test-u16-tolower.c: Likewise.
74725         * tests/unicase/test-u16-totitle.c: Likewise.
74726         * tests/unicase/test-u16-toupper.c: Likewise.
74727         * tests/unicase/test-u32-casecmp.c: Likewise.
74728         * tests/unicase/test-u32-casecoll.c: Likewise.
74729         * tests/unicase/test-u32-casefold.c: Likewise.
74730         * tests/unicase/test-u32-is-cased.c: Likewise.
74731         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74732         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74733         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74734         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74735         * tests/unicase/test-u32-tolower.c: Likewise.
74736         * tests/unicase/test-u32-totitle.c: Likewise.
74737         * tests/unicase/test-u32-toupper.c: Likewise.
74738         * tests/unicase/test-ulc-casecmp.c: Likewise.
74739         * tests/unicase/test-ulc-casecoll.c: Likewise.
74740         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74741         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74742         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74743         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74744         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74745         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74746         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74747         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74748         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74749         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74750         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74751         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74752         * tests/unictype/test-bidi_byname.c: Likewise.
74753         * tests/unictype/test-bidi_name.c: Likewise.
74754         * tests/unictype/test-bidi_of.c: Likewise.
74755         * tests/unictype/test-bidi_test.c: Likewise.
74756         * tests/unictype/test-block_list.c: Likewise.
74757         * tests/unictype/test-block_of.c: Likewise.
74758         * tests/unictype/test-block_test.c: Likewise.
74759         * tests/unictype/test-categ_and.c: Likewise.
74760         * tests/unictype/test-categ_and_not.c: Likewise.
74761         * tests/unictype/test-categ_byname.c: Likewise.
74762         * tests/unictype/test-categ_name.c: Likewise.
74763         * tests/unictype/test-categ_none.c: Likewise.
74764         * tests/unictype/test-categ_of.c: Likewise.
74765         * tests/unictype/test-categ_or.c: Likewise.
74766         * tests/unictype/test-categ_test_withtable.c: Likewise.
74767         * tests/unictype/test-combining.c: Likewise.
74768         * tests/unictype/test-decdigit.c: Likewise.
74769         * tests/unictype/test-digit.c: Likewise.
74770         * tests/unictype/test-mirror.c: Likewise.
74771         * tests/unictype/test-numeric.c: Likewise.
74772         * tests/unictype/test-pr_byname.c: Likewise.
74773         * tests/unictype/test-pr_test.c: Likewise.
74774         * tests/unictype/test-predicate-part1.h: Likewise.
74775         * tests/unictype/test-scripts.c: Likewise.
74776         * tests/unictype/test-sy_c_ident.c: Likewise.
74777         * tests/unictype/test-sy_java_ident.c: Likewise.
74778         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74779         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74780         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74781         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74782         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74783         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74784         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74785         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74786         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74787         * tests/uninorm/test-compat-decomposition.c: Likewise.
74788         * tests/uninorm/test-composition.c: Likewise.
74789         * tests/uninorm/test-decomposing-form.c: Likewise.
74790         * tests/uninorm/test-decomposition.c: Likewise.
74791         * tests/uninorm/test-u8-nfc.c: Likewise.
74792         * tests/uninorm/test-u8-nfd.c: Likewise.
74793         * tests/uninorm/test-u8-nfkc.c: Likewise.
74794         * tests/uninorm/test-u8-nfkd.c: Likewise.
74795         * tests/uninorm/test-u8-normcmp.c: Likewise.
74796         * tests/uninorm/test-u8-normcoll.c: Likewise.
74797         * tests/uninorm/test-u16-nfc.c: Likewise.
74798         * tests/uninorm/test-u16-nfd.c: Likewise.
74799         * tests/uninorm/test-u16-nfkc.c: Likewise.
74800         * tests/uninorm/test-u16-nfkd.c: Likewise.
74801         * tests/uninorm/test-u16-normcmp.c: Likewise.
74802         * tests/uninorm/test-u16-normcoll.c: Likewise.
74803         * tests/uninorm/test-u32-nfc.c: Likewise.
74804         * tests/uninorm/test-u32-nfd.c: Likewise.
74805         * tests/uninorm/test-u32-nfkc.c: Likewise.
74806         * tests/uninorm/test-u32-nfkd.c: Likewise.
74807         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74808         * tests/uninorm/test-u32-normcmp.c: Likewise.
74809         * tests/uninorm/test-u32-normcoll.c: Likewise.
74810         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74811         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74812         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74813         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74814         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74815         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74816         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74817         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74818         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74819         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74820         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74821         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74822         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74823         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74824         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74825         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74826         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74827         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74828         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74829         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74830         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74831         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74832         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74833         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74834         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74835         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74836         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74837         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74838         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74839         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74840         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74841         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74842         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74843         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74844         * tests/uniwidth/test-u8-width.c: Likewise.
74845         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74846         * tests/uniwidth/test-u16-width.c: Likewise.
74847         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74848         * tests/uniwidth/test-u32-width.c: Likewise.
74849         * tests/uniwidth/test-uc_width.c: Likewise.
74850         * tests/uniwidth/test-uc_width2.c: Likewise.
74851         * modules/acl-tests (Files): Add tests/macros.h.
74852         * modules/areadlink-tests (Files): Likewise.
74853         * modules/areadlink-with-size-tests (Files): Likewise.
74854         * modules/areadlinkat-tests (Files): Likewise.
74855         * modules/areadlinkat-with-size-tests (Files): Likewise.
74856         * modules/argmatch-tests (Files): Likewise.
74857         * modules/argv-iter-tests (Files): Likewise.
74858         * modules/array-list-tests (Files): Likewise.
74859         * modules/array-mergesort-tests (Files): Likewise.
74860         * modules/array-oset-tests (Files): Likewise.
74861         * modules/avltree-list-tests (Files): Likewise.
74862         * modules/avltree-oset-tests (Files): Likewise.
74863         * modules/avltreehash-list-tests (Files): Likewise.
74864         * modules/base64-tests (Files): Likewise.
74865         * modules/binary-io-tests (Files): Likewise.
74866         * modules/bitrotate-tests (Files): Likewise.
74867         * modules/btowc-tests (Files): Likewise.
74868         * modules/byteswap-tests (Files): Likewise.
74869         * modules/c-ctype-tests (Files): Likewise.
74870         * modules/c-stack-tests (Files): Likewise.
74871         * modules/c-strcase-tests (Files): Likewise.
74872         * modules/c-strcasestr-tests (Files): Likewise.
74873         * modules/c-strstr-tests (Files): Likewise.
74874         * modules/canonicalize-lgpl-tests (Files): Likewise.
74875         * modules/canonicalize-tests (Files): Likewise.
74876         * modules/carray-list-tests (Files): Likewise.
74877         * modules/ceilf-tests (Files): Likewise.
74878         * modules/ceill-tests (Files): Likewise.
74879         * modules/chown-tests (Files): Likewise.
74880         * modules/cloexec-tests (Files): Likewise.
74881         * modules/copy-file-tests (Files): Likewise.
74882         * modules/count-one-bits-tests (Files): Likewise.
74883         * modules/dprintf-posix-tests (Files): Likewise.
74884         * modules/dup2-tests (Files): Likewise.
74885         * modules/dup3-tests (Files): Likewise.
74886         * modules/duplocale-tests (Files): Likewise.
74887         * modules/fbufmode-tests (Files): Likewise.
74888         * modules/fchdir-tests (Files): Likewise.
74889         * modules/fcntl-safer-tests (Files): Likewise.
74890         * modules/fcntl-tests (Files): Likewise.
74891         * modules/fdopendir-tests (Files): Likewise.
74892         * modules/fdutimensat-tests (Files): Likewise.
74893         * modules/fflush-tests (Files): Likewise.
74894         * modules/filevercmp-tests (Files): Likewise.
74895         * modules/flock-tests (Files): Likewise.
74896         * modules/floorf-tests (Files): Likewise.
74897         * modules/floorl-tests (Files): Likewise.
74898         * modules/fnmatch-tests (Files): Likewise.
74899         * modules/fopen-safer-tests (Files): Likewise.
74900         * modules/fopen-tests (Files): Likewise.
74901         * modules/fpending-tests (Files): Likewise.
74902         * modules/fprintf-posix-tests (Files): Likewise.
74903         * modules/fpurge-tests (Files): Likewise.
74904         * modules/freadable-tests (Files): Likewise.
74905         * modules/freadahead-tests (Files): Likewise.
74906         * modules/freading-tests (Files): Likewise.
74907         * modules/freadptr-tests (Files): Likewise.
74908         * modules/freadseek-tests (Files): Likewise.
74909         * modules/freopen-tests (Files): Likewise.
74910         * modules/frexp-nolibm-tests (Files): Likewise.
74911         * modules/frexp-tests (Files): Likewise.
74912         * modules/frexpl-nolibm-tests (Files): Likewise.
74913         * modules/frexpl-tests (Files): Likewise.
74914         * modules/fseek-tests (Files): Likewise.
74915         * modules/fseeko-tests (Files): Likewise.
74916         * modules/fstrcmp-tests (Files): Likewise.
74917         * modules/fsync-tests (Files): Likewise.
74918         * modules/ftell-tests (Files): Likewise.
74919         * modules/ftello-tests (Files): Likewise.
74920         * modules/func-tests (Files): Likewise.
74921         * modules/futimens-tests (Files): Likewise.
74922         * modules/fwritable-tests (Files): Likewise.
74923         * modules/fwriting-tests (Files): Likewise.
74924         * modules/getcwd-tests (Files): Likewise.
74925         * modules/getdate-tests (Files): Likewise.
74926         * modules/getdelim-tests (Files): Likewise.
74927         * modules/getdtablesize-tests (Files): Likewise.
74928         * modules/getgroups-tests (Files): Likewise.
74929         * modules/getline-tests (Files): Likewise.
74930         * modules/getndelim2-tests (Files): Likewise.
74931         * modules/glob-tests (Files): Likewise.
74932         * modules/hash-tests (Files): Likewise.
74933         * modules/i-ring-tests (Files): Likewise.
74934         * modules/iconv-tests (Files): Likewise.
74935         * modules/iconv_open-utf-tests (Files): Likewise.
74936         * modules/idpriv-drop-tests (Files): Likewise.
74937         * modules/idpriv-droptemp-tests (Files): Likewise.
74938         * modules/inet_ntop-tests (Files): Likewise.
74939         * modules/inet_pton-tests (Files): Likewise.
74940         * modules/isblank-tests (Files): Likewise.
74941         * modules/isfinite-tests (Files): Likewise.
74942         * modules/isinf-tests (Files): Likewise.
74943         * modules/isnan-tests (Files): Likewise.
74944         * modules/isnand-nolibm-tests (Files): Likewise.
74945         * modules/isnand-tests (Files): Likewise.
74946         * modules/isnanf-nolibm-tests (Files): Likewise.
74947         * modules/isnanf-tests (Files): Likewise.
74948         * modules/isnanl-nolibm-tests (Files): Likewise.
74949         * modules/isnanl-tests (Files): Likewise.
74950         * modules/lchown-tests (Files): Likewise.
74951         * modules/ldexpl-tests (Files): Likewise.
74952         * modules/link-tests (Files): Likewise.
74953         * modules/linkat-tests (Files): Likewise.
74954         * modules/linked-list-tests (Files): Likewise.
74955         * modules/linkedhash-list-tests (Files): Likewise.
74956         * modules/localename-tests (Files): Likewise.
74957         * modules/lseek-tests (Files): Likewise.
74958         * modules/lstat-tests (Files): Likewise.
74959         * modules/mbmemcasecmp-tests (Files): Likewise.
74960         * modules/mbmemcasecoll-tests (Files): Likewise.
74961         * modules/mbrtowc-tests (Files): Likewise.
74962         * modules/mbscasecmp-tests (Files): Likewise.
74963         * modules/mbscasestr-tests (Files): Likewise.
74964         * modules/mbschr-tests (Files): Likewise.
74965         * modules/mbscspn-tests (Files): Likewise.
74966         * modules/mbsinit-tests (Files): Likewise.
74967         * modules/mbsncasecmp-tests (Files): Likewise.
74968         * modules/mbsnrtowcs-tests (Files): Likewise.
74969         * modules/mbspbrk-tests (Files): Likewise.
74970         * modules/mbspcasecmp-tests (Files): Likewise.
74971         * modules/mbsrchr-tests (Files): Likewise.
74972         * modules/mbsrtowcs-tests (Files): Likewise.
74973         * modules/mbsspn-tests (Files): Likewise.
74974         * modules/mbsstr-tests (Files): Likewise.
74975         * modules/memchr-tests (Files): Likewise.
74976         * modules/memchr2-tests (Files): Likewise.
74977         * modules/memcmp-tests (Files): Likewise.
74978         * modules/memmem-tests (Files): Likewise.
74979         * modules/memrchr-tests (Files): Likewise.
74980         * modules/mkdir-tests (Files): Likewise.
74981         * modules/mkfifo-tests (Files): Likewise.
74982         * modules/mkfifoat-tests (Files): Likewise.
74983         * modules/mknod-tests (Files): Likewise.
74984         * modules/nanosleep-tests (Files): Likewise.
74985         * modules/nl_langinfo-tests (Files): Likewise.
74986         * modules/obstack-printf-tests (Files): Likewise.
74987         * modules/open-tests (Files): Likewise.
74988         * modules/openat-tests (Files): Likewise.
74989         * modules/pipe-filter-gi-tests (Files): Likewise.
74990         * modules/pipe-filter-ii-tests (Files): Likewise.
74991         * modules/pipe2-tests (Files): Likewise.
74992         * modules/popen-safer-tests (Files): Likewise.
74993         * modules/popen-tests (Files): Likewise.
74994         * modules/posixtm-tests (Files): Likewise.
74995         * modules/pread-tests (Files): Likewise.
74996         * modules/printf-frexp-tests (Files): Likewise.
74997         * modules/printf-frexpl-tests (Files): Likewise.
74998         * modules/printf-posix-tests (Files): Likewise.
74999         * modules/priv-set-tests (Files): Likewise.
75000         * modules/quotearg-tests (Files): Likewise.
75001         * modules/random_r-tests (Files): Likewise.
75002         * modules/rawmemchr-tests (Files): Likewise.
75003         * modules/rbtree-list-tests (Files): Likewise.
75004         * modules/rbtree-oset-tests (Files): Likewise.
75005         * modules/rbtreehash-list-tests (Files): Likewise.
75006         * modules/readlink-tests (Files): Likewise.
75007         * modules/remove-tests (Files): Likewise.
75008         * modules/rename-tests (Files): Likewise.
75009         * modules/renameat-tests (Files): Likewise.
75010         * modules/rmdir-tests (Files): Likewise.
75011         * modules/round-tests (Files): Likewise.
75012         * modules/roundf-tests (Files): Likewise.
75013         * modules/roundl-tests (Files): Likewise.
75014         * modules/safe-alloc-tests (Files): Likewise.
75015         * modules/setenv-tests (Files): Likewise.
75016         * modules/sigaction-tests (Files): Likewise.
75017         * modules/signbit-tests (Files): Likewise.
75018         * modules/sleep-tests (Files): Likewise.
75019         * modules/snprintf-posix-tests (Files): Likewise.
75020         * modules/snprintf-tests (Files): Likewise.
75021         * modules/sprintf-posix-tests (Files): Likewise.
75022         * modules/stat-tests (Files): Likewise.
75023         * modules/stat-time-tests (Files): Likewise.
75024         * modules/strcasestr-tests (Files): Likewise.
75025         * modules/strchrnul-tests (Files): Likewise.
75026         * modules/strerror-tests (Files): Likewise.
75027         * modules/striconv-tests (Files): Likewise.
75028         * modules/striconveh-tests (Files): Likewise.
75029         * modules/striconveha-tests (Files): Likewise.
75030         * modules/strsignal-tests (Files): Likewise.
75031         * modules/strstr-tests (Files): Likewise.
75032         * modules/strtod-tests (Files): Likewise.
75033         * modules/strverscmp-tests (Files): Likewise.
75034         * modules/symlink-tests (Files): Likewise.
75035         * modules/symlinkat-tests (Files): Likewise.
75036         * modules/trunc-tests (Files): Likewise.
75037         * modules/truncf-tests (Files): Likewise.
75038         * modules/truncl-tests (Files): Likewise.
75039         * modules/uname-tests (Files): Likewise.
75040         * modules/unicase/cased-tests (Files): Likewise.
75041         * modules/unicase/ignorable-tests (Files): Likewise.
75042         * modules/unicase/locale-language-tests (Files): Likewise.
75043         * modules/unicase/tolower-tests (Files): Likewise.
75044         * modules/unicase/totitle-tests (Files): Likewise.
75045         * modules/unicase/toupper-tests (Files): Likewise.
75046         * modules/unicase/u8-casecmp-tests (Files): Likewise.
75047         * modules/unicase/u8-casecoll-tests (Files): Likewise.
75048         * modules/unicase/u8-casefold-tests (Files): Likewise.
75049         * modules/unicase/u8-is-cased-tests (Files): Likewise.
75050         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
75051         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
75052         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
75053         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
75054         * modules/unicase/u8-tolower-tests (Files): Likewise.
75055         * modules/unicase/u8-totitle-tests (Files): Likewise.
75056         * modules/unicase/u8-toupper-tests (Files): Likewise.
75057         * modules/unicase/u16-casecmp-tests (Files): Likewise.
75058         * modules/unicase/u16-casecoll-tests (Files): Likewise.
75059         * modules/unicase/u16-casefold-tests (Files): Likewise.
75060         * modules/unicase/u16-is-cased-tests (Files): Likewise.
75061         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
75062         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
75063         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
75064         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
75065         * modules/unicase/u16-tolower-tests (Files): Likewise.
75066         * modules/unicase/u16-totitle-tests (Files): Likewise.
75067         * modules/unicase/u16-toupper-tests (Files): Likewise.
75068         * modules/unicase/u32-casecmp-tests (Files): Likewise.
75069         * modules/unicase/u32-casecoll-tests (Files): Likewise.
75070         * modules/unicase/u32-casefold-tests (Files): Likewise.
75071         * modules/unicase/u32-is-cased-tests (Files): Likewise.
75072         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
75073         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
75074         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
75075         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
75076         * modules/unicase/u32-tolower-tests (Files): Likewise.
75077         * modules/unicase/u32-totitle-tests (Files): Likewise.
75078         * modules/unicase/u32-toupper-tests (Files): Likewise.
75079         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
75080         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
75081         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
75082         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
75083         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
75084         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
75085         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
75086         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
75087         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
75088         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
75089         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
75090         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
75091         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
75092         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
75093         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
75094         * modules/unictype/bidicategory-name-tests (Files): Likewise.
75095         * modules/unictype/bidicategory-of-tests (Files): Likewise.
75096         * modules/unictype/bidicategory-test-tests (Files): Likewise.
75097         * modules/unictype/block-list-tests (Files): Likewise.
75098         * modules/unictype/block-of-tests (Files): Likewise.
75099         * modules/unictype/block-test-tests (Files): Likewise.
75100         * modules/unictype/category-C-tests (Files): Likewise.
75101         * modules/unictype/category-Cc-tests (Files): Likewise.
75102         * modules/unictype/category-Cf-tests (Files): Likewise.
75103         * modules/unictype/category-Cn-tests (Files): Likewise.
75104         * modules/unictype/category-Co-tests (Files): Likewise.
75105         * modules/unictype/category-Cs-tests (Files): Likewise.
75106         * modules/unictype/category-L-tests (Files): Likewise.
75107         * modules/unictype/category-Ll-tests (Files): Likewise.
75108         * modules/unictype/category-Lm-tests (Files): Likewise.
75109         * modules/unictype/category-Lo-tests (Files): Likewise.
75110         * modules/unictype/category-Lt-tests (Files): Likewise.
75111         * modules/unictype/category-Lu-tests (Files): Likewise.
75112         * modules/unictype/category-M-tests (Files): Likewise.
75113         * modules/unictype/category-Mc-tests (Files): Likewise.
75114         * modules/unictype/category-Me-tests (Files): Likewise.
75115         * modules/unictype/category-Mn-tests (Files): Likewise.
75116         * modules/unictype/category-N-tests (Files): Likewise.
75117         * modules/unictype/category-Nd-tests (Files): Likewise.
75118         * modules/unictype/category-Nl-tests (Files): Likewise.
75119         * modules/unictype/category-No-tests (Files): Likewise.
75120         * modules/unictype/category-P-tests (Files): Likewise.
75121         * modules/unictype/category-Pc-tests (Files): Likewise.
75122         * modules/unictype/category-Pd-tests (Files): Likewise.
75123         * modules/unictype/category-Pe-tests (Files): Likewise.
75124         * modules/unictype/category-Pf-tests (Files): Likewise.
75125         * modules/unictype/category-Pi-tests (Files): Likewise.
75126         * modules/unictype/category-Po-tests (Files): Likewise.
75127         * modules/unictype/category-Ps-tests (Files): Likewise.
75128         * modules/unictype/category-S-tests (Files): Likewise.
75129         * modules/unictype/category-Sc-tests (Files): Likewise.
75130         * modules/unictype/category-Sk-tests (Files): Likewise.
75131         * modules/unictype/category-Sm-tests (Files): Likewise.
75132         * modules/unictype/category-So-tests (Files): Likewise.
75133         * modules/unictype/category-Z-tests (Files): Likewise.
75134         * modules/unictype/category-Zl-tests (Files): Likewise.
75135         * modules/unictype/category-Zp-tests (Files): Likewise.
75136         * modules/unictype/category-Zs-tests (Files): Likewise.
75137         * modules/unictype/category-and-not-tests (Files): Likewise.
75138         * modules/unictype/category-and-tests (Files): Likewise.
75139         * modules/unictype/category-byname-tests (Files): Likewise.
75140         * modules/unictype/category-name-tests (Files): Likewise.
75141         * modules/unictype/category-none-tests (Files): Likewise.
75142         * modules/unictype/category-of-tests (Files): Likewise.
75143         * modules/unictype/category-or-tests (Files): Likewise.
75144         * modules/unictype/category-test-withtable-tests (Files): Likewise.
75145         * modules/unictype/combining-class-tests (Files): Likewise.
75146         * modules/unictype/ctype-alnum-tests (Files): Likewise.
75147         * modules/unictype/ctype-alpha-tests (Files): Likewise.
75148         * modules/unictype/ctype-blank-tests (Files): Likewise.
75149         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
75150         * modules/unictype/ctype-digit-tests (Files): Likewise.
75151         * modules/unictype/ctype-graph-tests (Files): Likewise.
75152         * modules/unictype/ctype-lower-tests (Files): Likewise.
75153         * modules/unictype/ctype-print-tests (Files): Likewise.
75154         * modules/unictype/ctype-punct-tests (Files): Likewise.
75155         * modules/unictype/ctype-space-tests (Files): Likewise.
75156         * modules/unictype/ctype-upper-tests (Files): Likewise.
75157         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
75158         * modules/unictype/decimal-digit-tests (Files): Likewise.
75159         * modules/unictype/digit-tests (Files): Likewise.
75160         * modules/unictype/mirror-tests (Files): Likewise.
75161         * modules/unictype/numeric-tests (Files): Likewise.
75162         * modules/unictype/property-alphabetic-tests (Files): Likewise.
75163         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
75164         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
75165         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
75166         Likewise.
75167         * modules/unictype/property-bidi-block-separator-tests (Files):
75168         Likewise.
75169         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
75170         Likewise.
75171         * modules/unictype/property-bidi-common-separator-tests (Files):
75172         Likewise.
75173         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75174         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75175         Likewise.
75176         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
75177         Likewise.
75178         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
75179         Likewise.
75180         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
75181         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
75182         Likewise.
75183         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
75184         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
75185         Likewise.
75186         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
75187         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
75188         * modules/unictype/property-bidi-segment-separator-tests (Files):
75189         Likewise.
75190         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
75191         * modules/unictype/property-byname-tests (Files): Likewise.
75192         * modules/unictype/property-combining-tests (Files): Likewise.
75193         * modules/unictype/property-composite-tests (Files): Likewise.
75194         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
75195         * modules/unictype/property-dash-tests (Files): Likewise.
75196         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
75197         * modules/unictype/property-default-ignorable-code-point-tests (Files):
75198         Likewise.
75199         * modules/unictype/property-deprecated-tests (Files): Likewise.
75200         * modules/unictype/property-diacritic-tests (Files): Likewise.
75201         * modules/unictype/property-extender-tests (Files): Likewise.
75202         * modules/unictype/property-format-control-tests (Files): Likewise.
75203         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
75204         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
75205         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
75206         * modules/unictype/property-hex-digit-tests (Files): Likewise.
75207         * modules/unictype/property-hyphen-tests (Files): Likewise.
75208         * modules/unictype/property-id-continue-tests (Files): Likewise.
75209         * modules/unictype/property-id-start-tests (Files): Likewise.
75210         * modules/unictype/property-ideographic-tests (Files): Likewise.
75211         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
75212         * modules/unictype/property-ids-trinary-operator-tests (Files):
75213         Likewise.
75214         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
75215         * modules/unictype/property-iso-control-tests (Files): Likewise.
75216         * modules/unictype/property-join-control-tests (Files): Likewise.
75217         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
75218         * modules/unictype/property-line-separator-tests (Files): Likewise.
75219         * modules/unictype/property-logical-order-exception-tests (Files):
75220         Likewise.
75221         * modules/unictype/property-lowercase-tests (Files): Likewise.
75222         * modules/unictype/property-math-tests (Files): Likewise.
75223         * modules/unictype/property-non-break-tests (Files): Likewise.
75224         * modules/unictype/property-not-a-character-tests (Files): Likewise.
75225         * modules/unictype/property-numeric-tests (Files): Likewise.
75226         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
75227         * modules/unictype/property-other-default-ignorable-code-point-tests
75228         (Files): Likewise.
75229         * modules/unictype/property-other-grapheme-extend-tests (Files):
75230         Likewise.
75231         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
75232         * modules/unictype/property-other-id-start-tests (Files): Likewise.
75233         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
75234         * modules/unictype/property-other-math-tests (Files): Likewise.
75235         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
75236         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
75237         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
75238         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
75239         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
75240         * modules/unictype/property-private-use-tests (Files): Likewise.
75241         * modules/unictype/property-punctuation-tests (Files): Likewise.
75242         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
75243         * modules/unictype/property-radical-tests (Files): Likewise.
75244         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
75245         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
75246         * modules/unictype/property-space-tests (Files): Likewise.
75247         * modules/unictype/property-terminal-punctuation-tests (Files):
75248         Likewise.
75249         * modules/unictype/property-test-tests (Files): Likewise.
75250         * modules/unictype/property-titlecase-tests (Files): Likewise.
75251         * modules/unictype/property-unassigned-code-value-tests (Files):
75252         Likewise.
75253         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
75254         * modules/unictype/property-uppercase-tests (Files): Likewise.
75255         * modules/unictype/property-variation-selector-tests (Files): Likewise.
75256         * modules/unictype/property-white-space-tests (Files): Likewise.
75257         * modules/unictype/property-xid-continue-tests (Files): Likewise.
75258         * modules/unictype/property-xid-start-tests (Files): Likewise.
75259         * modules/unictype/property-zero-width-tests (Files): Likewise.
75260         * modules/unictype/scripts-tests (Files): Likewise.
75261         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
75262         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
75263         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
75264         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
75265         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
75266         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
75267         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
75268         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
75269         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
75270         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
75271         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
75272         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
75273         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
75274         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
75275         * modules/uninorm/composition-tests (Files): Likewise.
75276         * modules/uninorm/decomposing-form-tests (Files): Likewise.
75277         * modules/uninorm/decomposition-tests (Files): Likewise.
75278         * modules/uninorm/filter-tests (Files): Likewise.
75279         * modules/uninorm/nfc-tests (Files): Likewise.
75280         * modules/uninorm/nfd-tests (Files): Likewise.
75281         * modules/uninorm/nfkc-tests (Files): Likewise.
75282         * modules/uninorm/nfkd-tests (Files): Likewise.
75283         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
75284         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
75285         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
75286         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
75287         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
75288         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
75289         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
75290         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
75291         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
75292         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
75293         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
75294         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
75295         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
75296         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
75297         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
75298         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
75299         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
75300         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
75301         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
75302         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
75303         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
75304         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
75305         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
75306         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
75307         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
75308         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
75309         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
75310         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
75311         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
75312         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
75313         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
75314         * modules/uniwidth/u8-width-tests (Files): Likewise.
75315         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
75316         * modules/uniwidth/u16-width-tests (Files): Likewise.
75317         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
75318         * modules/uniwidth/u32-width-tests (Files): Likewise.
75319         * modules/uniwidth/width-tests (Files): Likewise.
75320         * modules/unlink-tests (Files): Likewise.
75321         * modules/unsetenv-tests (Files): Likewise.
75322         * modules/usleep-tests (Files): Likewise.
75323         * modules/utimens-tests (Files): Likewise.
75324         * modules/utimensat-tests (Files): Likewise.
75325         * modules/vasnprintf-posix-tests (Files): Likewise.
75326         * modules/vasnprintf-tests (Files): Likewise.
75327         * modules/vasprintf-posix-tests (Files): Likewise.
75328         * modules/vasprintf-tests (Files): Likewise.
75329         * modules/vdprintf-posix-tests (Files): Likewise.
75330         * modules/vfprintf-posix-tests (Files): Likewise.
75331         * modules/vprintf-posix-tests (Files): Likewise.
75332         * modules/vsnprintf-posix-tests (Files): Likewise.
75333         * modules/vsnprintf-tests (Files): Likewise.
75334         * modules/vsprintf-posix-tests (Files): Likewise.
75335         * modules/wcrtomb-tests (Files): Likewise.
75336         * modules/wcsnrtombs-tests (Files): Likewise.
75337         * modules/wcsrtombs-tests (Files): Likewise.
75338         * modules/wctype-tests (Files): Likewise.
75339         * modules/wcwidth-tests (Files): Likewise.
75340         * modules/xmemdup0-tests (Files): Likewise.
75341         * modules/xprintf-posix-tests (Files): Likewise.
75342         * modules/xvasprintf-tests (Files): Likewise.
75344 2009-12-24  Eric Blake  <ebb9@byu.net>
75346         test-nanosleep: fix typo
75347         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75348         patch.
75349         Reported by Bruno Haible.
75351 2009-12-24  Bruno Haible  <bruno@clisp.org>
75353         Reduce namespace pollution on glibc systems.
75354         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75355         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75356         systems.
75357         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75358         <getopt.h> on glibc systems.
75359         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75360         systems.
75361         * lib/fcntl.c: Include <unistd.h> here instead.
75363 2009-12-24  Bruno Haible  <bruno@clisp.org>
75365         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75367 2009-12-24  Eric Blake  <ebb9@byu.net>
75369         tests: add signature checks
75370         * tests/signature.h (SIGNATURE_CHECK): New file.
75371         * modules/atexit-tests (Files): Use it.
75372         * modules/btowc-tests (Files): Likewise.
75373         * modules/canonicalize-lgpl-tests (Files): Likewise.
75374         * modules/ceilf-tests (Files): Likewise.
75375         * modules/ceill-tests (Files): Likewise.
75376         * modules/chown-tests (Files): Likewise.
75377         * modules/dprintf-posix-tests (Files): Likewise.
75378         * modules/dup2-tests (Files): Likewise.
75379         * modules/dup3-tests (Files): Likewise.
75380         * modules/duplocale-tests (Files): Likewise.
75381         * modules/fchdir-tests (Files): Likewise.
75382         * modules/fcntl-tests (Files): Likewise.
75383         * modules/fdopendir-tests (Files): Likewise.
75384         * modules/fflush-tests (Files): Likewise.
75385         * modules/flock-tests (Files): Likewise.
75386         * modules/floorf-tests (Files): Likewise.
75387         * modules/floorl-tests (Files): Likewise.
75388         * modules/fnmatch-tests (Files): Likewise.
75389         * modules/fopen-tests (Files): Likewise.
75390         * modules/fprintf-posix-tests (Files): Likewise.
75391         * modules/freopen-tests (Files): Likewise.
75392         * modules/frexp-nolibm-tests (Files): Likewise.
75393         * modules/frexp-tests (Files): Likewise.
75394         * modules/frexpl-nolibm-tests (Files): Likewise.
75395         * modules/frexpl-tests (Files): Likewise.
75396         * modules/fseek-tests (Files): Likewise.
75397         * modules/fseeko-tests (Files): Likewise.
75398         * modules/fsync-tests (Files): Likewise.
75399         * modules/ftell-tests (Files): Likewise.
75400         * modules/ftello-tests (Files): Likewise.
75401         * modules/futimens-tests (Files): Likewise.
75402         * modules/getaddrinfo-tests (Files): Likewise.
75403         * modules/getcwd-tests (Files): Likewise.
75404         * modules/getdelim-tests (Files): Likewise.
75405         * modules/getdtablesize-tests (Files): Likewise.
75406         * modules/getgroups-tests (Files): Likewise.
75407         * modules/gethostname-tests (Files): Likewise.
75408         * modules/getline-tests (Files): Likewise.
75409         * modules/getopt-posix-tests (Files): Likewise.
75410         * modules/gettimeofday-tests (Files): Likewise.
75411         * modules/glob-tests (Files): Likewise.
75412         * modules/iconv-tests (Files): Likewise.
75413         * modules/inet_ntop-tests (Files): Likewise.
75414         * modules/inet_pton-tests (Files): Likewise.
75415         * modules/isblank-tests (Files): Likewise.
75416         * modules/lchown-tests (Files): Likewise.
75417         * modules/ldexpl-tests (Files): Likewise.
75418         * modules/link-tests (Files): Likewise.
75419         * modules/linkat-tests (Files): Likewise.
75420         * modules/lseek-tests (Files): Likewise.
75421         * modules/lstat-tests (Files): Likewise.
75422         * modules/mbrtowc-tests (Files): Likewise.
75423         * modules/mbsinit-tests (Files): Likewise.
75424         * modules/mbsnrtowcs-tests (Files): Likewise.
75425         * modules/mbsrtowcs-tests (Files): Likewise.
75426         * modules/memchr-tests (Files): Likewise.
75427         * modules/memcmp-tests (Files): Likewise.
75428         * modules/memmem-tests (Files): Likewise.
75429         * modules/memrchr-tests (Files): Likewise.
75430         * modules/mkdir-tests (Files): Likewise.
75431         * modules/mkfifo-tests (Files): Likewise.
75432         * modules/mkfifoat-tests (Files): Likewise.
75433         * modules/mknod-tests (Files): Likewise.
75434         * modules/nanosleep-tests (Files): Likewise.
75435         * modules/nl_langinfo-tests (Files): Likewise.
75436         * modules/obstack-printf-tests (Files): Likewise.
75437         * modules/open-tests (Files): Likewise.
75438         * modules/openat-tests (Files): Likewise.
75439         * modules/perror-tests (Files): Likewise.
75440         * modules/pipe2-tests (Files): Likewise.
75441         * modules/poll-tests (Files): Likewise.
75442         * modules/popen-tests (Files): Likewise.
75443         * modules/posix_spawn-tests (Files): Likewise.
75444         * modules/posix_spawnp-tests (Files): Likewise.
75445         * modules/pread-tests (Files): Likewise.
75446         * modules/printf-posix-tests (Files): Likewise.
75447         * modules/pty-tests (Files): Likewise.
75448         * modules/random_r-tests (Files): Likewise.
75449         * modules/rawmemchr-tests (Files): Likewise.
75450         * modules/readlink-tests (Files): Likewise.
75451         * modules/remove-tests (Files): Likewise.
75452         * modules/rename-tests (Files): Likewise.
75453         * modules/renameat-tests (Files): Likewise.
75454         * modules/rmdir-tests (Files): Likewise.
75455         * modules/round-tests (Files): Likewise.
75456         * modules/roundf-tests (Files): Likewise.
75457         * modules/roundl-tests (Files): Likewise.
75458         * modules/select-tests (Files): Likewise.
75459         * modules/setenv-tests (Files): Likewise.
75460         * modules/sigaction-tests (Files): Likewise.
75461         * modules/sleep-tests (Files): Likewise.
75462         * modules/snprintf-posix-tests (Files): Likewise.
75463         * modules/snprintf-tests (Files): Likewise.
75464         * modules/sprintf-posix-tests (Files): Likewise.
75465         * modules/stat-tests (Files): Likewise.
75466         * modules/strcasestr-tests (Files): Likewise.
75467         * modules/strchrnul-tests (Files): Likewise.
75468         * modules/strerror-tests (Files): Likewise.
75469         * modules/strsignal-tests (Files): Likewise.
75470         * modules/strstr-tests (Files): Likewise.
75471         * modules/strtod-tests (Files): Likewise.
75472         * modules/strverscmp-tests (Files): Likewise.
75473         * modules/symlink-tests (Files): Likewise.
75474         * modules/symlinkat-tests (Files): Likewise.
75475         * modules/times-tests (Files): Likewise.
75476         * modules/trunc-tests (Files): Likewise.
75477         * modules/truncf-tests (Files): Likewise.
75478         * modules/truncl-tests (Files): Likewise.
75479         * modules/tsearch-tests (Files): Likewise.
75480         * modules/uname-tests (Files): Likewise.
75481         * modules/unlink-tests (Files): Likewise.
75482         * modules/unsetenv-tests (Files): Likewise.
75483         * modules/usleep-tests (Files): Likewise.
75484         * modules/utimensat-tests (Files): Likewise.
75485         * modules/vasprintf-tests (Files): Likewise.
75486         * modules/vdprintf-posix-tests (Files): Likewise.
75487         * modules/vfprintf-posix-tests (Files): Likewise.
75488         * modules/vprintf-posix-tests (Files): Likewise.
75489         * modules/vsnprintf-posix-tests (Files): Likewise.
75490         * modules/vsnprintf-tests (Files): Likewise.
75491         * modules/vsprintf-posix-tests (Files): Likewise.
75492         * modules/wcrtomb-tests (Files): Likewise.
75493         * modules/wcsnrtombs-tests (Files): Likewise.
75494         * modules/wcsrtombs-tests (Files): Likewise.
75495         * modules/wcwidth-tests (Files): Likewise.
75496         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
75497         * tests/test-isinf.c (isinf): Likewise.
75498         * tests/test-isnan.c (isnan): Likewise.
75499         * tests/test-signbit.c (signbit): Likewise.
75500         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
75501         declaration, either as macro or with correct signature.
75502         (select): Ensure function under test is declared with correct
75503         signature in correct header.
75504         * tests/test-atexit.c (atexit): Likewise.
75505         * tests/test-btowc.c (btowc): Likewise.
75506         * tests/test-canonicalize-lgpl.c (realpath)
75507         (canonicalize_file_name): Likewise.
75508         * tests/test-ceilf1.c (ceilf): Likewise.
75509         * tests/test-ceill.c (ceill): Likewise.
75510         * tests/test-chown.c (chown): Likewise.
75511         * tests/test-dprintf-posix.c (dprintf): Likewise.
75512         * tests/test-dup2.c (dup2): Likewise.
75513         * tests/test-dup3.c (dup3): Likewise.
75514         * tests/test-duplocale.c (duplocale): Likewise.
75515         * tests/test-fchdir.c (fchdir): Likewise.
75516         * tests/test-fchownat.c (fchownat): Likewise.
75517         * tests/test-fcntl.c (fcntl): Likewise.
75518         * tests/test-fdopendir.c (fdopendir): Likewise.
75519         * tests/test-fflush.c (fflush): Likewise.
75520         * tests/test-flock.c (flock): Likewise.
75521         * tests/test-floorf1.c (floorf): Likewise.
75522         * tests/test-floorl.c (floorl): Likewise.
75523         * tests/test-fnmatch.c (fnmatch): Likewise.
75524         * tests/test-fopen.c (fopen): Likewise.
75525         * tests/test-fprintf-posix.c (fprintf): Likewise.
75526         * tests/test-freopen.c (freopen): Likewise.
75527         * tests/test-frexp.c (frexp): Likewise.
75528         * tests/test-frexpl.c (frexpl): Likewise.
75529         * tests/test-fseek.c (fseek): Likewise.
75530         * tests/test-fseeko.c (fseeko): Likewise.
75531         * tests/test-fstatat.c (fstatat): Likewise.
75532         * tests/test-fsync.c (fsync): Likewise.
75533         * tests/test-ftell.c (ftell): Likewise.
75534         * tests/test-ftello.c (ftello): Likewise.
75535         * tests/test-futimens.c (futimens): Likewise.
75536         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
75537         (gai_strerror): Likewise.
75538         * tests/test-getcwd.c (getcwd): Likewise.
75539         * tests/test-getdelim.c (getdelim): Likewise.
75540         * tests/test-getdtablesize.c (getdtablesize): Likewise.
75541         * tests/test-getgroups.c (getgroups): Likewise.
75542         * tests/test-gethostname.c (gethostname): Likewise.
75543         * tests/test-getline.c (getline): Likewise.
75544         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
75545         Likewise.
75546         * tests/test-gettimeofday.c (gettimeofday): Likewise.
75547         * tests/test-glob.c (glob, globfree): Likewise.
75548         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
75549         * tests/test-inet_ntop.c (inet_ntop): Likewise.
75550         * tests/test-inet_pton.c (inet_pton): Likewise.
75551         * tests/test-isblank.c (isblank): Likewise.
75552         * tests/test-lchown.c (lchown): Likewise.
75553         * tests/test-ldexpl.c (ldexpl): Likewise.
75554         * tests/test-link.c (link): Likewise.
75555         * tests/test-linkat.c (linkat): Likewise.
75556         * tests/test-lseek.c (lseek): Likewise.
75557         * tests/test-lstat.c (lstat): Likewise.
75558         * tests/test-mbrtowc.c (mbrtowc): Likewise.
75559         * tests/test-mbsinit.c (mbsinit): Likewise.
75560         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
75561         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
75562         * tests/test-memchr.c (memchr): Likewise.
75563         * tests/test-memcmp.c (memcmp): Likewise.
75564         * tests/test-memmem.c (memmem): Likewise.
75565         * tests/test-memrchr.c (memrchr): Likewise.
75566         * tests/test-mkdir.c (mkdir): Likewise.
75567         * tests/test-mkdirat.c (mkdirat): Likewise.
75568         * tests/test-mkfifo.c (mkfifo): Likewise.
75569         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
75570         * tests/test-mknod.c (mknod): Likewise.
75571         * tests/test-nanosleep.c (nanosleep): Likewise.
75572         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
75573         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
75574         Likewise.
75575         * tests/test-open.c (open): Likewise.
75576         * tests/test-openat.c (openat): Likewise.
75577         * tests/test-perror.c (perror): Likewise.
75578         * tests/test-pipe2.c (pipe2): Likewise.
75579         * tests/test-poll.c (poll): Likewise.
75580         * tests/test-popen.c (popen, pclose): Likewise.
75581         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
75582         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
75583         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
75584         (posix_spawn_file_actions_destroy)
75585         (posix_spawn_file_actions_addclose)
75586         (posix_spawn_file_actions_addopen)
75587         (posix_spawn_file_actions_adddup2): Likewise.
75588         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75589         * tests/test-pread.c (pread): Likewise.
75590         * tests/test-printf-posix.c (printf): Likewise.
75591         * tests/test-pty.c (openpty, forkpty): Likewise.
75592         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75593         (random_r): Likewise.
75594         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75595         * tests/test-readlink.c (readlink): Likewise.
75596         * tests/test-remove.c (remove): Likewise.
75597         * tests/test-rename.c (rename): Likewise.
75598         * tests/test-renameat.c (renameat): Likewise.
75599         * tests/test-rmdir.c (rmdir): Likewise.
75600         * tests/test-round1.c (round): Likewise.
75601         * tests/test-roundf1.c (roundf): Likewise.
75602         * tests/test-roundl.c (roundl): Likewise.
75603         * tests/test-setenv.c (setenv): Likewise.
75604         * tests/test-sigaction.c (sigaction): Likewise.
75605         * tests/test-sleep.c (sleep): Likewise.
75606         * tests/test-snprintf.c (snprintf): Likewise.
75607         * tests/test-sprintf-posix.c (sprintf): Likewise.
75608         * tests/test-stat.c (stat): Likewise.
75609         * tests/test-stpncpy.c (stpncpy): Likewise.
75610         * tests/test-strcasestr.c (strcasestr): Likewise.
75611         * tests/test-strchrnul.c (strchrnul): Likewise.
75612         * tests/test-strerror.c (strerror): Likewise.
75613         * tests/test-strsignal.c (strsignal): Likewise.
75614         * tests/test-strstr.c (strstr): Likewise.
75615         * tests/test-strtod.c (strtod): Likewise.
75616         * tests/test-strverscmp.c (strverscmp): Likewise.
75617         * tests/test-symlink.c (symlink): Likewise.
75618         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
75619         * tests/test-times.c (times): Likewise.
75620         * tests/test-trunc1.c (trunc): Likewise.
75621         * tests/test-truncf1.c (truncf): Likewise.
75622         * tests/test-truncl.c (truncl): Likewise.
75623         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
75624         Likewise.
75625         * tests/test-uname.c (uname): Likewise.
75626         * tests/test-unlink.c (unlink): Likewise.
75627         * tests/test-unlinkat.c (unlinkat): Likewise.
75628         * tests/test-unsetenv.c (unsetenv): Likewise.
75629         * tests/test-usleep.c (usleep): Likewise.
75630         * tests/test-utimensat.c (utimensat): Likewise.
75631         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
75632         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
75633         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
75634         * tests/test-vprintf-posix.c (vprintf): Likewise.
75635         * tests/test-vsnprintf.c (vsnprintf): Likewise.
75636         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
75637         * tests/test-wcrtomb.c (wcrtomb): Likewise.
75638         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
75639         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
75640         * tests/test-wcwidth.c (wcwidth): Likewise.
75642         build: pull in conditional headers during GNULIB_POSIXCHECK
75643         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
75644         definitions from any conditionally-included headers.
75645         * lib/stdlib.in.h (includes): Likewise.
75646         * lib/unistd.in.h (includes): Likewise.
75648 2009-12-24  Bruno Haible  <bruno@clisp.org>
75650         * tests/test-argv-iter.c: Include header file being tested immediately
75651         after config.h.
75652         * tests/test-base64.c: Likewise.
75653         * tests/test-flock.c: Likewise.
75654         * tests/test-fsync.c: Likewise.
75655         * tests/test-getdate.c: Likewise.
75656         * tests/test-getndelim2.c: Likewise.
75657         * tests/test-isfinite.c: Likewise.
75658         * tests/test-isinf.c: Likewise.
75659         * tests/test-strerror.c: Likewise.
75660         * tests/test-strsignal.c: Likewise.
75662 2009-12-23  Eric Blake  <ebb9@byu.net>
75664         unistd: work around cygwin bug
75665         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75666         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75667         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75669 2009-12-23  Bruno Haible  <bruno@clisp.org>
75671         localename: More tests.
75672         * tests/test-localename.c (SIZEOF): New macro.
75673         (categories): New variable.
75674         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75675         test_locale_name_default): Add test w.r.t. thread locale.
75676         (test_locale_name_thread): New function.
75677         (main): Invoke it.
75679         localename: Make aware of thread locale.
75680         * lib/localename.h (gl_locale_name_thread): New declaration.
75681         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75682         behaviour with respect to thread locale.
75683         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75684         <langinfo.h>, glthread/lock.h.
75685         (SIZE_BITS): New macro.
75686         (string_hash): New function.
75687         (struct hash_node): New type.
75688         (HASH_TABLE_SIZE): New macro.
75689         (struniq_hash_table, struniq_lock): New variables.
75690         (struniq): New function.
75691         (gl_locale_name_thread): New function.
75692         (gl_locale_name): Invoke it.
75693         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75694         * modules/localename (Depends-on): Add lock.
75695         Reported by Mike Gran <spk121@yahoo.com>.
75697 2009-12-23  Eric Blake  <ebb9@byu.net>
75699         va-args: new module
75700         * modules/va-args: New file.
75701         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75702         * MODULES.html.sh (Core language properties): Mention it.
75704         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75705         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75706         named alias for __attribute__((__unused__)).
75707         * lib/chown.c: Update client.
75708         * lib/fchmodat.c: Likewise.
75709         * lib/fts.c: Likewise.
75710         * lib/getdate.y: Likewise.
75711         * lib/getgroups.c: Likewise.
75712         * lib/getopt.c: Likewise.
75713         * lib/getugroups.c: Likewise.
75714         * lib/mkdir.c: Likewise.
75715         * lib/mkfifo.c: Likewise.
75716         * lib/mkfifoat.c: Likewise.
75717         * lib/mknod.c: Likewise.
75718         * lib/mknodat.c: Likewise.
75719         * lib/readlink.c: Likewise.
75720         * lib/se-context.in.h: Likewise.
75721         * lib/se-selinux.in.h: Likewise.
75722         * lib/sockets.c: Likewise.
75723         * lib/symlink.c: Likewise.
75724         * lib/symlinkat.c: Likewise.
75725         * lib/unicodeio.c: Likewise.
75726         * lib/unistr.h: Likewise.
75727         * tests/test-areadlink.c: Likewise.
75728         * tests/test-areadlinkat.c: Likewise.
75729         * tests/test-filenamecat.c: Likewise.
75730         * tests/test-fseeko.c: Likewise.
75731         * tests/test-ftello.c: Likewise.
75732         * tests/test-getdate.c: Likewise.
75733         * tests/test-getgroups.c: Likewise.
75734         * tests/test-gethostname.c: Likewise.
75735         * tests/test-quotearg.c: Likewise.
75736         * tests/test-version-etc.c: Likewise.
75737         * tests/test-xalloc-die.c: Likewise.
75738         * tests/test-xfprintf-posix.c: Likewise.
75739         * tests/test-xprintf-posix.c: Likewise.
75740         * tests/test-xvasprintf.c: Likewise.
75742         tests: avoid compiler warnings
75743         * tests/test-fcntl.c (main): Delete unused parameters.
75744         * tests/test-freopen-safer.c (main): Likewise.
75745         * tests/test-xalloc-die.c (main): Mark unused parameters.
75746         * tests/test-fseeko.c (main): Likewise.
75747         * tests/test-ftello.c (main): Likewise.
75748         * tests/test-nanosleep.c (main): Avoid declaration warning.
75749         * tests/test-sleep.c (main): Likewise.
75750         * tests/test-unsetenv.c (main): Silence warning about string
75751         literal.
75752         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75754 2009-12-23  Bruno Haible  <bruno@clisp.org>
75756         * tests/test-localename.c (test_locale_name): New function, extracted
75757         from main. Also test mixed situations.
75758         (test_locale_name_posix, test_locale_name_environ,
75759         test_locale_name_default): New functions.
75760         (main): Invoke them all.
75761         * modules/localename-tests (configure.ac): Test for newlocale.
75763 2009-12-23  Bruno Haible  <bruno@clisp.org>
75765         unistd: Ensure getcwd gets declared before being overridden.
75766         * lib/unistd.in.h: Conditionally include <io.h>.
75768 2009-12-22  Bruno Haible  <bruno@clisp.org>
75770         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75771         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75772         (gl_WCHAR_H): Invoke it.
75773         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75774         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75775         Reported by Karl Berry <karl@freefriends.org>.
75777 2009-12-22  Eric Blake  <ebb9@byu.net>
75779         math, unistd: avoid redundant includes
75780         * lib/math.in.h (isnan): No need to re-include <math.h>.
75781         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75783         getsubopt: work around cygwin bug
75784         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75785         avoid conflicting with system getsubopt.
75786         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75787         bug.
75789         getopt: synchronize from glibc
75790         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75791         parameter order.  Adjust all callers.
75792         (_getopt_internal_r, main): Adjust quoting in error messages.
75793         Drop considerations for outdated POSIX 1003.2 error message.
75794         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75795         callers.
75796         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75798         test-getopt: test stderr behavior
75799         * modules/getopt-posix-tests (Depends-on): Add dup2.
75800         * tests/test-getopt.c (ASSERT): Avoid stderr.
75801         (main): Move stderr to a temporary file.
75802         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75803         Instead, add parameter to inform caller if output occurred.
75804         (test_getopt): Adjust all existing tests to expect silence, and
75805         add new tests of leading ":".
75806         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75807         glibc shortcomings with leading "-:" or "+:" in optstring.
75808         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75809         Likewise.
75810         * doc/posix-functions/getopt.texi (getopt): Likewise.
75812         test-getopt: enhance test
75813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75814         supports optind=0.
75815         * tests/test-getopt.c (OPTIND_MIN): Move...
75816         * tests/test-getopt.h (OPTIND_MIN): ...here.
75817         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75818         Require that optind=0 works, since modern BSD supports it in
75819         addition to optreset, and since coreutils expects it.
75820         (test_getopt_long_only): New test.
75821         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75822         glibc shortcomings with 'W;', and enforcement of optind=0.
75823         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75824         Likewise.
75826 2009-12-21  Bruno Haible  <bruno@clisp.org>
75828         localename: Improvements for MacOS X and Cygwin.
75829         * lib/localename.h (gl_locale_name_environ): New declaration.
75830         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75831         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75832         (gl_locale_name_posix): Invoke it.
75833         (gl_locale_name_default): Add comments. Use Windows native API also on
75834         Cygwin.
75836 2009-12-21  Bruno Haible  <bruno@clisp.org>
75838         Update list of Win32 locale ids.
75839         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75840         (LANG_SAMI): Renamed from LANG_SAAMI.
75841         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75842         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75843         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75844         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75845         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75846         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75847         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75848         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75849         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75850         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75851         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75852         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75853         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75854         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75855         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75856         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75857         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75858         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75859         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75860         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75861         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75862         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75863         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75864         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75865         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75866         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75867         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75868         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75869         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75870         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75871         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75872         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75873         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75874         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75875         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75876         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75877         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75878         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75879         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75880         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75881         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75882         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75883         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75884         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75885         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75886         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75887         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75888         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75889         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75890         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75891         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75892         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75893         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75894         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75895         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75896         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75897         Add more languages and countries for Sami, Sorbian. Add more countries
75898         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75899         for Pashto. Change country for Syriac, Tswana.
75901 2009-12-21  Eric Blake  <ebb9@byu.net>
75903         test-utimens: avoid spurious failure
75904         * tests/test-chown.h (nap): Factor...
75905         * tests/nap.h: ...into new file.
75906         * tests/test-lchown.h (nap): Avoid duplication.
75907         * tests/test-utimens-common.h (nap): Use shared implementation,
75908         necessary on file systems with 1-second resolution.
75909         * modules/chown-tests (Files): Include new file.
75910         * modules/fdutimensat-tests (Files): Likewise.
75911         * modules/futimens-tests (Files): Likewise.
75912         * modules/lchown-tests (Files): Likewise.
75913         * modules/openat-tests (Files): Likewise.
75914         * modules/utimens-tests (Files): Likewise.
75915         * modules/utimensat-tests (Files): Likewise.
75917 2009-12-19  Eric Blake  <ebb9@byu.net>
75919         futimens, utimensat: work around Linux bug
75920         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75921         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75922         * lib/utimensat.c (rpl_utimensat): Work around it.
75923         * lib/futimens.c (rpl_futimens): Adjust comment.
75925         utimens: work around Linux ctime bug
75926         * lib/utimens.c (detect_ctime_bug): New helper function.
75927         (update_timespec): Differentiate between workaround needed for
75928         this bug vs. what is needed for systems that lack utimensat.
75929         (fdutimens, lutimens): Work around bug.
75931         utimens: check for ctime update
75932         * tests/test-utimens-common.h (check_ctime): Define.
75933         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75934         * tests/test-futimens.h (test_futimens): Likewise.
75935         * tests/test-lutimens.h (test_lutimens): Likewise.
75936         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75937         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75939 2009-12-19  Bruno Haible  <bruno@clisp.org>
75941         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75942         * tests/test-dprintf-posix2.sh: New file.
75943         * tests/test-dprintf-posix2.c: New file.
75944         * modules/dprintf-posix-tests (Files): Add them.
75945         (configure.ac): Check for getrlimit and setrlimit.
75946         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75948 2009-12-19  Bruno Haible  <bruno@clisp.org>
75950         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75951         * tests/test-fprintf-posix3.sh: New file.
75952         * tests/test-fprintf-posix3.c: New file.
75953         * modules/fprintf-posix-tests (Files): Add them.
75954         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75956 2009-12-19  Eric Blake  <ebb9@byu.net>
75958         dirfd: fix prototype
75959         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75960         * lib/dirfd.c (dirfd): Likewise.
75962         canonicalize: reduce memory usage
75963         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75964         allocation to size.
75965         Reported by Solar Designer <solar@openwall.com>.
75967 2009-12-19  Bruno Haible  <bruno@clisp.org>
75969         New module attribute 'Applicability'.
75970         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75971         * gnulib-tool: New option --extract-applicability.
75972         (func_usage): Document it.
75973         (sed_extract_prog): Recognize it.
75974         (func_get_applicability): New function.
75975         (func_import): Generalize handling of 'link-warning' module.
75976         * modules/link-warning (Applicability): New section.
75977         * modules/arg-nonnull (Applicability): New section.
75978         Repoted by Simon Josefsson <simon@josefsson.org>.
75980 2009-12-19  Bruno Haible  <bruno@clisp.org>
75982         fflush: tweak
75983         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75984         * lib/fseeko.c (rpl_fseeko): Likewise.
75986 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75988         * lib/gl_list.h: Fix typo in comment.
75990 2009-12-16  Eric Blake  <ebb9@byu.net>
75992         fcntl: use to simplify other modules
75993         * modules/cloexec (Depends-on): Add fcntl.
75994         * modules/fchdir (Depends-on): Likewise.
75995         * modules/fd-safer-flag (Depends-on): Likewise.
75996         * modules/unistd-safer (Depends-on): Likewise.
75997         * modules/dup3 (configure.ac): Set module indicator.
75998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75999         missing.
76000         * lib/fchdir.c (_gl_register_dup): Fix comment.
76001         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
76002         * lib/dup-safer.c (dup_safer): Likewise.
76003         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
76004         * lib/dup3.c (dup3): Likewise.
76005         * tests/test-fchdir.c (main): Enhance test.
76006         Fixes a dup_cloexec bug reported by Ondřej Vašík.
76008         fcntl: port portions of fcntl to mingw
76009         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
76010         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
76011         replacement for mingw.
76012         * modules/fcntl (Description): Update.
76013         (Depends-on): Add dup2.
76014         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
76015         * modules/fcntl-h (Makefile.am): Substitute it.
76016         * lib/fcntl.in.h (fcntl): Update declaration.
76017         (F_DUPFD, F_GETFD): New macros, when needed.
76018         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76019         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
76020         * tests/test-fcntl.c (check_flags, main): Enhance test for items
76021         we now guarantee.
76023         fcntl: work around cygwin bug in F_DUPFD
76024         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
76025         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
76026         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
76027         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
76028         * doc/posix-functions/fcntl.texi (fcntl): Document it.
76030         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
76031         * modules/fcntl (Files): List new files.
76032         (configure.ac): Run a test.
76033         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
76034         * lib/fcntl.c (rpl_fcntl): Likewise.
76035         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
76036         (gl_FCNTL_H): Always replace fcntl.h.
76037         * modules/fcntl-h (Makefile.am): Substitute witnesses.
76038         * lib/fcntl.in.h (fcntl): Declare replacement.
76039         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
76040         needed, plus a witness.
76041         * doc/posix-functions/fcntl.texi (fcntl): Document this.
76042         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76043         * tests/test-fcntl.c: New file.
76044         * modules/fcntl-tests: Likewise.
76046         binary-io: avoid potential compilation warning
76047         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
76048         directives.
76050         fflush: avoid compilation error on NetBSD
76051         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
76052         between off_t and fpos_t, since the latter is sometimes a struct.
76053         * lib/fseeko.c (rpl_fseeko): Likewise.
76054         Reported by Alexander Nasonov <alnsn@yandex.ru>.
76056 2009-12-15  Eric Blake  <ebb9@byu.net>
76058         fcntl-h, stdio, sys_ioctl: fix declarations
76059         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
76060         function must not take arguments.
76061         * lib/sys_ioctl.in.h (ioctl): Likewise.
76062         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
76063         (open): Add a link warning.
76065 2009-12-15  Jim Meyering  <meyering@redhat.com>
76067         areadlink, areadlink-with-size: relax license to LGPLv2+
76068         * modules/areadlink (License): Relax to LGPLv2+.
76069         * modules/areadlink-with-size (License): Likewise.
76071 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
76072             Bruno Haible  <bruno@clisp.org>
76074         *printf: Fix memory leak.
76075         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
76076         * lib/vfprintf.c (vfprintf): Likewise.
76077         * lib/dprintf.c (dprintf): Likewise.
76078         * lib/vdprintf.c (vdprintf): Likewise.
76080 2009-12-14  Eric Blake  <ebb9@byu.net>
76082         accept4: adjust module dependencies
76083         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
76085         utimens: one more try at avoiding compiler warning
76086         * lib/utimens.c (lutimens): Lower scope of result.
76088 2009-12-13  Bruno Haible  <bruno@clisp.org>
76090         Move the malloc checking from module 'list' to new module 'xlist'.
76091         * modules/xlist: New file.
76092         * lib/gl_xlist.h: New file.
76093         * lib/gl_xlist.c: New file.
76094         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
76095         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
76096         gl_list_add_last, gl_list_add_before, gl_list_add_after,
76097         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
76098         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
76099         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
76100         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
76101         gl_sortedlist_nx_add): New declarations.
76102         (struct gl_list_implementation): Rename and change methods accordingly.
76103         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
76104         (gl_list_nx_create): Renamed from gl_list_create.
76105         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76106         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76107         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76108         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76109         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76110         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76111         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76112         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76113         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
76114         gl_list_create_empty.
76115         (gl_list_nx_create): Renamed from gl_list_create.
76116         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76117         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76118         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76119         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76120         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76121         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76122         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76123         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76124         * lib/gl_array_list.c: Don't include xalloc.h.
76125         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
76126         NULL upon out-of-memory.
76127         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
76128         out-of-memory.
76129         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
76130         Change return type to 'int'.
76131         (gl_array_nx_set_at): Renamed from gl_array_set_at.
76132         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76133         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
76134         upon out-of-memory.
76135         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
76136         upon out-of-memory.
76137         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
76138         upon out-of-memory.
76139         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
76140         upon out-of-memory.
76141         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
76142         out-of-memory.
76143         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
76144         Update.
76145         (gl_array_list_implementation): Update.
76146         * lib/gl_carray_list.c: Don't include xalloc.h.
76147         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
76148         Return NULL upon out-of-memory.
76149         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
76150         out-of-memory.
76151         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
76152         Change return type to 'int'.
76153         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
76154         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76155         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
76156         upon out-of-memory.
76157         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
76158         upon out-of-memory.
76159         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
76160         out-of-memory.
76161         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
76162         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
76163         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
76164         Update.
76165         (gl_carray_list_implementation): Update.
76166         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
76167         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
76168         gl_linked_create_empty. Return NULL upon out-of-memory.
76169         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
76170         out-of-memory.
76171         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76172         Change return type to 'int'. Return -1 upon out-of-memory.
76173         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76174         out-of-memory.
76175         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76176         upon out-of-memory.
76177         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
76178         upon out-of-memory.
76179         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
76180         NULL upon out-of-memory.
76181         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
76182         upon out-of-memory.
76183         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
76184         out-of-memory.
76185         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
76186         Update.
76187         * lib/gl_linked_list.c: Don't include xalloc.h.
76188         (gl_linked_list_implementation): Update.
76189         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
76190         (add_to_bucket): Change return type to 'int'.
76191         (gl_linkedhash_list_implementation): Update.
76192         * lib/gl_anytree_list1.h (free_subtree): New function.
76193         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
76194         gl_tree_create_empty. Return NULL upon out-of-memory.
76195         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
76196         Change return type to 'int'. Return -1 upon out-of-memory.
76197         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
76198         out-of-memory.
76199         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
76200         (gl_tree_remove_node): New function, moved here from
76201         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
76202         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
76203         Update.
76204         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
76205         malloc, not xmalloc. Return NULL upon out-of-memory.
76206         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76207         out-of-memory.
76208         (gl_tree_remove_node_from_tree): New function, extracted from
76209         gl_tree_remove_node.
76210         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76211         upon out-of-memory.
76212         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76213         out-of-memory.
76214         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76215         upon out-of-memory.
76216         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76217         upon out-of-memory.
76218         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76219         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
76220         not xmalloc. Return NULL upon out-of-memory.
76221         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76222         out-of-memory.
76223         (gl_tree_remove_node_from_tree): New function, extracted from
76224         gl_tree_remove_node.
76225         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76226         upon out-of-memory.
76227         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76228         out-of-memory.
76229         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76230         upon out-of-memory.
76231         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76232         upon out-of-memory.
76233         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76234         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
76235         gl_anytree_list1.h before gl_anyavltree_list2.h.
76236         (gl_avltree_list_implementation): Update.
76237         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
76238         gl_anytree_list1.h before gl_anyavltree_list2.h.
76239         (gl_rbtree_list_implementation): Update.
76240         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
76241         Change return type to 'int'. Return -1 upon out-of-memory. Use
76242         __builtin_expect.
76243         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
76244         (gl_avltreehash_list_implementation): Update.
76245         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
76246         (gl_rbtreehash_list_implementation): Update.
76247         * modules/array-list (Depends-on): Remove xalloc.
76248         * modules/carray-list (Depends-on): Likewise.
76249         * modules/linked-list (Depends-on): Likewise.
76250         * modules/linkedhash-list (Depends-on): Likewise.
76251         * modules/avltree-list (Depends-on): Likewise.
76252         * modules/rbtree-list (Depends-on): Likewise.
76253         * modules/avltreehash-list (Depends-on): Likewise.
76254         * modules/rbtreehash-list (Depends-on): Likewise.
76256         * modules/xsublist: New file.
76257         * lib/gl_xsublist.h: New file.
76258         * lib/gl_xsublist.c: New file.
76259         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
76260         (gl_sublist_nx_create): New declaration.
76261         * lib/gl_sublist.c: Don't include xalloc.h.
76262         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
76263         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
76264         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
76265         Change return type to 'int'. Return -1 upon out-of-memory.
76266         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
76267         upon out-of-memory.
76268         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
76269         NULL upon out-of-memory.
76270         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
76271         upon out-of-memory.
76272         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
76273         NULL upon out-of-memory.
76274         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
76275         NULL upon out-of-memory.
76276         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
76277         upon out-of-memory.
76278         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
76279         (gl_sublist_list_implementation): Update.
76280         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
76281         upon out-of-memory.
76282         * modules/sublist (Depends-on): Remove xalloc.
76284         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
76285         * tests/test-carray_list.c: Likewise.
76286         * tests/test-linked_list.c: Likewise.
76287         * tests/test-linkedhash_list.c: Likewise.
76288         * tests/test-avltree_list.c: Likewise.
76289         * tests/test-rbtree_list.c: Likewise.
76290         * tests/test-avltreehash_list.c: Likewise.
76291         * tests/test-rbtreehash_list.c: Likewise.
76292         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
76293         * modules/carray-list-tests (Makefile.am): Likewise.
76294         * modules/linked-list-tests (Makefile.am): Likewise.
76295         * modules/linkedhash-list-tests (Makefile.am): Likewise.
76296         * modules/avltree-list-tests (Makefile.am): Likewise.
76297         * modules/rbtree-list-tests (Makefile.am): Likewise.
76298         * modules/avltreehash-list-tests (Makefile.am): Likewise.
76299         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
76301         * NEWS: Mention the changes.
76303         * lib/clean-temp.c: Include gl_xlist.h.
76304         * modules/clean-temp (Depends-on): Add xlist.
76306         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
76307         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
76309         * tests/test-array_oset.c: Include gl_xlist.h.
76310         * modules/array-oset-tests (Depends-on): Add xlist.
76312         Reported by José E. Marchesi <jemarch@gnu.org>.
76314 2009-12-13  Bruno Haible  <bruno@clisp.org>
76316         Move the malloc checking from module 'oset' to new module 'xoset'.
76317         * modules/xoset: New file.
76318         * lib/gl_xoset.h: New file.
76319         * lib/gl_xoset.c: New file.
76320         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
76321         declarations.
76322         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
76323         (struct gl_oset_implementation): Rename and change methods accordingly.
76324         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
76325         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76326         'int'. Mark as __warn_unused_result__.
76327         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
76328         gl_oset_create_empty.
76329         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76330         'int'.
76331         * lib/gl_array_oset.c: Don't include xalloc.h.
76332         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
76333         malloc, not xmalloc.
76334         (grow): Change return type to 'int'. Don't call xalloc_die.
76335         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
76336         to 'int'.
76337         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
76338         'int'.
76339         (gl_array_oset_implementation): Update.
76340         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
76341         gl_tree_create_empty.
76342         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76343         'int'.
76344         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76345         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76346         xmalloc.
76347         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76348         not xmalloc.
76349         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76350         xmalloc.
76351         (gl_avltree_oset_implementation): Update.
76352         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76353         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76354         xmalloc.
76355         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76356         not xmalloc.
76357         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76358         xmalloc.
76359         (gl_rbtree_oset_implementation): Update.
76360         * modules/array-oset (Depends-on): Remove xalloc.
76361         * modules/avltree-oset (Depends-on): Likewise.
76362         * modules/rbtree-oset (Depends-on): Likewise.
76363         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76364         * tests/test-avltree_oset.c: Likewise.
76365         * tests/test-rbtree_oset.c: Likewise.
76366         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76367         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76368         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76369         * NEWS: Mention the change.
76371 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76373         maint.mk: allow a project to override release-prep commands
76374         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76375         commands into a new rule.
76376         (release-prep): New rule.
76377         (release-prep-hook): New overridable variable.
76379 2009-12-13  Bruno Haible  <bruno@clisp.org>
76381         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76383 2009-12-13  Jim Meyering  <meyering@redhat.com>
76385         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76386         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76388 2009-12-12  Bruno Haible  <bruno@clisp.org>
76390         duplocale: Tweak.
76391         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76393 2009-12-12  Karl Berry  <karl@gnu.org>
76395         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76397 2009-12-12  Bruno Haible  <bruno@clisp.org>
76399         * m4/po.m4: Undo incorrect untabification.
76401 2009-12-12  Bruno Haible  <bruno@clisp.org>
76403         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76404         * modules/c-strtod (Depends-on): Add locale.
76405         * modules/c-strtold (Depends-on): Likewise.
76407 2009-12-12  Bruno Haible  <bruno@clisp.org>
76409         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76411 2009-12-11  Eric Blake  <ebb9@byu.net>
76413         setenv: relax requirement in light of POSIX ruling
76414         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76415         not NULL.
76416         * tests/test-setenv.c (main): Relax test.
76417         * tests/test-unsetenv.c (main): Likewise.
76418         * doc/posix-functions/setenv.texi (setenv): Document this.
76419         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76421 2009-12-11  Bruno Haible  <bruno@clisp.org>
76423         New module 'fd-safer-flag'.
76424         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76425         * lib/dup-safer.c (dup_safer_flag): Remove function.
76426         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76427         * lib/fd-safer.c (fd_safer_flag): Remove function.
76428         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76429         * modules/cloexec (configure.ac): Drop indicator macro.
76430         * modules/fd-safer-flag: New file.
76431         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76432         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76433         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76435 2009-12-11  Bruno Haible  <bruno@clisp.org>
76437         Tests for module 'nl_langinfo'.
76438         * modules/nl_langinfo-tests: New file.
76439         * tests/test-nl_langinfo.sh: New file.
76440         * tests/test-nl_langinfo.c: New file.
76442         New module 'nl_langinfo'.
76443         * lib/nl_langinfo.c: New file.
76444         * m4/nl_langinfo.m4: New file.
76445         * modules/nl_langinfo: New file.
76446         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76448 2009-12-11  Bruno Haible  <bruno@clisp.org>
76450         Tests for module 'langinfo'.
76451         * modules/langinfo-tests: New file.
76452         * tests/test-langinfo.c: New file.
76454         New module 'langinfo'.
76455         * lib/langinfo.in.h: New file.
76456         * m4/langinfo_h.m4: New file.
76457         * modules/langinfo: New file.
76458         * doc/posix-headers/langinfo.texi: Mention the new module.
76460 2009-12-11  Bruno Haible  <bruno@clisp.org>
76462         * lib/config.charset: Untabify.
76464 2009-12-11  Bruno Haible  <bruno@clisp.org>
76466         * modules/unistd-safer (configure.ac): Drop indicator macro.
76468 2009-12-11  Bruno Haible  <bruno@clisp.org>
76470         Move pipe2-safer code to its own file.
76471         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
76472         * lib/pipe-safer.c (pipe2_safer): Remove function.
76473         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
76474         (Makefile.am): Add it to lib_SOURCES.
76476 2009-12-10  Bruno Haible  <bruno@clisp.org>
76478         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
76480 2009-12-10  Bruno Haible  <bruno@clisp.org>
76482         Declare which arguments expect non-NULL values, for GCC and clang.
76483         * build-aux/arg-nonnull.h: New file.
76484         * modules/arg-nonnull: New file.
76485         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
76486         (inet_ntop, inet_pton): Use it.
76487         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
76488         (closedir, dirfd, opendir, scandir, alphasort): Use it.
76489         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
76490         (open, openat): Use it.
76491         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
76492         (fnmatch): Use it.
76493         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
76494         (getopt, getopt_long, getopt_long_only): Use it.
76495         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
76496         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
76497         Use it.
76498         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
76499         (iconv_open): Use it.
76500         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
76501         (strtoimax, strtoumax): Use it.
76502         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
76503         (duplocale): Use it.
76504         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
76505         (frexp, frexpl): Use it.
76506         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
76507         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
76508         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
76509         (tsearch, tfind, tdelete, twalk): Use it.
76510         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
76511         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
76512         sigpending): Use it.
76513         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
76514         (posix_spawn, posix_spawnp, posix_spawnattr_init,
76515         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76516         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
76517         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
76518         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
76519         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
76520         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
76521         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
76522         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
76523         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
76524         Use it.
76525         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
76526         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
76527         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
76528         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
76529         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
76530         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
76531         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
76532         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
76533         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
76534         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
76535         strtoull, unsetenv): Use it.
76536         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
76537         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
76538         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
76539         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
76540         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
76541         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
76542         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
76543         (strcasecmp, strncasecmp): Use it.
76544         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
76545         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
76546         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
76547         rpl_setsockopt): Use it.
76548         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
76549         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
76550         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
76551         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
76552         (gettimeofday): Use it.
76553         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
76554         (times): Use it.
76555         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
76556         (uname): Use it.
76557         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
76558         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
76559         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
76560         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
76561         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
76562         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
76563         unlinkat, write): Use it.
76564         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
76565         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
76566         * lib/argv-iter.h: Include arg-nonnull.h.
76567         (_ATTRIBUTE_NONNULL_): Remove macro.
76568         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
76569         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
76570         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
76571         optimization.
76572         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
76573         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
76574         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
76575         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
76576         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
76577         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
76578         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
76579         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
76580         * modules/arpa_inet (Depends-on): Add arg-nonnull.
76581         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
76582         * modules/dirent (Depends-on): Add arg-nonnull.
76583         (Makefile.am): Insert arg-nonnull.h into dirent.h.
76584         * modules/fcntl-h (Depends-on): Add arg-nonnull.
76585         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
76586         * modules/fnmatch (Depends-on): Add arg-nonnull.
76587         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
76588         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76589         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76590         * modules/glob (Depends-on): Add arg-nonnull.
76591         (Makefile.am): Insert arg-nonnull.h into glob.h.
76592         * modules/iconv_open (Depends-on): Add arg-nonnull.
76593         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76594         * modules/inttypes (Depends-on): Add arg-nonnull.
76595         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76596         * modules/locale (Depends-on): Add arg-nonnull.
76597         (Makefile.am): Insert arg-nonnull.h into locale.h.
76598         * modules/math (Depends-on): Add arg-nonnull.
76599         (Makefile.am): Insert arg-nonnull.h into math.h.
76600         * modules/netdb (Depends-on): Add arg-nonnull.
76601         (Makefile.am): Insert arg-nonnull.h into netdb.h.
76602         * modules/search (Depends-on): Add arg-nonnull.
76603         (Makefile.am): Insert arg-nonnull.h into search.h.
76604         * modules/signal (Depends-on): Add arg-nonnull.
76605         (Makefile.am): Insert arg-nonnull.h into signal.h.
76606         * modules/spawn (Depends-on): Add arg-nonnull.
76607         (Makefile.am): Insert arg-nonnull.h into spawn.h.
76608         * modules/stdio (Depends-on): Add arg-nonnull.
76609         (Makefile.am): Insert arg-nonnull.h into stdio.h.
76610         * modules/stdlib (Depends-on): Add arg-nonnull.
76611         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
76612         * modules/string (Depends-on): Add arg-nonnull.
76613         (Makefile.am): Insert arg-nonnull.h into string.h.
76614         * modules/strings (Depends-on): Add arg-nonnull.
76615         (Makefile.am): Insert arg-nonnull.h into strings.h.
76616         * modules/sys_socket (Depends-on): Add arg-nonnull.
76617         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
76618         * modules/sys_stat (Depends-on): Add arg-nonnull.
76619         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
76620         * modules/sys_time (Depends-on): Add arg-nonnull.
76621         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
76622         * modules/sys_times (Depends-on): Add arg-nonnull.
76623         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
76624         * modules/sys_utsname (Depends-on): Add arg-nonnull.
76625         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
76626         * modules/time (Depends-on): Add arg-nonnull.
76627         (Makefile.am): Insert arg-nonnull.h into time.h.
76628         * modules/unistd (Depends-on): Add arg-nonnull.
76629         (Makefile.am): Insert arg-nonnull.h into unistd.h.
76630         * modules/wchar (Depends-on): Add arg-nonnull.
76631         (Makefile.am): Insert arg-nonnull.h into wchar.h.
76632         * modules/argv-iter (Depends-on): Add arg-nonnull.
76633         * tests/test-canonicalize.c (null_ptr): New function.
76634         (main): Use it.
76635         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
76636         (main): Use it.
76637         * tests/test-memmem.c (null_ptr): New function.
76638         (main): Use it.
76639         Reported by Jim Meyering.
76641 2009-12-10  Bruno Haible  <bruno@clisp.org>
76643         Use spaces for indentation, not tabs.
76644         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
76645         * m4/*.m4: Untabify.
76646         * build-aux/*.h: Untabify.
76647         * tests/**/*.[hc]: Untabify.
76648         * README: New section "Indent with spaces, not TABs", based on
76649         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
76650         * NEWS: Mention the change.
76652 2009-12-10  Bruno Haible  <bruno@clisp.org>
76654         pty test: Fix link error.
76655         * modules/pty-tests (Makefile.am): Add the default LDADD value to
76656         test_pty_LDADD.
76658 2009-12-07  Simon Josefsson  <simon@josefsson.org>
76660         * modules/pty: New file.
76661         * modules/pty-tests: New file.
76662         * m4/pty.m4: New file.
76663         * tests/test-pty.c: New file.
76664         * doc/glibc-headers/pty.texi: Modified.
76665         * doc/glibc-functions/forkpty.texi: Modified.
76666         * doc/glibc-functions/openpty.texi: Modified.
76668 2009-12-10  Bruno Haible  <bruno@clisp.org>
76670         Avoid syntax error in C++ mode.
76671         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76673 2009-12-10  Bruno Haible  <bruno@clisp.org>
76675         Use sed with option -e.
76676         * gnulib-tool (func_version, func_emit_copyright_notice,
76677         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76678         option -e to sed.
76679         * modules/link-warning (Makefile.am): Likewise.
76681 2009-12-10  Jim Meyering  <meyering@redhat.com>
76683         mgetgroups: do not write bytes beyond end of malloc'd buffer
76684         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76685         username, we call getgroups with a one-element-shorter buffer,
76686         but still told it the length was original, max_n_groups.
76688 2009-12-09  Eric Blake  <ebb9@byu.net>
76690         cloexec: relax license
76691         * modules/cloexec (Maintainer): Add myself.
76692         (License): Use LGPL, not GPL.
76694         link-warning: optimize generation
76695         * modules/link-warning (Makefile.am): Reduce process usage.
76697 2009-12-09  Bruno Haible  <bruno@clisp.org>
76699         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76700         workaround was added on 2009-11-17.
76702 2009-12-09  Jim Meyering  <meyering@redhat.com>
76703             Bruno Haible  <bruno@clisp.org>
76705         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76706         * modules/link-warning (Makefile.am): Make the comment-removing sed
76707         command more robust in the face of bootstrap-prepended comment lines.
76709 2009-12-09  Bruno Haible  <bruno@clisp.org>
76711         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76712         most one group.
76714 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76715             Bruno Haible  <bruno@clisp.org>
76717         * build-aux/link-warning.h: Add copyright notice.
76718         * modules/link-warning (Makefile.am): Generate link-warning.h from
76719         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76720         * NEWS: Mention change in link-warning module.
76721         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76722         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76723         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76724         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76725         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76726         * modules/math (Makefile.am): Add dependency to math.h.
76727         * modules/search (Makefile.am): Add dependency to search.h.
76728         * modules/signal (Makefile.am): Add dependency to signal.h.
76729         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76730         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76731         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76732         * modules/string (Makefile.am): Add dependency to string.h.
76733         * modules/strings (Makefile.am): Add dependency to strings.h.
76734         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76735         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76736         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76737         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76738         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76739         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76740         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76741         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76742         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76744 2009-12-09  Bruno Haible  <bruno@clisp.org>
76746         fchdir: Optimize away rpl_fstat when possible.
76747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76748         REPLACE_OPEN_DIRECTORY.
76749         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76751 2009-12-09  Bruno Haible  <bruno@clisp.org>
76753         * lib/fchdir.c: Update comment.
76755 2009-12-09  Bruno Haible  <bruno@clisp.org>
76757         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76759 2009-12-08  Eric Blake  <ebb9@byu.net>
76761         fchdir: avoid memory leak on re-registration.
76762         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76764 2009-12-08  Jim Meyering  <meyering@redhat.com>
76766         init.sh: avoid Solaris 10 /bin/sh portability problem
76767         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76768         sourced script:
76769           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76770           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76771           bar
76772         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76773         and two tests used that idiom.
76774         * tests/init.sh: Update suggested usage comments.
76775         (path_prepend_): New function, to be used in place
76776         of the --src-path=DIR option.
76777         (setup_): Move PATH-prepending code into path_prepend_.
76778         * tests/test-pread.sh: Adapt to new usage.
76779         * tests/test-xalloc-die.sh: Likewise.
76781 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76783         * doc/gnulib.texi (Glibc pty.h): Add.
76784         * doc/glibc-functions/forkpty.texi: Add.
76785         * doc/glibc-functions/openpty.texi: Add.
76786         Suggested by Bruno Haible.
76788 2009-12-08  Eric Blake  <ebb9@byu.net>
76790         fchdir: fix logic bugs
76791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76792         * tests/test-fchdir.c (main): Enhance test.
76793         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76794         is in use.
76796         dup2: fix logic bugs
76797         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76798         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76799         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76800         exists.
76801         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76803 2009-12-07  Eric Blake  <ebb9@byu.net>
76805         unlink: fix m4 detection
76806         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76808         unistd-safer: add unit test
76809         * modules/unistd-safer-tests: New file.
76810         * tests/test-dup-safer.c: Likewise.
76811         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76812         * tests/test-dup2.c (setmode): Likewise.
76813         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76815         cloexec: preserve text vs. binary across dup_cloexec
76816         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76817         mode.
76818         * modules/dup2-tests (Depends-on): Add binary-io.
76819         * modules/cloexec-tests (Depends-on): Likewise.
76820         * tests/test-dup2.c (setmode, is_mode): New helpers.
76821         (main): Add tests that translation mode is preserved.
76822         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76823         Reported by Bruno Haible.
76825         mgetgroups: reduce duplicate listings
76826         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76827         resulting array.
76828         * tests/test-chown.h (test_chown): Simplify client.
76829         * tests/test-lchown.h (test_lchown): Likewise.
76831 2009-12-06  Bruno Haible  <bruno@clisp.org>
76833         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76834         value.
76836 2009-12-06  Bruno Haible  <bruno@clisp.org>
76838         * lib/progname.c: Include stdio.h, stdlib.h.
76839         (set_program_name): Reject a NULL argument.
76841 2009-12-05  Eric Blake  <ebb9@byu.net>
76843         pipe2-safer: new module
76844         * modules/pipe2-safer: New file.
76845         * lib/unistd-safer.h (pipe2_safer): New prototype.
76846         * lib/unistd--.h (pipe2): New wrapper.
76847         * lib/pipe-safer.c (pipe2_safer): New function.
76848         * modules/pipe (Depends-on): Add pipe2-safer.
76849         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76851         stdlib-safer: preserve cloexec flag for mkostemp[s]
76852         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76853         fd_safer_flag.
76855         unistd-safer: allow preservation of cloexec status via flag
76856         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76857         prototypes.
76858         * lib/dup-safer.c (dup_safer_flag): New function.
76859         * lib/fd-safer.c (fd_safer_flag): Likewise.
76860         * modules/cloexec (configure.ac): Set witness.
76862         test-dup2: enhance test
76863         * modules/dup2-tests (Depends-on): Add cloexec.
76864         * tests/test-dup2.c (main): Enhance test.
76866         cloexec: add dup_cloexec
76867         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76868         header and comments.
76869         * lib/cloexec.c (set_cloexec_flag): Add comments.
76870         (dup_cloexec): New function, with mingw implementation borrowed
76871         from...
76872         * lib/w32spawn.h (dup_noinherit): ...here.
76873         * modules/execute (Depends-on): Add cloexec.
76874         * modules/pipe (Depends-on): Likewise.
76875         * modules/cloexec (Depends-on): Add dup2.
76876         * modules/cloexec-tests (Files): New file.
76877         * tests/test-cloexec.c: Likewise.
76879         test-xalloc-die: fix test for mingw
76880         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76881         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76882         directory and .exe suffix off argv[0] output.
76884         test-fseeko: fix test for mingw
76885         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76886         than undefining fseek, so test will pass on mingw.
76888 2009-12-05  Bruno Haible  <bruno@clisp.org>
76890         * lib/progname.h (set_program_name): Clarify specification.
76891         * lib/progname.c (set_program_name): Likewise.
76892         Reported by Jim Meyering.
76894 2009-12-05  Jim Meyering  <meyering@redhat.com>
76896         maint.mk: backslash-escape parens in default regexp
76897         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76898         backslash-escape the literal parentheses.
76900         maint.mk: news-date-check: use grep -E
76901         * top/maint.mk (today): Define a Make variable, not a...
76902         (news-date-check): ...shell variable.
76903         (news-date-regexp): Use the Make variable.
76904         Use grep's -E option.  Change the failing diagnostic to mention
76905         the variable, $(news-date-regexp).
76907 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76909         maintainer-makefile: allow customization of NEWS entry format
76910         * top/maint.mk (news-date-regexp): New overridable variable.
76911         (news-date-check): Use it.
76913 2009-12-04  Eric Blake  <ebb9@byu.net>
76915         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76916         * lib/mgetgroups.h (xgetgroups): New prototype.
76917         * lib/mgetgroups.c (xgetgroups): New wrapper.
76918         (mgetgroups): Handle ENOSYS.
76919         * modules/mgetgroups (Depends-on): Add realloc.
76920         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76922         mgetgroups: avoid argument promotion issues with -1
76923         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76924         for invalid gid_t.
76925         * tests/test-chown.h (getegid, test_chown): Likewise.
76926         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76928 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76930         exclude: Fix header file problems.
76931         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76933 2009-12-01  Jim Meyering  <meyering@redhat.com>
76935         fts: fts_open: do not let an empty string cause immediate failure
76936         This is required in support of GNU rm, for which the command
76937         "rm A '' B" must process and remove both A and B, in spite of
76938         the empty string argument.
76939         * lib/fts.c (fts_open): Do not let the presence of an empty string
76940         cause fts_open to fail immediately.  Most fts-using tools must be
76941         able to process all arguments, in order, and can be expected to
76942         diagnose such arguments themselves.
76944 2009-11-30  Eric Blake  <ebb9@byu.net>
76946         utimens: fix compilation error
76947         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76948         Declare variable at right scope.
76950 2009-11-29  Jim Meyering  <meyering@redhat.com>
76952         bootstrap: handle perl-5.11's changed --version output
76953         * build-aux/bootstrap (get_version): Handle perl separately,
76954         since perl-5.11's --version output is different.
76956 2009-11-28  Jim Meyering  <meyering@redhat.com>
76958         userspec: depend on the inttostr module, too
76959         * modules/userspec (Depends-on): Add inttostr.
76961         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76962         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76963         number of MAXUID when it evaluates to (uid_t) -1.
76964         Likewise for group ID.  Reported by Matt McCutchen in
76965         <http://savannah.gnu.org/bugs/?28113>
76967         userspec: reformat to use spaces, not TABs
76968         * lib/userspec.c: Expand TABs to spaces.
76969         Add Emacs' "indent-tabs-mode: nil" hint.
76971 2009-11-27  Eric Blake  <ebb9@byu.net>
76973         getopt-gnu: flush out another BSD bug
76974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76975         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76976         flush out BSD bug.
76977         * tests/test-getopt.h (test_getopt): End lists with NULL.
76978         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76979         (test_getopt_long_posix): Enhance test.
76980         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76981         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76982         getopt-gnu.
76983         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76984         Likewise.
76986 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76988         * modules/idpriv-droptemp-tests (Notice): Fix text.
76990 2009-11-27  Jim Meyering  <meyering@redhat.com>
76992         test-xalloc-die: avoid spurious failure due to libtool argv difference
76993         In a libtool-enabled project, this test would fail due to a difference
76994         in the emitted program name, e.g.,
76995         -test-xalloc-die: memory exhausted
76996         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76997         Use program to avoid that.
76998         * modules/xalloc-die-tests (Depends-on): Add progname.
76999         * tests/test-xalloc-die.c: Include progname.h".
77000         (program_name): Remove decl.
77001         (main): Call set_program_name.
77002         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
77004 2009-11-26  Richard Jones  <rjones@redhat.com>
77006         w32sock: leave win32 error in place.
77007         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
77009 2009-11-26  Eric Blake  <ebb9@byu.net>
77011         init.sh: suggest to use skip_ and fail_ functions in comments
77012         * tests/init.sh: Add a sentence.
77014 2009-11-25  Bruno Haible  <bruno@clisp.org>
77016         init.sh: add documentation in comments
77017         * tests/init.sh: Add some developer and user documentation.
77019 2009-11-26  Jim Meyering  <meyering@redhat.com>
77021         init.sh: accommodate even those who specify bogus srcdir manually
77022         * tests/init.sh: Normally, srcdir is guaranteed by automake and
77023         configure-time tests to be sanitized, so that there is no need to
77024         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
77025         (with no double quotes) suffices.  However, since tests may be
77026         invoked manually, and since you may explicitly set srcdir to the
77027         name of a directory containing spaces, do quote its uses here.
77028         * tests/test-pread.sh: Likewise.
77029         Suggested by Bruno Haible.
77031         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
77032         * tests/test-pread.sh: Write no data into the pipe, because
77033         test-pread actually reads none.  This avoids a diagnostic,
77034         "bash: echo: write error: Broken pipe", that arises in the unusual
77035         event something is ignoring SIGPIPE, and might be interpreted
77036         as some sort of failure.  Reported by Bruno Haible.
77038 2009-11-25  Jim Meyering  <meyering@redhat.com>
77040         test-pread: cover failure with ESPIPE and EINVAL
77041         * tests/test-pread.c (main): Test for failure, too.
77042         * tests/test-pread.sh: Invoke with stdin on a pipe.
77043         Suggested by Eric Blake.
77045         pread: improvement and fix
77046         * modules/pread (Depends-on): Depend on lseek, for portability to
77047         e.g., mingw.  Suggested by Eric Blake.
77048         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
77050         unistd.in.h: correct declaration of pread
77051         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
77052         Reported by Richard W.M. Jones.
77054         test-pread.sh: distribute the test script
77055         * modules/pread-tests (Files): Include test-pread.sh.
77057         test-pread.sh: clean up
77058         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
77059         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
77060         That is unnecessary, since it's always ".".
77061         Suggestion from Eric Blake.
77063         test-pread.sh: make executable
77064         * tests/test-pread.sh: Set executable bit.
77065         Reported by Eric Blake.
77067         correct typo in test-pread.sh
77068         * tests/test-pread.sh: Add #! line.
77070         test pread
77071         * tests/test-pread.c: New file.
77072         * tests/test-pread.sh: Likewise.
77073         * modules/pread-tests: Likewise.
77075         pread: new module
77076         * modules/pread: New file.
77077         * lib/unistd.in.h (pread): Define/declare.
77078         * lib/pread.c (pread): New file.
77079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
77080         * modules/unistd (Makefile.am): Substitute witnesses.
77081         * doc/posix-functions/pread.texi (pread): Update.
77082         * MODULES.html.sh: Add pread.
77084 2009-11-25  Jim Meyering  <meyering@redhat.com>
77086         tests/init.sh: new file to be used via most *.sh tests
77087         * tests/init.sh: New file.
77089 2009-11-25  Eric Blake  <ebb9@byu.net>
77091         utimens: work around older Linux failure with symlinks
77092         * lib/utimens.c (lutimensat_works_really): New variable.
77093         (fdutimens, lutimens): Use it to manage kernels that support
77094         nanosecond times on files, but not on symlinks.
77095         Reported by Ondřej Vašík.
77097         utimes: fix configure grammar
77098         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
77100 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
77102         regex: Fix fastmap for multibyte character ranges.
77103         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
77104         characters when a multibyte character range is included.
77106 2009-11-22  Andy Wingo  <wingo@pobox.com>
77108         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
77109         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
77111 2009-11-24  Bruno Haible  <bruno@clisp.org>
77113         doc: Most *_l functions exist in MacOS X 10.5.
77114         * doc/posix-functions/duplocale.texi: Update platforms list.
77115         * doc/posix-functions/freelocale.texi: Likewise.
77116         * doc/posix-functions/newlocale.texi: Likewise.
77117         * doc/posix-functions/uselocale.texi: Likewise.
77118         * doc/posix-functions/isalnum_l.texi: Likewise.
77119         * doc/posix-functions/isalpha_l.texi: Likewise.
77120         * doc/posix-functions/isblank_l.texi: Likewise.
77121         * doc/posix-functions/iscntrl_l.texi: Likewise.
77122         * doc/posix-functions/isdigit_l.texi: Likewise.
77123         * doc/posix-functions/isgraph_l.texi: Likewise.
77124         * doc/posix-functions/islower_l.texi: Likewise.
77125         * doc/posix-functions/isprint_l.texi: Likewise.
77126         * doc/posix-functions/ispunct_l.texi: Likewise.
77127         * doc/posix-functions/isspace_l.texi: Likewise.
77128         * doc/posix-functions/isupper_l.texi: Likewise.
77129         * doc/posix-functions/iswalnum_l.texi: Likewise.
77130         * doc/posix-functions/iswalpha_l.texi: Likewise.
77131         * doc/posix-functions/iswblank_l.texi: Likewise.
77132         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77133         * doc/posix-functions/iswctype_l.texi: Likewise.
77134         * doc/posix-functions/iswdigit_l.texi: Likewise.
77135         * doc/posix-functions/iswgraph_l.texi: Likewise.
77136         * doc/posix-functions/iswlower_l.texi: Likewise.
77137         * doc/posix-functions/iswprint_l.texi: Likewise.
77138         * doc/posix-functions/iswpunct_l.texi: Likewise.
77139         * doc/posix-functions/iswspace_l.texi: Likewise.
77140         * doc/posix-functions/iswupper_l.texi: Likewise.
77141         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77142         * doc/posix-functions/isxdigit_l.texi: Likewise.
77143         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
77144         * doc/posix-functions/strcasecmp_l.texi: Likewise.
77145         * doc/posix-functions/strcoll_l.texi: Likewise.
77146         * doc/posix-functions/strfmon_l.texi: Likewise.
77147         * doc/posix-functions/strftime_l.texi: Likewise.
77148         * doc/posix-functions/strncasecmp_l.texi: Likewise.
77149         * doc/posix-functions/strxfrm_l.texi: Likewise.
77150         * doc/posix-functions/tolower_l.texi: Likewise.
77151         * doc/posix-functions/toupper_l.texi: Likewise.
77152         * doc/posix-functions/towctrans_l.texi: Likewise.
77153         * doc/posix-functions/towlower_l.texi: Likewise.
77154         * doc/posix-functions/towupper_l.texi: Likewise.
77155         * doc/posix-functions/wcscoll_l.texi: Likewise.
77156         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77157         * doc/posix-functions/wctrans_l.texi: Likewise.
77158         * doc/posix-functions/wctype_l.texi: Likewise.
77159         * doc/glibc-functions/strptime_l.texi: Likewise.
77160         * doc/glibc-functions/strtod_l.texi: Likewise.
77161         * doc/glibc-functions/strtof_l.texi: Likewise.
77162         * doc/glibc-functions/strtol_l.texi: Likewise.
77163         * doc/glibc-functions/strtold_l.texi: Likewise.
77164         * doc/glibc-functions/strtoll_l.texi: Likewise.
77165         * doc/glibc-functions/strtoul_l.texi: Likewise.
77166         * doc/glibc-functions/strtoull_l.texi: Likewise.
77167         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77168         * doc/glibc-functions/wcstod_l.texi: Likewise.
77169         * doc/glibc-functions/wcstof_l.texi: Likewise.
77170         * doc/glibc-functions/wcstol_l.texi: Likewise.
77171         * doc/glibc-functions/wcstold_l.texi: Likewise.
77172         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77173         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77174         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77176 2009-11-24  Bruno Haible  <bruno@clisp.org>
77178         duplocale: Fix logic bug.
77179         * lib/duplocale.c: Don't include <langinfo.h>.
77180         (_NL_LOCALE_NAME): Remove macro.
77181         (rpl_duplocale): Use setlocale instead of nl_langinfo.
77182         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
77184 2009-11-23  Jim Meyering  <meyering@redhat.com>
77186         test-update-copyright: don't hard-code /usr/bin/perl
77187         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
77188         perl to print the current year.  Gilles Espinasse reported that
77189         the replaced use of perl was hard-coded as /usr/bin/perl.
77191 2009-11-23  Bruno Haible  <bruno@clisp.org>
77193         duplocale: Add support for glibc 2.3.x.
77194         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
77196 2009-11-22  Bruno Haible  <bruno@clisp.org>
77198         vasnprintf: Tiny optimization.
77199         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
77200         MacOS X.
77202 2009-11-22  Bruno Haible  <bruno@clisp.org>
77204         Tests for module 'duplocale'.
77205         * modules/duplocale-tests: New file.
77206         * tests/test-duplocale.c: New file.
77208         New module 'duplocale'.
77209         * m4/duplocale.m4: New file.
77210         * lib/locale.in.h (duplocale): New declaration.
77211         * lib/duplocale.c: New file.
77212         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
77213         gl_LOCALE_H_DEFAULTS): New macros.
77214         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
77215         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
77216         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
77217         REPLACE_DUPLOCALE.
77218         * modules/duplocale: New file.
77219         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
77221 2009-11-22  Bruno Haible  <bruno@clisp.org>
77223         * modules/locale-tests (configure.ac): Test for newlocale function.
77224         * tests/test-locale.c: When the system has extended locale functions,
77225         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
77227         locale: Make locale_t available when possible.
77228         * lib/locale.in.h: Include <xlocale.h> when it exists.
77229         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
77230         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
77231         * modules/locale (Depends-on): Add extensions.
77232         (Makefile.am): Also substitute HAVE_XLOCALE_H.
77233         * doc/posix-headers/locale.texi: Document the problem with locale_t.
77235 2009-11-22  Bruno Haible  <bruno@clisp.org>
77237         Add comments.
77238         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
77239         invocation.
77240         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77241         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
77242         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77244 2009-11-22  Bruno Haible  <bruno@clisp.org>
77246         error: account for the possibility of freopen (stdout).
77247         * lib/error.c: Include <unistd.h>.
77248         (flush_stdout): New function, extracted from error and error_at_line.
77249         Determine stdout's fd dynamically.
77250         (error, error_at_line): Invoke flush_stdout.
77251         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
77252         * modules/error (Depends-on): Add unistd.
77254 2009-11-22  Bruno Haible  <bruno@clisp.org>
77256         diffseq: Add comment.
77257         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
77259 2009-11-22  Jim Meyering  <meyering@redhat.com>
77261         c-stack: avoid defining an unused static function
77262         * lib/c-stack.c (find_stack_direction): Do not define this function
77263         when it will not be used.
77265         diffseq: avoid spurious gcc warnings
77266         * lib/diffseq.h (IF_LINT2): Define.
77267         (compareseq): Use it to initialize two members of "part".
77268         This avoids two used-uninitialized warnings.
77270 2009-11-21  Jim Meyering  <meyering@redhat.com>
77272         c-stack: avoid "ignoring return value of `write'" warning
77273         * lib/c-stack.c: Include "ignore-value.h".
77274         (die): Explicitly ignore each write return value.
77275         * modules/c-stack (Depends-on): Add ignore-value.
77277 2009-11-21  Bruno Haible  <bruno@clisp.org>
77279         diffseq: reduce scope of variable 'best'.
77280         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
77281         variable, earlier used for two different purposes.
77283 2009-11-21  Jim Meyering  <meyering@redhat.com>
77285         diffseq: remove useless assignment to "best"
77286         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
77287         assignment.  At that point "best" is already guaranteed to be zero.
77289 2009-11-20  Eric Blake  <ebb9@byu.net>
77291         build: mention ftp redirector in release announcements
77292         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
77293         values that used to come from cfg.mk; mention FTP redirect URL.
77294         * build-aux/announce-gen: Mention the mirror list.
77295         Suggested by Karl Berry.
77297         nanosleep: improve port to mingw
77298         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
77299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
77300         LIB_NANOSLEEP, but only when needed.
77301         * modules/select (Link): Document LIBSOCKET.
77302         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
77303         enough.
77305         nanosleep: work around cygwin bug
77306         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
77307         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
77308         bug.
77309         (getnow): Delete, not needed.
77310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
77311         LIB_CLOCK_GETTIME.
77312         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
77313         clock-time, gettime.
77314         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
77315         bug.
77316         * modules/nanosleep-tests: New test.
77317         * tests/test-nanosleep.c: New file.
77319         sleep: work around cygwin bug
77320         * lib/sleep.c (rpl_sleep): Work around the bug.
77321         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
77322         (gl_PREREQ_SLEEP): Delete unused macro.
77323         * modules/sleep (Depends-on): Add verify.
77324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77325         * modules/unistd (Makefile.am): Substitute witness.
77326         * lib/unistd.in.h (sleep): Update prototype.
77327         * doc/posix-functions/sleep.texi (sleep): Document the bug.
77328         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
77329         * modules/sleep-tests (Depends-on): Check for alarm.
77331 2009-11-20  Jim Meyering  <meyering@redhat.com>
77333         maint.mk: improve sc_prohibit_magic_number_exit
77334         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
77335         so it does not match uses like System.exit(1).
77336         Add comments showing how to correct all offenders.
77338 2009-11-19  Eric Blake  <ebb9@byu.net>
77340         xalloc-die-tests: add missing library
77341         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77343         test-xvasprintf: silence compiler warnings
77344         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77345         empty string from gcc.
77347 2009-11-19  Jim Meyering  <meyering@redhat.com>
77349         xfreopen: new module, from coreutils
77350         * modules/xfreopen: New module.
77351         * lib/xfreopen.c: New file.
77352         * lib/xfreopen.h: New file.
77353         * MODULES.html.sh (File stream based Input/Output"): Add it.
77355 2009-11-19  Eric Blake  <ebb9@byu.net>
77357         manywarnings: depend on warnings
77358         * modules/manywarnings (Depends-on): Add warnings.
77360         build: avoid compiler warnings
77361         * lib/select.c (rpl_select): Delete unused variable.
77362         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77364 2009-11-18  Eric Blake  <ebb9@byu.net>
77366         tests: avoid false negative with --with-packager
77367         * tests/test-version-etc.sh: Discard packager information.
77368         * tests/test-argp-version-etc-1.sh: Likewise.
77369         Reported by Mike Frysinger.
77371         utimens: fix regression on Solaris
77372         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77373         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77374         can only change fd timestamps via futimesat.  Instead, use an
77375         additional witness macro to avoid BSD bug.
77376         Reported by Jim Meyering.
77378 2009-11-17  Eric Blake  <ebb9@byu.net>
77380         usleep: use it to simplify tests
77381         * modules/stat-time-tests (Depends-on): Add usleep.
77382         (configure.ac): Drop usleep check.
77383         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77384         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77385         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77386         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77387         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77388         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77389         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77390         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77391         Likewise.
77392         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77393         * tests/test-lchown.h (nap): Likewise.
77394         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77395         * tests/test-stat-time.c (nap): Likewise.
77396         * tests/test-utimens-common.h (nap): Update comments.
77398         usleep: new module
77399         * modules/usleep: New file.
77400         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77401         * lib/usleep.c (usleep): Likewise.
77402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77403         * modules/unistd (Makefile.am): Substitute witnesses.
77404         * lib/unistd.in.h (usleep): Add declaration.
77405         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77406         * MODULES.html.sh (Date and time): Likewise.
77407         * modules/usleep-tests (Depends-on): New test.
77408         * tests/test-usleep.c: New file.
77410         chown: work around OpenBSD bug
77411         * lib/chown.c (rpl_chown): Work around the bug.
77412         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77413         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77414         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77415         * modules/chown (Depends-on): Add stdbool.
77416         * modules/lchown (Depends-on): Likewise.
77417         * doc/posix-functions/chown.texi (chown): Document the bug.
77418         * doc/posix-functions/lchown.texi (lchown): Likewise.
77419         * tests/test-lchown.h (test_chown): Relax test.
77421         mkstemp: avoid conflict with C++ keyword template
77422         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77423         * lib/mkostemp.c (mkostemp): Likewise.
77424         * lib/mkostemps.c (mkostemps): Likewise.
77425         * lib/mkstemp.c (mkstemp): Likewise.
77426         * lib/mkstemps.c (mkstemps): Likewise.
77428         xalloc-die-tests: optimize
77429         * tests/test-xalloc-die.sh: Reduce number of processes.
77431 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77433         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77434         patch from ludo@gnu.org (Ludovic Courtès).
77436 2009-11-17  Jim Meyering  <meyering@redhat.com>
77438         version-etc: use proper license string
77439         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77440         * modules/version-etc-fsf: Likewise.
77442 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77444         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77445         printed to stdout.  Deal with EOL differences.
77447 2009-11-17  Eric Blake  <ebb9@byu.net>
77449         unsetenv: work around Solaris bug
77450         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77451         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77452         Reported by Jim Meyering.
77454         vasnprintf: avoid compiler warnings
77455         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
77456         variables.
77457         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
77459 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77461         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
77462         settings since xalloc-die is no longer the self test,
77463         xalloc-die.sh is.
77465 2009-11-17  Jim Meyering  <meyering@redhat.com>
77467         test-xalloc-die.sh: make the code agree with the commit log
77468         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
77469         at the end, just in case you happen to have a test-xalloc-die
77470         program in some other PATH directory.
77472         test-xalloc-die.sh: fix a portability bug
77473         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
77474         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
77475         Otherwise, argv[0] (as often seen in diagnostics) would be too
77476         system-dependent, sometimes with, and sometimes without the leading "./".
77478         version-etc-fsf: relax license to LGPLv3+
77479         * modules/version-etc-fsf (License): Relax license.
77481 2009-11-16  Eric Blake  <ebb9@byu.net>
77483         xalloc-die-tests: avoid printing null pointer
77484         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
77485         shell script.
77486         * tests/test-xalloc-die.c (program_name): Declare.
77487         * tests/test-xalloc-die.sh (tmpfiles): New file.
77489         setenv, unsetenv: work around various bugs
77490         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
77491         (setenv) [HAVE_SETENV]: Work around bugs.
77492         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
77493         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
77494         for bugs.
77495         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
77496         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
77497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
77498         * modules/stdlib (Makefile.am): Update substitutions.
77499         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
77500         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
77501         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77502         * modules/setenv-tests: New test.
77503         * modules/unsetenv-tests: Likewise.
77504         * tests/test-setenv.c: New file.
77505         * tests/test-unsetenv.c: Likewise.
77507 2009-11-16  Jim Meyering  <meyering@redhat.com>
77509         version-etc: relax license to LGPLv3+
77510         * modules/version-etc (License): Relax license.
77512         better AC_REQUIRE expanded-before-required-warning avoidance
77513         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
77514         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
77515         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
77516         which is no longer needed.
77518 2009-11-16  Eric Blake  <ebb9@byu.net>
77520         test-freading: clean up temporary file
77521         * tests/test-freading.c (main): Remove file on success, and use
77522         ASSERT more liberally.
77523         Reported by Jim Meyering.
77525 2009-11-16  Jim Meyering  <meyering@redhat.com>
77527         avoid new AC_REQUIRE expanded-before-required warnings
77528         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
77529         merely using it.
77530         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
77531         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
77533 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77535         * tests/test-xalloc-die.c: New file.
77536         * modules/xalloc-die-tests: New file.
77537         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
77538         XFAIL_TESTS so it can be appended by modules.
77540 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77542         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
77543         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
77545 2009-11-14  Eric Blake  <ebb9@byu.net>
77547         fnmatch: avoid compiler warning
77548         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
77549         to silence compiler warning about mismatch signedness in ?:.
77550         Reported by Robert Millan.
77552         intprops: add double-inclusion guard
77553         * lib/intprops.h: Allow idempotent includes.
77554         Suggested by Bruce Korb.
77556         openat: detect Solaris fchownat bug
77557         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
77558         penalizing glibc chownat when only lchownat is broken.
77559         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
77560         trailing slash bugs.
77561         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
77562         * modules/openat-tests (Files): Include more files.
77563         (Depends-on): Add mgetgroups, sleep, stat-time.
77564         (configure.ac): Add additional checks.
77565         (Makefile.am): Build new test.
77566         * tests/test-fchownat.c: New file.
77568         lchown: detect Solaris and FreeBSD bug
77569         * lib/lchown.c (rpl_lchown): Work around bug.
77570         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
77571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77572         * modules/unistd (Makefile.am): Populate it.
77573         * lib/unistd.in.h (lchown): Update declaration.
77574         * doc/posix-functions/lchown.texi (lchown): Document the bug.
77575         * modules/lchown-tests: New file.
77576         * tests/test-lchown.h (test_lchown): Likewise.
77577         * tests/test-lchown.c (main): Likewise.
77579         chown: detect Solaris and FreeBSD bug
77580         * lib/chown.c (rpl_chown): Work around bug.
77581         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
77582         (gl_PREREQ_CHOWN): Delete.
77583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77584         * modules/unistd (Makefile.am): Populate it.
77585         * lib/unistd.in.h (chown): Update declaration.
77586         * lib/lchown.c (chown): Update client.
77587         * modules/lchown (Depends-on): Add lstat.
77588         * doc/posix-functions/chown.texi (chown): Document the bug.
77589         * doc/posix-functions/getgroups.texi (getgroups): Document
77590         getgroups pitfall.
77591         * modules/chown-tests: New file.
77592         * tests/test-chown.h (test_chown): Likewise.
77593         * tests/test-chown.c (main): Likewise.
77595 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
77597         gnulib-tool: correctly detect absence of m4 directories
77598         * gnulib-tool: Avoid extra newline on data passed to wc -l.
77600 2009-11-14  Jim Meyering  <meyering@redhat.com>
77602         maint.mk: Prohibit inclusion of "xalloc.h" without use.
77603         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77605 2009-11-14  John W. Eaton  <jwe@gnu.org>
77607         strftime.h: wrap function declaration in extern "C" block
77608         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
77610 2009-11-13  Eric Blake  <ebb9@byu.net>
77612         getgroups: avoid compiler warning
77613         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
77615         getgroups: work around FreeBSD bug
77616         * lib/getgroups.c (rpl_getgroups): Work around the bug.
77617         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
77618         * doc/posix-functions/getgroups.texi (getgroups): Document it.
77619         * tests/test-getgroups.c (main): Fix buffer overrun.
77621         getgroups: avoid compilation failure
77622         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
77623         * modules/getgroups (Depends-on): Add stdint.
77625 2009-11-13  Jim Meyering  <meyering@redhat.com>
77627         test-getgroups: avoid compilation failure
77628         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
77630 2009-11-13  Eric Blake  <ebb9@byu.net>
77632         mgetgroups: new module, taken from coreutils
77633         * modules/mgetgroups: New file.
77634         * lib/mgetgroups.h: Likewise.
77635         * lib/mgetgroups.c (mgetgroups): Likewise.
77636         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
77637         * MODULES.html.sh (Users and groups): Mention it.
77639         getgroups: don't expose GETGROUPS_T to user
77640         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
77641         an element at a time if GETGROUPS_T is wrong size.
77642         * lib/getugroups.h (getugroups): Change signature.
77643         * lib/unistd.in.h (getgroups): Likewise.
77644         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
77645         signature needs fixing.
77646         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
77647         AC_TYPE_GETGROUPS.
77648         * modules/group-member (Depends-on): Add getgroups.
77649         * lib/group-member.c (group_info, get_group_info): Use gid_t.
77650         (group_member): Rely on getgroups replacement.
77651         * lib/getugroups.c (getugroups): Use gid_t.
77652         * tests/test-getgroups.c (main): Likewise.
77653         * NEWS: Mention the signature change.
77654         * doc/posix-functions/getgroups.texi (getgroups): Mention the
77655         problem with signature.
77656         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
77657         GETGROUPS_T is still useful for setgroups.
77659         getgroups, getugroups: provide stubs for mingw
77660         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77661         * lib/getugroups.c (getugroups): Likewise.
77662         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77663         function.  Modernize replacement scheme.
77664         (gl_PREREQ_GETGROUPS): Delete.
77665         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77666         * modules/getgroups (configure.ac): Declare witness.
77667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77668         * modules/unistd (Depends-on): Substitute witness.
77669         * lib/unistd.in.h (getgroups): Declare replacement.
77671         getgroups: avoid calling exit
77672         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77673         drop xalloc.
77674         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77675         dependencies.
77676         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77677         exiting, in the rare case of malloc failure.
77679         getgroups: fix logic error
77680         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77681         has more than 20 groups.
77682         * modules/getgroups-tests: New test.
77683         * tests/test-getgroups.c: New file.
77685 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77687         * tests/test-base64.c: Improve.
77689 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77691         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77692         Blake <ebb9@byu.net>.
77694 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77696         * tests/test-xvasprintf.c: Add %s%s related checks.
77698 2009-11-12  Eric Blake  <ebb9@byu.net>
77700         version-etc: match standards.texi style
77701         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77702         and use <> only for URLs.
77704 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77706         fts: do not fail on a submount during traversal
77707         * lib/fts.c (fts_build): Read the stat info again after opening
77708         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77709         Original report at http://bugzilla.redhat.com/501848.
77711 2009-11-12  Jim Meyering  <meyering@redhat.com>
77713         bootstrap: sync from coreutils
77714         * build-aux/bootstrap (bootstrap_epilogue): New function.
77715         Use git_modules_config in one more place.  This make bootstrap's
77716         --gnulib-srcdir option more useful for testing.
77718         bootstrap: generalize autoheader check
77719         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77720         AC_CONFIG_HEADERS.
77722 2009-11-11  Eric Blake  <ebb9@byu.net>
77724         mkfifoat: use new modules for Solaris and BSD bugs
77725         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77726         * lib/mkfifoat.c (mknodat): Split...
77727         * lib/mknodat.c (mknodat): ...into new file.
77728         * modules/mkfifoat (Files): Ship new file.
77729         (Depends-on): Add mkfifo, mknod.
77730         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77731         (Depends-on): Add symlink.
77732         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77733         redundant with test_mkfifo.h.
77734         (do_mkfifoat, do_mknodat): New helpers.
77736         mknod: new module
77737         * modules/mknod: New file.
77738         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77739         * lib/mknod.c (mknod): Likewise.
77740         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77741         defaults.
77742         * modules/sys_stat (Makefile.am): Substitute them.
77743         * lib/sys_stat.in.h (mknod): Declare replacement.
77744         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77745         Document it.
77746         * doc/posix-functions/mknod.texi (mknod): Likewise.
77747         * modules/mknod-tests: New test.
77748         * tests/test-mknod.c: Likewise.
77750         mkfifo: new module
77751         * modules/mkfifo: New file.
77752         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77753         * lib/mkfifo.c (mkfifo): Likewise.
77754         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77755         defaults.
77756         * modules/sys_stat (Makefile.am): Substitute them.
77757         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77758         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77759         Document it.
77760         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77761         * modules/mkfifo-tests: New test.
77762         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77763         from test-mkfifoat.c.
77764         * tests/test-mkfifo.c: New file.
77766         readlink: detect FreeBSD bug
77767         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77768         slash on symlink.
77769         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77770         * tests/test-readlink.h (test_readlink): Enhance test.
77772         symlink: detect FreeBSD bug
77773         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77774         slash on symlink.
77775         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77776         * tests/test-symlink.h (test_symlink): Enhance test.
77778 2009-11-10  Eric Blake  <ebb9@byu.net>
77780         link: detect FreeBSD bug
77781         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77782         symlink.
77783         * doc/posix-functions/link.texi (link): Document the bug.
77784         * tests/test-link.h (test_link): Enhance test.
77785         * tests/test-linkat.c (main): Update caller.
77787         unlink, remove: detect FreeBSD bug
77788         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77789         slash on symlink.
77790         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77791         * doc/posix-functions/remove.texi (remove): Likewise.
77792         * tests/test-unlink.h (test_unlink): Enhance test.
77793         * tests/test-remove.c (main): Likewise.
77795 2009-11-09  Eric Blake  <ebb9@byu.net>
77797         rename: detect FreeBSD bug
77798         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77799         slash on symlink.
77800         * modules/renameat-tests (Depends-on): Add filenamecat.
77801         * tests/test-rename.h (test_rename): Allow one more errno.
77802         * tests/test-renameat.c (main): Likewise.
77803         * doc/posix-functions/rename.texi (rename): Document the bug.
77805         open: detect FreeBSD bug
77806         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77807         symlink.
77808         * doc/posix-functions/open.texi (open): Document the bug.
77809         * doc/posix-functions/utimes.texi (utimes): Likewise.
77810         * tests/test-open.h (test_open): Add parameters, and test symlink
77811         handling.
77812         * tests/test-open.c (main): Adjust caller.
77813         * tests/test-fcntl-safer.c (main): Likewise.
77814         * modules/open-tests (Depends-on): Add stdbool, symlink.
77815         * modules/fcntl-safer-tests (Depends-on): Likewise.
77816         * tests/test-openat.c (main): Add test-open tests.
77818         stat: detect FreeBSD bug
77819         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77820         symlink.
77821         * doc/posix-functions/stat.texi (stat): Document the bug.
77822         * tests/test-stat.h (test_stat_func): Add argument.
77823         * tests/test-stat.c (main): Adjust caller.
77824         * tests/test-fstatat.c (main): Likewise.
77825         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77826         Reported by Jim Meyering.
77828 2009-11-09  James Youngman  <jay@gnu.org>
77830         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77831         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77833 2009-11-08  Jim Meyering  <meyering@redhat.com>
77835         utimens: remove invalid futimesat call
77836         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77837         It used the file descriptor of the target file as the DIR_FD
77838         parameter and NULL as the file name.  That caused failure with
77839         errno == EFAULT on FreeBSD-8.0-rc2
77841 2009-11-07  Eric Blake  <ebb9@byu.net>
77843         fflush, freadseek: use fseeko, not fseek
77844         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77845         (clear_ungetc_buffer): Avoid potential problems on large files.
77846         * lib/freadseek.c (freadseek): Likewise.
77847         * modules/freadseek (Depends-on): Add fseeko.
77848         * modules/fseek (configure.ac): Set a witness.
77849         * tests/test-fflush.c (main): Use fseeko.
77850         * tests/test-fpurge.c (fseek): Disable link warning.
77851         * tests/test-freadable.c (fseek): Likewise.
77852         * tests/test-freading.c (fseek): Likewise.
77853         * tests/test-fseeko.c (fseek): Likewise.
77854         * tests/test-ftell.c (fseek): Likewise.
77855         * tests/test-ftello.c (fseek): Likewise.
77856         * tests/test-fwritable.c (fseek): Likewise.
77857         * tests/test-fwriting.c (fseek): Likewise.
77859 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77861         * modules/memchr (Depends-on): Drop getpagesize dependency.
77863 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77865         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77866         Reported by Ludovic Courtès.
77867         * build-aux/pmccabe2html: Improve example usage.
77868         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77870 2009-11-06  Jim Meyering  <meyering@redhat.com>
77872         do-release-commit-and-tag: New module.
77873         Automate the release-commit and tag process.
77874         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77875         * modules/do-release-commit-and-tag: New file.
77876         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77878 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77880         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77881         because test-select.c uses inet_pton.
77883 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77885         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77886         GETADDRINFO_LIB.  Bump serial number.
77887         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77888         Suggested by Eric Blake <ebb9@byu.net>.
77890 2009-11-05  Eric Blake  <ebb9@byu.net>
77892         strtod: detect darwin bug
77893         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77894         Reported by Leo Davis.
77896         freopen-safer: new module
77897         * modules/freopen-safer: New module.
77898         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77899         * lib/freopen-safer.c (freopen_safer): New file.
77900         * lib/stdio-safer.h (freopen_safer): New declaration.
77901         * lib/stdio--.h (freopen): New override.
77902         * MODULES.html.sh (File stream based Input/Output): Mention it.
77903         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77904         freopen-safer module.
77905         * doc/posix-functions/stderr.texi (stderr): Likewise.
77906         * doc/posix-functions/stdin.texi (stdin): Likewise.
77907         * doc/posix-functions/stdout.texi (stdout): Likewise.
77908         * modules/freopen-safer-tests: New test.
77909         * tests/test-reopen-safer.c: New file.
77911 2009-11-05  Jim Meyering  <meyering@redhat.com>
77913         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77914         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77916 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77918         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77920 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77922         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77924 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77926         Fix link error.
77927         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77928         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77930 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77932         * tests/test-func.c: Also test value of __func__.
77934 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77936         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77937         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77939 2009-11-05  Bruno Haible  <bruno@clisp.org>
77941         Fix link error.
77942         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77943         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77944         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77946 2009-11-05  Bruno Haible  <bruno@clisp.org>
77948         Tests for module 'inet_pton'.
77949         * modules/inet_pton-tests: New file.
77950         * tests/test-inet_pton.c: New file.
77952 2009-11-05  Bruno Haible  <bruno@clisp.org>
77954         Tests for module 'inet_ntop'.
77955         * modules/inet_ntop-tests: New file.
77956         * tests/test-inet_ntop.c: New file.
77958 2009-11-04  Eric Blake  <ebb9@byu.net>
77960         stdlib-safer: wrap all mkstemp variants
77961         * modules/mkostemp (configure.ac): Set witness.
77962         * modules/mkostemps (configure.ac): Likewise.
77963         * modules/mkstemps (configure.ac): Likewise.
77964         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77965         (mkstemps_safer): Wrap more functions.
77966         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77967         wrapping.
77968         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77969         (mkstemps_safer): Implement the wrappers.
77971         mkstemps, mkostemps: new modules
77972         * modules/mkostemps: New module.
77973         * modules/mkstemps: Likewise.
77974         * lib/mkostemps.c (mkostemps): New file.
77975         * lib/mkstemps.c (mkstemps): Likewise.
77976         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77977         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77979         * modules/stdlib (Makefile.am): Substitute them.
77980         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77981         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77982         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77983         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77984         * MODULES.html.sh (File system functions): Mention them.
77986         tempname: resync from glibc
77987         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77988         same values for __GT_FILE as glibc.  Abort even when assertions
77989         are disabled.
77990         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77991         match its value otherwise.  Allow idempotent inclusion.
77992         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77993         * lib/mkostemp.c (mkostemp): Likewise.
77994         * lib/mkstemp.c (mkstemp): Likewise.
77995         * lib/tmpfile.c (tmpfile): Likewise.
77996         * NEWS: Document this.
77998         utimens: fix use of futimens on older Linux
77999         * lib/utimens.c (fdutimens): Use updated, rather than original,
78000         timespec to avoid bug in older Linux kernel.
78001         Reported by Simon Josefsson.
78003 2009-11-04  Bruno Haible  <bruno@clisp.org>
78005         Make num_processors more flexible and consistent.
78006         * lib/nproc.h (enum nproc_query): New type.
78007         (num_processors): Add a 'query' argument.
78008         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
78009         (num_processors): Add a 'query' argument. Test the value of the
78010         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
78011         mingw, count the number of CPUs available for the current process.
78012         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
78013         Check for sched_getaffinity and sched_getaffinity_np.
78014         * modules/nproc (Depends-on): Add c-ctype, extensions.
78015         * NEWS: Mention the change.
78017 2009-11-03  Bruno Haible  <bruno@clisp.org>
78019         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
78021 2009-11-03  Jim Meyering  <meyering@redhat.com>
78023         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
78024         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
78025         if it is defined.
78027 2009-11-02  Eric Blake  <ebb9@byu.net>
78029         mktime, timegm: share common declaration
78030         * lib/mktime-internal.h: New file.
78031         * lib/mktime.c: Use it rather than open-coding a declaration.
78032         * lib/timegm.c: Likewise.
78033         * modules/mktime (Files): Ship it.
78034         * modules/timegm (Files): Likewise.
78035         Suggested by Bruno Haible.
78037         test-update-copyright: update test to match script changes
78038         * tests/test-update-copyright.sh: Avoid hard-coding perl
78039         location.  Don't update *.bak created by earlier runs.
78041 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78042             Simon Josefsson  <simon@josefsson.org>
78043             Bruno Haible  <bruno@clisp.org>
78045         Fix link error on Solaris 8.
78046         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
78047         also in libnsl. Define also INET_PTON_LIB.
78048         * modules/inet_pton (Link): New section.
78050 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78051             Bruno Haible  <bruno@clisp.org>
78053         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
78054         * modules/inet_ntop (Link): New section.
78055         Reported by Boyan Kasarov <bkasarov@gmail.com>.
78057 2009-11-02  Eric Blake  <ebb9@byu.net>
78059         maint: avoid compiler warnings in m4 macros
78060         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
78061         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
78063 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78065         * m4/pmccabe2html.m4: Remove file.
78066         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
78067         function.  Change maintainer.
78068         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
78069         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
78070         Courtès).
78072 2009-10-31  Eric Blake  <ebb9@byu.net>
78074         fseeko: fix m4 regression
78075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
78076         regression from 2009-10-27.
78077         Reported by Ralf Wildenhues.
78079 2009-10-31  Jim Meyering  <meyering@redhat.com>
78081         inttostr: aesthetics and improved (compile-time) safety
78082         Define inttype_is_signed rather than inttype_is_unsigned,
78083         since the sole use is via "#if inttype_is_signed".
78084         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
78085         inttype_is_unsigned.
78086         * lib/offtostr.c (inttype_is_signed): Likewise.
78087         * lib/uinttostr.c (inttype_is_signed): Likewise.
78088         * lib/umaxtostr.c (inttype_is_signed): Likewise.
78089         * lib/inttostr.c (inttostr): Use verify to cross-check the
78090         inttype_is_signed value and the signedness of the actual type.
78091         * modules/inttostr (Depends-on): Add verify.
78093 2009-10-30  Eric Blake  <ebb9@byu.net>
78095         build: avoid compiler warnings
78096         * lib/fchmodat.c (lchmod): Mark unused variables.
78097         * lib/getopt.c (_getopt_initialize): Likewise.
78098         * lib/mktime.c (__mktime_internal): Provide prototype.
78099         * lib/inttostr.c (inttostr): Avoid compiler warning even with
78100         older gcc that do not understand #pragma GCC diagnostic.
78101         * lib/uinttostr.c (inttype_is_unsigned): Define.
78102         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
78104 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
78106         stat: fix compilation on AIX
78107         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
78108         only see struct stat64.
78110 2009-10-30  Eric Blake  <ebb9@byu.net>
78112         exclude: make more robust
78113         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
78114         rather than masking a coding bug.
78115         Suggested by Bruno Haible.
78117 2009-10-30  Jim Meyering  <meyering@redhat.com>
78119         perl scripts: remove #!/usr/bin/perl in favor of more portable...
78120         Rather than putting #!/usr/bin/perl on the first line,
78121         start with a variant of what's recommended by "man perlrun" that
78122         invokes the first "perl" program from your shell's search path.
78123         * build-aux/gitlog-to-changelog: Replace #!... as above.
78124         Add a "Local Variables" perl mode setting.
78125         Prompted by a patch from Ludovic Courtès.
78126         Improved by Eric Blake.
78127         * build-aux/useless-if-before-free: Likewise.
78128         * build-aux/announce-gen: Likewise.
78129         * build-aux/update-copyright: Likewise.
78131 2009-10-29  Eric Blake  <ebb9@byu.net>
78133         filenamecat-lgpl: adjust clients
78134         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
78135         filenamecat.
78136         * modules/renameat (Depends-on): Likewise.
78138         filenamecat: split into filenamecat-lgpl
78139         * modules/filenamecat-lgpl: New module.
78140         * modules/filenamecat (Files): Move library-safe files into
78141         filenamecat-lgpl.
78142         (Depends-on): Add filenamecat-lgpl.
78143         (configure.ac): Declare witness.
78144         * lib/filenamecat.h (file_name_concat): Only declare when using
78145         GPL module.
78146         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
78147         Move...
78148         * lib/filenamecat-lgpl.c: ...into new file.
78149         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
78150         (gl_FILE_NAME_CONCAT): Use it.
78151         * MODULES.html.sh (File system functions): Mention new module.
78153         argp: avoid memory leak
78154         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
78155         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
78156         base_name, since the latter malloc()s and can call exit().
78157         Leak introduced 2006-07-03.
78159         dirname-lgpl: adjust clients that don't need full dirname
78160         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
78161         * modules/filenamecat (Depends-on): Likewise.
78162         * modules/linkat (Depends-on): Likewise.
78163         * modules/mkancesdirs (Depends-on): Likewise.
78164         * modules/mkdir (Depends-on): Likewise.
78165         * modules/openat (Depends-on): Likewise.
78166         * modules/savewd (Depends-on): Likewise.
78167         * modules/rename (Depends-on): Likewise.
78168         (License): Relax license.
78169         * modules/mkdir-tests (Depends-on): Drop progname.
78170         (Makefile.am): Delete unneeded LDADD.
78171         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78173         dirname: split into dirname-lgpl
78174         * modules/dirname-lgpl: New module.
78175         * modules/dirname (Files): Move library-safe files into
78176         dirname-lgpl.
78177         (Depends-on): Add dirname-lgpl.
78178         (configure.ac): Declare witness.
78179         * modules/double-slash-root (License): Relax license.
78180         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
78181         module.
78182         * lib/dirname.c (dir_len, mdir_name): Move...
78183         * lib/dirname-lgpl.c: ...into new file.
78184         * lib/basename.c (last_component, base_len): Move...
78185         * lib/basename-lgpl.c: ...into new file.
78186         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
78187         (gl_DIRNAME): Use it.
78188         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
78189         Mention new module.
78190         * modules/dirname-tests (Depends-on): Add progname.
78191         * tests/test-dirname.c (program_name): Delete.
78193         mkdir: make safe for libraries
78194         * modules/mkdir (Depends-on): Drop xalloc.
78195         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
78196         exit.
78198         tests: avoid some compiler warnings
78199         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
78200         literals.
78201         * tests/test-memchr.c (main): Avoid type mismatch.
78202         * tests/test-arpa_inet.c (main): Avoid unused parameters.
78203         * tests/test-base64.c (main): Likewise.
78204         * tests/test-getdelim.c (main): Likewise.
78205         * tests/test-gethostname.c (main): Likewise.
78206         * tests/test-getline.c (main): Likewise.
78207         * tests/test-netinet_in.c (main): Likewise.
78208         * tests/test-select.c (open_server_socket, main): Likewise.
78209         * tests/test-select-stdin.c (main): Likewise.
78210         * tests/test-sockets.c (main): Likewise.
78211         * tests/test-strsignal.c (main): Likewise.
78212         * tests/test-sys_select.c (main): Likewise.
78213         * tests/test-sys_socket.c (main): Likewise.
78214         * tests/test-u64.c (main): Likewise.
78215         * tests/test-xfprintf-posix.c (main): Likewise.
78216         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
78218         sockets: avoid compiler warning
78219         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
78221         maint: detect usage(1) and other suspicious exits
78222         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
78224 2009-10-29  Jim Meyering  <meyering@redhat.com>
78226         timespec: long-to-int truncation could make timespec_cmp malfunction
78227         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78228         a multiple of 2^32 nanoseconds as no difference.
78230 2009-10-28  Jim Meyering  <meyering@redhat.com>
78232         fprintftime: wrap macro code argument in "do {...} while(0)"
78233         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
78234         cpy macro must be a statement that can be followed by a semicolon.
78235         Now that the else clause contains a comment and is hence longer
78236         than one line, I require curly braces.  That in turn requires
78237         that we wrap this code block in the standard do...while(0).
78239         fprintftime: remove stray semicolon from previous change
78240         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
78242         fprintftime: avoid a warning about ignored fwrite return value
78243         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
78244         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
78245         that is unsafe.
78246         * modules/fprintftime (Depends-on): Add ignore-value.
78248         exclude: avoid an unwarranted warning
78249         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
78251 2009-10-27  Eric Blake  <ebb9@byu.net>
78253         fseek: avoid compilation failure when fflush is replaced
78254         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
78255         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
78256         module is in use.
78257         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
78258         module is not in use; since REPLACE_FSEEK worked otherwise.
78259         (GNULIB_FTELLO): Likewise for ftell.
78260         Reported by Ian Beckwith and others.
78262 2009-10-27  Bruno Haible  <bruno@clisp.org>
78264         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
78265         Reported by Jim Meyering.
78267 2009-10-27  Jim Meyering  <jim@meyering.net>
78268             Bruno Haible  <bruno@clisp.org>
78270         Avoid warning despite dropping the return value of fwrite.
78271         * lib/unicodeio.c: Include ignore-value.h.
78272         (fwrite_success_callback): Explicitly ignore fwrite's return value.
78273         * modules/unicodeio (Depends-on): Add ignore-value.
78275 2009-10-26  Eric Blake  <ebb9@byu.net>
78277         areadlinkat: fix fallback path
78278         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
78279         pointer and zero.
78281 2009-10-22  Pádraig Brady  <P@draigBrady.com>
78283         Use a better IO block size for modern systems
78284         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
78285         * lib/md2.c: Likewise.
78286         * lib/md4.c: Likewise.
78287         * lib/md5.c: Likewise.
78288         * lib/sha1.c: Likewise.
78289         * lib/sha256.c: Likewise.
78290         * lib/sha512.c: Likewise.
78292 2009-10-22  Eric Blake  <ebb9@byu.net>
78294         tests: avoid several compiler warnings
78295         * tests/test-getcwd.c (main): Avoid buffer underflow.
78296         * tests/test-getdate.c (main): String literals are not safe with
78297         putenv, so use setenv.  Declare unused argument.
78298         * modules/getdate-tests (Depends-on): Add setenv.
78299         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
78300         problems with string literals in char *.
78301         * tests/test-hash.c (main): Avoid shadowing declaration.
78302         (insert_new): Treat string literals as char const *.
78303         * tests/test-getopt.h (test_getopt): Likewise.
78304         (getopt_loop): Alter types to minimize casting elsewhere.
78305         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
78306         (test_getopt_long_posix): Likewise.
78307         (do_getopt_long): Add wrapper to minimize casting.
78308         * tests/test-atexit.c (clear_temp_file): Use void.
78309         * tests/test-areadlink-with-size.c (main): Declare unused
78310         arguments.
78311         * tests/test-areadlink.c (main): Likewise.
78312         * tests/test-areadlinkat-with-size.c (main): Likewise.
78313         * tests/test-areadlinkat.c (main): Likewise.
78314         * tests/test-canonicalize-lgpl.c (main): Likewise.
78315         * tests/test-canonicalize.c (main): Likewise.
78316         * tests/test-dirent-safer.c (main): Likewise.
78317         * tests/test-dirname.c (main): Likewise.
78318         * tests/test-dup2.c (main): Likewise.
78319         * tests/test-fchdir.c (main): Likewise.
78320         * tests/test-fcntl-h.c (main): Likewise.
78321         * tests/test-fcntl-safer.c (main): Likewise.
78322         * tests/test-fdopendir.c (main): Likewise.
78323         * tests/test-fdutimensat.c (main): Likewise.
78324         * tests/test-fflush.c (main): Likewise.
78325         * tests/test-filenamecat.c (main): Likewise.
78326         * tests/test-filevercmp.c (main): Likewise.
78327         * tests/test-fopen-safer.c (main): Likewise.
78328         * tests/test-fopen.c (main): Likewise.
78329         * tests/test-fpending.c (main): Likewise.
78330         * tests/test-fpurge.c (main): Likewise.
78331         * tests/test-freading.c (main): Likewise.
78332         * tests/test-fstatat.c (main): Likewise.
78333         * tests/test-fsync.c (main): Likewise.
78334         * tests/test-futimens.c (main): Likewise.
78335         * tests/test-getndelim2.c (main): Likewise.
78336         * tests/test-gettimeofday.c (main): Likewise.
78337         * tests/test-getopt.c (main): Likewise.
78338         * tests/test-i-ring.c (main): Likewise.
78339         * tests/test-inttypes.c (main): Likewise.
78340         * tests/test-link.c (main): Likewise.
78341         * tests/test-lstat.c (main): Likewise.
78342         * tests/test-math.c (main): Likewise.
78343         * tests/test-md5.c (main): Likewise.
78344         * tests/test-memchr2.c (main): Likewise.
78345         * tests/test-memrchr.c (main): Likewise.
78346         * tests/test-mkdir.c (main): Likewise.
78347         * tests/test-mkdirat.c (main): Likewise.
78348         * tests/test-mkfifoat.c (main): Likewise.
78349         * tests/test-open.c (main): Likewise.
78350         * tests/test-openat-safer.c (main): Likewise.
78351         * tests/test-openat.c (main): Likewise.
78352         * tests/test-quotearg.c (main): Likewise.
78353         * tests/test-rawmemchr.c (main): Likewise.
78354         * tests/test-readlink.c (main): Likewise.
78355         * tests/test-remove.c (main): Likewise.
78356         * tests/test-rename.c (main): Likewise.
78357         * tests/test-renameat.c (main): Likewise.
78358         * tests/test-rmdir.c (main): Likewise.
78359         * tests/test-sha1.c (main): Likewise.
78360         * tests/test-signal.c (main): Likewise.
78361         * tests/test-sigaction.c (main): Likewise.
78362         * tests/test-stat.c (main): Likewise.
78363         * tests/test-stat-time.c (main): Likewise.
78364         * tests/test-stddef.c (main): Likewise.
78365         * tests/test-stdint.c (main): Likewise.
78366         * tests/test-stdio.c (main): Likewise.
78367         * tests/test-stdlib.c (main): Likewise.
78368         * tests/test-strchrnul.c (main): Likewise.
78369         * tests/test-strerror.c (main): Likewise.
78370         * tests/test-string.c (main): Likewise.
78371         * tests/test-strtod.c (main): Likewise.
78372         * tests/test-strverscmp.c (main): Likewise.
78373         * tests/test-symlink.c (main): Likewise.
78374         * tests/test-symlinkat.c (main): Likewise.
78375         * tests/test-sys_stat.c (main): Likewise.
78376         * tests/test-sys_time.c (main): Likewise.
78377         * tests/test-time.c (main): Likewise.
78378         * tests/test-unistd.c (main): Likewise.
78379         * tests/test-unlink.c (main): Likewise.
78380         * tests/test-unlinkat.c (main): Likewise.
78381         * tests/test-utimens.c (main): Likewise.
78382         * tests/test-utimensat.c (main): Likewise.
78383         * tests/test-version-etc.c (main): Likewise.
78384         * tests/test-wchar.c (main): Likewise.
78385         * tests/test-wctype.c (main): Likewise.
78386         * tests/test-xprintf-posix.c (main): Likewise.
78387         * tests/test-posixtm.c (main): Likewise.
78388         (STREQ): Delete unused macro.
78389         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78390         shadowed variables.
78391         * tests/test-memchr.c (main): Likewise.
78393 2009-10-21  Eric Blake  <ebb9@byu.net>
78395         areadlinkat: avoid failure on older glibc
78396         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78397         rather than mis-comparing 0 against FUNC_RESULT of char*.
78399 2009-10-21  Bruno Haible  <bruno@clisp.org>
78401         * modules/stpncpy (License): Relicense under LGPLv2+.
78402         Reported by David Lutterkort <lutter@redhat.com>.
78404 2009-10-20  Eric Blake  <ebb9@byu.net>
78406         utimensat: work around Solaris 9 bug
78407         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78408         has trailing slash bugs.
78409         * tests/test-lutimens.h (test_lutimens): Enhance test.
78410         * tests/test-utimens.h (test_utimens): Likewise.
78411         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78412         * doc/posix-functions/utimes.texi (utimes): Likewise.
78413         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78414         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78415         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78416         * doc/posix-functions/futimens.texi (futimens): Likewise.
78418         fdutimensat: new module
78419         * modules/fdutimensat: New file.
78420         * lib/fdutimensat.c (fdutimensat): Likewise.
78421         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78422         * MODULES.html.sh (File system functions): Mention module.
78423         * modules/fdutimensat-tests: New test.
78424         * tests/test-fdutimensat.c: Likewise.
78426         doc: regenerate INSTALL
78427         * doc/INSTALL: Reflect recent autoconf update.
78428         * doc/INSTALL.ISO: Likewise.
78429         * doc/INSTALL.UTF-8: Likewise.
78431 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78433         acl: warn if ACL support is not detected
78434         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78436 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78438         * lib/nproc.h: Add extern "C" block for C++.
78440 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78441             Bruno Haible  <bruno@clisp.org>
78443         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78444         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78445         * doc/posix-functions/isalpha.texi: Likewise.
78446         * doc/posix-functions/isblank.texi: Likewise.
78447         * doc/posix-functions/iscntrl.texi: Likewise.
78448         * doc/posix-functions/isdigit.texi: Likewise.
78449         * doc/posix-functions/isgraph.texi: Likewise.
78450         * doc/posix-functions/islower.texi: Likewise.
78451         * doc/posix-functions/isprint.texi: Likewise.
78452         * doc/posix-functions/ispunct.texi: Likewise.
78453         * doc/posix-functions/isspace.texi: Likewise.
78454         * doc/posix-functions/isupper.texi: Likewise.
78455         * doc/posix-functions/isxdigit.texi: Likewise.
78457 2009-10-18  Bruno Haible  <bruno@clisp.org>
78459         Tests for module 'isblank'.
78460         * modules/isblank-tests: New file.
78461         * tests/test-isblank.c: New file.
78463         New module 'isblank'.
78464         * lib/isblank.c: New file.
78465         * m4/isblank.m4: New file.
78466         * modules/isblank: New file.
78467         * doc/posix-functions/isblank.texi: Mention the new module.
78469 2009-10-18  Bruno Haible  <bruno@clisp.org>
78471         New module 'ctype'.
78472         * lib/ctype.in.h: New file.
78473         * m4/ctype.m4: New file.
78474         * modules/ctype: New file.
78475         * doc/posix-headers/ctype.texi: Mention the new module.
78477 2009-10-18  Jim Meyering  <meyering@redhat.com>
78479         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
78480         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
78481         right after its initialization, rather than farther down.
78482         Keeping these in close proximity makes it easier to ensure
78483         that each such variable is initialized.  E.g.,
78485             LIB_CLOCK_GETTIME=
78486             AC_SUBST([LIB_CLOCK_GETTIME])
78488         This change also increments these serial numbers.
78489         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
78490         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78493 2009-10-18  Bruno Haible  <bruno@clisp.org>
78495         Don't let environment variables perturb build.
78496         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
78497         (gl_PREREQ_GETHRXTIME): ... not here.
78499 2009-10-18  Bruno Haible  <bruno@clisp.org>
78501         Avoid symlink attack in localcharset module.
78502         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
78503         (O_NOFOLLOW): Define fallback.
78504         (get_charset_aliases): Don't open the file if it is a symbolic link.
78505         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
78506         gl_FCNTL_H.
78507         (gl_FCNTL_H): Require it.
78508         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
78509         * modules/localcharset (Files): Add m4/fcntl_h.m4.
78510         Reported by Fergal Glynn <fglynn@veracode.com>.
78512 2009-10-18  Bruno Haible  <bruno@clisp.org>
78514         Implement nproc for mingw.
78515         * lib/nproc.c: Include <windows.h>
78516         (num_processors): On native Windows platforms, try GetSystemInfo.
78518 2009-10-18  Bruno Haible  <bruno@clisp.org>
78520         Implement nproc for IRIX.
78521         * lib/nproc.c: Include <sys/sysmp.h>.
78522         (num_processors): On IRIX systems, try sysmp.
78523         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
78525 2009-10-18  Bruno Haible  <bruno@clisp.org>
78527         Implement nproc for HP-UX.
78528         * lib/nproc.c: Include <sys/pstat.h>
78529         (num_processors): On HP-UX systems, try pstat_getdynamic.
78530         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
78531         pstat_getdynamic.
78533 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
78534             Bruno Haible  <bruno@clisp.org>
78536         Implement nproc for NetBSD, OpenBSD.
78537         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
78538         (ARRAY_SIZE): New macro.
78539         (num_processors): On BSD systems, try sysctl of HW_NCPU.
78540         * m4/nproc.m4: New file.
78541         * modules/nproc (Files): Add m4/nproc.m4.
78542         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
78543         (Makefile.am): Instead, augment lib_SOURCES.
78545 2009-10-18  Bruno Haible  <bruno@clisp.org>
78547         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
78548         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
78549         sys/param.h.
78551 2009-10-16  Eric Blake  <ebb9@byu.net>
78553         utimensat: new module
78554         * modules/utimensat: New file.
78555         * lib/utimensat.c (utimensat): Likewise.
78556         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
78557         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
78558         so we can work around Linux bugs.
78559         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78560         * modules/sys_stat (Makefile.am): Substitute them.
78561         * lib/sys_stat.in.h (utimensat): Declare it.
78562         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78563         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78564         * modules/utimensat-tests: New test.
78565         * tests/test-utimensat.c: Likewise.
78567         utimens: let lutimens work on non-symlinks
78568         * lib/utimens.c (lutimens): Fall back to utimens rather than
78569         failing with ENOSYS, when file is not a symlink.
78570         (utimens): Reduce redirection.
78571         * tests/test-lutimens.h (test_lutimens): Update test to cover
78572         non-symlinks.
78573         * tests/test-utimens.h (test_utimens): Update test to cover
78574         symlinks.
78575         * tests/test-utimens.c (main): Update caller.
78577         utimens: cache whether utimensat syscall works
78578         * lib/utimens.c (utimensat_works_really): New cache variable.
78579         (fdutimens, lutimens): Use it to avoid failing syscall.
78581         test-stat-time, test-utimens: improve portability
78582         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
78583         ext4 on alpha, and for cygwin.
78584         * tests/test-utimens-common.h: New file.
78585         (nap): Factor delays into single function.
78586         * tests/test-lutimens.h (test_lutimens): Use new header.
78587         * tests/test-futimens.h (test_futimens): Likewise.
78588         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78589         timestamps to occur from same machine, as was done previously for
78590         test_utimens.
78591         * modules/utimens-tests (Files): Ship new file.
78592         * modules/futimens-tests (Files): Likewise.
78593         Reported in part by Jim Meyering.
78595         sys_stat: sort replacement declarations
78596         * lib/sys_stat.in.h: Sort declarations.
78597         * lib/futimens.c (futimens): Fix typo.
78599 2009-10-15  Jim Meyering  <meyering@redhat.com>
78601         don't let environment settings perturb build
78602         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
78603         could cause a configure-time and/or build-time malfunction.
78604         Typically, a configure-time function-in-library test is performed
78605         via code like this:
78607           LIB_VAR=
78608           AC_SUBST([LIB_VAR])
78609           prefix_saved_LIBS=$LIBS
78610             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
78611                        [test "$ac_cv_search_FUNC" = "none required" ||
78612                         LIB_VAR=$ac_cv_search_FUNC])
78613           LIBS=$prefix_saved_LIBS
78615         However, in each of the files affected by this change, the LIB_VAR=
78616         initialization was omitted.  Thus, when set in the environment, its
78617         value would propagate into generated Makefiles when FUNC is not found
78618         in LIB_NAME.
78619         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
78620         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78623 2009-10-14  Eric Blake  <ebb9@byu.net>
78625         fchdir: avoid infinite recursion in mingw
78626         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
78627         recursing.
78629         test-stat-time: port to mingw
78630         * tests/test-stat-time.c (force_unlink): Return a value.
78631         (test_ctime) [W32]: Fix compilation error.
78632         (nap): Don't call usleep with too large an argument.  Use
78633         force_unlink.
78634         * doc/pastposix-functions/usleep.texi (usleep): Document the
78635         portability issue.
78637 2009-10-13  Jim Meyering  <meyering@redhat.com>
78639         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
78640         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
78641         * modules/pipe-filter-ii: Likewise.
78642         * modules/sys_socket-tests: Likewise.
78643         * modules/tsearch-tests: Likewise.
78644         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
78645         (check): Depend on it.
78647 2009-10-12  Eric Blake  <ebb9@byu.net>
78649         utimens-tests: port to NFS file systems
78650         * tests/test-utimens.h (test_utimens): Refactor utimecmp
78651         comparisons to avoid spurious failures from timestamp drift
78652         between NFS machines.
78654 2009-10-12  Eric Blake  <ebb9@byu.net>
78656         stat-time-tests: minor cleanups
78657         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
78658         * tests/test-stat-time.c (nap): Separate assignment from call.
78659         Suggested by Paolo Bonzini and Bruno Haible.
78661         sys_stat: guarantee struct timespec
78662         * lib/sys_stat.in.h (includes): Always include <time.h>
78663         * modules/sys_stat (Depends-on): Add time.
78664         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78665         mode_t permission values.
78666         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78667         get at subsecond timestamps.
78669 2009-10-10  Eric Blake  <ebb9@byu.net>
78671         futimens: new module
78672         * modules/futimens: New file.
78673         * lib/futimens.c (futimens): Likewise.
78674         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78675         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78676         we can work around Linux bugs.
78677         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78678         * modules/sys_stat (Makefile.am): Substitute them.
78679         * lib/sys_stat.in.h (futimens): Declare it.
78680         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78681         * doc/posix-functions/futimens.texi (futimens): Likewise.
78682         * modules/futimens-tests: New test.
78683         * tests/test-futimens.c: Likewise.
78685         utimens: introduce fdutimens
78686         * lib/utimens.h (fdutimens): New prototype.
78687         * lib/utimens.c (gl_futimens): Move guts...
78688         (fdutimens): ...to new interface.
78689         * tests/test-utimens.c (do_fdutimens): Use it.
78691         utimens: add UTIME_NOW and UTIME_OMIT support
78692         * lib/utimens.c (validate_timespec, update_timespec): New helper
78693         functions.
78694         (gl_futimens, lutimens): Use them.
78695         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78696         stdbool, sys_stat.
78697         (Link): Mention resulting library dependency.
78698         * modules/utimecmp (Link): Likewise.
78699         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78700         (Makefile.am): Pick up library dependency.
78701         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78702         definition.
78703         * tests/test-sys_stat.c: Test the definitions.
78704         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78705         * NEWS: Document library dependency.
78707         utimecmp: support symlink timestamps
78708         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78709         hashing when possible.  Use pathconf when available.
78710         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78711         * modules/utimecmp (Depends-on): Add lstat.
78713         utimens: add lutimens interface
78714         * lib/utimens.c (lutimens): New function.
78715         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78716         * lib/utimens.h (lutimens): Declare new interface.
78717         * tests/test-utimens.c (main): Enhance test.
78718         * tests/test-lutimens.h (test_lutimens): New file.
78719         * modules/utimens-tests (Files): Distribute it.
78720         (Depends-on): Add symlink.
78721         (configure.ac): Check for usleep.
78723         utimens: validate futimens usage
78724         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78725         fewer syscalls on failure later on.  Avoid compiler warning on
78726         mingw.
78727         * modules/utimens (Depends-on): Add dup2.
78729         utimens: add test
78730         * modules/utimens-tests: New test.
78731         * tests/test-utimens.h: New file.
78732         * tests/test-futimens.h: Likewise.
78733         * tests/test-utimens.c: Likewise.
78735         doc: mention timestamp portability issues
78736         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78737         instead.
78738         * doc/posix-functions/utime.texi (utime): Likewise.
78739         * doc/posix-functions/utimes.texi (utimes): Likewise.
78740         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78741         instead.
78742         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78743         module.
78744         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78745         Mention weakness with symlink timestamps.
78746         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78747         to utimensat/futimens instead.
78748         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78750         test-dup2: enhance test
78751         * tests/test-dup2.c (main): Also check AT_FDCWD.
78753         test-stat-time: avoid more spurious failures
78754         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78755         xfs; and avoid race if the two timestamps cross quantization edge.
78757         relocatable: prefer 'file system' over 'filesystem'
78758         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78759         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78760         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78761         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78762         * lib/relocatable.c (compute_curr_prefix): Likewise.
78764 2009-10-10  Jim Meyering  <meyering@redhat.com>
78766         stat-time-tests: check for the usleep function
78767         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78769 2009-10-10  Bruno Haible  <bruno@clisp.org>
78771         * modules/xnanosleep: Put the Link section after the Include section.
78773 2009-10-09  Eric Blake  <ebb9@byu.net>
78775         dup2: work around FreeBSD 6.1 bug
78776         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78777         * doc/posix-functions/dup2.texi (dup2): Document it.
78778         Reported by Nelson H. F. Beebe and Jim Meyering.
78780         test-stat-time: port to buggy NFS clients
78781         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78782         (test_ctime): Also skip test if mtime and ctime are skewed.
78784         maint: prefer 'file system' over 'filesystem'
78785         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78786         * doc/posix-functions/lstat.texi (lstat): Likewise.
78787         * lib/file-has-acl.c (file_has_acl): Likewise.
78788         * lib/fwriteerror.c [TEST]: Likewise.
78789         * tests/test-areadlink.h (test_areadlink): Likewise.
78790         * tests/test-areadlinkat-with-size.c (main): Likewise.
78791         * tests/test-areadlinkat.c (main): Likewise.
78792         * tests/test-canonicalize-lgpl.c (main): Likewise.
78793         * tests/test-canonicalize.c (main): Likewise.
78794         * tests/test-fstatat.c (main): Likewise.
78795         * tests/test-linkat.c (main): Likewise.
78796         * tests/test-lstat.h (test_lstat_func): Likewise.
78797         * tests/test-mkdir.h (test_mkdir): Likewise.
78798         * tests/test-readlink.h (test_readlink): Likewise.
78799         * tests/test-remove.c (main): Likewise.
78800         * tests/test-rename.h (test_rename): Likewise.
78801         * tests/test-renameat.c (main): Likewise.
78802         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78803         * tests/test-symlink.h (test_symlink): Likewise.
78804         * tests/test-symlinkat.c (main): Likewise.
78805         * tests/test-unlink.h (test_unlink_func): Likewise.
78806         * tests/test-unlinkat.c (main): Likewise.
78808         maint: make realtime library usage explicit
78809         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78810         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78811         * modules/settime (Link): Likewise.
78812         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78814         test-stat-time: speed up execution
78815         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78816         warning on mingw.
78817         (nap): New helper function.
78818         (prepare_test): Use it to reduce sleep time.
78819         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78820         execution.
78821         * modules/stat-time-tests (configure.ac): Check for usleep.
78823 2009-10-09  Jim Meyering  <meyering@redhat.com>
78825         selinux-h: always use getfilecon wrappers
78826         * lib/getfilecon.c: New file.
78827         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78828         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78829         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78830         (fgetfilecon): Provide a stub.
78831         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78832         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78833         file unconditionally.
78834         When <selinux/selinux.h> is found, arrange to use wrappers.
78835         * modules/selinux-h (Files): Add getfilecon.c.
78836         (Makefile.am): Substitute include-next-related bits
78837         into the now-always-generated selinux/selinux.h file.
78838         * doc/glibc-functions/lgetfilecon.texi: New file.
78839         * doc/glibc-functions/fgetfilecon.texi: New file.
78840         * doc/glibc-functions/getfilecon.texi: New file.
78841         * doc/glibc-functions/getfilecon-desc.texi: New file.
78842         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78843         which to pull in the new files.
78844         * MODULES.html.sh (Misc): Add selinux-h.
78846 2009-10-08  Jim Meyering  <meyering@redhat.com>
78848         unistd: fix comment typo
78849         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78851 2009-10-08  Eric Blake  <ebb9@byu.net>
78853         areadlink: use SIZE_MAX consistently
78854         * modules/areadlink (Depends-on): Add stdint.
78855         * modules/areadlink-with-size (Depends-on): Likewise.
78856         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78857         gives NULL; drop sys/types, since unistd gives size_t; and add
78858         stdint for SIZE_MAX.
78859         (SIZE_MAX): Rely on headers.
78860         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78861         and add stdint.
78862         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78863         (SIZE_MAX): Likewise.
78864         (INITIAL_BUF_SIZE): Turn into enum.
78865         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78867 2009-10-08  Jim Meyering  <meyering@redhat.com>
78869         areadlinkat: avoid compilation failure
78870         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78871         Fix typo in comment.
78873 2009-10-07  Eric Blake  <ebb9@byu.net>
78875         areadlinkat-with-size: new module
78876         * modules/areadlinkat-with-size: New module.
78877         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78878         * lib/areadlink.h (areadlinkat): Declare it.
78879         * MODULES.html.sh (File system functions): Mention it.
78880         * modules/areadlinkat-with-size-tests: New test.
78881         * tests/test-areadlinkat-with-size.c: New file.
78883         xreadlinkat: new module
78884         * modules/xreadlinkat: New module.
78885         * lib/xreadlinkat.c (xreadlinkat): New file.
78886         * lib/xreadlink.h (xreadlinkat): Declare it.
78887         * MODULES.html.sh (File system functions): Mention it.
78889         areadlinkat: new module
78890         * lib/at-func.c (FUNC_FAIL): New define.
78891         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78892         * modules/areadlinkat: New module.
78893         * lib/linkat.c (areadlinkat): Move...
78894         * lib/areadlinkat.c (areadlinkat): ...to new file.
78895         * lib/areadlink.h (areadlinkat): Declare it.
78896         * modules/linkat (Depends-on): Add areadlinkat.
78897         * MODULES.html.sh (File system functions): Mention it.
78898         * modules/areadlinkat-tests: New test.
78899         * tests/test-areadlinkat.c: New file.
78901         areadlink, areadlink-with-size: add tests
78902         * modules/areadlink-tests: New test.
78903         * modules/areadlink-with-size-tests: Likewise.
78904         * tests/test-areadlink.h: New file.
78905         * tests/test-areadlink.c: Likewise.
78906         * tests/test-areadlink-with-size.c: Likewise.
78908         maint: minor cleanups
78909         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78910         _UNUSED_PARAMETER_ instead.
78911         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78912         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78913         * modules/linkat-tests (Files): Distribute test-link.h.
78915         openat, utimens: whitespace cleanup
78916         * lib/openat.c: Prefer space throughout, rather than mix of 8
78917         spaces vs. tabs.
78918         * lib/at-func.c: Likewise.
78919         * lib/utimens.c: Likewise.
78921         openat: avoid using wrong fd
78922         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78923         working directory chooses same fd.
78924         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78926         mkdir, mkdirat: fix cygwin 1.5.x bug
78927         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78928         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78929         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78930         bug.
78931         (gl_PREREQ_MKDIR): Delete unused macro.
78932         * modules/mkdir (Files): Track file rename.
78933         (configure.ac): Update macro name.
78934         * modules/openat (Depends-on): Add mkdir.
78935         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78937         mkdir, mkdirat: add tests
78938         * modules/mkdir-tests: New test.
78939         * tests/test-mkdir.h: New file.
78940         * tests/test-mkdir.c: Likewise.
78941         * tests/test-mkdirat.c: Likewise.
78942         * modules/openat-tests (Files): Add new files.
78943         (Makefile.am): Run new test.
78945 2009-10-06  Eric Blake  <ebb9@byu.net>
78947         doc: tweak *at function documentation
78948         * doc/posix-functions/faccessat.texi (faccessat): Mention
78949         known issue with replacement.
78950         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78951         * doc/posix-functions/linkat.texi (linkat): Likewise.
78952         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78953         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78954         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78955         * doc/posix-functions/renameat.texi (renameat): Likewise.
78956         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78958         openat: fix GNU/Hurd bug in unlinkat
78959         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78960         broken.
78961         * doc/posix-functions/unlink.texi (unlink): Document this.
78962         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78964         fdopendir: fix GNU/Hurd bug
78965         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78966         allowing non-directory fds.
78967         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78969         * modules/dirent (Makefile.am): Substitute it.
78970         * lib/dirent.in.h (fdopendir): Declare replacement.
78971         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78972         * tests/test-fdopendir.c (main): Test something other than
78973         /dev/null, since on Hurd that behaves like a directory.
78975         test-symlink: port to GNU/Hurd
78976         * tests/test-symlink.h (test_symlink): Relax expected errno.
78978         doc: tweak more cygwin information
78979         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78980         now compatible with glibc.
78981         * doc/posix-functions/getopt.texi (getopt): Likewise.
78983         getopt-gnu: add another test
78984         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78985         guarantee behavior relied on by m4.
78986         * tests/test-getopt.c (main): Use it.
78987         * modules/getopt-posix-tests (Depends-on): Add setenv.
78988         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78990         getopt: fix compilation on darwin
78991         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78992         include.
78993         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78994         Reported by Ludovic Courtès.
78996 2009-10-06  Bruno Haible  <bruno@clisp.org>
78998         * modules/size_max (Description): Discourage its use.
78999         Reported by Simon Josefsson.
79001 2009-10-06  Jim Meyering  <meyering@redhat.com>
79003         linkat: avoid compilation failure
79004         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
79006 2009-10-05  Eric Blake  <ebb9@byu.net>
79008         linkat: support Linux 2.6.17
79009         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
79010         linkat on Linux, but allow cache variable override.
79011         * lib/linkat.c (rpl_linkat): Define override.
79012         * modules/linkat (Depends-on): Add symlinkat.
79013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
79014         * modules/unistd (Makefile.am): Substitute it.
79015         * lib/unistd.in.h (linkat): Declare replacement.
79016         Reported by Pádraig Brady.
79018         quotearg: port test to systems with C.UTF-8 locale
79019         * tests/test-quotearg.c (struct result_strings): Add another
79020         member, differentiating between C.ASCII and C.UTF-8 handling.
79021         (compare_strings): Add parameter.
79022         (main): Adjust all callers.
79024         getopt: avoid clash with FreeBSD _getopt_internal
79025         * lib/getopt.in.h (_getopt_internal): Override the name.
79026         * lib/getopt_int.h (includes): Pick up any overrides.
79027         Reported by Reuben Thomas.
79029         hash: allow C89 compilation
79030         * lib/hash.c (check_tuning): Move declaration before statement.
79031         Reported by Reuben Thomas.
79033 2009-10-05  Karl Berry  <karl@gnu.org>
79035         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
79037 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
79038             Bruno Haible  <bruno@clisp.org>
79040         * lib/uname.c (uname): Use a table-driven algorithm to compute
79041         Windows NT versions.
79043 2009-10-04  Bruno Haible  <bruno@clisp.org>
79045         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
79046         program_invocation_short_name.
79047         * modules/progname (configure.ac): Test for presence of
79048         program_invocation_short_name.
79049         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79051 2009-10-04  Bruno Haible  <bruno@clisp.org>
79053         * lib/progname.c (set_program_name): Fix comment.
79054         Reported by Jim Meyering.
79056 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79057             Bruno Haible  <bruno@clisp.org>
79059         * lib/uname.c: Include <string.h>.
79060         (uname): Do only one call to GetVersionEx in the common case.
79062 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79063             Bruno Haible  <bruno@clisp.org>
79065         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
79066         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
79067         (uname): Add support for Windows CE and various non-x86 CPU types.
79069 2009-10-03  Bruno Haible  <bruno@clisp.org>
79071         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
79072         invocation to tests/configure.ac.
79073         Reported by Ian Beckwith <ianb@erislabs.net>.
79075 2009-10-02  Eric Blake  <ebb9@byu.net>
79077         fchdir: avoid compiler warning
79078         * lib/fchdir.c (canonicalize_file_name)
79079         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
79081         test-open: support mingw errno values
79082         * tests/test-open.h (test_open): Relax test.
79083         * tests/test-fopen.h (test_fopen): Likewise.
79084         * tests/test-openat-safer.c (main): Likewise.
79086         open: fix opening directory on mingw
79087         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
79089         test-open: on GNU/Hurd, /dev/null is a directory
79090         * tests/test-fopen.h (main): Rename...
79091         (test_fopen): ...to this.  Use a guaranteed non-directory when
79092         confirming open behavior on trailing slash.
79093         * tests/test-openat-safer.c (main): Likewise.
79094         * tests/test-open.h (main): Likewise....
79095         (test_open): ...to this.
79096         * tests/test-fopen.c (main): Adjust caller.
79097         * tests/test-fopen-safer.c (main): Likewise.
79098         * tests/test-open.c (main): Likewise.
79099         * tests/test-fcntl-safer.c (main): Likewise.
79100         Reported by Samuel Thibault.
79102         rename, fchdir: don't ignore chdir failure
79103         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
79104         * lib/rename.c (rpl_rename) [W32]: Likewise.
79105         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
79106         an empty destination directory if source cannot be renamed,
79107         although there is still possibility for failure.
79108         * doc/posix-functions/rename.texi (rename): Document the race.
79109         Reported by Jim Meyering.
79111         maint: cleanup whitespace in recent commits
79112         * lib/rename.c (rpl_rename): Remove tabs.
79113         * tests/test-link.h (test_link): Likewise.
79114         * lib/fchdir.c (get_name): Likewise.
79115         Reported by Jim Meyering.
79117 2009-10-02  Ben Pfaff  <blp@gnu.org>
79119         relocatable-prog-wrapper: Add missing dependency on
79120         double-slash-root.
79121         * modules/relocatable-prog-wrapper: Add dependency.
79122         Reported by Ian Beckwith <ianb@erislabs.net>.
79124 2009-10-02  Eric Blake  <ebb9@byu.net>
79126         renameat: fix Solaris bugs
79127         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
79128         needed fixing.
79129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
79130         * modules/stdio (Makefile.am): Substitute it.
79131         * lib/stdio.in.h (renameat): Declare replacement.
79132         * lib/renameat.c (rpl_renameat): Implement fix.
79134         renameat: new module
79135         * modules/renameat: New file.
79136         * lib/renameat.c (renameat): Likewise.
79137         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
79138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79139         * modules/stdio (Makefile.am): Substitute them.
79140         * lib/stdio.in.h (renameat): Declare it.
79141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79142         * doc/posix-functions/renameat.texi (renameat): Likewise.
79143         * modules/renameat-tests: New test.
79144         * tests/test-renameat.c: Likewise.
79146         rename: fix mingw bugs
79147         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
79148         directory overwrite bugs.
79150         rename: fix another cygwin 1.5 bug
79151         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
79152         checks.
79153         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
79154         unnecessary cygwin workarounds.  Also work around bug with moving
79155         full directory onto an empty one.
79156         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
79158         rename-dest-slash: merge into rename module
79159         * modules/rename-dest-slash (Status): Mark obsolete.
79160         (Depends-on): Add rename.
79161         (Files): Let rename do it all.
79162         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
79163         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
79164         * m4/rename-dest-slash.m4: ...so this file can be deleted.
79165         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
79166         * lib/rename.c (rpl_rename): Update comments.
79168         rename: fix cygwin 1.5.x bugs
79169         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
79170         * lib/rename.c (rpl_rename): Work around them.
79171         * modules/rename (Depends-on): Add same-inode.
79173         rename: fix Solaris 10 bug
79174         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79175         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79176         was the only bug.
79178         rename: fix Solaris 9 bug
79179         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
79180         on non-directory.  Avoid calling exit.
79181         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
79182         strdup.
79183         * modules/rename-tests (Depends-on): Drop lstat.
79184         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79185         (gl_PREREQ_RENAME): Delete unused macro.
79187         rename-dest-slash: fix NetBSD bug
79188         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
79189         links.
79190         * modules/rename-dest-slash (Depends-on): Add same-inode.
79192         rename-tests: new test, exposes several platform bugs
79193         * modules/rename-tests: New file.
79194         * tests/test-rename.h: Likewise.
79195         * tests/test-rename.c: Likewise.
79196         * doc/posix-functions/rename.texi (rename): Improve documentation,
79197         including bugs that will eventually be fixed in gnulib.
79199 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
79201         * lib/uname.c: Include <stdlib.h>
79202         (uname): Assume version info is available.
79204 2009-10-02  Jim Meyering  <meyering@redhat.com>
79206         gnu-web-doc-update: correct --help output
79207         * build-aux/gnu-web-doc-update: Make --help output relevant.
79209         gnu-web-doc-update: add standard options
79210         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
79212         gnu-web-doc-update: New module.
79213         Use this script to automatically update the on-line web documentation
79214         for your GNU project at http://www.gnu.org/software/$pkg/manual/
79215         * modules/gnu-web-doc-update: New file, from coreutils.
79216         * build-aux/gnu-web-doc-update: New script.
79218 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
79220         link: LoadLibrary is not needed.
79221         * lib/link.c: Use GetModuleHandle.
79223 2009-10-01  Eric Blake  <ebb9@byu.net>
79225         getopt: bump serial number
79226         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
79227         change.
79229         tests: tighten link, rmdir, and remove tests
79230         * tests/test-link.h (includes): No need to use <config.h> here.
79231         Clean up if directory hard link was created, otherwise test for
79232         trailing '.'.
79233         * tests/test-linkat.c (main): Simplify.
79234         * tests/test-remove.c (main): Enhance test for trailing '.'.
79235         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79237 2009-10-01  Jim Meyering  <meyering@redhat.com>
79239         maint.mk: requiring "make major" was annoying, for a "minor" release.
79240         What is intended is "stable", to contrast with alpha and beta,
79241         so require "make stable", not "make major".
79242         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
79243         (get_tool_versions): Likewise.
79244         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
79246 2009-09-30  Ben Pfaff  <blp@gnu.org>
79248         Fix broken build of replacement for Windows tmpfile().
79249         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
79250         flags argument added along with the 'mkostemp' module.
79252 2009-09-28  Bruno Haible  <bruno@clisp.org>
79254         Avoid identifier clash with POSIX function 'remove' defined as a macro.
79255         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
79256         to 'remove_elt'.
79257         (gl_list_remove): Update.
79258         * lib/gl_list.c (gl_list_remove): Update.
79259         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
79260         to 'remove_elt'.
79261         (gl_oset_remove): Update.
79262         * lib/gl_list.c (gl_oset_remove): Update.
79263         Reported by Eric Blake.
79265 2009-09-28  Eric Blake  <ebb9@byu.net>
79267         doc: mention yet more cygwin 1.7 status
79268         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
79269         cygwin.
79270         * doc/glibc-functions/execvpe.texi (execvpe): New file.
79271         * doc/gnulib.texi (Glibc unistd.h): Mention it.
79273         argp: fix test failure
79274         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
79275         that are not upper-case.  Pass correct range to tolower.
79277 2009-09-27  Jim Meyering  <meyering@redhat.com>
79279         test-yesno: work around sparc-dash here-document infelicity
79280         Without this change, the literal \177 byte in a here document
79281         would make dash 0.5.5.1-3 access uninitialized memory.
79282         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
79283         Instead, use a marker, "@", and filter through tr to create the desired
79284         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
79286 2009-09-27  Bruno Haible  <bruno@clisp.org>
79288         Disable untested support for new flavours of ACLs on AIX.
79289         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
79290         progress.
79291         * lib/set-mode-acl.c (qset_acl): Likewise.
79293 2008-12-07  Bruno Haible  <bruno@clisp.org>
79295         Add support for new flavours of ACLs on AIX. (Untested.)
79296         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
79297         (file_has_acl): Add support for newer AIX.
79298         * lib/set-mode-acl.c (qset_acl): Likewise.
79299         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
79300         Rainer Tammer <tammer@tammer.net>.
79302 2009-09-26  Eric Blake  <ebb9@byu.net>
79304         argp: fix compilation of getopt
79305         * lib/getopt.in.h (includes): Use different guard than glibc.
79306         Reported by Sergey Poznyakoff.
79308         doc: mention more cygwin 1.7 status
79309         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
79310         bug.
79311         * doc/posix-functions/execl.texi (execl): Likewise.
79312         * doc/posix-functions/execle.texi (execle): Likewise.
79313         * doc/posix-functions/execlp.texi (execlp): Likewise.
79314         * doc/posix-functions/execv.texi (execv): Likewise.
79315         * doc/posix-functions/execve.texi (execve): Likewise.
79316         * doc/posix-functions/execvp.texi (execvp): Likewise.
79317         * doc/glibc-functions/canonicalize_file_name.texi
79318         (canonicalize_file_name): Cygwin 1.7 now provides this.
79319         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
79320         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
79321         on AT_SYMLINK_NOFOLLOW.
79323 2009-09-24  Eric Blake  <ebb9@byu.net>
79325         test-linkat: make test more robust
79326         * tests/test-linkat.c (main): Avoid collision with EEXIST.
79328         getopt: fix inclusion guards for cygwin
79329         * modules/getopt-posix (Depends-on): Add include-next.
79330         (Makefile.am): Substitute more items in replacement header.
79331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
79332         <getopt.h>.
79333         * lib/getopt.in.h (includes): Use split inclusion guard, and
79334         prefer <getopt.h> over include <unistd.h> when one is present.
79335         (option): Also override name of 'struct option'.
79337         same-inode: revert prior change; it is not yet ready
79338         * NEWS: Undo mention of this change.
79339         * lib/same-inode.h (same-inode.h): Undo tri-state change.
79340         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79341         * lib/cycle-check.c (cycle_check): Likewise.
79342         * lib/same.c (same_name): Likewise.
79343         * lib/at-func2.c (at_func2): Likewise.
79345 2009-09-23  Eric Blake  <ebb9@byu.net>
79347         linkat: new module
79348         * modules/linkat: New file.
79349         * lib/at-func2.c (at_func2): Likewise.
79350         * lib/linkat.c (linkat): Likewise.
79351         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79352         * lib/openat-priv.h (at_func2): Add declaration.
79353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79354         * modules/unistd (Makefile.am): Substitute them.
79355         * lib/unistd.in.h (linkat): Declare it.
79356         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79357         * doc/posix-functions/linkat.texi (linkat): Likewise.
79358         * doc/posix-functions/link.texi (link): Tweak wording.
79359         * tests/test-link.c (main): Move guts...
79360         * tests/test-link.h (test_link): ...into new file.
79361         * modules/linkat-tests: New test.
79362         * tests/test-linkat.c: Likewise.
79363         * modules/link-tests (Files): Ship new file.
79364         (Depends-on): Add stdbool.
79366         dirname: add library-safe mdir_name
79367         * lib/dirname.h (mdir_name): New prototype.
79368         * lib/dirname.c (dir_name): Move guts...
79369         (mdir_name): ...to new function that avoids xalloc_die.
79371         fchdir: another mingw fix
79372         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79373         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79374         on mingw (where it has not yet been ported), and make it optional
79375         elsewhere.
79376         (_gl_register_fd): Use it.
79378         same-inode: make SAME_INODE tri-state, to port to mingw
79379         * NEWS: Mention this change.
79380         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79381         st_ino always being 0.
79382         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79383         * lib/cycle-check.c (cycle_check): Likewise.
79384         * lib/same.c (same_name): Likewise.
79386         lstat: avoid mingw compilation error
79387         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79388         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79389         lstat ourselves.
79390         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79391         was adequate.
79392         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79393         the checks for lstat.
79394         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79396         link: fix test failure on Solaris 9
79397         * lib/link.c (rpl_link): Don't assume link will catch bogus
79398         trailing slash on source.
79400         test-symlinkat: enhance test
79401         * tests/test-readlink.c (main): Move guts...
79402         * tests/test-readlink.h (test_readlink): ...into new file.
79403         * tests/test-symlink.c (main): Move guts...
79404         * tests/test-symlink.h (test_symlink): ...into new file.
79405         * tests/test-symlinkat.c (main): Use new files for further
79406         coverage.
79407         (do_symlink, do_readlink): New helper functions.
79408         * modules/symlink-tests (Files): Ship new file.
79409         (Depends-on): Add stdbool.
79410         * modules/readlink-tests (Files): Ship new file.
79411         (Depends-on): Add stdbool.
79412         * modules/symlinkat-tests (Files): Use new files.
79414 2009-09-23  Eric Blake  <ebb9@byu.net>
79416         readlink: document portability issue with symlink length
79417         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79418         systems have bogus st_size on symlinks, and mention the
79419         areadlink-with-size module.
79420         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79421         * doc/posix-functions/readlink.texi (readlink): Mention the
79422         areadlink module, and ERANGE failure.
79423         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79424         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79426         readlink: fix Solaris 9 bug with trailing slash
79427         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79428         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79429         * doc/posix-functions/readlink.texi (readlink): Document this.
79430         * modules/readlink-tests: New test.
79431         * tests/test-readlink.c: Likewise.
79433         readlink: fix cygwin 1.5.x bug with return type
79434         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79435         * lib/unistd.in.h (readlink): Use ssize_t.
79436         * lib/readlink.c (readlink): Likewise.
79437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79438         * modules/unistd (Makefile.am): Substitute it.
79439         * lib/unistd.in.h (readlink): Declare replacement.
79440         * doc/posix-functions/readlink.texi (readlink): Document this.
79442         symlink: use throughout gnulib
79443         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79444         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79445         symlink is not used.
79446         * modules/symlinkat (Depends-on): Add symlink.
79447         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79448         * modules/canonicalize-tests (Depends-on): Likewise.
79449         * modules/lstat-tests (Depends-on): Likewise.
79450         * modules/openat-tests (Depends-on): Likewise.
79451         * modules/remove-tests (Depends-on): Likewise.
79452         * modules/rmdir-tests (Depends-on): Likewise.
79453         * modules/unlink-tests (Depends-on): Likewise.
79454         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
79455         * tests/test-canonicalize.c (symlink): Likewise.
79456         * tests/test-fstatat.c (symlink): Likewise.
79457         * tests/test-lstat.c (symlink): Likewise.
79458         * tests/test-remove.c (symlink): Likewise.
79459         * tests/test-rmdir.c (symlink): Likewise.
79460         * tests/test-unlink.c (symlink): Likewise.
79461         * tests/test-unlinkat.c (symlink): Likewise.
79463         symlink: new module, for Solaris 9 bug
79464         * modules/symlink: New file.
79465         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
79466         * lib/symlink.c: Likewise.
79467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
79468         * modules/unistd (Makefile.am): Substitute them.
79469         * lib/unistd.in.h (symlink): Declare replacement.
79470         * MODULES.html.sh (File system functions): Mention it.
79471         * doc/posix-functions/symlink.texi (symlink): Likewise.
79472         * modules/symlink-tests: New test.
79473         * tests/test-symlink.c: Likewise.
79475 2009-09-23  Bruno Haible  <bruno@clisp.org>
79477         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
79478         when needed.
79479         Test case: gnulib-tool --import --with-tests atexit inttypes.
79480         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
79482 2009-09-23  Bruno Haible  <bruno@clisp.org>
79484         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
79485         subcommand, not in a subshell.
79487 2009-09-22  Eric Blake  <ebb9@byu.net>
79489         unistd: sort replacement declarations
79490         * lib/unistd.in.h: Sort declarations.
79492         open, openat: minor optimization
79493         * lib/open.c (open): If open succeeded, len is non-zero.
79494         * lib/openat.c (rpl_openat): Likewise.
79496         link-follow: ensure correct result
79497         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
79498         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
79499         distinguish between possible failures.
79501 2009-09-21  Eric Blake  <ebb9@byu.net>
79503         fts: avoid compiler warning
79504         * lib/fts.c (dirent_inode_sort_may_be_useful)
79505         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
79507 2009-09-19  Bruno Haible  <bruno@clisp.org>
79509         * lib/progreloc.c (canonicalize_file_name): New declaration.
79511 2009-09-19  Eric Blake  <ebb9@byu.net>
79513         link: fix quoting
79514         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
79516         openat: fix openat bugs on Solaris 9
79517         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
79518         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
79519         * modules/openat (Depends-on): Add open.
79520         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
79521         * modules/fcntl-h (Makefile.am): Substitute it.
79522         * lib/fcntl.in.h (openat): Declare replacement.
79523         * doc/posix-functions/openat.texi (openat): Document this.
79525         openat: move fstatat and unlinkat into correct files
79526         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
79527         compiled.
79528         * lib/openat.c (fstatat, unlinkat): Move...
79529         * lib/fstatat.c (fstatat): ...into correct files.
79530         * lib/unlinkat.c (unlinkat): Likewise.
79532         openat: fix unlinkat bugs on Solaris 9
79533         * lib/unlinkat.c (unlinkat): New file.
79534         * modules/openat (Depends-on): Add unlink.
79535         (Files): Distribute it.
79536         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
79537         trailing slash behavior is broken.
79538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79539         * modules/unistd (Makefile.am): Substitute it.
79540         * lib/unistd.in.h (unlinkat): Declare replacement.
79541         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
79543         openat: fix fstatat bugs on Solaris 9
79544         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
79545         stat.
79546         * doc/posix-functions/fstatat.texi (fstatat): Document this.
79548         test-unlinkat: enhance test, to expose Solaris 9 bug
79549         * tests/test-unlink.c (main): Factor guts...
79550         * tests/test-unlink.h (test_rmdir_func): ...into new file.
79551         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
79552         * tests/test-rmdir.c (main): Adjust caller.
79553         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
79554         (unlinker): New helper function.
79555         (rmdirat): Enhance check.
79556         * modules/rmdir-tests (Depends-on): Add stdbool.
79557         * modules/unlink-tests (Depends-on): Likewise.
79558         (Files): Add test-unlink.h.
79559         * modules/openat-tests (Files): Likewise.
79560         (Depends-on): Add unlinkdir.
79562         test-fstatat: new test, to expose Solaris 9 bugs
79563         * tests/test-stat.c (main): Factor guts...
79564         * tests/test-stat.h (test_stat_func): ...into new file.
79565         * tests/test-lstat.c (main): Factor guts...
79566         * tests/test-lstat.h (test_lstat_func): ...into new file.
79567         * tests/test-fstatat.c: New file.
79568         * modules/stat-tests (Files): Add test-stat.h.
79569         * modules/lstat-tests (Files): Add test-lstat.h.
79570         (Depends-on): Add stdbool.
79571         * modules/openat-tests (Depends-on): Add pathmax.
79572         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
79573         (Makefile.am): Run new test.
79575         remove: new module, for mingw and Solaris 9 bugs
79576         * modules/remove: New file.
79577         * lib/remove.c: Likewise.
79578         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
79579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79580         * modules/stdio (Makefile.am): Use them.
79581         * lib/stdio.in.h (remove): Declare replacement.
79582         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79583         * doc/posix-functions/remove.texi (remove): Likewise.
79584         * modules/remove-tests: New test.
79585         * tests/test-remove.c: Likewise.
79587         unlink: new module, for Solaris 9 bug
79588         * modules/unlink: New file.
79589         * lib/unlink.c: Likewise.
79590         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79592         * modules/unistd (Makefile.am): Use them.
79593         * lib/unistd.in.h (stat): Declare replacement.
79594         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79595         * doc/posix-functions/unlink.texi (unlink): Likewise.
79596         * modules/unlink-tests: New test.
79597         * tests/test-unlink.c: Likewise.
79599         lstat: fix Solaris 9 bug
79600         * lib/lstat.c (lstat): Also check for trailing slash on
79601         non-symlink, non-directories.  Use stat module to simplify logic.
79602         * doc/posix-functions/lstat.texi (lstat): Document it.
79603         * modules/lstat-tests (Depends-on): Add errno, same-inode.
79604         (configure.ac): Check for symlink.
79605         * tests/test-lstat.c (main): Add more tests.
79607         stat: add as dependency to other modules
79608         * modules/chown (Depends-on): Add stat.
79609         * modules/euidaccess (Depends-on): Likewise.
79610         * modules/fchdir (Depends-on): Likewise.
79611         * modules/isdir (Depends-on): Likewise.
79612         * modules/link (Depends-on): Likewise.
79613         * modules/lstat (Depends-on): Likewise.
79614         * modules/mkdir-p (Depends-on): Likewise.
79615         * modules/modechange (Depends-on): Likewise.
79616         * modules/open (Depends-on): Likewise.
79617         * modules/readlink (Depends-on): Likewise.
79618         * modules/same (Depends-on): Likewise.
79620         stat: fix Solaris 9 bug
79621         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
79622         slash.
79623         * lib/stat.c (rpl_stat): Work around it.
79624         * doc/posix-functions/stat.texi (stat): Update documentation.
79626         stat: new module, for mingw bug
79627         * modules/stat: New file.
79628         * lib/stat.c: Likewise.
79629         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
79630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79631         * modules/sys_stat (Makefile.am): Use them.
79632         * lib/sys_stat.in.h (stat): Declare replacement.
79633         * lib/openat.c (fstatat): Deal with lstat and stat being function
79634         macros.
79635         * modules/openat (Depends-on): Add inline.
79636         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79637         * doc/posix-functions/stat.texi (stat): Likewise.
79638         * modules/stat-tests: New test.
79639         * tests/test-stat.c: Likewise.
79641 2009-09-19  Jim Meyering  <meyering@redhat.com>
79643         syntax-check: detect unnecessary inclusion of canonicalize.h
79644         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
79646 2009-09-19  Eric Blake  <ebb9@byu.net>
79648         canonicalize-lgpl: adjust clients to use correct header
79649         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79650         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
79651         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
79652         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
79653         * lib/progreloc.c (includes): Likewise.
79655 2009-09-19  Jim Meyering  <meyering@redhat.com>
79657         test-posixtm.c: correct a comment
79658         * tests/test-posixtm.c: Correct first-line comment.
79659         Spotted by Eric Blake.
79661 2009-09-16  Jim Meyering  <meyering@redhat.com>
79663         posixtm-tests: make T const-correct; add a test case
79664         * tests/test-posixtm.c (T): Declare const.
79665         Add a test for -(2^31+1).
79666         Remove useless can-succeed-only-in-2002 test.
79668         posixtm-tests: adjust the sole failing test
79669         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79670         expected output matches what mktime now produces.  Cross-checked via
79671         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79673         posixtm: move #ifdef'd tests into a new module
79674         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79675         * tests/test-posixtm.c: ... this new file.
79676         * modules/posixtm-tests: New module.
79678 2009-09-19  Eric Blake  <ebb9@byu.net>
79680         openat: simplify use of at-func.c
79681         * lib/at-func.c (includes): Include prerequisites here, to
79682         simplify requirements on client files.
79683         * lib/openat-priv.h: Add double-inclusion guard.
79684         * lib/faccessat.c (includes): Simplify.
79685         * lib/fchmodat.c (includes): Likewise.
79686         * lib/fchownat.c (includes): Likewise.
79687         * lib/mkdirat.c (includes): Likewise.
79688         * lib/mkfifoat.c (includes): Likewise.
79689         * lib/symlinkat.c (includes): Likewise.
79691         openat: allow return of fd 0
79692         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79693         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79694         unistd-safer.
79695         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79696         <fcntl.h>; this module does not leak fds.
79697         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79698         must be allowed to return 0, leaving openat_safer to add the
79699         safety.
79700         (openat_permissive): Avoid writing to just-opened fd 2 if
79701         restoring the current directory fails.
79702         * lib/openat-die.c (openat_restore_fail): Add comment.
79703         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79704         (save_cwd): Guarantee safe fd, but without use of open_safer.
79705         * tests/test-openat.c: New test.
79706         * modules/openat-tests (Files, Makefile.am): Distribute and build
79707         new file.
79709         relocatable-prog-wrapper: fix build
79710         * modules/relocatable-prog-wrapper (Files): Update name of
79711         canonicalize m4 file, broken on 2009-09-17.
79712         Reported by emad hajjar <aleppos@hotmail.com>.
79714 2009-09-19  Bruno Haible  <bruno@clisp.org>
79716         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79717         * lib/safe-alloc.c: Likewise.
79718         Reported by Ian Beckwith <ianb@erislabs.net>.
79720 2009-09-18  Bruno Haible  <bruno@clisp.org>
79722         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79723         Reported by <erobles@sensacd.com.mx>.
79725 2009-09-17  Eric Blake  <ebb9@byu.net>
79727         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79728         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79729         slashes when checking if last component is missing.
79730         * tests/test-canonicalize.c (main): Test this.
79732         canonicalize, canonicalize-lgpl: honor // if distinct from /
79733         * modules/canonicalize (Files): Add double-slash-root.m4.
79734         * modules/canonicalize-lgpl (Files): Likewise.
79735         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79736         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79737         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79738         fallback definition.
79739         (canonicalize_filename_mode): Use it to protect //.
79740         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79741         (__realpath): Likewise.
79742         * tests/test-canonicalize.c (main): Test this.
79743         * tests/test-canonicalize-lgpl.c (main): Likewise.
79744         * modules/canonicalize-tests (Depends-on): Add same-inode.
79745         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79747         canonicalize-lgpl: fix glibc bug with trailing slash
79748         * m4/canonicalize-lgpl.m4: Move contents...
79749         * m4/canonicalize.m4: ...here.
79750         (gl_CANONICALIZE_LGPL): Factor realpath check...
79751         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79752         glibc 2.3.5 bug, fixed 2005-04-27.
79753         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79754         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79755         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79756         * modules/canonicalize-lgpl (Files): Manage file rename.
79757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79758         * modules/stdlib (Makefile.am): Substitute witness.
79759         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79760         is needed.
79761         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79762         replacement is required.
79763         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79764         * doc/glibc-functions/canonicalize_file_name.texi
79765         (canonicalize_file_name): Document this.
79766         * doc/posix-functions/realpath.texi (realpath): Likewise.
79768         canonicalize-lgpl: reject non-directory with trailing slash
79769         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79770         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79771         catches failures in glibc 2.3.5.
79772         * tests/test-canonicalize.c (main): Likewise.
79774         canonicalize-lgpl: use native realpath if it works
79775         * lib/canonicalize-lgpl.c (realpath): Guard with
79776         FUNC_REALPATH_WORKS.
79777         * lib/stdlib.in.h (realpath): Make declaration optional based on
79778         HAVE_REALPATH.
79779         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79780         native realpath works.
79781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79782         * modules/stdlib (Makefile.am): Substitute witness.
79784         canonicalize, canonicalize-lgpl: use <stdlib.h>
79785         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79786         (Include): Mention <stdlib.h>.
79787         (configure.ac): Mention functions we provide.
79788         * modules/canonicalize (configure.ac): Likewise.
79789         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79790         realpath if canonicalize_file_name is missing.
79791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79792         * modules/stdlib (Makefile.am): Substitute witnesses.
79793         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79794         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79795         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79796         * NEWS: Document this.
79797         * doc/glibc-functions/canonicalize_file_name.texi
79798         (canonicalize_file_name): Likewise.
79799         * doc/posix-functions/realpath.texi (realpath): Likewise.
79800         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79802         test-canonicalize: consolidate into single C program
79803         * tests/test-canonicalize.sh: Delete; move setup into...
79804         * tests/test-canonicalize.c (main): ...the program, making it
79805         easier to run in debugger.  Add some tests.
79806         * modules/canonicalize-tests (Files): Remove unused file.
79807         (Depends-on): Add progname.
79808         (configure.ac, Makefile.am): Simplify.
79810         test-canonicalize-lgpl: consolidate into single C program
79811         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79812         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79813         easier to run in debugger.  Add some tests.
79814         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79815         (configure.ac, Makefile.am): Simplify.
79817         canonicalize: avoid resolvepath
79818         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79819         unnecessary checks.
79820         * lib/canonicalize.c (includes): Simplify.
79821         (canonicalize_file_name): Drop resolvepath implementation.
79822         * modules/canonicalize (Depends-on): Drop filenamecat.
79824         canonicalize: don't lose errno
79825         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79826         over calls to free.
79828         canonicalize: simplify errno handling
79829         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79830         assignment.
79832         canonicalize, canonicalize-lgpl: update module dependencies
79833         * modules/canonicalize (Depends-on): Add extensions, lstat,
79834         pathmax, stdlib.
79835         (Files): Drop pathmax.h.
79836         (configure.ac): Adjust macro name.
79837         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79838         lstat, stdlib, sys_stat.
79839         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79840         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79841         extensions.
79842         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79843         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79844         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79845         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79846         declaration, if available.
79847         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79848         we can rely on the readlink module.
79849         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79850         (includes): Use <unistd.h> unconditionally.
79852 2009-09-17  Eric Blake  <ebb9@byu.net>
79854         maint: make Include sections of modules consistent
79855         * modules/alloca: Use only header name; no need to list #include.
79856         * modules/alloca-opt: Likewise.
79857         * modules/arpa_inet: Likewise.
79858         * modules/canon-host: Likewise.
79859         * modules/configmake: Likewise.
79860         * modules/dirent: Likewise.
79861         * modules/eealloc: Likewise.
79862         * modules/environ: Likewise.
79863         * modules/fchdir: Likewise.
79864         * modules/fcntl: Likewise.
79865         * modules/fcntl-h: Likewise.
79866         * modules/gethrxtime: Likewise.
79867         * modules/gettime: Likewise.
79868         * modules/ignore-value: Likewise.
79869         * modules/inet_ntop: Likewise.
79870         * modules/inet_pton: Likewise.
79871         * modules/inttypes: Likewise.
79872         * modules/isnand-nolibm: Likewise.
79873         * modules/isnanf-nolibm: Likewise.
79874         * modules/mbchar: Likewise.
79875         * modules/mbfile: Likewise.
79876         * modules/mbiter: Likewise.
79877         * modules/mbuiter: Likewise.
79878         * modules/netdb: Likewise.
79879         * modules/netinet_in: Likewise.
79880         * modules/nproc: Likewise.
79881         * modules/pagealign_alloc: Likewise.
79882         * modules/poll: Likewise.
79883         * modules/printf-frexp: Likewise.
79884         * modules/pthread: Likewise.
79885         * modules/putenv: Likewise.
79886         * modules/random_r: Likewise.
79887         * modules/relocatable-prog: Likewise.
79888         * modules/search: Likewise.
79889         * modules/select: Likewise.
79890         * modules/selinux-h: Likewise.
79891         * modules/settime: Likewise.
79892         * modules/signal: Likewise.
79893         * modules/size_max: Likewise.
79894         * modules/socklen: Likewise.
79895         * modules/ssize_t: Likewise.
79896         * modules/stdarg: Likewise.
79897         * modules/stdbool: Likewise.
79898         * modules/stddef: Likewise.
79899         * modules/stdint: Likewise.
79900         * modules/stdio: Likewise.
79901         * modules/stdlib: Likewise.
79902         * modules/string: Likewise.
79903         * modules/strings: Likewise.
79904         * modules/sys_file: Likewise.
79905         * modules/sys_ioctl: Likewise.
79906         * modules/sys_select: Likewise.
79907         * modules/sys_socket: Likewise.
79908         * modules/sys_stat: Likewise.
79909         * modules/sys_time: Likewise.
79910         * modules/sys_times: Likewise.
79911         * modules/sys_utsname: Likewise.
79912         * modules/sys_wait: Likewise.
79913         * modules/sysexits: Likewise.
79914         * modules/time: Likewise.
79915         * modules/times: Likewise.
79916         * modules/tmpfile: Likewise.
79917         * modules/trim: Likewise.
79918         * modules/unistd: Likewise.
79919         * modules/wchar: Likewise.
79920         * modules/wctype: Likewise.
79922 2009-09-17  Bruno Haible  <bruno@clisp.org>
79924         Make getdate.y compile on QNX and NetBSD 5 / i386.
79925         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79926         TIME_T_FITS_IN_LONG_INT.
79927         * lib/getdate.y (long_time_t): New type.
79928         (relative_time): Change type of 'seconds' field to long_time_t.
79929         (get_date): Update types of local variables. Check against overflow
79930         during conversion from long_time_t to time_t.
79931         Reported by Matt Kraai <kraai@ftbfs.org>
79932         and Hasso Tepper <hasso@netbsd.org>.
79934 2009-09-17  Bruno Haible  <bruno@clisp.org>
79936         * modules/COPYING: Update copyright years.
79937         * modules/README: Likeiwse.
79938         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79939         Reported by Ian Beckwith <ianb@erislabs.net>.
79941 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79943         * users.txt: Update references for gnuit package.
79945 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79947         * m4/getdelim.m4: Fix typo in copyright line.
79949 2009-09-17  Bruno Haible  <bruno@clisp.org>
79951         * lib/atoll.c: Use the standard header with GPL copyright.
79952         * lib/argz.in.h: Likewise.
79953         * lib/glob.c: Likewise.
79954         * lib/glob-libc.h: Likewise.
79955         * lib/random_r.c: Likewise.
79956         * lib/siglist.h: Likewise.
79957         * lib/strsignal.c: Likewise.
79958         Reported by Ian Beckwith <ianb@erislabs.net>.
79960 2009-09-17  Eric Blake  <ebb9@byu.net>
79962         rmdir: ensure correct dependency order
79963         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79965 2009-09-17  Bruno Haible  <bruno@clisp.org>
79967         Disable assertion that fails on NetBSD 5 / i386.
79968         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79969         Reported by Sam Steingold <sds@gnu.org>
79970         and Hasso Tepper <hasso@netbsd.org>.
79972 2009-09-16  Eric Blake  <ebb9@byu.net>
79974         unlinkdir: port to mingw
79975         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79976         on which no one can unlink a directory.
79978         stdlib: sort witness names
79979         * modules/stdlib (Makefile.am): Sort replacements.
79980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79981         * lib/stdlib.in.h: Likewise.
79983         parse-duration-tests: avoid link failure
79984         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79985         LIBINTL.
79986         Reported by Tom G. Christensen.
79988         openat-tests: ensure unlinkat behaves like rmdir
79989         * tests/test-rmdir.c (main): Factor guts...
79990         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79991         * modules/rmdir-tests (Files): Ship new file.
79992         * modules/openat-tests: New test.
79993         * tests/test-unlinkat.c: Likewise.
79995         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79996         * modules/rmdir-errno (Status, Notice): Now obsolete.
79998         rmdir: work around cygwin 1.5.x and mingw bugs
79999         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
80000         * lib/rmdir.c (rmdir): Work around it.
80001         * modules/rmdir (Status, Notice): No longer obsolete.
80002         (Files): Add dos.m4.
80003         (Depends-on): Add unistd.
80004         (configure.ac): Set witnesses.
80005         (License): Relax to LGPLv2+.
80006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
80007         * modules/unistd (Makefile.am): Substitute witnesses.
80008         * lib/unistd.in.h (rmdir): Declare replacement.
80009         * doc/posix-functions/rmdir.texi (rmdir): Document this.
80010         * modules/rmdir-tests: New tests.
80011         * tests/test-rmdir.c: Likewise.
80013 2009-09-15  Eric Blake  <ebb9@byu.net>
80015         fchdir: improve use of replacement functions
80016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
80017         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
80018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
80019         REPLACE_CLOSEDIR.
80020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
80021         * modules/sys_stat (Makefile.am): Substitute correct witness.
80022         * modules/dirent (Makefile.am): Likewise.
80023         * modules/unistd (Makefile.am): Likewise.
80024         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
80025         * lib/unistd.in.h (dup): Likewise.
80026         * lib/sys_stat.in.h (fstat): Likewise.
80028         maint: ignore gnulib-tool temp files
80029         * .gitignore: Ignore files created during gnulib-tool --test.
80031 2009-09-13  Jim Meyering  <meyering@redhat.com>
80033         posixtm: don't reject a time that specify "60" as the number of seconds
80034         * lib/posixtm.c (posixtime): The code to reject invalid dates
80035         would also reject a time specified with the .60 suffix.
80036         But POSIX allows that, in order to accommodate leap seconds.
80037         So don't reject it.
80038         (main): Adjust tests accordingly.
80039         * modules/posixtm (Depends-on): Add stpcpy.
80041 2009-09-11  Jim Meyering  <meyering@redhat.com>
80043         announce-gen: include [$release_type] in emitted Subject:
80044         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
80045         e.g., [stable] in the emitted Subject: line.
80047 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80049         Remove obsolete macros from several modules.
80050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
80051         obsolete Autoconf macros with their modern counterparts.
80052         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
80053         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
80054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
80055         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
80056         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
80057         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
80059         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80060         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
80061         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
80062         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
80063         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
80064         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
80065         * m4/sockets.m4 (gl_SOCKETS): Likewise.
80066         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
80067         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
80068         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80069         * m4/time_r.m4 (gl_TIME_R): Likewise.
80070         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
80071         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
80072         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80074         Fix copyright header in build-aux scripts.
80075         * build-aux/git-version-gen: Fix copyright header to match GPLv3
80076         recommendation.
80077         * build-aux/ncftpput-ftp: Likewise.
80078         * build-aux/update-copyright: Likewise.
80080 2009-09-09  Eric Blake  <ebb9@byu.net>
80082         test-link: allow Linux choice of errno
80083         * tests/test-link.c (main): Relax test for alternate error.
80085         strndup: fix improper m4 caching
80086         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
80087         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
80088         (gl_PREREQ_STRNDUP): Delete.
80089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
80090         * modules/string (Makefile.am): Substitute it.
80091         * lib/string.in.h (strndup): Modernize prototype.
80093         getcwd: port to mingw
80094         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
80095         different from the POSIX assumptions made throughout the getcwd
80096         module; fortunately, the mingw getcwd does not need replacement.
80097         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
80098         * modules/getcwd-tests: New test.
80099         * tests/test-getcwd.c: Likewise.
80101         link: fix platform bugs
80102         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
80103         * lib/link.c (link): Work around them.  Fix related mingw bug.
80104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
80105         * modules/unistd (Makefile.am): Substitute it.
80106         * lib/unistd.in.h (link): Declare replacement.
80107         * doc/posix-functions/link.texi (link): Document this.
80108         * modules/link (Depends-on): Add strdup-posix, sys_stat.
80110         test-link: consolidate into single C program, test more cases
80111         * tests/test-link.sh: Delete.
80112         * tests/test-link.c: Test more error conditions.  Exposes bugs on
80113         at least Cygwin and Solaris.
80114         * modules/link-tests (Files): Remove unused file.
80115         (Depends-on): Add errno, sys_stat.
80116         (Makefile.am): Simplify.
80118 2009-09-08  Bruno Haible  <bruno@clisp.org>
80120         Work around towlower, towupper bug on mingw.
80121         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
80122         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
80123         * doc/posix-functions/towlower.texi: Mention the mingw bug.
80124         * doc/posix-functions/towupper.texi: Likewise.
80125         Reported by Eric Blake.
80127 2009-09-08  Jim Meyering  <meyering@redhat.com>
80129         build: don't try to run autoheader if we don't use it
80130         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
80131         is not used in configure.ac.
80133 2009-09-08  Eric Blake  <ebb9@byu.net>
80135         euidaccess: fix compilation error
80136         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
80138         rawmemchr: relax license
80139         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
80140         okay.
80141         Reported by Jim Meyering.
80143         mkfifoat: new module
80144         * modules/mkfifoat: New file.
80145         * lib/mkfifoat.c: Likewise.
80146         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
80147         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80148         * modules/sys_stat (Makefile.am): Use them.
80149         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
80150         * MODULES.html.sh (File system functions): Mention module.
80151         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80152         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80153         * modules/mkfifoat-tests: New test.
80154         * tests/test-mkfifoat.c: Likewise.
80156         strchrnul: relax license
80157         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
80158         okay.
80159         Reported by Jim Meyering.
80161 2009-09-08  Eric Blake  <ebb9@byu.net>
80163         fstatat: fix compilation on Solaris
80164         * lib/fstatat.c (includes): Add fcntl.h.
80165         Reported by Pádraig Brady.
80167 2009-09-07  Eric Blake  <ebb9@byu.net>
80169         rename: modernize replacement
80170         * modules/rename (Depends-on): Add stdio.
80171         (configure.ac): Declare witness.
80172         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80173         stdio take care of replacement.
80174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80175         * modules/stdio (Makefile.am): Substitute them.
80176         * lib/stdio.in.h (rename): Declare replacement.
80177         * lib/rename.c (includes): Allow cross-compilation to non-windows
80178         machines.
80179         * doc/posix-functions/rename.texi (rename): Improve
80180         documentation.
80182         stdio: sort witness names
80183         * modules/stdio (Makefile.am): Sort replacements.
80184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80185         * lib/stdio.in.h: Likewise.
80187         getcwd: minor cleanups
80188         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
80189         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
80191         openat: provide more convenience names
80192         * modules/faccessat (configure.ac): Add C witness.
80193         * lib/unistd.in.h (readlinkat): Fix typo.
80194         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
80195         convenience wrappers.
80196         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
80197         wrappers in syntax checks.
80199 2009-09-06  Eric Blake  <ebb9@byu.net>
80201         doc: fix comments in recent patches
80202         * lib/faccessat.c: Mention correct function.
80203         * lib/fchmodat.c: Likewise.
80204         * lib/fchownat.c: Likewise.
80205         * lib/symlinkat.c: Likewise.
80206         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
80207         constants.
80209         faccessat, symlinkat: continue cleanup of previous patch
80210         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
80211         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80212         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
80213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
80214         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
80215         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
80216         set.
80218 2009-09-06  Bruno Haible  <bruno@clisp.org>
80220         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
80221         (fstatat): Declare if GNULIB_FSTATAT is set.
80222         (mkdirat): Declare if GNULIB_MKDIRAT is set.
80223         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
80224         (unlinkat): Declare if GNULIB_UNLINKAT is set.
80225         * modules/fcntl-h (Files): Remove m4/openat.m4.
80226         * modules/sys_stat (Files): Remove m4/openat.m4.
80227         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
80228         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
80229         * modules/unistd (Files): Remove m4/openat.m4.
80230         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
80231         GNULIB_OPENAT.
80232         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
80233         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
80234         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
80235         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
80236         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
80237         gl_OPENAT_DEFAULTS.
80238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
80239         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
80240         Don't require gl_OPENAT_DEFAULTS.
80241         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
80242         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
80243         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
80244         (gl_OPENAT_DEFAULTS): Remove macro.
80246 2009-09-06  Bruno Haible  <bruno@clisp.org>
80248         * modules/openat (configure.ac): Remove unneeded witness.
80250 2009-09-06  Bruno Haible  <bruno@clisp.org>
80252         Set errno to ENOSYS when a function is entirely unsupported.
80253         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
80254         EOPNOTSUPP.
80255         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80256         * modules/chown (Depends-on): Remove errno.
80258 2009-09-06  Bruno Haible  <bruno@clisp.org>
80260         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
80262 2009-09-06  Bruno Haible  <bruno@clisp.org>
80264         * lib/sys_stat.in.h: Fix preprocessor command indentation.
80266 2009-09-06  Ben Pfaff  <blp@gnu.org>
80267             Bruno Haible  <bruno@clisp.org>
80269         Work around a glibc bug in strtok_r.
80270         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
80271         Undefine if UNDEFINE_STRTOK_R is set.
80272         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
80273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80274         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
80275         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
80276         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
80277         UNDEFINE_STRTOK_R.
80278         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
80280 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
80282         exclude: minor fix
80283         * lib/exclude.c: Include wctype.h
80285 2009-09-06  Akim Demaille  <demaille@gostai.com>
80287         bootstrap: improve error message
80288         * build-aux/bootstrap (find_tool): Upon failure, report the list
80289         of candidates.
80290         Honor the initial value of the envvar.
80292 2009-09-05  Eric Blake  <ebb9@byu.net>
80294         symlinkat: new module
80295         * modules/symlinkat: New file.
80296         * lib/symlinkat.c: Likewise.
80297         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
80298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80299         * modules/unistd (Makefile.am): Use them.
80300         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
80301         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
80302         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
80303         * MODULES.html.sh (File system functions): Mention module.
80304         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80305         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80306         * modules/symlinkat-tests: New test.
80307         * tests/test-symlinkat.c: Likewise.
80309         test-openat-safer: add more checks
80310         * tests/test-openat-safer.c (main): Check more code paths.
80312 2009-09-05  Jim Meyering  <meyering@redhat.com>
80314         syntax-check: detect unnecessary inclusion of openat.h
80315         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
80317 2009-09-05  Bruno Haible  <bruno@clisp.org>
80319         Support towlower, towupper.
80320         * doc/posix-functions/towlower.texi: Mention module wctype.
80321         * doc/posix-functions/towupper.texi: Likewise.
80322         * lib/wctype.in.h (towlower, towupper): New functions.
80323         * tests/test-wctype.c: Include stdio.h, stdlib.h.
80324         (ASSERT): New macro.
80325         (e): New variable.
80326         (main): Test also towlower, towupper. Test WEOF argument.
80327         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
80329 2009-09-05  Bruno Haible  <bruno@clisp.org>
80331         Fix conversion behaviour when the input is invalid.
80332         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
80333         mark occurring in first pass of indirect conversion.
80334         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
80335         input.
80336         Found by clang's static analyzer.
80338 2009-09-05  Bruno Haible  <bruno@clisp.org>
80340         * tests/test-striconveh.c (main): Test indirect conversion on platforms
80341         where direct conversion is possible.
80343 2009-09-04  Eric Blake  <ebb9@byu.net>
80345         openat: fail with ENOENT on empty name
80346         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80347         buffer.
80349         link-follow: fix logic bug in prior patch
80350         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80351         reversed sense of yes and no in prior patch.  Avoid confusing
80352         compilation failure with desired semantics.
80354         link-follow: accommodate mingw and cross-compilation
80355         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80356         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80357         cross-compilation results to -1, to make linkat easier to
80358         implement when cross-compiling.  Trivially support mingw.
80359         * modules/link-follow (configure.ac): Call new name.
80360         * NEWS: Mention this.
80362 2009-09-03  Eric Blake  <ebb9@byu.net>
80364         faccessat: compile replacement
80365         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80366         needed.
80368         fts: fix compilation error
80369         * lib/fts.c (includes): Re-add "openat.h", for
80370         openat_needs_fchdir.
80372         faccessat: new module
80373         * modules/faccessat: New file.
80374         * lib/faccessat.c: Likewise.
80375         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80377         * modules/unistd (Makefile.am): Use it.
80378         * lib/unistd.in.h (faccessat): Declare it.
80379         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80380         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80381         * MODULES.html.sh (File system functions): Mention it.
80382         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80383         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80385         euidaccess: prefer POSIX over non-standard implementation
80386         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80387         * lib/euidaccess.c (euidaccess): Use it if available.
80389         openat: make template easier to use
80390         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80391         AT_FUNC_F2 to be undefined.
80392         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80393         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80394         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80395         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80396         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80397         Likewise.
80398         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80399         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80400         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80401         Likewise.
80403         openat: declare in POSIX headers
80404         * NEWS: Mention this.
80405         * modules/openat (configure.ac): Declare witnesses.
80406         (Depends-on): Add fcntl-h, sys_stat, unistd.
80407         (Include): Mention correct headers.
80408         * modules/fcntl-h (Depends-on): Add link-warning.
80409         (Files): Add openat.m4.
80410         (Makefile.am): Substitute witnesses.
80411         * modules/sys_stat (Files, Makefile.am): Likewise.
80412         * modules/unistd (Files, Makefile.am): Likewise.
80413         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80414         (gl_OPENAT_DEFAULTS): New macro.
80415         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80417         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80418         (SYS_STAT_H): Remove unused variable.
80419         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80420         * lib/fcntl--.h (includes): Remove unneeded header.
80421         * lib/openat-safer.c (includes): Likewise.
80422         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80423         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80424         appropriate headers.
80425         (__OPENAT_PREFIX): Delete.
80426         * lib/fcntl.in.h (openat): Provide declaration.
80427         (AT_FDCWD): Fix Solaris bug.
80428         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80429         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80430         * lib/fchmodat.c (includes):  Adjust to find declaration.
80431         * lib/fchownat.c (includes): Likewise.
80432         * lib/mkdirat.c (includes): Likewise.
80433         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80434         still visible.
80436 2009-09-02  Eric Blake  <ebb9@byu.net>
80438         errno: use consistently
80439         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80440         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80441         * lib/canonicalize.c (ELOOP): Likewise.
80442         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80443         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80444         * lib/lchown.c (EOPNOTSUPP): Likewise.
80445         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80446         * lib/savewd.c (ESTALE): Likewise.
80447         * lib/settime.c (ENOSYS): Likewise.
80448         * lib/utimens.c (ENOSYS): Likewise.
80449         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80450         * lib/chdir-safer.c (ELOOP): Likewise.
80451         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80452         * modules/c-stack (Depends-on): Add errno.
80453         * modules/canonicalize (Depends-on): Likewise.
80454         * modules/chdir-safer (Depends-on): Likewise.
80455         * modules/fdopendir (Depends-on): Likewise.
80456         * modules/inet_ntop (Depends-on): Likewise.
80457         * modules/inet_pton (Depends-on): Likewise.
80458         * modules/lchown (Depends-on): Likewise.
80459         * modules/openat (Depends-on): Likewise.
80460         * modules/savewd (Depends-on): Likewise.
80461         * modules/settime (Depends-on): Likewise.
80462         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
80464         fts: avoid leaking fds
80465         * modules/fts (Depends-on): Add cloexec.
80466         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
80467         flag.
80469         fts: make directory fds more robust
80470         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
80471         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
80473         backupfile, chdir-long, fts, savedir: make safer
80474         * lib/backupfile.c (includes): Use "dirent--.h", since
80475         numbered_backup can write to stderr during readdir.
80476         * lib/savedir.c (includes): Likewise.
80477         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
80478         emulation can write to stderr on failure.
80479         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
80480         * lib/getcwd.c: Document why opendir_safer is unused.
80481         * lib/glob.c: Likewise.
80482         * lib/scandir.c: Likewise.
80483         * lib/openat-proc.c: Likewise, for open_safer.
80484         * modules/backupfile (Depends-on): Add dirent-safer.
80485         * modules/savedir (Depends-on): Likewise.
80486         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
80487         * modules/chdir-long (Depends-on): Add openat-safer.
80489         openat-safer: new module
80490         * modules/openat-safer: New file.
80491         * lib/openat-safer.c: Likewise.
80492         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
80493         * lib/fcntl-safer.h (openat_safer): Declare.
80494         * lib/fcntl--.h (openat): Override.
80495         * MODULES.html.sh (File descriptor based I/O): Mention it.
80496         * lib/openat.h: Add double-inclusion guards.
80497         * lib/openat.c (includes): Only include "fcntl-safer.h", not
80498         "fcntl--.h", so we can implement openat.
80499         * modules/openat-safer-tests: New test.
80500         * tests/test-openat-safer.c: New file.
80502         dirent-safer: new module
80503         * modules/dirent-safer: New file.
80504         * lib/dirent--.h: Likewise.
80505         * lib/dirent-safer.h: Likewise.
80506         * lib/opendir-safer.c: Likewise.
80507         * m4/dirent-safer.m4: Likewise.
80508         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
80509         * modules/dirent-safer-tests: New test.
80510         * tests/test-dirent-safer.c: New file.
80511         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
80513         fdopendir: optimize on mingw
80514         * lib/unistd.in.h (_gl_directory_name): New prototype.
80515         * lib/fchdir.c (_gl_directory_name): Implement it.
80516         (fchdir): Use it to simplify implementation.
80517         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
80518         fchdir, when available, to avoid calling [f]chdir().
80520         fdopendir: split into its own module
80521         * lib/openat.c (fdopendir): Move...
80522         * lib/fdopendir.c: ...into new file.
80523         * modules/fdopendir: New module.
80524         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
80525         * modules/openat (Depends-on): Add fdopendir.
80526         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
80527         fdopendir here.
80528         * modules/savedir (Depends-on): Only need fdopendir, not full
80529         openat.
80530         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
80531         * lib/openat.h (fdopendir): Drop prototype.
80532         * lib/dirent.in.h (fdopendir): Provide prototype.
80533         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
80534         * modules/dirent (Makefile.am): Substitute them.
80535         * MODULES.html.sh (File system functions): Mention it.
80536         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
80537         * modules/fdopendir-tests: New file.
80538         * tests/test-fdopendir.c: Likewise.
80540         fchdir: use more consistent macro convention
80541         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
80542         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
80543         REPLACE_FCHDIR, rather than relying on config.h macros.
80544         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
80545         inside a single make-time REPLACE_FCHDIR block, rather than using
80546         the config.h FCHDIR_REPLACEMENT.
80547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
80548         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
80549         Manage fstat replacement.
80550         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
80551         REPLACE_FCHDIR.
80552         * modules/sys_stat (Files): Add m4/unistd_h.m4.
80553         (Makefile.am): Substitute REPLACE_FCHDIR.
80554         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
80555         FCHDIR_REPLACEMENT.
80556         * lib/dup-safer.c (dup_safer): Likewise.
80557         * lib/dup2.c (rpl_dup2): Likewise.
80558         * lib/dup3.c (rpl_dup3): Likewise.
80559         * lib/open.c (rpl_open): Likewise.
80561         fchdir: simplify error handling, and support dup3
80562         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
80563         stdbool, malloc-posix, realloc-posix.
80564         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
80565         (ensure_dirs_slot): Return false on allocation failure.
80566         (rpl_dup2): Delete.
80567         (_gl_register_dup): New function.
80568         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
80569         (_gl_register_fd): Close fd on allocation failure.
80570         * lib/fcntl.in.h (_gl_register_fd): Update signature.
80571         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
80572         prototype.
80573         (rpl_dup2_fchdir): Delete prototype.
80574         * lib/open.c (open): Update caller.
80575         * lib/dup2.c (dup2): Track fchdir metadata.
80576         * lib/dup3.c (dup3): Likewise.
80577         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
80578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
80580 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80582         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
80583         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
80584         don't pass arguments to AC_OUTPUT.
80586 2009-09-02  Bruno Haible  <bruno@clisp.org>
80588         * modules/mkdtemp (License): Relicense under LGPLv2+.
80589         Reported by Paolo Bonzini.
80591 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80593         Replace uses of obsolete autoconf macros in Jim's modules.
80594         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80595         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80596         can evoke a warning from autoconf when run with -Wobsolete
80597         enabled.  They were declared obsolete for good reasons (see
80598         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
80599         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
80600         should not continue using the deprecated macros.
80601         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
80602         obsolete Autoconf macros with modern counterparts.
80603         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80604         * m4/dos.m4 (gl_AC_DOS): Likewise.
80605         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
80606         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
80607         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
80608         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
80609         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
80610         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
80611         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
80612         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
80613         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
80614         Likewise.
80615         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
80616         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80617         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
80618         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
80619         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
80620         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80622 2009-09-01  Eric Blake  <ebb9@byu.net>
80624         fchdir: fix off-by-one bug in previous patch
80625         * lib/fchdir.c (rpl_fstat): Use correct bounds.
80626         (_gl_unregister_fd): Delete useless if.
80628 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
80630         maint.mk: sort the list of syntax-check rules
80631         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
80632         easier to get a sense of progress when the rules are run sequentially
80633         and take a long time.
80635 2009-09-01  Simon Josefsson  <simon@josefsson.org>
80637         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
80638         * modules/netinet_in: Likewise.
80639         * modules/sys_file: Likewise.
80640         * modules/sys_ioctl: Likewise.
80641         * modules/sys_select: Likewise.
80642         * modules/sys_socket: Likewise.
80643         * modules/sys_stat: Likewise.
80644         * modules/sys_time: Likewise.
80645         * modules/sys_times: Likewise.
80646         * modules/sys_utsname: Likewise.
80647         * modules/sys_wait: Likewise.
80649 2009-09-01  Jim Meyering  <meyering@redhat.com>
80651         fts: help ensure that return values are not ignored
80652         * lib/fts_.h (__GNUC_PREREQ): Define.
80653         (__attribute_warn_unused_result__): Define.
80654         (fts_children, fts_close, fts_open, fts_read): Declare with
80655         __attribute_warn_unused_result__.
80657         fts: fts_close now fails also when closing a dir file descriptor fails
80658         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80659         and propagate to caller, along with errno.
80661         announce-gen: correct formatting in --help output
80662         * build-aux/announce-gen (usage): Move the one-line description in
80663         --help output "up", to where it belongs, just after Usage:.
80665 2009-08-31  Eric Blake  <ebb9@byu.net>
80667         fchdir: port to mingw
80668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80669         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80670         opened, then use a substitute.
80671         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80672         replacement.
80673         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80674         (_gl_register_fd): No need to check stat if open already filters
80675         all directories.
80676         (fchdir): Fix error condition to match POSIX.
80677         * modules/fchdir (Depends-on): Add sys_stat.
80678         * doc/posix-functions/open.texi (open): Document the limitation.
80679         * modules/fchdir-tests: New file.
80680         * tests/test-fchdir.c: Likewise.
80682         canonicalize: allow cross-testing from cygwin to mingw
80683         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80684         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80685         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80686         Likewise.
80687         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80688         target does not support symlinks.
80689         * tests/test-canonicalize-lgpl.sh: Likewise.
80691         chown: avoid compilation warning on mingw
80692         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80693         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80694         mingw.
80695         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80696         * modules/chown (Depends-on): Add errno.
80698 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80700         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80701         command.
80703 2009-08-31  Jim Meyering  <meyering@redhat.com>
80705         canonicalize: remove useless initialization
80706         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80707         initialization of local, "end".
80709 2009-08-30  Bruno Haible  <bruno@clisp.org>
80711         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80712         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80713         ENOSYS.
80715 2009-08-30  Bruno Haible  <bruno@clisp.org>
80717         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80718         /usr/xpg4/bin/tr when it exists.
80719         * tests/test-pipe-filter-gi1.sh: Likewise.
80721 2009-08-30  Bruno Haible  <bruno@clisp.org>
80723         Work around deficient /usr/bin/id program on Solaris.
80724         * tests/test-file-has-acl.sh (ID): New variable.
80725         * tests/test-set-mode-acl.sh (ID): Likewise.
80726         * tests/test-copy-acl.sh (ID): Likewise.
80727         * tests/test-copy-file.sh (ID): Likewise.
80729 2009-08-30  Bruno Haible  <bruno@clisp.org>
80731         New module 'xstriconveh'.
80732         * lib/xstriconveh.h: New file.
80733         * lib/xstriconveh.c: New file.
80734         * modules/xstriconveh: New file.
80736 2009-08-30  Bruno Haible  <bruno@clisp.org>
80738         Make it easier to use mem_cd_iconveh.
80739         * lib/striconveh.h (iconveh_t): New type.
80740         (iconveh_open, iconveh_close): New declarations.
80741         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80742         with a single 'const iconveh_t *' argument.
80743         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80744         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80745         with a single 'const iconveh_t *' argument.
80746         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80747         * tests/test-striconveh.c (main): Update.
80748         * NEWS: Mention the change.
80750 2009-08-30  Bruno Haible  <bruno@clisp.org>
80752         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80753         problem.
80755 2009-08-30  Bruno Haible  <bruno@clisp.org>
80757         Work around iconv_open problem on Solaris.
80758         * lib/iconv_open-solaris.gperf: New file.
80759         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80760         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80761         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80762         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80763         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80764         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80766 2009-08-29  Jim Meyering  <meyering@redhat.com>
80768         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80769         * top/maint.mk (cvs-check): Remove target; it was just an alias
80770         to the better-named vc-diff-check.
80771         (maintainer-distcheck): Remove rule.  It was used only from
80772         the (alpha/beta/major) target, and all of its commands but one
80773         were coreutils-specific.
80774         (vc-dist): Remove rule.
80775         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80776         Run vc-diff-check, not vc-dist.
80777         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80779 2009-08-27  Bruno Haible  <bruno@clisp.org>
80781         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80782         of 0.
80784 2009-08-27  Bruno Haible  <bruno@clisp.org>
80786         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80787         compilers.
80788         * doc/func.texi: Document the SunPRO C bug.
80790 2009-08-27  Bruno Haible  <bruno@clisp.org>
80792         Fix link error on Solaris.
80793         * tests/test-parse-duration.c (xstrdup): Remove function.
80795 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80797         ignore-value: handle pointer types, too
80798         * lib/ignore-value.h (__attribute__): Remove definition.
80799         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80800         of a more concise and more-often effective "(void) i" statement.
80801         (ignore_ptr): New function to suppress warnings from functions that
80802         return pointers, and to make it explicit that one function doesn't
80803         handle all cases.
80805 2009-08-25  Bruno Haible  <bruno@clisp.org>
80807         dup2: work around a Linux bug.
80808         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80809         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80810         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80811         Reported by Simon Josefsson.
80813 2009-08-25  Jim Meyering  <meyering@redhat.com>
80815         libguestfs uses gnulib
80816         * users.txt: Add libguestfs.
80818 2009-08-24  Eric Blake  <ebb9@byu.net>
80820         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80821         * lib/pipe2.c (includes): Add binary-io.h.
80822         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80824 2009-08-24  Bruno Haible  <bruno@clisp.org>
80826         Tolerate declared but missing accept4 syscall.
80827         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80828         available.
80829         * lib/sys_socket.in.h (accept4): If the function is already present,
80830         override it.
80831         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80832         * modules/accept4 (Makefile.am): Compile accept4.c always.
80833         Reported by Paolo Bonzini and Eric Blake.
80835 2009-08-23  Bruno Haible  <bruno@clisp.org>
80837         New module 'accept4'.
80838         * lib/sys_socket.in.h (accept4): New declaration.
80839         * lib/accept4.c: New file.
80840         * m4/accept4.m4: New file.
80841         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80842         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80843         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80844         HAVE_ACCEPT4.
80845         * modules/accept4: New file.
80846         * doc/glibc-functions/accept4.texi: Mention the new module.
80848 2009-08-24  Jim Meyering  <meyering@redhat.com>
80850         progname: also set global program_invocation_name, when possible
80851         Before this change, a libtool-enabled program that calls glibc's
80852         error function would report the program name as
80853         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80854         * modules/progname (configure.ac): Check for a declaration of
80855         program_invocation_name.
80856         * lib/progname.c:  Include <errno.h>.
80857         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80858         Set program_invocation_name.
80860 2009-08-23  Bruno Haible  <bruno@clisp.org>
80862         * lib/dup3.c: Include <string.h>.
80864 2009-08-23  Bruno Haible  <bruno@clisp.org>
80866         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80867         * lib/pipe2.c (pipe2): Likewise.
80868         Suggested by Eric Blake.
80870 2009-08-23  Bruno Haible  <bruno@clisp.org>
80872         Tolerate declared but missing dup3 syscall.
80873         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80874         * lib/unistd.in.h (dup3): If the function is already present,
80875         override it.
80876         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80877         * modules/dup3 (Makefile.am): Compile dup3.c always.
80878         Reported by Paolo Bonzini.
80880 2009-08-23  Bruno Haible  <bruno@clisp.org>
80882         Tolerate declared but missing pipe2 syscall.
80883         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80884         available.
80885         * lib/unistd.in.h (pipe2): If the function is already present,
80886         override it.
80887         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80888         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80889         Reported by Paolo Bonzini.
80891 2009-08-23  Bruno Haible  <bruno@clisp.org>
80893         * lib/pipe2.c (pipe2): Move #ifs inside function.
80895 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80897         quotearg: document limitations of quote_these_too
80898         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80899         those limitations are created.
80900         * lib/quotearg.h (set_char_quoting): Document that digits and
80901         letters that are special after backslash are not permitted.
80902         (quotearg_char): Cross-reference set_char_quoting documentation.
80904 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80906         quotearg: implement custom_quoting_style
80907         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80908         right_quote fields.
80909         (set_custom_quoting): New public function.
80910         (quotearg_buffer_restyled): Add left_quote and right_quote
80911         arguments, handle them very much like locale quoting, and update
80912         all uses.
80913         (quotearg_n_custom): New public function.
80914         (quotearg_n_custom_mem): New public function.
80915         (quotearg_custom): New public function.
80916         (quotearg_custom_mem): New public function.
80917         * lib/quotearg.h: Prototype and document new public functions.
80918         (enum quoting_style): For escape_quoting_style and
80919         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80920         ignored even though they're otherwise like c_quoting_style.
80921         Add custom_quoting_style member and document with comparison to
80922         clocale_quoting_style.
80923         * tests/test-quotearg.c (custom_quotes): New array.
80924         (custom_results): New array.
80925         (main): Extend to test custom quoting.
80927 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80929         quotearg: fix right quote escaping when it's in quote_these_too
80930         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80931         quote, be sure to prepend only one backslash.
80932         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80933         (main): Test it.
80935 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80937         quotearg-tests: test escaping of embedded locale quotes
80938         * tests/test-quotearg.c (struct result_strings): Add member for
80939         new input.
80940         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80941         (inputs): Add new input.
80942         (results_g): Add expected results.
80943         (flag_results): Likewise.
80944         (locale_results): Likewise.
80945         (compare_strings): Check those.
80947 2009-08-23  Bruno Haible  <bruno@clisp.org>
80949         Tests for module 'dup3'.
80950         * modules/dup3-tests: New file.
80951         * tests/test-dup3.c: New file.
80953         New module 'dup3'.
80954         * lib/unistd.in.h (dup3): New declaration.
80955         * lib/dup3.c: New file.
80956         * m4/dup3.m4: New file.
80957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80958         HAVE_DUP3.
80959         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80960         * modules/dup3: New file.
80961         * doc/glibc-functions/dup3.texi: Mention the new module.
80963 2009-08-23  Bruno Haible  <bruno@clisp.org>
80965         Tweak the dup2 test.
80966         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80967         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80968         the test file is still empty. Fix argument order of lseek.
80970 2009-08-23  Bruno Haible  <bruno@clisp.org>
80972         Avoid test link errors when the modules getopt-gnu, gettext are used.
80973         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80976 2009-08-23  Bruno Haible  <bruno@clisp.org>
80978         Fix getdtablesize() on mingw.
80979         * lib/getdtablesize.c (getdtablesize): Implement differently.
80980         * lib/unistd.in.h (getdtablesize): Improve comment.
80982 2009-08-23  Bruno Haible  <bruno@clisp.org>
80984         New module 'mkostemp'.
80985         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80986         * lib/stdlib.in.h (mksotemp): New declaration.
80987         * lib/mkostemp.c: New file, from glibc with modifications.
80988         * lib/tempname.h (GT_FILE): Remove outdated comment.
80989         (gen_tempname): Add flags argument.
80990         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80991         (__GT_FILE): Map to 1.
80992         (small_open, large_open): Remove macros.
80993         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80994         * lib/mkstemp.c (mkstemp): Update.
80995         * lib/mkdtemp.c (mkdtemp): Likewise.
80996         * m4/mkostemp.m4: New file.
80997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80998         HAVE_MKOSTEMP.
80999         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
81000         HAVE_MKOSTEMP.
81001         * modules/mkostemp: New file, based on modules/mkstemp.
81002         * doc/glibc-functions/mkostemp.texi: Mention the new module.
81003         * NEWS: Mention the change.
81005 2009-08-23  Bruno Haible  <bruno@clisp.org>
81007         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
81008         Reported by Eric Blake.
81010 2009-08-23  Bruno Haible  <bruno@clisp.org>
81012         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
81013         Reported by Eric Blake.
81015 2009-08-23  Bruno Haible  <bruno@clisp.org>
81017         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
81018         * modules/pipe2 (Depends-on): Likewise.
81020 2009-08-23  Eric Blake  <ebb9@byu.net>
81022         fcntl-h: add O_TTY_INIT support
81023         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
81024         * tests/test-fcntl-h.c (o): Test it.
81025         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81027         fcntl-h: rename from fcntl, in preparation for fcntl(2)
81028         * modules/fcntl: Move <fcntl.h> header replacement...
81029         * modules/fcntl-h: ...to new name, so as not to collide with
81030         like-named function.
81031         * tests/test-fcntl.c: Rename...
81032         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
81033         * modules/fcntl-tests: Rename...
81034         * modules/fcntl-h-tests: ...to this.  Update test file name.
81035         * modules/chdir-long (Depends-on): Update clients.
81036         * modules/chdir-safer (Depends-on): Likewise.
81037         * modules/fcntl-safer (Depends-on): Likewise.
81038         * modules/fts (Depends-on): Likewise.
81039         * modules/mkancesdirs (Depends-on): Likewise.
81040         * modules/mkdir-p (Depends-on): Likewise.
81041         * modules/open (Depends-on): Likewise.
81042         * modules/savewd (Depends-on): Likewise.
81043         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
81044         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81046 2009-08-22  Bruno Haible  <bruno@clisp.org>
81048         * modules/binary-io (License): Relicense under LGPL.
81049         * modules/pipe2 (License): Likewise.
81051 2009-08-22  Bruno Haible  <bruno@clisp.org>
81053         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
81054         return value.
81055         * lib/pipe-filter-gi.c (filter_init): Likewise.
81056         Reported by Eric Blake.
81058 2009-08-22  Bruno Haible  <bruno@clisp.org>
81060         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
81061         * modules/pipe (Depends-on): Add pipe2.
81063 2009-08-22  Bruno Haible  <bruno@clisp.org>
81065         Tests for module 'pipe2'.
81066         * modules/pipe2-tests: New file.
81067         * tests/test-pipe2.c: New file.
81069         New module 'pipe2'.
81070         * lib/unistd.in.h (pipe2): New declaration.
81071         * lib/pipe2.c: New file.
81072         * m4/pipe2.m4: New file.
81073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
81074         HAVE_PIPE2.
81075         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
81076         * modules/pipe2: New file.
81077         * doc/glibc-functions/pipe2.texi: Mention the new module.
81079 2009-08-22  Bruno Haible  <bruno@clisp.org>
81081         Reference some new glibc functions.
81082         * doc/glibc-functions/accept4.texi: New file.
81083         * doc/glibc-functions/dup3.texi: New file.
81084         * doc/glibc-functions/mkostemp.texi: New file.
81085         * doc/glibc-functions/pipe2.texi: New file.
81086         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
81087         (Glibc sys/socket.h): Refer to accept4.
81088         (Glibc unistd.h): Refer to dup3, pipe2.
81089         Reported by Eric Blake.
81091 2009-08-22  Jim Meyering  <meyering@redhat.com>
81092             Bruno Haible  <bruno@clisp.org>
81094         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
81095         This makes it so packages using automake-1.11's silent-rules option
81096         can print e.g., a single "GEN    configmake.h" line, rather than
81097         the 30+ statements that perform the job.  If you want to see the
81098         actual commands, you can still run "make V=1".
81099         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81100         so that make output is abbreviated when those variables are defined
81101         appropriately.
81102         * modules/argz: Likewise.
81103         * modules/arpa_inet: Likewise.
81104         * modules/byteswap: Likewise.
81105         * modules/configmake: Likewise.
81106         * modules/dirent: Likewise.
81107         * modules/errno: Likewise.
81108         * modules/fcntl: Likewise.
81109         * modules/float: Likewise.
81110         * modules/fnmatch: Likewise.
81111         * modules/getopt-posix: Likewise.
81112         * modules/glob: Likewise.
81113         * modules/iconv_open: Likewise.
81114         * modules/inttypes: Likewise.
81115         * modules/localcharset: Likewise.
81116         * modules/locale: Likewise.
81117         * modules/math: Likewise.
81118         * modules/netdb: Likewise.
81119         * modules/netinet_in: Likewise.
81120         * modules/poll: Likewise.
81121         * modules/posix_spawnp-tests: Likewise.
81122         * modules/sched: Likewise.
81123         * modules/search: Likewise.
81124         * modules/selinux-h: Likewise.
81125         * modules/signal: Likewise.
81126         * modules/spawn: Likewise.
81127         * modules/stdarg: Likewise.
81128         * modules/stdbool: Likewise.
81129         * modules/stddef: Likewise.
81130         * modules/stdint: Likewise.
81131         * modules/stdio: Likewise.
81132         * modules/stdlib: Likewise.
81133         * modules/string: Likewise.
81134         * modules/strings: Likewise.
81135         * modules/sys_file: Likewise.
81136         * modules/sys_ioctl: Likewise.
81137         * modules/sys_select: Likewise.
81138         * modules/sys_socket: Likewise.
81139         * modules/sys_stat: Likewise.
81140         * modules/sys_time: Likewise.
81141         * modules/sys_times: Likewise.
81142         * modules/sys_utsname: Likewise.
81143         * modules/sys_wait: Likewise.
81144         * modules/sysexits: Likewise.
81145         * modules/time: Likewise.
81146         * modules/unistd: Likewise.
81147         * modules/wchar: Likewise.
81148         * modules/wctype: Likewise.
81150 2009-08-22  Jim Meyering  <meyering@redhat.com>
81152         announce-gen: detect write failure
81153         * build-aux/announce-gen: Add Coda at end.
81154         Remove equivalent-but-more-verbose block at top.
81156 2009-08-19  Akim Demaille  <demaille@gostai.com>
81158         bootstrap: --help to stdout.
81159         * bootstrap (usage): Don't send --help to stderr.
81160         Use a here doc instead of a long string.
81162 2009-08-21  Eric Blake  <ebb9@byu.net>
81164         test-popen-safer: split from test-popen
81165         * tests/test-popen.c (main): Move...
81166         * tests/test-popen.h: ...into new file.
81167         * tests/test-popen-safer2.c: New file.
81168         * modules/popen-tests (Files): Add test-popen.h.
81169         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
81170         Suggested by Bruno Haible.
81172         test-fcntl-safer: split from test-open
81173         * tests/test-open.c (main): Move...
81174         * tests/test-open.h: ...into new file.
81175         * tests/test-fcntl-safer.c: New file.
81176         * modules/open-tests (Files): Add test-open.h.
81177         * modules/fcntl-safer-tests: New file.
81178         Suggested by Bruno Haible.
81180         test-fopen-safer: split from test-fopen
81181         * tests/test-fopen.c (main): Move...
81182         * tests/test-fopen.h: ...into new file.
81183         * tests/test-fopen-safer.c: New file.
81184         * modules/fopen-tests (Files): Add test-fopen.h.
81185         * modules/fopen-safer-tests: New file.
81186         Suggested by Bruno Haible.
81188 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81190         popen-safer: test O_CLOEXEC at run-time.
81191         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
81193 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81195         fcntl: move more flags to the header
81196         * lib/cloexec.c: Do not define FD_CLOEXEC here.
81197         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
81198         * lib/fcntl.in.h: Do both things here.
81200 2009-08-21  Jim Meyering  <meyering@redhat.com>
81202         consistently remove $@-t before redirecting to it
81203         * modules/argz: Remove $@-t and $@ before redirecting to the former.
81204         * modules/alloca-opt: Likewise.
81205         * modules/byteswap: Likewise.
81206         * modules/fnmatch: Likewise.
81207         * modules/getopt-posix: Likewise.
81208         * modules/glob: Likewise.
81209         * modules/poll: Likewise.
81210         * modules/posix_spawnp-tests: Likewise.
81211         * modules/sys_socket: Likewise.
81212         * modules/sysexits: Likewise.
81214 2009-08-21  Eric Blake  <ebb9@byu.net>
81216         popen: simplify access to original popen
81217         * lib/popen.c (rpl_popen): No need to worry about popen being a
81218         macro.
81219         Reported by Bruno Haible.
81221 2009-08-20  Eric Blake  <ebb9@byu.net>
81223         build: avoid some compiler warnings
81224         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
81225         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
81226         type.
81227         (new_exclude_segment, excluded_file_pattern_p)
81228         (excluded_file_name_p): Reduce scope.
81229         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
81230         old-style declaration.
81232 2009-08-20  Simon Josefsson  <simon@josefsson.org>
81234         * tests/test-exclude1.sh: Handle Windows EOL.
81235         * tests/test-exclude2.sh: Likewise.
81236         * tests/test-exclude3.sh: Likewise.
81237         * tests/test-exclude4.sh: Likewise.
81238         * tests/test-exclude5.sh: Likewise.
81239         * tests/test-exclude6.sh: Likewise.
81240         * tests/test-exclude7.sh: Likewise.
81242 2009-08-19  Akim Demaille  <demaille@gostai.com>
81244         bootstrap: find sha1sum when named gsha1sum.
81245         * bootstrap (find_tool): New.
81246         ($SHA1SUM): New.
81247         Use it.
81249 2009-08-20  Jim Meyering  <meyering@redhat.com>
81251         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
81252         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
81253         expression that converts "." in a file name to "\." in the resulting
81254         regexp.  Start with a dummy statement, so that prior shell variable
81255         definitions are expanded portably.  Reported by Simon Josefsson.
81257 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
81259         Fix polling for writeability of a screen buffer.
81260         * lib/poll.c: Distinguish input and screen buffers for the
81261         Win32 implementation.
81262         * lib/select.c: Likewise.
81264 2009-08-19  Eric Blake  <ebb9@byu.net>
81266         popen-safer: prevent popen from clobbering std descriptors
81267         * modules/popen-safer: New file.
81268         * lib/popen-safer.c: Likewise.
81269         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
81270         * lib/stdio--.h (popen): Provide override.
81271         * lib/stdio-safer.h (popen_safer): Provide declaration.
81272         * tests/test-popen.c (includes): Partially test this.
81273         * modules/popen-safer-tests: New file, for more tests.
81274         * tests/test-popen-safer.c: Likewise.
81275         * MODULES.html.sh (file stream based Input/Output): Mention it.
81277         tests: test some of the *-safer modules
81278         * modules/fopen-safer (Depends-on): Add fopen.
81279         * modules/fcntl-safer (Depends-on): Add fcntl.
81280         * modules/stdlib-safer (Depends-on): Add stdlib.
81281         (configure.ac): Set indicator.
81282         * modules/unistd-safer (configure.ac): Likewise.
81283         * modules/tmpfile-safer (configure.ac): Likewise.
81284         (Depends-on): Add tmpfile.
81285         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
81286         active.
81287         * tests/test-fopen.c (includes): Test safer versions when they are
81288         in use.
81289         * tests/test-open.c (includes): Likewise.
81291         popen: fix cygwin 1.5 bug when stdin closed
81292         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
81293         * modules/popen: New file.
81294         * modules/popen-tests: Likewise.
81295         * tests/test-popen.c: Likewise.
81296         * m4/popen.m4: Likewise.
81297         * lib/popen.c: Likewise.
81298         * lib/stdio.in.h (popen): New declaration.
81299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
81300         * modules/stdio (Makefile.am): Likewise.
81301         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
81303 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
81305         maint.mk: give full control over update-copyright exclusions
81306         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
81307         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
81308         (update-copyright): Don't force inclusion of top-level
81309         ChangeLog.  Don't force exclusion of all COPYING files, but make
81310         them the default exclusion instead.
81312 2009-08-16  Bruno Haible  <bruno@clisp.org>
81314         Fix test failures on Solaris 10.
81315         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
81316         tests when Solaris iconv() is used.
81317         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81318         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81319         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81320         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81321         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81323 2009-08-16  Bruno Haible  <bruno@clisp.org>
81325         Fix test failures on Solaris 10.
81326         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
81327         'tr' program and pass it as first argument.
81328         * tests/test-pipe-filter-gi1.sh: Likewise.
81329         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
81330         program as first argument.
81331         * tests/test-pipe-filter-gi1.c (main): Likewise.
81333 2009-08-16  Eric Blake  <ebb9@byu.net>
81335         fpurge: fix previous commits
81336         * modules/fpurge (Makefile.am): Make replacement conditional,
81337         partially reverting 2007-04-29 change; missed in previous
81338         attempt.
81339         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
81340         is missing.
81342 2009-08-16  Bruno Haible  <bruno@clisp.org>
81344         Clarify fpurge's effect on the file position.
81345         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81346         * tests/test-fpurge.c (main): Make a second pass for checking the file
81347         position.
81349 2009-08-16  Bruno Haible  <bruno@clisp.org>
81351         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81352         declaration of fpurge is missing.
81353         * tests/test-fpurge.c (main): Check that the file has not more contents
81354         than expected. Close the file before removing it.
81356 2009-08-15  Eric Blake  <ebb9@byu.net>
81358         fpurge: don't wrap working cygwin implementation
81359         * lib/fpurge.c (fpurge): Fix comment typo.
81360         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81361         1.7 to avoid replacement.
81362         * tests/test-fpurge.c (main): Enhance test.
81364 2009-08-15  Eric Blake  <ebb9@byu.net>
81365         and Jim Meyering  <meyering@redhat.com>
81367         test-update-copyright: skip if perl is insufficient
81368         * tests/test-update-copyright.sh: Failure to run maintainer tool
81369         should not cause testsuite failure on cygwin 1.5.
81371 2009-08-14  Eric Blake  <ebb9@byu.net>
81373         doc: mention more functions added in cygwin 1.7.0
81374         * doc/posix-headers/limits.texi (limits.h): Update for recent
81375         cygwin additions.
81376         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81377         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81378         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81379         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81380         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81382 2009-08-14  Eric Blake  <ebb9@byu.net>
81384         maint.mk: simplify update-copyright rule
81385         * top/maint.mk (update-copyright-local): Delete, and document how
81386         to do it in cfg.mk instead.
81387         (update-copyright-exclude-regexp): Delete, and document how to do
81388         it in .x-update-copyright instead.
81389         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81390         exclude ChangeLog.
81392 2009-08-14  Bruno Haible  <bruno@clisp.org>
81394         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81396 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81398         maint.mk: support update-copyright-env
81399         * top/maint.mk (update-copyright-env): Define place-holder.
81400         (update-copyright): Expand $(update-copyright-env) before
81401         invoking update-copyright.
81403 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81405         update-copyright: implement forced reformatting
81406         * build-aux/update-copyright: Implement and document
81407         UPDATE_COPYRIGHT_FORCE.
81408         * tests/test-update-copyright.sh: Test it.
81410 2009-08-14  Eric Blake  <ebb9@byu.net>
81411         and Bruno Haible  <bruno@clisp.org>
81413         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81414         * tests/test-locale.c: Revert previous patch related to NULL.
81415         * tests/test-stdio.c: Likewise.
81416         * tests/test-stdlib.c: Likewise.
81417         * tests/test-string.c: Likewise.
81418         * tests/test-unistd.c: Likewise.
81419         * modules/time-tests (Depends-on): Add verify.
81420         * modules/wchar-tests (Depends-on): Likewise.
81421         * tests/test-time.c: Test for NULL compliance.
81422         * tests/test-wchar.c: Likewise.
81423         * modules/locale (Depends-on): Add stddef.
81424         * modules/stdio (Depends-on): Likewise.
81425         * modules/stdlib (Depends-on): Likewise.
81426         * modules/string (Depends-on): Likewise.
81427         * modules/time (Depends-on): Likewise.
81428         * modules/unistd (Depends-on): Likewise.
81429         * modules/wchar (Depends-on): Likewise.
81430         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81431         * lib/stdlib.in.h (includes): Likewise.
81432         * lib/string.in.h (includes): Likewise.
81433         * lib/time.in.h (includes): Likewise.
81434         * lib/unistd.in.h (includes): Likewise.
81435         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81436         replaced.
81437         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81438         * m4/stddef_h.m4: New file.
81439         * modules/stddef: Likewise.
81440         * lib/stddef.in.h: Likewise.
81441         * modules/stddef-tests: Likewise.
81442         * tests/test-stddef.c: Likewise.
81443         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81444         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81445         * doc/posix-headers/locale.texi (locale.h): Likewise.
81446         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81447         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81448         * doc/posix-headers/string.texi (string.h): Likewise.
81449         * doc/posix-headers/time.texi (time.h): Likewise.
81450         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81451         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
81453 2009-08-14  Eric Blake  <ebb9@byu.net>
81455         doc: improve git diff of texinfo files
81456         * .gitattributes: Add rule for *.texi files, with hint on how to
81457         use it.
81458         Copied from m4, and based on a report by Bruno Haible.
81460 2009-08-14  Bruno Haible  <bruno@clisp.org>
81462         Disable multithread support by default on Cygwin 1.5.x for real.
81463         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
81465 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81467         update-copyright: much ado about intervals
81468         * build-aux/update-copyright: Implement and document
81469         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
81470         of copyright year intervals.
81471         Also, document UPDATE_COPYRIGHT_YEAR.
81472         * tests/test-update-copyright.sh: Test it.
81474         update-copyright: convert 2-digit to 4-digit years
81475         * build-aux/update-copyright: Implement and document.
81476         * tests/test-update-copyright.sh: Update.
81478 2009-08-14  Jim Meyering  <meyering@redhat.com>
81480         test-exclude: avoid coreutils "make check" failure
81481         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
81482         just as in test-argmatch.c.
81484 2009-08-13  Eric Blake  <ebb9@byu.net>
81486         test-dup2: fix bad assumption
81487         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
81488         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
81490         test-version-etc: fix CRLF portability issue
81491         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
81492         recognize \r.
81493         * tests/test-argp-version-etc-1.sh: Likewise.
81495         getopt: update client modules
81496         * modules/argp (Depends-on): Use getopt-gnu.
81497         * modules/git-merge-changelog (Depends-on): Likewise.
81498         * modules/long-options (Depends-on): Likewise.
81499         * modules/xstrtol (Depends-on): Likewise.
81501 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81503         * tests/test-version-etc.sh: Don't fail on different
81504         project/version.  Don't fail on CRLF differences.  Rewrite to use
81505         multiple -e instead of multiple sed forks, suggested by Eric Blake
81506         <ebb9@byu.net>.
81507         * tests/test-argp-version-etc-1.sh: Likewise.
81509 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81511         * tests/test-version-etc.sh: Don't fail on different
81512         project/version.
81514 2009-08-12  Bruno Haible  <bruno@clisp.org>
81516         Tests for modules 'getopt-posix', 'getopt-gnu'.
81517         * modules/getopt-posix-tests: New file.
81518         * tests/test-getopt.c: New file.
81519         * tests/test-getopt.h: New file.
81520         * tests/test-getopt_long.h: New file.
81522         New modules 'getopt-posix', 'getopt-gnu'.
81523         * modules/getopt-gnu: New file, renamed from modules/getopt.
81524         * modules/getopt-posix: New file.
81525         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
81526         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
81527         (gl_GETOPT): Remove macro.
81528         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
81529         Disable the test against BSD systems that declare optreset. Test
81530         against mingw bug. Test against lack of support of optional arguments
81531         on many platforms.
81532         * doc/glibc-headers/getopt.texi: Update module name and list of
81533         relevant platforms.
81534         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
81535         'getopt-gnu' and more portability problems.
81536         * NEWS: Mention the changes.
81538 2009-08-12  Bruno Haible  <bruno@clisp.org>
81540         Ensure that optarg etc. get declared by <unistd.h>.
81541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
81542         AC_USE_SYSTEM_EXTENSIONS.
81543         * modules/getopt (Depends-on): Add 'extensions'.
81545 2009-08-12  Bruno Haible  <bruno@clisp.org>
81547         Avoid test link errors.
81548         * modules/pipe-filter-ii-tests (Makefile.am): Define
81549         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
81550         * modules/pipe-filter-gi-tests (Makefile.am): Define
81551         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
81552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81554 2009-08-12  Bruno Haible  <bruno@clisp.org>
81556         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
81557         gl_GETOPT_SUBSTITUTE before.
81558         (gl_GETOPT): Use it.
81559         * m4/argp.m4 (gl_ARGP): Update.
81560         Reported by Sergey Poznyakoff.
81562         * m4/getopt.m4: Reorder macros.
81563         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
81564         (gl_GETOPT_SUBSTITUTE): Remove macro.
81566 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81568         Minor improvement in gitlog-to-changelog
81570         * build-aux/gitlog-to-changelog: New option `--format' makes
81571         output format string configurable.
81573 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81575         Optimize exclude: use hash tables for non-wildcard patterns.
81577         * lib/exclude.c: Include hash.h and mbuiter.h
81578         (struct exclude_pattern, exclude_segment): New data types.
81579         (struct exclude): Rewrite.
81580         (fnmatch_pattern_has_wildcards): New function.
81581         (new_exclude_segment, free_exclude_segment): New functions.
81582         (excluded_file_pattern_p, excluded_file_name_p): New functions.
81583         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
81584         * lib/exclude.h (is_fnmatch_pattern): New prototype.
81585         * modules/exclude: Depend on hash and mbuiter.
81587         * modules/exclude-tests: New file.
81588         * tests/test-exclude.c: New file.
81589         * tests/test-exclude1.sh: New file.
81590         * tests/test-exclude2.sh: New file.
81591         * tests/test-exclude3.sh: New file.
81592         * tests/test-exclude4.sh: New file.
81593         * tests/test-exclude5.sh: New file.
81594         * tests/test-exclude6.sh: New file.
81595         * tests/test-exclude7.sh: New file.
81597 2009-08-12  Bruno Haible  <bruno@clisp.org>
81599         Ensure that getopt() gets declared by <unistd.h>.
81600         * lib/unistd.in.h: Conditionally include getopt.h.
81601         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
81602         Set GNULIB_UNISTD_H_GETOPT.
81603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81604         GNULIB_UNISTD_H_GETOPT.
81605         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
81607 2009-08-12  Bruno Haible  <bruno@clisp.org>
81609         Clarify logic.
81610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
81611         gl_replace_getopt instead of GETOPT_H.
81613 2009-08-12  Bruno Haible  <bruno@clisp.org>
81615         * m4/getopt.m4: Add comments.
81617 2009-08-12  Bruno Haible  <bruno@clisp.org>
81619         Disable multithread support by default on Cygwin 1.5.x.
81620         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
81621         set gl_use_threads=no if not specified otherwise.
81623 2009-08-11  Bruno Haible  <bruno@clisp.org>
81625         Avoid compilation error on NetBSD 5.0.
81626         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
81627         * tests/test-stdio.c: Likewise.
81628         * tests/test-stdlib.c: Likewise.
81629         * tests/test-string.c: Likewise.
81630         * tests/test-unistd.c: Likewise.
81631         Reported by Greg Troxel <gdt@ir.bbn.com>
81632         at <https://savannah.gnu.org/support/?106973>.
81634 2009-08-11  Bruno Haible  <bruno@clisp.org>
81636         * modules/dup2-tests (Depends-on): Remove close.
81638         Undo 2009-07-19 commit.
81639         * modules/acl-tests (Depends-on): Remove close.
81640         * modules/binary-io-tests (Depends-on): Likewise.
81641         * modules/closein-tests (Depends-on): Likewise.
81642         * modules/flock-tests (Depends-on): Likewise.
81643         * modules/fsync-tests (Depends-on): Likewise.
81644         * modules/lseek-tests (Depends-on): Likewise.
81645         * modules/pipe-tests (Depends-on): Likewise.
81646         * modules/posix_spawn-tests (Depends-on): Likewise.
81647         * modules/posix_spawnp-tests (Depends-on): Likewise.
81648         * modules/stat-time-tests (Depends-on): Likewise.
81649         * modules/yesno-tests (Depends-on): Likewise.
81651 2009-08-10  Bruno Haible  <bruno@clisp.org>
81653         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
81655 2009-08-10  Bruno Haible  <bruno@clisp.org>
81657         Fix a gcc warning.
81658         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
81660 2009-08-10  Bruno Haible  <bruno@clisp.org>
81662         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81663         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81664         not only the first time.
81665         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81666         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81667         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81668         is 1, not only the first time.
81670 2009-08-10  Bruno Haible  <bruno@clisp.org>
81672         Make it possible to use module 'gethostname' without module 'close'.
81673         * lib/unistd.in.h (close): Evoke a link error only if
81674         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81676         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81677         * modules/unistd (Makefile.am): Substitute
81678         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81679         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81680         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81681         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81682         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81683         * modules/sys_ioctl (Makefile.am): Substitute
81684         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81685         * modules/socket (configure.ac): On native Windows, set
81686         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81687         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81688         Reported by Sam Steingold <sds@gnu.org>.
81690 2009-08-10  Bruno Haible  <bruno@clisp.org>
81692         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81693         * modules/ioctl (configure.ac): Likewise.
81695 2009-08-10  Bruno Haible  <bruno@clisp.org>
81697         Avoid collision between gnulib wrapper and libintl wrapper.
81698         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81699         already defined in intl/printf.c.
81700         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81701         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81703 2009-08-09  Bruno Haible  <bruno@clisp.org>
81705         Make <sys/select.h> really self-contained, also on Solaris 10.
81706         * lib/sys_select.in.h: Include <string.h>.
81707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81708         Solaris 10 problem.
81709         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81710         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81711         Reported by Jim Meyering.
81713 2009-08-09  Bruno Haible  <bruno@clisp.org>
81715         Avoid warnings from 'aclocal' that are due to a use of macro name
81716         AM_XGETTEXT_OPTION that is not defined in automake.
81717         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81718         automake.
81719         * modules/error (configure.ac): Likewise.
81720         * modules/propername (configure.ac): Likewise.
81721         * modules/vasprintf (configure.ac): Likewise.
81722         * modules/verror (configure.ac): Likewise.
81723         * modules/xprintf (configure.ac): Likewise.
81724         * modules/xvasprintf (configure.ac): Likewise.
81726 2009-08-08  Bruno Haible  <bruno@clisp.org>
81728         Avoid compilation error in C++ mode.
81729         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81730         Reported by Sam Steingold <sds@gnu.org>.
81732 2009-08-08  Bruno Haible  <bruno@clisp.org>
81734         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81735         for the various Unix platforms.
81736         * doc/posix-headers/limits.texi: Update platforms list regarding
81737         HOST_NAME_MAX.
81738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81740 2009-08-07  Jim Meyering  <meyering@redhat.com>
81742         selinux-at: fix typo in a comment
81743         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81744         Spotted by Paolo Bonzini.
81746         selinux-at: remove redundant m4 code, add documentation
81747         * modules/selinux-at (configure.ac): Remove redundant code.
81748         LIB_SELINUX is already set via the dependent module, selinux-h.
81749         (Include): Add quotes around selinux-at.h.
81750         * lib/selinux-at.h: Add documentation.
81751         Reported by Bruno Haible in
81752         http://marc.info/?l=gnulib-bug&m=124958988300749
81754 2009-08-07  Bruno Haible  <bruno@clisp.org>
81756         Avoid link error on MacOS X 10.3 and 10.4.
81757         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81758         on non-ELF systems.
81759         * lib/argp-pv.c (argp_program_version): Likewise.
81760         Reported by Simon Josefsson.
81762 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81764         * tests/test-version-etc.sh: Use $EXEEXT.
81766 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81768         update-copyright: update documentation to point to maint.mk
81769         * build-aux/update-copyright: Here.
81771 2009-08-06  Jim Meyering  <meyering@redhat.com>
81773         maint.mk: support update-copyright-local
81774         * top/maint.mk (update-copyright-local): Define place-holder.
81775         (update-copyright): Depend on $(update-copyright-local).
81777 2009-08-06  Jim Meyering  <meyering@redhat.com>
81779         selinux-at: new module
81780         Initially written for coreutils, this module will soon be
81781         used by findutils, too.
81782         * MODULES.html.sh [Misc]: Add selinux-at.
81783         * lib/selinux-at.h: New file, from coreutils.
81784         * lib/selinux-at.c: Likewise.
81785         * modules/selinux-at: Likewise.
81786         (License): Change from LGPL to GPL, since it depends
81787         on the GPL'd openat module.
81789         doc: update README
81790         * README: Remove references to cogito.
81791         Remove cvs-repo-updating instructions from 2007.
81792         Don't imply that CVS is better if you have limited disk space.
81794 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81796         update-copyright: support C-style comments
81797         * build-aux/update-copyright: Implement and document.
81798         * tests/test-update-copyright.sh: Test.
81800 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81802         update-copyright: support omitted "(C)"
81803         * build-aux/update-copyright: Implement and document.  Also,
81804         allow variable whitespace before "(C)".
81805         * tests/test-update-copyright.sh: Test.
81807 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81809         update-copyright: don't trip on non-FSF copyright statements
81810         * build-aux/update-copyright: Fix so that the first correctly
81811         formatted FSF copyright statement is recognized no matter what
81812         appears before it.  Update documentation.
81813         * tests/test-update-copyright.sh: Test that.
81815 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81817         update-copyright: clean up code a little
81818         * build-aux/update-copyright: Append "_re" to the name of any
81819         variable holding a regular expression.
81820         Replace "old" and "new" with "stmt" in variable names.
81821         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81822         handled correctly.
81823         Format code more consistently.
81825 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81827         update-copyright-tests: improve portability
81828         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81829         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81831 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81833         update-copyright: support @copyright{} and &copy;
81834         * build-aux/update-copyright: Implement and document.
81835         * tests/test-update-copyright.sh: Test.
81837 2009-08-04  Jim Meyering  <meyering@redhat.com>
81839         update-copyright-tests: correctly test EOL=\r\n handling
81840         * tests/test-update-copyright.sh: Put \r at the end of some lines
81841         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81843         maint.mk: make update-copyright exclusion list more configurable
81844         * top/maint.mk (update-copyright): Default to excluding COPYING,
81845         but allow an override, in case someone does want to update that file.
81847         maint.mk: don't update copyright date in COPYING
81848         * top/maint.mk (update-copyright): Exclude COPYING.
81850         maint.mk: add a copyright-updating rule
81851         * top/maint.mk (update-copyright): New rule.
81852         Derived from coreutils/Makefile.am.
81854         update-copyright: rename some variables
81855         * build-aux/update-copyright: Rename a few variables for clarity.
81856         Tweak syntax.  List Joel E. Denny as coauthor.
81858 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81860         update-copyright: fix bug for 2-digit last year and add tests
81861         * build-aux/update-copyright: Fix bug.
81862         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81863         specified.
81864         * modules/update-copyright-tests: New
81865         * tests/test-update-copyright.sh: New.
81867 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81869         update-copyright: handle leading tabs in line prefix
81870         * build-aux/update-copyright: Count leading tabs as 8 spaces
81871         when computing margin.  This helps with the formatting of
81872         ChangeLogs, for example.
81873         Fix documentation a little.
81875 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81877         update-copyright: support EOL=\r\n
81878         * build-aux/update-copyright: Implement that.
81880 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81882         update-copyright: automatically format copyright statements
81883         * build-aux/update-copyright: Implement that.
81884         Also, be a little more predictable and safer by always failing
81885         when the full copyright format is not perfectly recognized as an
81886         unbroken whole.  Discussed at
81887         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81888         Rewrite documentation.
81890 2009-08-03  Bruno Haible  <bruno@clisp.org>
81892         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81894 2009-08-02  Bruno Haible  <bruno@clisp.org>
81896         Tests for module 'uname'.
81897         * modules/uname-tests: New file.
81898         * tests/test-uname.c: New file.
81900         New module 'uname'.
81901         * lib/uname.c: New file.
81902         * m4/uname.m4: New file.
81903         * modules/uname: New file.
81904         * doc/posix-functions/uname.texi: Mention the new module.
81906 2009-08-02  Bruno Haible  <bruno@clisp.org>
81908         Tests for module 'sys_utsname'.
81909         * modules/sys_utsname-tests: New file.
81910         * tests/test-sys_utsname.c: New file.
81912         New module 'sys_utsname'.
81913         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81914         * m4/sys_utsname_h.m4: New file.
81915         * modules/sys_utsname: New file.
81916         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81918 2009-08-02  Bruno Haible  <bruno@clisp.org>
81920         Implicitly initialize the sockets library.
81921         * lib/gethostname.c: Include sockets.h.
81922         (rpl_gethostname): Invoke gl_sockets_startup.
81923         * lib/socket.c: Include sockets.h.
81924         (rpl_socket): Invoke gl_sockets_startup.
81925         * modules/gethostname (Depends-on): Add sockets.
81926         * modules/socket (Depends-on): Likewise.
81927         * tests/test-poll.c: Don't include sockets.h.
81928         (main): Don't invoke gl_sockets_startup.
81929         * tests/test-select.c: Don't include sockets.h.
81930         (main): Don't invoke gl_sockets_startup.
81932 2009-08-02  Bruno Haible  <bruno@clisp.org>
81934         Allow multiple calls to gl_sockets_startup.
81935         * lib/sockets.c (initialized_sockets_version): New variable.
81936         (gl_sockets_startup): Do nothing if already called for this or a higher
81937         version.
81938         (gl_sockets_cleanup): Reset initialized_sockets_version.
81940 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81942         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81943         different project/version.
81945 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81946             Bruno Haible  <bruno@clisp.org>
81948         Tests for module 'pipe-filter-gi'.
81949         * modules/pipe-filter-gi-tests: New file.
81950         * tests/test-pipe-filter-gi1.sh: New file.
81951         * tests/test-pipe-filter-gi1.c: New file.
81952         * tests/test-pipe-filter-gi2.sh: New file.
81953         * tests/test-pipe-filter-gi2-main.c: New file.
81954         * tests/test-pipe-filter-gi2-child.c: New file.
81956         New module 'pipe-filter-gi'.
81957         * lib/pipe-filter-gi.c: New file.
81958         * modules/pipe-filter-gi: New file.
81960 2009-08-02  Bruno Haible  <bruno@clisp.org>
81961             Paolo Bonzini  <bonzini@gnu.org>
81963         Tests for module 'pipe-filter-ii'.
81964         * modules/pipe-filter-ii-tests: New file.
81965         * tests/test-pipe-filter-ii1.sh: New file.
81966         * tests/test-pipe-filter-ii1.c: New file.
81967         * tests/test-pipe-filter-ii2.sh: New file.
81968         * tests/test-pipe-filter-ii2-main.c: New file.
81969         * tests/test-pipe-filter-ii2-child.c: New file.
81971         New module 'pipe-filter-ii'.
81972         * lib/pipe-filter.h: New file.
81973         * lib/pipe-filter-ii.c: New file.
81974         * lib/pipe-filter-aux.h: New file.
81975         * modules/pipe-filter-ii: New file.
81977 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81979         * lib/gc-libgcrypt.c: Change copyright to FSF.
81980         * lib/gc-gnulib.c: Likewise.
81982 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81984         * lib/gethostname.c: Include limits.h.
81986 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81987             Bruno Haible  <bruno@clisp.org>
81989         Ensure HOST_NAME_MAX as part of the gethostname module.
81990         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81991         define also HOST_NAME_MAX.
81992         * tests/test-gethostname.c: Include <limits.h>.
81993         (main): Check also HOST_NAME_MAX.
81994         * doc/posix-headers/limits.texi: Document the mingw problem.
81996 2009-08-02  Bruno Haible  <bruno@clisp.org>
81998         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81999         Add comments.
82001 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82003         * lib/gethostname.c: Add Windows wrapper.
82004         * m4/gethostname.m4: Look for gethostname in -lws2_32.
82005         * modules/gethostname: Depend on sys_socket & errno, for also
82006         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
82007         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
82009 2009-07-31  Jim Meyering  <meyering@redhat.com>
82011         getloadavg: fix symbol name in comment
82012         * lib/getloadavg.c: Correct a typo I introduced when adding
82013         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
82014         Matt Kraai spotted the problem.
82016 2009-07-29  Matt Kraai  <mkraai@beckman.com>
82018         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
82019         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
82020         code also if ! defined N_NAME_POINTER.
82021         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
82022         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
82023         but the n_name member is a 12-byte array.
82025 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
82027         update-copyright: generalize comment handling
82028         * build-aux/update-copyright: Handle copyright statements
82029         within more comment styles.
82030         Document usage.
82031         Report any file with an external copyright holder or parse failure.
82033 2009-07-29  Jim Meyering  <meyering@redhat.com>
82035         mktime: correct setting of REPLACE_MKTIME
82036         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
82038         update-copyright: new module
82039         * modules/update-copyright: New file.
82040         * build-aux/update-copyright: New file.
82041         * MODULES.html.sh (maint+release support): Add update-copyright.
82043 2009-07-27  Bruno Haible  <bruno@clisp.org>
82045         Fix compilation error when <ctime> is used and mktime is replaced.
82046         * lib/time.in.h (mktime): New declaration.
82047         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
82048         REPLACE_MKTIME instead of defining mktime in config.h.
82049         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
82050         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
82051         Reported by Ross McFarland <rwmcfa1@neces.com>.
82053 2009-07-27  Bruno Haible  <bruno@clisp.org>
82055         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
82056         Reported by Matt Kraai <mkraai@beckman.com>.
82058 2009-07-25  Jim Meyering  <meyering@redhat.com>
82060         maint.mk: avoid warnings about missing files
82061         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
82062         diagnostic when .prev-version does not exist.
82063         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
82064         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
82065         nonexistent cfg.mk.
82066         Suggestions from Simon Josefsson.
82068 2009-07-25  Bruno Haible  <bruno@clisp.org>
82070         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
82071         defined as macros. Needed on QNX 6.4.1.
82072         Reported by Matt Kraai <mkraai@beckman.com>.
82074 2009-07-23  Jim Meyering  <meyering@redhat.com>
82076         maint.mk: invoke "make dist" with a working value of XZ_OPT
82077         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
82079 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
82081         Make fseeko.c compile on QNX.
82082         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
82084 2009-07-22  Peter Simons  <simons@cryp.to>
82086         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
82087         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
82088         * lib/md4.h: Likewise.
82089         * lib/md5.h: Likewise.
82090         * lib/sha1.h: Likewise.
82091         * lib/sha256.h: Likewise.
82092         * lib/sha512.h: Likewise.
82094         tests-sha1: don't assign literal string to 'char *' variable
82095         * tests/test-sha1.c (main): Declare locals with "const" to match
82096         attributes of the right hand side.
82098 2009-07-21  Eric Blake  <ebb9@byu.net>
82100         dup2: fix more mingw problems
82101         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
82102         fd to itself.
82103         * doc/posix-functions/dup2.texi (dup2): Document the bug.
82104         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
82105         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
82106         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
82107         care of mingw bugs.
82109 2009-07-21  Jim Meyering  <meyering@redhat.com>
82111         vc-list-files: avoid failure when /bin/sh is dash
82112         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
82113         On some Debian based systems, /bin/sh is a symlink to dash, and running
82114         this command would omit the "/" following each 'tests' prefix:
82115           dash -x build-aux/vc-list-files -C . tests
82116         That is because bash and dash work differently:
82117           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
82118           bash ok
82119           dash odd
82121 2009-07-21  Eric Blake  <ebb9@byu.net>
82123         dup2-tests: test previous patch
82124         * modules/dup2-tests: New file.
82125         * tests/test-dup2.c: Likewise.
82126         * tests/test-open.c (main): Avoid unspecified behavior.
82127         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
82128         test.
82130         dup2: work around mingw and cygwin 1.5 bug
82131         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
82132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
82133         * modules/unistd (Makefile.am): Substitute it.
82134         * lib/unistd.in.h (dup2): Declare the replacement.
82135         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
82136         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
82137         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
82138         * modules/execute (Depends-on): Add dup2.
82139         * modules/fseterr (Depends-on): Likewise.
82140         * modules/pipe (Depends-on): Likewise.
82141         * modules/posix_spawn-internal (Depends-on): Likewise.
82143 2009-07-21  Bruno Haible  <bruno@clisp.org>
82145         * modules/.gitattributes: New file.
82147 2009-07-20  Bruno Haible  <bruno@clisp.org>
82149         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
82150         (main): Use it.
82152 2009-07-20  Eric Blake  <ebb9@byu.net>
82154         test-pipe: make a bit more robust.
82155         * tests/test-pipe.c (myerr): Allow error messages regardless of
82156         what we do to stderr.
82157         (test_pipe): Rearrange to avoid deadlock.
82158         (child_main): Try a larger read, to ensure we avoided deadlock.
82159         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
82160         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
82161         if misused.
82163 2009-07-19  Jim Meyering  <meyering@redhat.com>
82165         fts: avoid false-positive cycle-detection
82166         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
82167         for each new command line argument.
82169 2009-07-19  Bruno Haible  <bruno@clisp.org>
82171         Fix build error on mingw with the modules sys_select and unistd.
82172         * modules/acl-tests (Depends-on): Add close.
82173         * modules/binary-io-tests (Depends-on): Likewise.
82174         * modules/closein-tests (Depends-on): Likewise.
82175         * modules/flock-tests (Depends-on): Likewise.
82176         * modules/fsync-tests (Depends-on): Likewise.
82177         * modules/lseek-tests (Depends-on): Likewise.
82178         * modules/pipe-tests (Depends-on): Likewise.
82179         * modules/posix_spawn-tests (Depends-on): Likewise.
82180         * modules/posix_spawnp-tests (Depends-on): Likewise.
82181         * modules/stat-time-tests (Depends-on): Likewise.
82182         * modules/yesno-tests (Depends-on): Likewise.
82184 2009-07-19  Bruno Haible  <bruno@clisp.org>
82186         Unify conditionals.
82187         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
82188         macros, not at the compiler macros.
82189         * lib/pipe.c: Likewise.
82190         * lib/execute.c: Likewise.
82191         * lib/spawni.c: Likewise.
82193 2009-07-19  Bruno Haible  <bruno@clisp.org>
82195         Fix handling of closed stdin/stdout/stderr on mingw.
82196         * lib/w32spawn.h: Include unistd.h.
82197         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
82198         file descriptor with O_NOINHERIT flag.
82199         (fd_safer_noinherit): New function, based on fd-safer.c.
82200         (dup_safer_noinherit): New function, based on dup-safer.c.
82201         (undup_safer_noinherit): New function.
82202         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
82203         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
82204         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
82205         instead of fd_safer.
82206         * tests/test-pipe.c: Include <windows.h>.
82207         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
82208         result.
82210         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
82211         from main.
82212         (test_pipe): Pass an extra argument for disambiguation.
82213         (main): Invoke parent_main or child_main.
82215         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
82216         consistently.
82218 2009-07-18  Eric Blake  <ebb9@byu.net>
82220         test-pipe: fix mingw build
82221         * tests/test-pipe.c (main): Avoid fcntl on mingw.
82223 2009-07-18  Bruno Haible  <bruno@clisp.org>
82225         * modules/pipe-tests (Makefile.am): Fix typo.
82227 2009-07-18  Eric Blake  <ebb9@byu.net>
82229         error: fix mingw build
82230         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
82231         Reported by Bruno Haible.
82233         error: avoid undefined use of stdout
82234         * lib/error.c (error, error_at_line): Check that fd 1 is open
82235         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
82236         is handling faults and the close_stdout module wants to report the
82237         detection of closed stdout as an error.
82239 2009-07-17  Eric Blake  <ebb9@byu.net>
82241         pipe: be robust in face of closed fds
82242         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
82243         should cause child to misbehave.
82244         * modules/pipe-tests: New module.
82245         * tests/test-pipe.c: New file.
82246         * tests/test-pipe.sh: New file.
82247         Reported by Akim Demaille.
82249 2009-07-14  Bruno Haible  <bruno@clisp.org>
82251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
82252         Reported by anonymous kc.
82254 2009-07-07  Jim Meyering  <meyering@redhat.com>
82256         maint.mk: don't look for translatable strings in *.m4 or *.mk
82257         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
82258         when searching for translatable strings.
82260 2009-07-05  Jim Meyering  <meyering@redhat.com>
82262         remove superfluous parentheses in STREQ definition
82263         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
82264         * lib/getugroups.c (STREQ): Likewise.
82265         * lib/fnmatch.c (STREQ): Likewise.
82266         Spotted by Bruno Haible.
82268 2009-07-04  Jim Meyering  <meyering@redhat.com>
82270         argv-iter: new module
82271         * MODULES.html.sh: Add argv-iter.
82272         * lib/argv-iter.c, lib/argv-iter.h: New files.
82273         * modules/argv-iter: New file.
82274         * modules/argv-iter-tests: New file.
82275         * tests/test-argv-iter.c: Test it.
82277 2009-07-04  Bruno Haible  <bruno@clisp.org>
82279         Fix assertion.
82280         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
82281         contains more exact copies of a given entry than file2, leave the extra
82282         copies unpaired rather than aborting.
82283         Reported by Eric Blake.
82285 2009-07-02  Bruno Haible  <bruno@clisp.org>
82287         Speedup git-merge-changelog for git cherry-pick.
82288         * lib/git-merge-changelog.c (struct entries_mapping): New type.
82289         (entries_mapping_get): New function, extracted from compute_mapping.
82290         (entries_mapping_reverse_get): New function.
82291         (compute_mapping): Add a 'full' argument. Return the result in a
82292         'struct entries_mapping'.
82293         (main): Update. Access the mappings through entries_mapping_get.
82294         Reported by Eric Blake.
82296 2009-07-02  Bruno Haible  <bruno@clisp.org>
82298         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
82299         best_i.
82301 2009-07-02  Bruno Haible  <bruno@clisp.org>
82303         Speed up approximate search for matching ChangeLog entries.
82304         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
82305         argument. Call fstrcmp_bounded instead of fstrcmp.
82306         (compute_mapping, try_split_merged_entry, main): Update callers.
82308 2009-07-02  Bruno Haible  <bruno@clisp.org>
82310         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
82312 2009-06-30  Bruno Haible  <bruno@clisp.org>
82314         Reduce the number of uc_is_cased calls.
82315         * lib/unicase.h (casing_suffix_context_t): Add
82316         'first_char_except_ignorable' field.
82317         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
82318         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
82319         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
82320         Update initializer.
82321         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
82322         case-ignorable characters.
82323         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
82324         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
82325         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
82326         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
82327         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
82329 2009-06-30  Bruno Haible  <bruno@clisp.org>
82331         Tests for module 'unicase/ignorable'.
82332         * modules/unicase/ignorable-tests: New file.
82333         * tests/unicase/test-ignorable.c: New file, generated by
82334         gen-uni-tables.
82336         Tests for module 'unicase/cased'.
82337         * modules/unicase/cased-tests: New file.
82338         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
82339         * tests/unicase/test-predicate-part1.h: New file, derived from
82340         tests/unictype/test-predicate-part1.h.
82341         * tests/unicase/test-predicate-part2.h: New file, same as
82342         tests/unictype/test-predicate-part2.h.
82344         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82345         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82346         (output_casing_properties): New function.
82347         (main): Call it.
82348         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82349         * lib/unicase/cased.c: Include unictype/bitmap.h.
82350         (uc_is_cased): Define through a bitmap lookup.
82351         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82352         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82353         (uc_is_case_ignorable): Define through a bitmap lookup.
82354         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82355         lib/unictype/bitmap.h.
82356         (Depends-on): Add inline. Clean up.
82357         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82358         lib/unictype/bitmap.h.
82359         (Depends-on): Add inline. Clean up.
82360         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82361         recognition.
82362         * tests/unicase/test-u16-tolower.c (main): Likewise.
82363         * tests/unicase/test-u32-tolower.c (main): Likewise.
82365 2009-06-30  Bruno Haible  <bruno@clisp.org>
82367         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82368         * lib/unicase/u16-casemap.c: Likewise.
82369         * lib/unicase/u32-casemap.c: Likewise.
82371 2009-06-29  Bruno Haible  <bruno@clisp.org>
82373         Define u32_casefold as a wrapper around u32_ct_casefold.
82374         * lib/unicase/u32-casefold.c: Update.
82375         * modules/unicase/u32-casefold (Depends-on): Add
82376         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82377         unicase/empty-suffix-context. Clean up.
82379         Define u16_casefold as a wrapper around u16_ct_casefold.
82380         * lib/unicase/u16-casefold.c: Update.
82381         * modules/unicase/u16-casefold (Depends-on): Add
82382         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82383         unicase/empty-suffix-context. Clean up.
82385         Define u8_casefold as a wrapper around u8_ct_casefold.
82386         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82387         * lib/unicase/u8-casefold.c: Update.
82388         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82389         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82391         Define u32_totitle as a wrapper around u32_ct_totitle.
82392         * lib/unicase/u32-totitle.c: Update.
82393         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82394         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82396         Define u16_totitle as a wrapper around u16_ct_totitle.
82397         * lib/unicase/u16-totitle.c: Update.
82398         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82399         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82401         Define u8_totitle as a wrapper around u8_ct_totitle.
82402         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82403         functions.
82404         (FUNC): Delegate to U_CT_TOTITLE.
82405         * lib/unicase/u8-totitle.c: Update.
82406         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82407         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82409         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82410         invocation.
82411         * modules/unicase/u32-tolower (Depends-on): Add
82412         unicase/empty-prefix-context, unicase/empty-suffix-context.
82414         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82415         invocation.
82416         * modules/unicase/u16-tolower (Depends-on): Add
82417         unicase/empty-prefix-context, unicase/empty-suffix-context.
82419         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82420         * modules/unicase/u8-tolower (Depends-on): Add
82421         unicase/empty-prefix-context, unicase/empty-suffix-context.
82423         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82424         invocation.
82425         * modules/unicase/u32-toupper (Depends-on): Add
82426         unicase/empty-prefix-context, unicase/empty-suffix-context.
82428         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82429         invocation.
82430         * modules/unicase/u16-toupper (Depends-on): Add
82431         unicase/empty-prefix-context, unicase/empty-suffix-context.
82433         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82434         * modules/unicase/u8-toupper (Depends-on): Add
82435         unicase/empty-prefix-context, unicase/empty-suffix-context.
82437         New module 'unicase/u32-ct-casefold'.
82438         * lib/unicase/u32-ct-casefold.c: New file.
82439         * modules/unicase/u32-ct-casefold: New file.
82441         New module 'unicase/u16-ct-casefold'.
82442         * lib/unicase/u16-ct-casefold.c: New file.
82443         * modules/unicase/u16-ct-casefold: New file.
82445         New module 'unicase/u8-ct-casefold'.
82446         * lib/unicase/u8-ct-casefold.c: New file.
82447         * lib/unicase/u-ct-casefold.h: New file, derived from
82448         lib/unicase/u-casefold.h.
82449         * modules/unicase/u8-ct-casefold: New file.
82451         New module 'unicase/u32-ct-totitle'.
82452         * lib/unicase/u32-ct-totitle.c: New file.
82453         * modules/unicase/u32-ct-totitle: New file.
82455         New module 'unicase/u16-ct-totitle'.
82456         * lib/unicase/u16-ct-totitle.c: New file.
82457         * modules/unicase/u16-ct-totitle: New file.
82459         New module 'unicase/u8-ct-totitle'.
82460         * lib/unicase/u8-ct-totitle.c: New file.
82461         * lib/unicase/u-ct-totitle.h: New file, derived from
82462         lib/unicase/u-totitle.h.
82463         * modules/unicase/u8-ct-totitle: New file.
82465         New module 'unicase/u32-ct-tolower'.
82466         * lib/unicase/u32-ct-tolower.c: New file.
82467         * modules/unicase/u32-ct-tolower: New file.
82469         New module 'unicase/u16-ct-tolower'.
82470         * lib/unicase/u16-ct-tolower.c: New file.
82471         * modules/unicase/u16-ct-tolower: New file.
82473         New module 'unicase/u8-ct-tolower'.
82474         * lib/unicase/u8-ct-tolower.c: New file.
82475         * modules/unicase/u8-ct-tolower: New file.
82477         New module 'unicase/u32-ct-toupper'.
82478         * lib/unicase/u32-ct-toupper.c: New file.
82479         * modules/unicase/u32-ct-toupper: New file.
82481         New module 'unicase/u16-ct-toupper'.
82482         * lib/unicase/u16-ct-toupper.c: New file.
82483         * modules/unicase/u16-ct-toupper: New file.
82485         New module 'unicase/u8-ct-toupper'.
82486         * lib/unicase/u8-ct-toupper.c: New file.
82487         * modules/unicase/u8-ct-toupper: New file.
82489         Add context arguments to u*_casemap functions.
82490         * lib/unicase/unicasemap.h: Include unicase.h.
82491         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
82492         suffix_context arguments.
82493         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
82494         functions.
82495         (FUNC): Add prefix_context and suffix_context arguments. Use
82496         uc_is_cased and uc_is_case_ignorable.
82497         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
82498         * lib/unicase/u16-casemap.c: Likewise.
82499         * lib/unicase/u32-casemap.c: Likewise.
82500         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
82501         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82502         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
82503         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82504         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
82505         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82507         New module 'unicase/u32-suffix-context'.
82508         * lib/unicase/u32-suffix-context.c: New file.
82509         * modules/unicase/u32-suffix-context: New file.
82511         New module 'unicase/u16-suffix-context'.
82512         * lib/unicase/u16-suffix-context.c: New file.
82513         * modules/unicase/u16-suffix-context: New file.
82515         New module 'unicase/u8-suffix-context'.
82516         * lib/unicase/u8-suffix-context.c: New file.
82517         * lib/unicase/u-suffix-context.h: New file.
82518         * modules/unicase/u8-suffix-context: New file.
82520         New module 'unicase/empty-suffix-context'.
82521         * lib/unicase/empty-suffix-context.c: New file.
82522         * modules/unicase/empty-suffix-context: New file.
82524         New module 'unicase/u32-prefix-context'.
82525         * lib/unicase/u32-prefix-context.c: New file.
82526         * modules/unicase/u32-prefix-context: New file.
82528         New module 'unicase/u16-prefix-context'.
82529         * lib/unicase/u16-prefix-context.c: New file.
82530         * modules/unicase/u16-prefix-context: New file.
82532         New module 'unicase/u8-prefix-context'.
82533         * lib/unicase/u8-prefix-context.c: New file.
82534         * lib/unicase/u-prefix-context.h: New file.
82535         * lib/unicase/context.h: New file.
82536         * modules/unicase/u8-prefix-context: New file.
82538         New module 'unicase/empty-prefix-context'.
82539         * lib/unicase/empty-prefix-context.c: New file.
82540         * modules/unicase/empty-prefix-context: New file.
82542         New module 'unicase/ignorable'.
82543         * lib/unicase/ignorable.c: New file.
82544         * modules/unicase/ignorable: New file.
82546         New module 'unicase/cased'.
82547         * lib/unicase/caseprop.h: New file.
82548         * lib/unicase/cased.c: New file.
82549         * modules/unicase/cased: New file.
82551         New functions for case mapping of substrings.
82552         * lib/unicase.h (casing_prefix_context_t): New type.
82553         (unicase_empty_prefix_context): New variable.
82554         (u8_casing_prefix_context, u16_casing_prefix_context,
82555         u32_casing_prefix_context, u8_casing_prefixes_context,
82556         u16_casing_prefixes_context, u32_casing_prefixes_context): New
82557         declarations.
82558         (casing_suffix_context_t): New type.
82559         (unicase_empty_suffix_context): New variable.
82560         (u8_casing_suffix_context, u16_casing_suffix_context,
82561         u32_casing_suffix_context, u8_casing_suffixes_context,
82562         u16_casing_suffixes_context, u32_casing_suffixes_context,
82563         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
82564         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
82565         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
82566         declarations.
82568 2009-06-28  Jim Meyering  <meyering@redhat.com>
82570         boostrap: indent only with spaces
82571         * build-aux/bootstrap: Indent only with spaces, never TABs.
82573         bootstrap: split long lines
82574         * build-aux/bootstrap: Keep line length < 80.
82576         bootstrap: sync from coreutils
82577         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
82578         just as autoreconf does.  Verify a list of prerequisite
82579         package-name,version-number pairs if defined in bootstrap.conf.
82580         Refer to README-prereq, if prerequisites are not satisfied.
82582 2009-06-27  Eric Blake  <ebb9@byu.net>
82584         tests: add test for bogus NULL definition
82585         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
82586         * tests/test-stdlib.c: Likewise.
82587         * tests/test-string.c: Likewise.
82588         * tests/test-locale.c: Likewise.
82589         * tests/test-unistd.c: Likewise.
82590         * modules/stdio-tests (Depends-on): Add verify.
82591         * modules/stdlib-tests (Depends-on): Likewise.
82592         * modules/string-tests (Depends-on): Likewise.
82593         * modules/locale-tests (Depends-on): Likewise.
82594         * modules/unistd-tests (Depends-on): Likewise.
82596 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
82598         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
82599         self-explaining comment.
82600         * m4/selinux-selinux-h: Update serial.
82601         (gl_LIBSELINUX): New macro, adding a warning for missing development
82602         packages to code extracted from...
82603         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
82604         Add warning for missing development packages here, too.
82606 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
82608         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
82610 2009-06-25  Eric Blake  <ebb9@byu.net>
82612         version-etc: fix regression
82613         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
82614         gcc.
82615         (version_etc): Use it, to catch bugs with trailing NULL.
82616         * lib/version-etc.c (version_etc_arn): Delete unused argument.
82617         (version_etc_va): Fix logic bug.
82618         * modules/version-etc-tests: Add test.
82619         * tests/test-version-etc.c: New file.
82620         * tests/test-version-etc.sh: Likewise.
82622 2009-06-25  Sam Steingold  <sds@gnu.org>
82624         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
82625         mbtowc declaration.
82627 2009-06-25  Eric Blake  <ebb9@byu.net>
82629         fpurge: migrate into <stdio.h>
82630         * lib/fpurge.h: Delete...
82631         * lib/stdio.in.h (fpurge): ...and declare here, instead.
82632         * lib/fpurge.c (fpurge): Change declaring header.
82633         * modules/fpurge (Files): Drop deleted file.
82634         (Depends-on): Add stdio.
82635         (configure.ac): Set witness.
82636         * modules/stdio (Makefile.am): Support fpurge macros.
82637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82638         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
82639         * lib/fflush.c: Update client.
82640         * tests/test-fpurge.c: Likewise.
82641         * NEWS: Mention the change.
82643 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82645         * lib/argp-version-etc.c (program_authors): Add const
82646         qualifier.
82647         * lib/version-etc.c: Fix typos in the comments.
82648         * modules/argp-version-etc: Depends on version-etc.
82650 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82652         argp-version-etc: new module.
82654         * lib/argp-version-etc.c: New file.
82655         * lib/argp-version-etc.h: New file.
82656         * modules/argp-version-etc: New file.
82657         * modules/argp-version-etc-tests: New file.
82658         * tests/test-argp-version-etc.c: New test.
82659         * tests/test-argp-version-etc-1.sh: New test.
82661 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82663         Provide additional interfaces and documentation for version-etc
82664         module.
82666         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82667         interfaces.
82668         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82669         prototypes.
82671 2009-06-24  Bruno Haible  <bruno@clisp.org>
82673         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82674         HAVE_LIB${NAME} macro.
82675         Reported by Sam Steingold <sds@gnu.org>.
82677 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82679         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82680         needed.
82682 2009-06-21  Bruno Haible  <bruno@clisp.org>
82684         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82685         work.
82686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82687         together with LIB${NAME}, LTLIB${NAME}.
82688         Reported by Sam Steingold <sds@gnu.org>.
82690 2009-06-20  Jim Meyering  <meyering@redhat.com>
82692         tests: make sc_require_test_exit_idiom more generic
82693         * top/maint.mk (Exit_witness_file): New overridable variable.
82694         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82695         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82697 2009-06-19  Jim Meyering  <meyering@redhat.com>
82699         hash: reverse order of src/dst parameters in an internal interface
82700         * lib/hash.c (transfer_entries): Reverse order of parameters to
82701         put DST before SRC.  Adjust callers.
82703         tests: test-hash: avoid wholesale duplication
82704         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82705         Instead, use a loop and add a single conditional.
82707         tests: test-hash: allow seed selection via a command line argument
82708         * tests/test-hash.c (get_seed): New function.
82709         (main): Use it.
82711 2009-06-19  Eric Blake  <ebb9@byu.net>
82713         hash: avoid memory leak on allocation failure
82714         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82715         failure.  Factor repeated algorithm...
82716         (transfer_entries): ...into new helper routine.
82717         (hash_delete): React to hash_rehash return value.
82719         hash: reduce memory pressure in hash_rehash no-op case
82720         * lib/hash.c (next_prime): Avoid overflow.
82721         (hash_initialize): Factor bucket size computation...
82722         (compute_bucket_size): ...into new helper function.
82723         (hash_rehash): Use new function and open coding to reduce memory
82724         pressure, and avoid a memory leak in USE_OBSTACK code.
82725         Reported by Jim Meyering.
82727 2009-06-18  Eric Blake  <ebb9@byu.net>
82729         hash: make rotation more obvious
82730         * modules/hash (Depends-on): Add bitrotate and stdint.
82731         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82732         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82733         (SIZE_MAX): Rely on headers for definition.
82734         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82735         (raw_hasher): Use rotr_sz.
82736         Suggested by Jim Meyering.
82738         hash: fix memory leak in last patch
82739         * lib/hash.c (hash_rehash): Avoid memory leak.
82741         hash: avoid no-op rehashing
82742         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82744         hash: provide default callback functions
82745         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82746         (hash_initialize): Use them as defaults.
82747         * tests/test-hash.c (main): Test this.
82749         hash: minor optimization
82750         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82751         when possible.
82752         (hash_initialize): Document this promise.
82753         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82754         * tests/test-hash.c (hash_compare_strings): Test this.
82756 2009-06-18  Bruno Haible  <bruno@clisp.org>
82758         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82759         going to be replaced anyway.
82761 2009-06-18  Bruno Haible  <bruno@clisp.org>
82763         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82764         in one place.
82765         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82766         be replaced anyway.
82768 2009-06-18  Eric Blake  <ebb9@byu.net>
82770         hash: check for resize before insertion
82771         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82772         threshold before insertion, so that a pathological hash_rehash
82773         that fills every bucket can still trigger another rehash.
82775 2009-06-18  Jim Meyering  <meyering@redhat.com>
82777         hash-tests: add a loop around the small tests
82778         * tests/test-hash.c (main): Repeat small tests with selected
82779         small initial table sizes.
82781 2009-06-17  Eric Blake  <ebb9@byu.net>
82783         hash: minor cleanups
82784         * lib/hash.h (hash_entry): Make opaque, by moving...
82785         * lib/hash.c (hash_entry): ...here.
82786         (hash_insert): Clarify restrictions on what can be inserted.
82787         (hash_get_next): Clarify when it is safe to remove an element
82788         during traversal.
82789         (check_tuning): Skip verification when tuning is known safe.
82790         (hash_initialize): Clarify restrictions on tuning.
82792 2009-06-17  Jim Meyering  <jim@meyering.net>
82793         and Eric Blake  <ebb9@byu.net>
82795         hash-tests: new module
82796         * modules/hash-tests: New file.
82797         * tests/test-hash.c: New file.
82799 2009-06-17  Eric Blake  <ebb9@byu.net>
82801         strstr-simple: document new module
82802         * MODULES.html.sh: Document new module.
82804         strstr, strcasestr: replace on platforms with broken memchr
82805         * modules/strstr: Split into...
82806         * modules/strstr-simple: ...new module that does not care about
82807         performance, but does care about glibc bug.
82808         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82809         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82810         if platform memchr is broken, per Debian bug 521737.
82811         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82812         memchr.
82813         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82814         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82815         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82816         * modules/mountlist (Depends-on): Add strstr-simple.
82817         * modules/gen-uni-tables (Depends-on): Likewise.
82818         * modules/argz (Depends-on): Add strstr.
82820 2009-06-17  Bruno Haible  <bruno@clisp.org>
82822         * modules/posix_spawn-internal (Depends-on): Add errno.
82824 2009-06-17  Bruno Haible  <bruno@clisp.org>
82826         Define missing ESTALE on Interix 3.5.
82827         * lib/errno.in.h (ESTALE): Assign a value if missing.
82828         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82829         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82830         missing.
82831         * doc/posix-headers/errno.texi: Mention the Interix bug.
82832         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82834 2009-06-15  Eric Blake  <ebb9@byu.net>
82836         memchr, memchr2: add valgrind exception
82837         * lib/memchr.valgrind: New file.
82838         * lib/memchr2.valgrind: New file.
82839         * modules/memchr (Files): Distribute valgrind file.
82840         * modules/memchr2 (Files): Likewise.
82842         docs: memchr is no longer obsolete
82843         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82844         * lib/string.in.h (memchr): Simplify logic.
82846 2009-06-14  Jim Meyering  <meyering@redhat.com>
82848         link-follow: fix the "checking..." message to not mention trailing slash
82849         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82850         never considered trailing slashes.
82852 2009-06-14  Bruno Haible  <bruno@clisp.org>
82854         * m4/memchr.m4: Mention also the bug on IA-64.
82855         * doc/posix-functions/memchr.texi: Likewise.
82857 2009-06-12  Eric Blake  <ebb9@byu.net>
82859         memchr: detect broken x86_64 and alpha implementations
82860         * modules/memchr-tests (Depends-on): Move mmap detection...
82861         * modules/memchr (Depends-on): ...here.
82862         (configure.ac): Set indicator.
82863         * lib/string.in.h (memchr): Declare replacement.
82864         * modules/string (Makefile.am): Trigger replacement.
82865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82866         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82867         bugs.
82868         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82869         * modules/getpagesize (License): Relax license.
82871 2009-06-11  Bruno Haible  <bruno@clisp.org>
82873         * lib/idpriv.h: Add more references.
82875 2009-06-08  Bruno Haible  <bruno@clisp.org>
82877         Tests for module 'idpriv-droptemp'.
82878         * modules/idpriv-droptemp-tests: New file.
82879         * tests/test-idpriv-droptemp.sh: New file.
82880         * tests/test-idpriv-droptemp.su.sh: New file.
82881         * tests/test-idpriv-droptemp.c: New file.
82883         New module 'idpriv-droptemp'.
82884         * lib/idpriv-droptemp.c: New file.
82885         * modules/idpriv-droptemp: New file.
82887 2009-06-08  Bruno Haible  <bruno@clisp.org>
82889         Tests for module 'idpriv-drop'.
82890         * modules/idpriv-drop-tests: New file.
82891         * tests/test-idpriv-drop.sh: New file.
82892         * tests/test-idpriv-drop.su.sh: New file.
82893         * tests/test-idpriv-drop.c: New file.
82895         New module 'idpriv-drop'.
82896         * lib/idpriv.h: New file.
82897         * lib-idpriv-drop.c: New file.
82898         * m4/idpriv.m4: New file.
82899         * modules/idpriv-drop: New file.
82901 2009-06-08  Bruno Haible  <bruno@clisp.org>
82903         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82904         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82905         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82906         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82907         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82908         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82909         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82911 2009-06-08  Eric Blake  <ebb9@byu.net>
82913         test-strstr: use memory fence, when possible
82914         * tests/test-strstr.c (main): Use memory fence, in order to be
82915         more likely to trigger Debian bug 521737.
82916         * modules/strstr-tests (Files): Pull in additional files.
82918         memchr: no longer obsolete, for wider field testing
82919         * modules/memchr (Status, Notice): Delete, this module is no
82920         longer obsolete.
82921         * modules/vasnprintf (Depends-on): Add memchr.
82923 2009-06-07  Jim Meyering  <meyering@redhat.com>
82925         hash: declare some functions with the warn_unused_result attribute
82926         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82928 2009-06-07  Bruno Haible  <bruno@clisp.org>
82930         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82931         Reported by Eric Blake.
82933 2009-06-06  Eric Blake  <ebb9@byu.net>
82935         test-alignof: fix typo with long double
82936         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82937         compiler error.
82939 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82941         Escape non-texinfo { and }s.
82942         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82943         markup error.
82945 2009-06-04  Jim Meyering  <meyering@redhat.com>
82947         gitlog-to-changelog: don't infloop on an empty commit log
82948         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82949         Reported by Boris Petersen <transacid@centerim.org>.
82951 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82953         version-etc: extend for packagers
82954         Add three new configure options, intended for packagers:
82955           --with-packager="packager name"
82956           --with-packager-version="packager-specific version"
82957           --with-packager-bug-reports="packager bug reporting"
82958         An example with coreutils:
82959           $ ./configure \
82960             --with-packager=Gentoo \
82961             --with-packager-bug-report=http://bugs.gentoo.org/ \
82962             --with-packager-version="patchset 1.6"
82963           $ ./src/ls --version | head -n2
82964           ls (GNU coreutils) 7.1-dirty
82965           Packaged by Gentoo (patchset 1.6)
82966         Note that the bug reporting info via --help doesn't show up because
82967         coreutils uses its own custom emit_bug_reporting_address() implementation
82968         in src/system.h.  If it didn't, it'd look like:
82969           $ ./src/ls --help | tail -n4
82970           Report bugs to <bug-coreutils@gnu.org>.
82971           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82972           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82973           General help using GNU software: <http://www.gnu.org/gethelp/>.
82974         * lib/version-etc.c: Print new information, if provided.
82975         * m4/version-etc.m4: New file.
82976         * modules/version-etc (Files): Add m4/version-etc.m4.
82977         (configure.ac): Add gl_VERSION_ETC.
82979 2009-05-31  Bruno Haible  <bruno@clisp.org>
82981         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82982         and 'int64_t'.
82983         * modules/alignof-tests (Dependencies): Add stdint.
82984         Reported by Eric Blake.
82986 2009-05-31  Bruno Haible  <bruno@clisp.org>
82988         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82989         restriction due to compiler bugs.
82990         Reported by Eric Blake.
82992 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82993             Bruno Haible  <bruno@clisp.org>
82995         Fix test-alignof failure.
82996         * lib/alignof.h (alignof_slot): New macro.
82997         (alignof_type): New macro, with the same semantics as the previous
82998         'alignof'.
82999         (alignof): Alias to alignof_slot.
83000         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
83001         check that the results are usable as constant expressions.
83003 2009-05-31  Bruno Haible  <bruno@clisp.org>
83005         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
83006         * tests/test-memchr.c (main): Check that memchr does not read past the
83007         first occurrence of the byte.
83008         * tests/test-strstr.c (main): Update comment.
83009         Suggested by Eric Blake.
83011 2009-05-30  Bruno Haible  <bruno@clisp.org>
83013         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
83014         detail how to use dumpbin.
83015         Reported by David Byron <dbyron@dbyron.com>.
83017 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83019         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
83021 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83023         * m4/manywarnings.m4: Add GCC 4.4 warnings.
83025 2009-05-28  Bruno Haible  <bruno@clisp.org>
83027         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
83028         build-aux/ files.
83030 2009-05-28  Simon Josefsson  <simon@josefsson.org>
83032         * gnulib-tool (func_import): Transform license on build-aux/ files too.
83034 2009-05-27  Simon Josefsson  <simon@josefsson.org>
83036         * gnulib-tool (sed_transform_main_lib_file)
83037         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
83038         regexps.
83040 2009-05-26  Simon Josefsson  <simon@josefsson.org>
83042         * tests/test-strstr.c: Add another self-test.
83043         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
83044         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
83046 2009-05-23  Bruno Haible  <bruno@clisp.org>
83048         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
83049         change.
83051 2009-05-21  Bruno Haible  <bruno@clisp.org>
83053         Simplify use of mode_t varargs.
83054         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
83055         uses 'mode_t' or 'int'.
83056         * lib/openat.c (openat): Likewise.
83057         * lib/open-safer.c (open_safer): Likewise.
83058         * m4/mode_t.m4: New file.
83059         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
83060         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
83061         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
83062         * modules/open (Files): Add m4/mode_t.m4.
83063         * modules/openat (Files): Likewise.
83064         * modules/fcntl-safer (Files): Likewise.
83065         Suggested by Eric Blake.
83067 2009-05-21  Pádraig Brady  <P@draigbrady.com>
83069         * doc/glibc-functions/fallocate.texi: New file.
83070         * doc/gnulib.texi: Include it.
83072 2009-05-21  Eric Blake  <ebb9@byu.net>
83073             Bruno Haible  <bruno@clisp.org>
83075         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
83076         invocations.
83077         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83079 2009-05-21  Eric Blake  <ebb9@byu.net>
83080             Bruno Haible  <bruno@clisp.org>
83082         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
83083         include_next. Fix of 2008-11-20 commit.
83084         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
83085         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
83086         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
83087         NEXT_MATH_H.
83088         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
83089         instead of NEXT_MATH_H.
83091 2009-05-21  Bruno Haible  <bruno@clisp.org>
83093         Avoid redefinition warnings for SIZE_MAX.
83094         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
83095         Reported by Simon Josefsson.
83097 2009-05-21  Bruno Haible  <bruno@clisp.org>
83099         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
83100         AC_CACHE_VAL.
83102 2009-05-20  Bruno Haible  <bruno@clisp.org>
83104         Make zeroptr.h work on mingw.
83105         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
83106         mprotect.
83107         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
83108         * modules/memchr2-tests (configure.ac): Likewise.
83109         * modules/memcmp-tests (configure.ac): Likewise.
83110         * modules/memmem-tests (configure.ac): Likewise.
83111         * modules/memrchr-tests (configure.ac): Likewise.
83112         Reported by Simon Josefsson.
83114 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83116         * tests/test-glob.c: Include string.h for strcmp prototype.
83118 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83120         * modules/getdelim (Depends-on): Add explicit stdint, although it
83121         was implicitly already pulled in via realloc-posix.
83122         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
83124 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83126         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
83127         G. Christensen" <tgc@jupiterrise.com>.
83128         * m4/sys_socket_h.m4: Check for sa_family_t.
83129         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
83130         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
83131         * tests/test-sys_socket.c: Check that sa_family_t works.
83133 2009-05-18  Eric Blake  <ebb9@byu.net>
83135         maint.mk: allow gnulib_dir in VPATH build
83136         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
83138 2009-05-15  Jim Meyering  <meyering@redhat.com>
83140         maint.mk: Give gnulib_dir a default definition.
83141         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
83142         Thus, most packages no longer need to specify this variable in cfg.mk
83144 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
83146         rename.m4: fix typos that would make non-mingw cross-configure fail
83147         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
83149 2009-05-13  Eric Blake  <ebb9@byu.net>
83151         mmap-anon: avoid out-of-order autoconf expansion
83152         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
83153         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
83154         * modules/memchr-tests (Depends-on): Add extensions.
83155         * modules/memchr2-tests (Depends-on): Add extensions.
83156         * modules/memcmp-tests (Depends-on): Add extensions.
83157         * modules/memmem-tests (Depends-on): Add extensions.
83158         * modules/memrchr-tests (Depends-on): Add extensions.
83160 2009-05-13  Bruno Haible  <bruno@clisp.org>
83162         Make some tests ISO C 99 compliant.
83163         * tests/zerosize-ptr.h: New file.
83164         * tests/test-memchr.c: Include zerosize-ptr.h.
83165         (main): Use a zero-size object pointer instead of NULL.
83166         * tests/test-memchr2.c: Include zerosize-ptr.h.
83167         (main): Use a zero-size object pointer instead of NULL.
83168         * tests/test-memcmp.c: Include zerosize-ptr.h.
83169         (main): Use a zero-size object pointer instead of NULL.
83170         * tests/test-memmem.c: Include zerosize-ptr.h.
83171         (main): Use a zero-size object pointer instead of NULL.
83172         * tests/test-memrchr.c: Include zerosize-ptr.h.
83173         (main): Use a zero-size object pointer instead of NULL.
83174         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83175         m4/mmap-anon.m4.
83176         (Depends-on): Add getpagesize.
83177         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83178         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
83179         m4/mmap-anon.m4.
83180         (Depends-on): Add getpagesize.
83181         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83182         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
83183         m4/mmap-anon.m4.
83184         (Depends-on): Add getpagesize.
83185         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83186         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
83187         m4/mmap-anon.m4.
83188         (Depends-on): Add getpagesize.
83189         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83190         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
83191         m4/mmap-anon.m4.
83192         (Depends-on): Add getpagesize.
83193         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83195 2009-05-12  Bruno Haible  <bruno@clisp.org>
83197         Tests for module 'alignof'.
83198         * modules/alignof-tests: New file.
83199         * tests/test-alignof.c: New file.
83201 2009-05-12  Bruno Haible  <bruno@clisp.org>
83203         Fix alignof macro.
83204         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
83205         vendor compilers that are always correct.
83207 2009-05-12  Bruno Haible  <bruno@clisp.org>
83209         Make the MAP_ANONYMOUS detection work on HP-UX 11.
83210         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
83211         not whether its fully works.
83213 2009-05-12  Bruno Haible  <bruno@clisp.org>
83215         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
83217 2009-05-12  Jim Meyering  <meyering@redhat.com>
83219         * top/maint.mk: Adjust backslash alignment.
83221 2009-05-11  Simon Josefsson  <simon@josefsson.org>
83223         * top/maint.mk: Make $(srcdir)/build-aux configurable.
83225 2009-05-11  Eric Blake  <ebb9@byu.net>
83227         argp: avoid undefined behavior
83228         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
83229         macros.
83231 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83233         * tests/test-vc-list-files-git.sh: Do git config of user.email and
83234         user.name to prevent git commit from complaining.
83236 2009-05-10  Bruno Haible  <bruno@clisp.org>
83238         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
83239         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
83240         it rewrites every file name only once.
83241         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
83243 2009-05-08  Bruno Haible  <bruno@clisp.org>
83245         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
83246         instead of 'max'.
83248 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83250         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
83251         sockaddr_storage test.
83253 2009-05-07  Simon Josefsson  <simon@josefsson.org>
83255         * modules/sys_socket (Makefile.am): Substitute
83256         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
83257         * m4/sys_socket_h.m4: Check for sockaddr_storage.
83258         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
83259         * tests/test-sys_socket.c: Check sockaddr_storage.
83261 2009-05-08  Bruno Haible  <bruno@clisp.org>
83263         New module 'alignof'.
83264         * lib/alignof.h: New file.
83265         * modules/alignof: New file.
83267 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83268             Bruno Haible  <bruno@clisp.org>
83270         Fix test-file-has-acl on FreeBSD.
83271         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
83272         mask is implicitly added.
83273         * tests/test-file-has-acl.c: Include <signal.h>.
83274         (main): Terminate the test after 5 seconds.
83275         * modules/acl-tests (configure.ac): Check for alarm function.
83277 2009-05-04  Bruno Haible  <bruno@clisp.org>
83279         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
83280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
83281         * modules/errno (configure.ac): Drop AC_REQUIRE.
83282         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
83283         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
83285 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83287         * modules/glob-tests: New module.
83288         * tests/test-glob.c: Add.
83290 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83292         * modules/fnmatch-tests: New module.
83293         * tests/test-fnmatch.c: Add.
83295 2009-05-04  Eric Blake  <ebb9@byu.net>
83297         maint: make the new no-submodule-changes rule VPATH-safe
83298         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
83300 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83301             Bruno Haible  <bruno@clisp.org>
83303         acl: Fix infinite loop on FreeBSD.
83304         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
83305         of return value from acl_get_entry.
83306         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
83307         Likewise.
83309 2009-05-03  Bruno Haible  <bruno@clisp.org>
83311         * lib/acl-internal.h (acl_entries): Clarify return value.
83312         * lib/acl_entries.c (acl_entries): Likewise.
83314 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83316         Bug fix in acl module.
83317         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
83319 2009-05-03  Bruno Haible  <bruno@clisp.org>
83321         Create gperf-generated file in the source dir, not in the build dir.
83322         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
83323         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
83324         * modules/unicase/locale-language (unicase/locale-languages.h):
83325         Likewise.
83326         * modules/unicase/special-casing (unicase/special-casing-table.h):
83327         Likewise.
83328         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
83329         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
83330         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
83331         Reported by Ralf Wildenhues.
83333 2009-05-03  Bruno Haible  <bruno@clisp.org>
83335         * modules/fnmatch (Description, configure.ac): Taken from
83336         fnmatch-posix.
83337         * modules/fnmatch-posix: Turn into a symbolic reference to the
83338         'fnmatch' module, and deprecate.
83339         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
83341 2009-05-03  Bruno Haible  <bruno@clisp.org>
83343         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83344         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83345         Reported by Ralf Wildenhues.
83347 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83349         * m4/fnmatch.m4: Fix fnmatch re-define.
83351 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83353         priv-set: new module and tests; adapt write-any-file
83354         * lib/priv-set.c: New file.
83355         * lib/priv-set.h: New file.
83356         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83357         * lib/write-any-file.c: Simplify by using priv-set module.
83358         * m4/priv-set.m4: New file.
83359         * modules/priv-set: New file.
83360         * modules/unlinkdir: Add dependency on priv-set module.
83361         * modules/write-any-file: Likewise.
83363         Tests for module 'priv-set'.
83364         * modules/priv-set-tests: New file.
83365         * tests/test-priv-set.c: New file.
83367 2009-05-03  Jim Meyering  <meyering@redhat.com>
83368             Bruno Haible  <bruno@clisp.org>
83370         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83371         use the converted UTF-8 variant of the name instead.
83373 2009-05-03  Jim Meyering  <meyering@redhat.com>
83375         tests: tighten some getdate tests
83376         * tests/test-getdate.c (main): Tighten tests: require equality,
83377         not just greater than.  Set TZ envvar to UTC0.
83379 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83381         getdate: correctly interpret "next monday" when run on a Monday
83382         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83383         that e.g., "next tues" (when run on a tuesday) results in a date
83384         that is one week in the future, and not today's date.
83385         I.e., add a week when the wday is the same as the current one.
83386         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83387         and earlier by Martin Bernreuther and Jan Minář.
83388         * tests/test-getdate.c (main): Check that "next DAY" is always in
83389         the future and that "last DAY" is always in the past.
83391 2009-05-02  Jim Meyering  <meyering@redhat.com>
83393         build: ensure that a release build fails when a submodule is unclean
83394         * top/maint.mk (no-submodule-changes): New rule.
83395         (alpha beta major): Depend on it.
83397 2009-05-02  Bruno Haible  <bruno@clisp.org>
83399         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83400         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83401         shell variable gl_fnmatch_required to detect which variant is
83402         requested.
83403         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83404         gl_FUNC_FNMATCH_POSIX.
83405         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83406         exclude fnmatch-posix.
83408 2009-05-02  Bruno Haible  <bruno@clisp.org>
83410         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83411         * modules/mbsrtowcs (License): Change to LGPLv2+.
83412         * modules/strnlen1 (License): Likewise.
83413         Reported by Simon Josefsson.
83415 2009-05-02  Bruno Haible  <bruno@clisp.org>
83417         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83418         "cross".
83419         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83420         gnulib-tool was called with option --source-base=lib.
83422 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83424         Use automake *-local hooks without commands, for extensibility.
83425         * modules/localcharset (Makefile.am): Rename install-exec-local
83426         rule to install-exec-localcharset, and make it a prerequisite of
83427         install-exec-local.  Likewise, rename the uninstall-local rule to
83428         uninstall-localcharset, and make it a prerequisite of the former.
83430 2009-05-01  Bruno Haible  <bruno@clisp.org>
83432         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83433         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83434         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83436         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83437         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83438         m4/locale-zh.m4, m4/codeset.m4.
83440         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83441         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83442         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83443         m4/locale-zh.m4.
83445         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83446         REPLACE_WCRTOMB if mbstate_t must be replaced.
83447         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83448         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83450 2009-05-01  Bruno Haible  <bruno@clisp.org>
83452         Avoid compiler warnings when redefining macros defined by <libintl.h>.
83453         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
83454         dngettext, dcngettext, textdomain, bindtextdomain,
83455         bind_textdomain_codeset): Undefine before redefining.
83457 2009-04-30  Bruno Haible  <bruno@clisp.org>
83459         Fix bug introduced on 2009-04-25.
83460         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
83461         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
83462         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
83463         is defined.
83464         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
83465         is defined.
83466         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
83467         is defined.
83468         Reported by Elbert_Pol <elbert.pol@gmail.com>.
83470 2009-04-28  Bruno Haible  <bruno@clisp.org>
83472         Comment tweaks.
83473         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
83474         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
83475         * lib/unicase.h (u*_casexfrm): Likewise.
83476         Reported by Paolo Bonzini.
83478 2009-04-28  Bruno Haible  <bruno@clisp.org>
83480         Fix a compilation error.
83481         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
83482         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83483         Reported by Jim Meyering.
83485 2009-04-27  Bruno Haible  <bruno@clisp.org>
83487         New module 'libunistring'.
83488         * modules/libunistring: New file.
83489         * m4/libunistring.m4: New file.
83490         * MODULES.html.sh (Unicode string functions): Add it.
83492 2009-04-27  Eric Blake  <ebb9@byu.net>
83494         maint.mk: allow package-specific header to provide <config.h>
83495         * top/maint.mk (sc_require_config_h): New variable.
83496         (sc_require_config_h, sc_require_config_h_first): Use it.
83498 2009-04-27  Simon Josefsson  <simon@josefsson.org>
83500         * top/maint.mk (sc_avoid_if_before_free): Except
83501         useless-if-before-free script.
83503 2009-04-27  Eric Blake  <ebb9@byu.net>
83505         maintainer-makefile: depend on all required helper scripts
83506         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
83507         useless-if-before-free.
83508         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
83509         version, rather than assuming gnulib checkout is available.
83510         Reported by Simen Josefsson.
83512 2009-04-26  Bruno Haible  <bruno@clisp.org>
83514         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
83515         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
83516         "../" or "..".
83518 2009-04-26  Bruno Haible  <bruno@clisp.org>
83520         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
83521         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
83522         AC_LIB_HAVE_LINKFLAGS.
83524 2009-04-26  Bruno Haible  <bruno@clisp.org>
83526         Simplify calling convention of u*_conv_from_encoding.
83527         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
83528         u32_conv_from_encoding): Expect a resultbuf argument and return the
83529         result directly as a pointer.
83530         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
83531         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
83532         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
83533         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
83534         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
83535         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83536         Update.
83537         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
83538         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83539         * lib/vasnprintf.c (VASNPRINTF): Update.
83540         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
83541         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
83542         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
83543         * NEWS: Mention the change.
83545 2009-04-26  Bruno Haible  <bruno@clisp.org>
83547         Simplify calling convention of u*_conv_to_encoding.
83548         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83549         u32_conv_to_encoding): Expect a resultbuf argument and return the
83550         result directly as a pointer.
83551         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83552         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
83553         freeing scaled_offsets if mem_iconveha failed.
83554         * lib/unicase/u-casexfrm.h (FUNC): Update.
83555         * lib/uninorm/u-normxfrm.h (FUNC): Update.
83556         * lib/vasnprintf.c (VASNPRINTF): Update.
83557         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
83558         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
83559         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
83560         * NEWS: Mention the change.
83562 2009-04-26  Bruno Haible  <bruno@clisp.org>
83564         Avoid test failures on AIX and OSF/1.
83565         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
83566         malloc(0).
83567         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83568         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83569         Likewise.
83570         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
83571         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
83572         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
83573         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
83574         * doc/posix-functions/malloc.texi: Document the portability problem
83575         related to malloc(0).
83577 2009-04-26  Bruno Haible  <bruno@clisp.org>
83579         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
83580         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
83581         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
83583 2009-04-25  Bruno Haible  <bruno@clisp.org>
83585         Avoid link error when creating a namespace clean library.
83586         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
83587         as macro with arguments if already defined as an alias.
83588         * lib/signbitf.c (gl_signbitf): Don't undefine.
83589         * lib/signbitd.c (gl_signbitd): Don't undefine.
83590         * lib/signbitl.c (gl_signbitl): Don't undefine.
83592 2009-04-25  Jim Meyering  <meyering@redhat.com>
83594         vc-list-files: fix another quoting bug
83595         * build-aux/vc-list-files: Avoid sed backslash expansion
83596         of pathological directory names.
83598 2009-04-25  Eric Blake  <ebb9@byu.net>
83600         vc-list-files: fix shell quoting error
83601         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
83602         timestamp.
83604 2009-04-25  Jim Meyering  <meyering@redhat.com>
83606         vc-list-files: restore lost functionality with subdir argument
83607         * build-aux/vc-list-files: When given a non-"." sub-directory
83608         argument, substitute the $dir/ prefix back onto each resulting name.
83609         Otherwise, coreutils' root_tests check would fail.
83611 2009-04-24  Eric Blake  <ebb9@byu.net>
83613         vc-list-files: ignore git symlinks
83614         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
83615         than ls-files, to ignore git symlinks.
83617         maint.mk: import improvements from m4
83618         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
83619         (move_if_change): Delete unused macro.
83620         (news-date-check, vc-diff-check): Support VPATH builds.
83621         (announcement): Likewise.  Split --bootstrap-tools list...
83622         (boostrap-tools): ...into separate list, which can be overridden
83623         in cfg.mk.
83624         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
83625         requiring dependency on useless-if-before-free module.
83626         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
83627         Support VPATH builds.
83629 2009-04-24  Jim Meyering  <meyering@redhat.com>
83631         maint.mk: remove coreutils-specific rules and variables
83632         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
83633         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
83634         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
83636         maint.mk: remove obsolete rule
83637         * top/maint.mk (rel-check): Remove rule.
83638         (WGET, WGETFLAGS): Remove now-unused variables.
83640 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83642         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
83643         consistency.
83645         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
83646         '$(PATH_SEPARATOR)' instead of ':'.
83648 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83650         * lib/getopt1.c (main): Use 'const' for static array.
83652 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83654         * top/maint.mk: Sync with coreutils.
83655         * NEWS: Explain incompatibilities.
83657 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83658             Bruno Haible  <bruno@clisp.org>
83660         Fix cross-compilation results.
83661         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83662         statement, as third argument of AC_TRY_RUN.
83663         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83664         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83665         Likewise.
83666         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83667         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83668         Likewise.
83669         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83671         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83673 2009-04-20  Bruno Haible  <bruno@clisp.org>
83675         Avoid test failure on mingw.
83676         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83678 2009-04-20  Bruno Haible  <bruno@clisp.org>
83680         Avoid compilation error on mingw.
83681         * modules/localename-tests (Depends-on): Add locale.
83683 2009-04-19  Bruno Haible  <bruno@clisp.org>
83685         Support for building a shared library on Windows platforms.
83686         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83687         (main): Test the presence of UNINORM_NFC here.
83688         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83689         (main): Test the presence of UNINORM_NFD here.
83690         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83691         (main): Test the presence of UNINORM_NFKC here.
83692         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83693         (main): Test the presence of UNINORM_NFKD here.
83695 2009-04-19  Bruno Haible  <bruno@clisp.org>
83697         Avoid a compiler warning.
83698         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83699         Change type of variable 'sequence'.
83701 2009-04-19  Bruno Haible  <bruno@clisp.org>
83703         * modules/configmake (Makefile.am): When the contents of configmake.h
83704         does not change, arrange to preserve its modification time.
83706 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83708         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83709         gettext domain.
83711 2009-04-16  Jim Meyering  <meyering@redhat.com>
83713         useless-if-before-free: improve conversion code
83714         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83715         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83717 2009-04-14  Bruno Haible  <bruno@clisp.org>
83719         * modules/fcntl (Depends-on): Add extensions.
83720         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83722 2009-04-12  Ben Pfaff  <blp@gnu.org>
83724         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83725         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83727 2009-03-20  Ben Pfaff  <blp@gnu.org>
83729         Make rename replace existing destinations on Windows.
83730         * m4/rename.m4: Add test for Mingw.
83731         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83732         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83733         * doc/posix-functions/rename.texi: Document.
83735 2009-04-10  Bruno Haible  <bruno@clisp.org>
83737         New include file "iconveh.h".
83738         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83739         * lib/striconveh.h: Include it.
83740         (enum iconv_ilseq_handler): Remove definition.
83741         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83742         striconveh.h.
83743         * lib/striconveha.c: Include striconveh.h.
83744         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83745         * modules/striconveh (Files): Add lib/iconveh.h.
83746         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83747         lib/striconveh.h.
83749 2009-04-10  Bruno Haible  <bruno@clisp.org>
83751         * lib/uniconv.h: Update comment.
83753 2009-04-10  Bruno Haible  <bruno@clisp.org>
83755         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83756         always.
83757         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83758         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83759         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83760         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83761         "unistring-notinline.h", so that the function gets defined always.
83762         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83763         * lib/unistr/u8-uctomb.c: Likewise.
83764         * lib/unistr/u16-mbtouc.c: Likewise.
83765         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83766         * lib/unistr/u16-uctomb.c: Likewise.
83767         * lib/unistr/u32-mbtouc.c: Likewise.
83768         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83769         * lib/unistr/u32-uctomb.c: Likewise.
83771 2009-04-10  Bruno Haible  <bruno@clisp.org>
83773         Mark 'utime' obsolete.
83774         * modules/utime (Status, Notice): New sections.
83775         Suggested by Jim Meyering.
83777         Fix cross-compile guess for utime test.
83778         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83779         autoconf.
83780         * doc/posix-functions/utime.texi: Give more precisions.
83781         Reported by Jan <ipif@ymail.com>.
83783 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83785         filevercmp: correct today's change
83786         * lib/filevercmp.c: Also handle coreutils' test inputs.
83787         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83789         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83790         for reporting it.
83791         * lib/filevercmp.c: Special handle for "", "." and "..".
83792         * tests/test-filevercmp.c: Enlarge the set suite.
83794 2009-04-07  Jim Meyering  <meyering@redhat.com>
83796         useless-if-before-free: show how to remove braced useless free, too
83797         * build-aux/useless-if-before-free: still only in a comment, though.
83799 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83801         maint.mk: import changes to syntax-check macros from coreutils
83802         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83803         Use them in the relevant macros.
83805 2009-04-06  Bruno Haible  <bruno@clisp.org>
83807         Fix unportable use of bit-fields.
83808         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83809         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83810         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83812 2009-04-06  Bruno Haible  <bruno@clisp.org>
83814         Avoid test failures on AIX and OSF/1.
83815         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83816         that malloc(0) = NULL.
83817         * tests/unicase/test-u8-tolower.c (check): Likewise.
83818         * tests/unicase/test-u8-totitle.c (check): Likewise.
83819         * tests/unicase/test-u8-toupper.c (check): Likewise.
83820         * tests/unicase/test-u16-casefold.c (check): Likewise.
83821         * tests/unicase/test-u16-tolower.c (check): Likewise.
83822         * tests/unicase/test-u16-totitle.c (check): Likewise.
83823         * tests/unicase/test-u16-toupper.c (check): Likewise.
83824         * tests/unicase/test-u32-casefold.c (check): Likewise.
83825         * tests/unicase/test-u32-tolower.c (check): Likewise.
83826         * tests/unicase/test-u32-totitle.c (check): Likewise.
83827         * tests/unicase/test-u32-toupper.c (check): Likewise.
83828         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83829         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83830         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83831         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83832         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83833         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83834         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83835         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83836         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83837         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83838         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83839         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83841 2009-04-05  Bruno Haible  <bruno@clisp.org>
83843         Work around an autoconf limitation.
83844         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83845         comment line if it would be longer than 3 KB.
83847 2009-04-05  Bruno Haible  <bruno@clisp.org>
83849         Avoid test failure with libiconv-1.13.
83850         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83851         of the expected test results.
83853 2009-04-05  Bruno Haible  <bruno@clisp.org>
83855         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83856         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83857         that it should be installed.
83859 2009-04-05  Bruno Haible  <bruno@clisp.org>
83861         * gnulib-tool: New option --copy-file.
83862         (func_usage): Document it.
83863         (func_dest_tmpfilename): Moved out of func_import.
83864         (func_add_file, func_update_file): New functions, extracted from
83865         func_import.
83866         (func_import): Update.
83868 2009-04-05  Karl Berry  <karl@gnu.org>
83870         * README: prominently mention gnulib-tool.
83871         Rearrange sections so getting the code is near the top.
83873 2009-04-05  Bruno Haible  <bruno@clisp.org>
83875         * lib/unicase.h: Mention u*_cmp2.
83876         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83877         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83878         * lib/unicase/ulc-casecmp.c: Likewise.
83879         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83880         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83881         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83882         unistr/u8-cmp.
83883         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83884         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83885         unistr/u16-cmp.
83886         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83887         unistr/u32-cmp.
83889         * lib/uninorm.h: Mention u*_cmp2.
83890         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83891         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83892         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83893         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83894         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83895         unistr/u8-cmp.
83896         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83897         unistr/u16-cmp.
83898         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83899         unistr/u32-cmp.
83901         New module 'unistr/u32-cmp2'.
83902         * lib/unistr/u32-cmp2.c: New file.
83903         * modules/unistr/u32-cmp2: New file.
83905         New module 'unistr/u16-cmp2'.
83906         * lib/unistr/u16-cmp2.c: New file.
83907         * modules/unistr/u16-cmp2: New file.
83909         New module 'unistr/u8-cmp2'.
83910         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83911         * lib/unistr/u8-cmp2.c: New file.
83912         * lib/unistr/u-cmp2.h: New file.
83913         * modules/unistr/u8-cmp2: New file.
83915 2009-04-05  Bruno Haible  <bruno@clisp.org>
83917         * lib/unictype.h (uc_property_is_valid): New macro.
83918         * tests/unictype/test-pr_byname.c (main): Use it.
83920         * lib/unistr.h: Doc fixes.
83921         * lib/uniconv.h: Doc fixes.
83922         * lib/unictype.h: Doc fixes.
83924 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83926         Port coreutils 7.2 to Solaris 8.
83928         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83929         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83930         for Solaris 8.  This is a bit of a hack, as it means it's the
83931         caller's responsibility to add -lnsl if needed, but most likely it
83932         won't be needed since only getaddrinfo uses this and getaddrinfo
83933         isn't needed on Solaris 8.
83935         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83936         problem to Solaris 8 encountered with coreutils 7.2, which
83937         resulted in a message "fnmatch.c:292: warning: passing argument 4
83938         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83939         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83941 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83943         * m4/ld-version-script.m4: Add FIXME comment.
83945 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83947         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83948         SOVERSION variable.
83950 2009-04-02  Bruno Haible  <bruno@clisp.org>
83952         * Makefile (info, html, dvi, pdf): Combine the rules.
83953         Suggested by Jim Meyering.
83955 2009-04-01  Bruno Haible  <bruno@clisp.org>
83957         * Makefile (info, html, dvi, pdf): New targets.
83958         Reported by Reuben Thomas <rrt@sc3d.org>.
83960 2009-04-01  Bruno Haible  <bruno@clisp.org>
83962         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83963         can be put into PATH.
83964         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83966 2009-04-01  Bruno Haible  <bruno@clisp.org>
83968         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83970 2009-04-01  Bruno Haible  <bruno@clisp.org>
83972         Rename module 'visibility'.
83973         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83974         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83975         * doc/gnulib.texi: Update.
83976         * MODULES.html.sh (Misc): Update.
83977         * NEWS: Mention the change.
83979 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83981         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83982         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83983         Eric Blake <ebb9@byu.net> for review.
83984         * MODULES.html.sh: Add lib-msvc-compat.
83985         * doc/gnulib.texi: Link to new section.
83986         * m4/ld-output-def.m4: New file.
83987         * doc/ld-output-def.texi: New file.
83989 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83991         Rename ld-version-script to lib-symbol-versions.  Suggested by
83992         Bruno Haible <bruno@clisp.org>.
83993         * modules/ld-version-script: Renamed to lib-symbol-versions.
83994         * doc/ld-version-script.texi: Fix module name.
83995         * MODULES.html.sh: Add lib-symbol-versions.
83997 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83999         * modules/u64-tests: New file.
84000         * tests/test-u64.c: New file.
84002 2009-03-04  Simon Josefsson  <simon@josefsson.org>
84004         * MODULES.html.sh: Mention u64.
84005         * modules/u64: New module.
84006         * modules/crypto/sha512: Depend on u64 module instead of providing
84007         u64.h.
84009 2009-03-27  Eric Blake  <ebb9@byu.net>
84011         test-strerror: make debugging EAI_SYSTEM easier
84012         * modules/getaddrinfo-tests (Depends-on): Add strerror.
84013         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
84014         failure was EAI_SYSTEM.
84016 2009-03-25  Bruno Haible  <bruno@clisp.org>
84018         Fix a problem with --enable-relocatable on Solaris 7.
84019         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
84020         since 2008-02-24.
84022 2009-03-25  Eric Blake  <ebb9@byu.net>
84024         test-sockets: avoid gcc warning
84025         * tests/test-sockets.c (main): Silence compiler warning.
84027 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
84029         New modules nproc, pthread, contributed by Glen Lenker.
84031         * MODULES.html.sh: Add pthread, nproc.
84032         * lib/nproc.c: New file.
84033         * lib/nproc.h: New file.
84034         * lib/pthread.in.h: New file.
84035         * m4/pthread.m4: New file.
84036         * modules/nproc: New file.
84037         * modules/pthread: New file.
84039 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84041         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
84042         New variable.
84044 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
84046         filevercmp: handle simple~ and numbered.~3~ backup suffixes
84047         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
84048         * tests/test-filevercmp.c: Add tests for backup suffixes.
84050 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84052         * modules/stdlib (Depends-on): Add stdint, needed when defining
84053         struct random_data on, for example, HP-UX 10.20.  Reported by
84054         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84056 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84058         * lib/readline.c (readline): Call fflush on stdout after printing
84059         prompt.
84061 2009-03-20  Bruno Haible  <bruno@clisp.org>
84063         Remove dependency from 'close' module to -lws2_32 on native Windows.
84064         * lib/close-hook.h: New file.
84065         * lib/close-hook.c: New file.
84066         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
84067         w32sock.h.
84068         (_gl_close_fd_maybe_socket): Remove function.
84069         (rpl_close): Invoke execute_all_close_hooks instead of
84070         _gl_close_fd_maybe_socket.
84071         * lib/sockets.c: Include close-hook.h, w32sock.h.
84072         (close_fd_maybe_socket): New function, essentially from lib/close.c.
84073         (close_sockets_hook): New variable.
84074         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
84075         (gl_sockets_cleanup): Unregister it.
84076         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
84077         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
84078         * modules/close-hook: New file.
84079         * modules/close (Files): Remove lib/w32sock.h.
84080         (Depends-on): Add close-hook.
84081         (Link): Remove section.
84082         * modules/sockets (Files): Add lib/w32sock.h.
84083         (Depends-on): Add close-hook.
84084         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
84085         invocation.
84086         * NEWS: Mention that LIB_CLOSE is gone.
84088 2009-03-23  Eric Blake  <ebb9@byu.net>
84090         signal-tests: test previous patch
84091         * tests/test-signal.c: New file.
84092         * modules/signal-tests: Likewise.
84094         signal.h: always support 'volatile sig_atomic_t'
84095         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
84096         (gl_SIGNAL_H_DEFAULTS): Add a default.
84097         * modules/signal (Makefile.am): Substitute if needed.
84098         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
84099         users can blindly add volatile.
84100         * doc/posix-headers/signal.texi (signal.h): Document it.
84101         Reported by Matthew Woehlke.
84103 2009-03-23  Jim Meyering  <meyering@redhat.com>
84105         pathmax: PATH_MAX: use pathconf only when available
84106         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
84107         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
84108         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
84109         This avoids a link failure in a PSP cross-compilation environment
84110         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
84112         * lib/vasnprintf.c (divide): Fix typo in comment.
84114 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84116         * gnulib-tool (func_filter_filelist): Fix comment.
84118 2009-03-20  Bruno Haible  <bruno@clisp.org>
84120         Make sockets.h self-contained.
84121         * lib/sockets.c: Include sockets.h first.
84122         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
84124 2009-03-19  Eric Blake  <ebb9@byu.net>
84126         doc: mention more functions added in cygwin 1.7.0
84127         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
84128         addition.
84129         * doc/posix-functions/log2f.texi: Likewise.
84131 2009-03-19  Jim Meyering  <meyering@redhat.com>
84133         fsusage: avoid syntax error due to statement-before-declaration
84134         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
84135         after all declarations.  Reported by Matthew Woehlke in
84136         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
84138 2009-03-18  Eric Blake  <ebb9@byu.net>
84140         build-aux/compile: sync from automake
84141         * build-aux/compile: New file, from automake.
84142         * config/srclist.txt: Mention build-aux/compile.
84144 2009-03-17  Bruno Haible  <bruno@clisp.org>
84146         * lib/git-merge-changelog.c: Fix typo in comment.
84147         Reported by Reuben Thomas <rrt@sc3d.org>.
84149 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
84151         * m4/regex.m4: update and improve help for
84152         --without-included-regex.
84154 2009-03-17  Simon Josefsson  <simon@josefsson.org>
84156         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
84157         failure on missing include files.
84159 2009-03-17  Eric Blake  <ebb9@byu.net>
84161         doc: mention more functions added in cygwin 1.7.0
84162         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
84163         addition.
84164         * doc/posix-functions/fwscanf.texi: Likewise.
84165         * doc/posix-functions/swprintf.texi: Likewise.
84166         * doc/posix-functions/swscanf.texi: Likewise.
84167         * doc/posix-functions/vfwprintf.texi: Likewise.
84168         * doc/posix-functions/vfwscanf.texi: Likewise.
84169         * doc/posix-functions/vswprintf.texi: Likewise.
84170         * doc/posix-functions/vswscanf.texi: Likewise.
84171         * doc/posix-functions/vwprintf.texi: Likewise.
84172         * doc/posix-functions/vwscanf.texi: Likewise.
84173         * doc/posix-functions/wcscasecmp.texi: Likewise.
84174         * doc/posix-functions/wcsdup.texi: Likewise.
84175         * doc/posix-functions/wcsftime.texi: Likewise.
84176         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84177         * doc/posix-functions/wprintf.texi: Likewise.
84178         * doc/posix-functions/wscanf.texi: Likewise.
84179         * doc/glibc-functions/gethostbyname2.texi: Likewise.
84181 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84183         maint.mk: really add $(AM_MAKEFLAGS)
84184         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
84185         was inadvertently omitted in the last commit.
84186         Spotted by Bruno Haible.
84188         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
84189         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
84190         $(AM_MAKEFLAGS)' rather than plain `make'.
84192         gnulib-tool: execute $MAKE not make
84193         * gnulib-tool: Default $MAKE to 'make'.
84194         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
84195         than make.  Initialize $MAKE in the do-autobuild script.
84197         gnulib-tool: use $MAKE not make in generated files
84198         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
84199         make, in generated files.  Initialize $MAKE in the do-autobuild
84200         script.
84202         * top/GNUmakefile (_have-git-version-gen): Fix typo.
84204         GNUmakefile: disable parallelism only for multiple, recursive targets
84205         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
84206         additions in the Makefile.
84207         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
84208         by Automake.
84209         (.NOTPARALLEL): Only disable parallel builds if multiple targets
84210         are listed on the command line and at least one of them is
84211         listed in $(ALL_RECURSIVE_TARGETS).
84213 2009-03-14  Bruno Haible  <bruno@clisp.org>
84215         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
84216         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
84217         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
84218         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
84219         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
84220         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
84221         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
84222         unistr/u8-uctomb.
84223         * modules/unistr/u8-strchr (Depends-on): Likewise.
84224         * modules/unistr/u8-strrchr (Depends-on): Likewise.
84225         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
84226         unistr/u16-uctomb.
84227         * modules/unistr/u16-strchr (Depends-on): Likewise.
84228         * modules/unistr/u16-strrchr (Depends-on): Likewise.
84230 2009-03-12  Bruno Haible  <bruno@clisp.org>
84232         Work around select() bug on Interix 3.5.
84233         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
84234         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
84235         * m4/select.m4: New file.
84236         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
84237         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
84238         * modules/select (Files): Add m4/select.m4.
84239         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
84240         * modules/nanosleep (Depends-on): Add select.
84241         * modules/poll (Depends-on): Likewise.
84242         * doc/posix-functions/select.texi: Mention the Interix bug.
84243         Reported by Markus Duft <mduft@gentoo.org>.
84245         * lib/select.c: Renamed from lib/winsock-select.c.
84246         * modules/select (Files): Add lib/select.c, remove
84247         lib/winsock-select.c.
84248         (configure.ac): Update.
84250 2009-03-12  Jim Meyering  <meyering@redhat.com>
84252         avoid gcc warnings about unused macro definitions
84253         * lib/readtokens.c (STREQ): Remove unused definition.
84254         * lib/xmalloc.c (SIZE_MAX): Likewise.
84255         * lib/openat-die.c (N_): Likewise.
84256         * lib/mountlist.c (SIZE_MAX): Remove definition.
84257         Instead, include <stdint.h>.
84258         * lib/readutmp.c: Likewise.
84259         * modules/readutmp (Depends-on): Add stdint.
84260         * modules/mountlist (Depends-on): Add stdint.
84261         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
84263 2009-03-10  Bruno Haible  <bruno@clisp.org>
84265         Tests for module 'mbmemcasecoll'.
84266         * modules/mbmemcasecoll-tests: New file.
84267         * tests/test-mbmemcasecoll1.sh: New file.
84268         * tests/test-mbmemcasecoll2.sh: New file.
84269         * tests/test-mbmemcasecoll3.sh: New file.
84270         * tests/test-mbmemcasecoll.c: New file.
84272         New module 'mbmemcasecoll'.
84273         * lib/mbmemcasecoll.h: New file.
84274         * lib/mbmemcasecoll.c: New file.
84275         * modules/mbmemcasecoll: New file.
84277         * tests/test-mbmemcasecmp.h: New file, extracted from
84278         tests/test-mbmemcasecmp.c.
84279         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
84280         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
84281         (main): Update.
84282         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
84284 2009-03-09  Bruno Haible  <bruno@clisp.org>
84286         Tests for module 'mbmemcasecmp'.
84287         * modules/mbmemcasecmp-tests: New file.
84288         * tests/test-mbmemcasecmp1.sh: New file.
84289         * tests/test-mbmemcasecmp2.sh: New file.
84290         * tests/test-mbmemcasecmp3.sh: New file.
84291         * tests/test-mbmemcasecmp.c: New file.
84293         New module 'mbmemcasecmp'.
84294         * lib/mbmemcasecmp.h: New file.
84295         * lib/mbmemcasecmp.c: New file.
84296         * modules/mbmemcasecmp: New file.
84298 2009-03-09  Bruno Haible  <bruno@clisp.org>
84300         Tests for module 'unicase/ulc-casecoll'.
84301         * modules/unicase/ulc-casecoll-tests: New file.
84302         * tests/unicase/test-ulc-casecoll1.sh: New file.
84303         * tests/unicase/test-ulc-casecoll2.sh: New file.
84304         * tests/unicase/test-ulc-casecoll.c: New file.
84306         New module 'unicase/ulc-casecoll'.
84307         * lib/unicase.h (ulc_casecoll): New declaration.
84308         * lib/unicase/ulc-casecoll.c: New file.
84309         * modules/unicase/ulc-casecoll: New file.
84311         New module 'unicase/ulc-casexfrm'.
84312         * lib/unicase.h (ulc_casexfrm): New declaration.
84313         * lib/unicase/ulc-casexfrm.c: New file.
84314         * modules/unicase/ulc-casexfrm: New file.
84316 2009-03-09  Bruno Haible  <bruno@clisp.org>
84318         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
84319         invocations.
84321         * m4/mbscasecmp.m4: Remove file.
84322         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
84323         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
84325         * m4/mbscasestr.m4: Remove file.
84326         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
84327         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
84329         * m4/mbschr.m4: Remove file.
84330         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
84331         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
84333         * m4/mbscspn.m4: Remove file.
84334         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
84335         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
84337         * m4/mbslen.m4: Remove file.
84338         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
84339         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
84341         * m4/mbsncasecmp.m4: Remove file.
84342         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84343         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84345         * m4/mbsnlen.m4: Remove file.
84346         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84347         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84349         * m4/mbspbrk.m4: Remove file.
84350         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84351         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84353         * m4/mbspcasecmp.m4: Remove file.
84354         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84355         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84357         * m4/mbsrchr.m4: Remove file.
84358         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84359         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84361         * m4/mbssep.m4: Remove file.
84362         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84363         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84365         * m4/mbsspn.m4: Remove file.
84366         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84367         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84369         * m4/mbsstr.m4: Remove file.
84370         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84371         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84373         * m4/mbstok_r.m4: Remove file.
84374         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84375         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84377         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84379         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84380         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84382         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84384 2009-03-08  Bruno Haible  <bruno@clisp.org>
84386         Tests for module 'unicase/ulc-casecmp'.
84387         * modules/unicase/ulc-casecmp-tests: New file.
84388         * tests/unicase/test-ulc-casecmp1.sh: New file.
84389         * tests/unicase/test-ulc-casecmp2.sh: New file.
84390         * tests/unicase/test-ulc-casecmp.c: New file.
84392         New module 'unicase/ulc-casecmp'.
84393         * lib/unicase.h (ulc_casecmp): New declaration.
84394         * lib/unicase/ulc-casecmp.c: New file.
84395         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84396         'const SRC_UNIT *'.
84397         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84398         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84399         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84400         * modules/unicase/ulc-casecmp: New file.
84402         Tests for module 'unicase/u32-is-cased'.
84403         * modules/unicase/u32-is-cased-tests: New file.
84404         * tests/unicase/test-u32-is-cased.c: New file.
84406         Tests for module 'unicase/u16-is-cased'.
84407         * modules/unicase/u16-is-cased-tests: New file.
84408         * tests/unicase/test-u16-is-cased.c: New file.
84410         Tests for module 'unicase/u8-is-cased'.
84411         * modules/unicase/u8-is-cased-tests: New file.
84412         * tests/unicase/test-u8-is-cased.c: New file.
84413         * tests/unicase/test-is-cased.h: New file.
84415         New module 'unicase/u32-is-cased'.
84416         * lib/unicase/u32-is-cased.c: New file.
84417         * modules/unicase/u32-is-cased: New file.
84419         New module 'unicase/u16-is-cased'.
84420         * lib/unicase/u16-is-cased.c: New file.
84421         * modules/unicase/u16-is-cased: New file.
84423         New module 'unicase/u8-is-cased'.
84424         * lib/unicase/u8-is-cased.c: New file.
84425         * lib/unicase/u-is-cased.h: New file.
84426         * modules/unicase/u8-is-cased: New file.
84428         Tests for module 'unicase/u32-is-casefolded'.
84429         * modules/unicase/u32-is-casefolded-tests: New file.
84430         * tests/unicase/test-u32-is-casefolded.c: New file.
84432         Tests for module 'unicase/u16-is-casefolded'.
84433         * modules/unicase/u16-is-casefolded-tests: New file.
84434         * tests/unicase/test-u16-is-casefolded.c: New file.
84436         Tests for module 'unicase/u8-is-casefolded'.
84437         * modules/unicase/u8-is-casefolded-tests: New file.
84438         * tests/unicase/test-u8-is-casefolded.c: New file.
84439         * tests/unicase/test-is-casefolded.h: New file.
84441         New module 'unicase/u32-is-casefolded'.
84442         * lib/unicase/u32-is-casefolded.c: New file.
84443         * modules/unicase/u32-is-casefolded: New file.
84445         New module 'unicase/u16-is-casefolded'.
84446         * lib/unicase/u16-is-casefolded.c: New file.
84447         * modules/unicase/u16-is-casefolded: New file.
84449         New module 'unicase/u8-is-casefolded'.
84450         * lib/unicase/u8-is-casefolded.c: New file.
84451         * modules/unicase/u8-is-casefolded: New file.
84453         Tests for module 'unicase/u32-is-titlecase'.
84454         * modules/unicase/u32-is-titlecase-tests: New file.
84455         * tests/unicase/test-u32-is-titlecase.c: New file.
84457         Tests for module 'unicase/u16-is-titlecase'.
84458         * modules/unicase/u16-is-titlecase-tests: New file.
84459         * tests/unicase/test-u16-is-titlecase.c: New file.
84461         Tests for module 'unicase/u8-is-titlecase'.
84462         * modules/unicase/u8-is-titlecase-tests: New file.
84463         * tests/unicase/test-u8-is-titlecase.c: New file.
84464         * tests/unicase/test-is-titlecase.h: New file.
84466         New module 'unicase/u32-is-titlecase'.
84467         * lib/unicase/u32-is-titlecase.c: New file.
84468         * modules/unicase/u32-is-titlecase: New file.
84470         New module 'unicase/u16-is-titlecase'.
84471         * lib/unicase/u16-is-titlecase.c: New file.
84472         * modules/unicase/u16-is-titlecase: New file.
84474         New module 'unicase/u8-is-titlecase'.
84475         * lib/unicase/u8-is-titlecase.c: New file.
84476         * modules/unicase/u8-is-titlecase: New file.
84478         Tests for module 'unicase/u32-is-lowercase'.
84479         * modules/unicase/u32-is-lowercase-tests: New file.
84480         * tests/unicase/test-u32-is-lowercase.c: New file.
84482         Tests for module 'unicase/u16-is-lowercase'.
84483         * modules/unicase/u16-is-lowercase-tests: New file.
84484         * tests/unicase/test-u16-is-lowercase.c: New file.
84486         Tests for module 'unicase/u8-is-lowercase'.
84487         * modules/unicase/u8-is-lowercase-tests: New file.
84488         * tests/unicase/test-u8-is-lowercase.c: New file.
84489         * tests/unicase/test-is-lowercase.h: New file.
84491         New module 'unicase/u32-is-lowercase'.
84492         * lib/unicase/u32-is-lowercase.c: New file.
84493         * modules/unicase/u32-is-lowercase: New file.
84495         New module 'unicase/u16-is-lowercase'.
84496         * lib/unicase/u16-is-lowercase.c: New file.
84497         * modules/unicase/u16-is-lowercase: New file.
84499         New module 'unicase/u8-is-lowercase'.
84500         * lib/unicase/u8-is-lowercase.c: New file.
84501         * modules/unicase/u8-is-lowercase: New file.
84503         Tests for module 'unicase/u32-is-uppercase'.
84504         * modules/unicase/u32-is-uppercase-tests: New file.
84505         * tests/unicase/test-u32-is-uppercase.c: New file.
84507         Tests for module 'unicase/u16-is-uppercase'.
84508         * modules/unicase/u16-is-uppercase-tests: New file.
84509         * tests/unicase/test-u16-is-uppercase.c: New file.
84511         Tests for module 'unicase/u8-is-uppercase'.
84512         * modules/unicase/u8-is-uppercase-tests: New file.
84513         * tests/unicase/test-u8-is-uppercase.c: New file.
84514         * tests/unicase/test-is-uppercase.h: New file.
84516         New module 'unicase/u32-is-uppercase'.
84517         * lib/unicase/u32-is-uppercase.c: New file.
84518         * modules/unicase/u32-is-uppercase: New file.
84520         New module 'unicase/u16-is-uppercase'.
84521         * lib/unicase/u16-is-uppercase.c: New file.
84522         * modules/unicase/u16-is-uppercase: New file.
84524         New module 'unicase/u8-is-uppercase'.
84525         * lib/unicase/u8-is-uppercase.c: New file.
84526         * modules/unicase/u8-is-uppercase: New file.
84528         New module 'unicase/u32-is-invariant'.
84529         * lib/unicase/u32-is-invariant.c: New file.
84530         * modules/unicase/u32-is-invariant: New file.
84532         New module 'unicase/u16-is-invariant'.
84533         * lib/unicase/u16-is-invariant.c: New file.
84534         * modules/unicase/u16-is-invariant: New file.
84536         New module 'unicase/u8-is-invariant'.
84537         * lib/unicase/u8-is-invariant.c: New file.
84538         * lib/unicase/invariant.h: New file.
84539         * lib/unicase/u-is-invariant.h: New file.
84540         * modules/unicase/u8-is-invariant: New file.
84542         Tests for module 'unicase/u32-casecoll'.
84543         * modules/unicase/u32-casecoll-tests: New file.
84544         * tests/unicase/test-u32-casecoll.c: New file.
84546         Tests for module 'unicase/u16-casecoll'.
84547         * modules/unicase/u16-casecoll-tests: New file.
84548         * tests/unicase/test-u16-casecoll.c: New file.
84550         Tests for module 'unicase/u8-casecoll'.
84551         * modules/unicase/u8-casecoll-tests: New file.
84552         * tests/unicase/test-u8-casecoll.c: New file.
84554         New module 'unicase/u32-casecoll'.
84555         * lib/unicase/u32-casecoll.c: New file.
84556         * modules/unicase/u32-casecoll: New file.
84558         New module 'unicase/u16-casecoll'.
84559         * lib/unicase/u16-casecoll.c: New file.
84560         * modules/unicase/u16-casecoll: New file.
84562         New module 'unicase/u8-casecoll'.
84563         * lib/unicase/u8-casecoll.c: New file.
84564         * lib/unicase/u-casecoll.h: New file.
84565         * modules/unicase/u8-casecoll: New file.
84567         New module 'unicase/u32-casexfrm'.
84568         * lib/unicase/u32-casexfrm.c: New file.
84569         * modules/unicase/u32-casexfrm: New file.
84571         New module 'unicase/u16-casexfrm'.
84572         * lib/unicase/u16-casexfrm.c: New file.
84573         * modules/unicase/u16-casexfrm: New file.
84575         New module 'unicase/u8-casexfrm'.
84576         * lib/unicase/u8-casexfrm.c: New file.
84577         * lib/unicase/u-casexfrm.h: New file.
84578         * modules/unicase/u8-casexfrm: New file.
84580         Tests for module 'unicase/u32-casecmp'.
84581         * modules/unicase/u32-casecmp-tests: New file.
84582         * tests/unicase/test-u32-casecmp.c: New file.
84584         Tests for module 'unicase/u16-casecmp'.
84585         * modules/unicase/u16-casecmp-tests: New file.
84586         * tests/unicase/test-u16-casecmp.c: New file.
84588         Tests for module 'unicase/u8-casecmp'.
84589         * modules/unicase/u8-casecmp-tests: New file.
84590         * tests/unicase/test-u8-casecmp.c: New file.
84591         * tests/unicase/test-casecmp.h: New file.
84593         New module 'unicase/u32-casecmp'.
84594         * lib/unicase/u32-casecmp.c: New file.
84595         * modules/unicase/u32-casecmp: New file.
84597         New module 'unicase/u16-casecmp'.
84598         * lib/unicase/u16-casecmp.c: New file.
84599         * modules/unicase/u16-casecmp: New file.
84601         New module 'unicase/u8-casecmp'.
84602         * lib/unicase/u8-casecmp.c: New file.
84603         * lib/unicase/u-casecmp.h: New file.
84604         * modules/unicase/u8-casecmp: New file.
84606         Tests for module 'unicase/u32-casefold'.
84607         * modules/unicase/u32-casefold-tests: New file.
84608         * tests/unicase/test-u32-casefold.c: New file.
84610         Tests for module 'unicase/u16-casefold'.
84611         * modules/unicase/u16-casefold-tests: New file.
84612         * tests/unicase/test-u16-casefold.c: New file.
84614         Tests for module 'unicase/u8-casefold'.
84615         * modules/unicase/u8-casefold-tests: New file.
84616         * tests/unicase/test-u8-casefold.c: New file.
84618         New module 'unicase/u32-casefold'.
84619         * lib/unicase/u32-casefold.c: New file.
84620         * modules/unicase/u32-casefold: New file.
84622         New module 'unicase/u16-casefold'.
84623         * lib/unicase/u16-casefold.c: New file.
84624         * modules/unicase/u16-casefold: New file.
84626         New module 'unicase/u8-casefold'.
84627         * lib/unicase/u8-casefold.c: New file.
84628         * lib/unicase/u-casefold.h: New file.
84629         * modules/unicase/u8-casefold: New file.
84631         New module 'unicase/tocasefold'.
84632         * lib/unicase/casefold.h: New file.
84633         * lib/unicase/tocasefold.c: New file.
84634         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
84635         * modules/unicase/tocasefold: New file.
84637         Tests for module 'unicase/u32-totitle'.
84638         * modules/unicase/u32-totitle-tests: New file.
84639         * tests/unicase/test-u32-totitle.c: New file.
84641         Tests for module 'unicase/u16-totitle'.
84642         * modules/unicase/u16-totitle-tests: New file.
84643         * tests/unicase/test-u16-totitle.c: New file.
84645         Tests for module 'unicase/u8-totitle'.
84646         * modules/unicase/u8-totitle-tests: New file.
84647         * tests/unicase/test-u8-totitle.c: New file.
84649         New module 'unicase/u32-totitle'.
84650         * lib/unicase/u32-totitle.c: New file.
84651         * modules/unicase/u32-totitle: New file.
84653         New module 'unicase/u16-totitle'.
84654         * lib/unicase/u16-totitle.c: New file.
84655         * modules/unicase/u16-totitle: New file.
84657         New module 'unicase/u8-totitle'.
84658         * lib/unicase/u8-totitle.c: New file.
84659         * lib/unicase/u-totitle.h: New file.
84660         * modules/unicase/u8-totitle: New file.
84662         Tests for module 'unicase/u32-tolower'.
84663         * modules/unicase/u32-tolower-tests: New file.
84664         * tests/unicase/test-u32-tolower.c: New file.
84666         Tests for module 'unicase/u16-tolower'.
84667         * modules/unicase/u16-tolower-tests: New file.
84668         * tests/unicase/test-u16-tolower.c: New file.
84670         Tests for module 'unicase/u8-tolower'.
84671         * modules/unicase/u8-tolower-tests: New file.
84672         * tests/unicase/test-u8-tolower.c: New file.
84674         New module 'unicase/u32-tolower'.
84675         * lib/unicase/u32-tolower.c: New file.
84676         * modules/unicase/u32-tolower: New file.
84678         New module 'unicase/u16-tolower'.
84679         * lib/unicase/u16-tolower.c: New file.
84680         * modules/unicase/u16-tolower: New file.
84682         New module 'unicase/u8-tolower'.
84683         * lib/unicase/u8-tolower.c: New file.
84684         * modules/unicase/u8-tolower: New file.
84686         Tests for module 'unicase/u32-toupper'.
84687         * modules/unicase/u32-toupper-tests: New file.
84688         * tests/unicase/test-u32-toupper.c: New file.
84690         Tests for module 'unicase/u16-toupper'.
84691         * modules/unicase/u16-toupper-tests: New file.
84692         * tests/unicase/test-u16-toupper.c: New file.
84694         Tests for module 'unicase/u8-toupper'.
84695         * modules/unicase/u8-toupper-tests: New file.
84696         * tests/unicase/test-u8-toupper.c: New file.
84698         New module 'unicase/u32-toupper'.
84699         * lib/unicase/u32-toupper.c: New file.
84700         * modules/unicase/u32-toupper: New file.
84702         New module 'unicase/u16-toupper'.
84703         * lib/unicase/u16-toupper.c: New file.
84704         * modules/unicase/u16-toupper: New file.
84706         New module 'unicase/u8-toupper'.
84707         * lib/unicase/u8-toupper.c: New file.
84708         * modules/unicase/u8-toupper: New file.
84710         New module 'unicase/u32-casemap'.
84711         * lib/unicase/u32-casemap.c: New file.
84712         * modules/unicase/u32-casemap: New file.
84714         New module 'unicase/u16-casemap'.
84715         * lib/unicase/u16-casemap.c: New file.
84716         * modules/unicase/u16-casemap: New file.
84718         New module 'unicase/u8-casemap'.
84719         * lib/unicase/unicasemap.h: New file.
84720         * lib/unicase/u8-casemap.c: New file.
84721         * lib/unicase/u-casemap.h: New file.
84722         * modules/unicase/u8-casemap: New file.
84724         New module 'unicase/special-casing'.
84725         * lib/unicase/special-casing.h: New file.
84726         * lib/unicase/special-casing.c: New file.
84727         * lib/unicase/special-casing-table.gperf: New file, generated by
84728         gen-uni-tables.c.
84729         * modules/unicase/special-casing: New file.
84731         Tests for module 'unicase/locale-language'.
84732         * modules/unicase/locale-language-tests: New file.
84733         * tests/unicase/test-locale-language.sh: New file.
84734         * tests/unicase/test-locale-language.c: New file.
84736         New module 'unicase/locale-language'.
84737         * lib/unicase/locale-language.c: New file.
84738         * lib/unicase/locale-languages.gperf: New file.
84739         * modules/unicase/locale-language: New file.
84741         Generate more tables for case conversion and case folding.
84742         * lib/gen-uni-tables.c (SCC_*): New enum items.
84743         (struct special_casing_rule): New type.
84744         (casing_rules, num_casing_rules, allocated_casing_rules): New
84745         variables.
84746         (add_casing_rule, fill_casing_rules): New functions.
84747         (struct casefold_rule): New type.
84748         (casefolding_rules, num_casefolding_rules,
84749         allocated_casefolding_rules): New variables.
84750         (fill_casefolding_rules): New function.
84751         (unicode_casefold): New variable.
84752         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84753         sort_casing_rules, output_casing_rules): New functions.
84754         (main): Accept to more arguments: SpecialCasing.txt and
84755         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84756         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84757         Output mapping for casefolding.
84759         * lib/unicase.h: Include stdbool.h, uninorm.h.
84760         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84761         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84762         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84763         arguments.
84764         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84765         resultp arguments.
84766         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84767         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84768         resultp arguments.
84769         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84770         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84771         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84772         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84773         declarations.
84774         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84776 2009-03-08  Bruno Haible  <bruno@clisp.org>
84778         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84779         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84780         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84781         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84783 2009-03-07  Bruno Haible  <bruno@clisp.org>
84785         Adjust u*_normcmp, u*_normcoll API.
84786         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84787         u16_normcoll, u32_normcoll): Change failure conventions.
84788         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84789         errno and return -1.
84790         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84792 2009-03-07  Bruno Haible  <bruno@clisp.org>
84794         Tests for module 'uninorm/u32-normcoll'.
84795         * modules/uninorm/u32-normcoll-tests: New file.
84796         * tests/uninorm/test-u32-normcoll.c: New file.
84798         Tests for module 'uninorm/u16-normcoll'.
84799         * modules/uninorm/u16-normcoll-tests: New file.
84800         * tests/uninorm/test-u16-normcoll.c: New file.
84802         Tests for module 'uninorm/u8-normcoll'.
84803         * modules/uninorm/u8-normcoll-tests: New file.
84804         * tests/uninorm/test-u8-normcoll.c: New file.
84806 2009-03-07  Bruno Haible  <bruno@clisp.org>
84808         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84809         tests/uninorm/test-u32-normcmp.c.
84810         * tests/uninorm/test-u32-normcmp.c: Include it.
84811         (test_nonascii): New function, extracted from main. Add some more
84812         tests.
84813         (main): Invoke test_ascii and test_nonascii.
84814         * modules/uninorm/u32-normcmp-tests (Files): Add
84815         tests/uninorm/test-u32-normcmp.h.
84816         (Depends-on): Remove uninorm/u32-normcmp.
84818         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84819         tests/uninorm/test-u16-normcmp.c.
84820         * tests/uninorm/test-u16-normcmp.c: Include it.
84821         (test_nonascii): New function, extracted from main. Add some more
84822         tests.
84823         (main): Invoke test_ascii and test_nonascii.
84824         * modules/uninorm/u16-normcmp-tests (Files): Add
84825         tests/uninorm/test-u16-normcmp.h.
84826         (Depends-on): Remove uninorm/u16-normcmp.
84828         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84829         tests/uninorm/test-u8-normcmp.c.
84830         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
84835         tests/uninorm/test-u8-normcmp.h.
84836         (Depends-on): Remove uninorm/u8-normcmp.
84838 2009-03-07  Bruno Haible  <bruno@clisp.org>
84840         New module 'uninorm/u32-normcoll'.
84841         * lib/uninorm/u32-normcoll.c: New file.
84842         * modules/uninorm/u32-normcoll: New file.
84844         New module 'uninorm/u16-normcoll'.
84845         * lib/uninorm/u16-normcoll.c: New file.
84846         * modules/uninorm/u16-normcoll: New file.
84848         New module 'uninorm/u8-normcoll'.
84849         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84850         declarations.
84851         * lib/uninorm/u8-normcoll.c: New file.
84852         * lib/uninorm/u-normcoll.h: New file.
84853         * modules/uninorm/u8-normcoll: New file.
84855         New module 'uninorm/u32-normxfrm'.
84856         * lib/uninorm/u32-normxfrm.c: New file.
84857         * modules/uninorm/u32-normxfrm: New file.
84859         New module 'uninorm/u16-normxfrm'.
84860         * lib/uninorm/u16-normxfrm.c: New file.
84861         * modules/uninorm/u16-normxfrm: New file.
84863         New module 'uninorm/u8-normxfrm'.
84864         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84865         declarations.
84866         * lib/uninorm/u8-normxfrm.c: New file.
84867         * lib/uninorm/u-normxfrm.h: New file.
84868         * modules/uninorm/u8-normxfrm: New file.
84870 2009-03-07  Bruno Haible  <bruno@clisp.org>
84872         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84873         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84874         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84876 2009-03-07  Bruno Haible  <bruno@clisp.org>
84878         New module 'memxfrm'.
84879         * lib/memxfrm.h: New file.
84880         * lib/memxfrm.c: New file.
84881         * modules/memxfrm: New file.
84883 2009-03-07  Bruno Haible  <bruno@clisp.org>
84885         New module 'memcmp2'.
84886         * lib/memcmp2.h: New file.
84887         * lib/memcmp2.c: New file.
84888         * modules/memcmp2: New file.
84890 2009-03-07  Bruno Haible  <bruno@clisp.org>
84892         Tests for module 'uninorm/decomposing-form'.
84893         * modules/uninorm/decomposing-form-tests: New file.
84894         * tests/uninorm/test-decomposing-form.c: New file.
84896         New module 'uninorm/decomposing-form'.
84897         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84898         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84899         Add 'decomposing_variant' field.
84900         * lib/uninorm/decomposing-form.c: New file.
84901         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84902         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84903         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84904         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84905         * modules/uninorm/decomposing-form: New file.
84906         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84907         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84909 2009-03-07  Bruno Haible  <bruno@clisp.org>
84911         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84912         strings.
84914 2009-03-06  Bruno Haible  <bruno@clisp.org>
84916         Tests for module 'uninorm/u32-normcmp'.
84917         * tests/uninorm/test-u32-normcmp.c: New file.
84918         * modules/uninorm/u32-normcmp-tests: New file.
84920         Tests for module 'uninorm/u16-normcmp'.
84921         * tests/uninorm/test-u16-normcmp.c: New file.
84922         * modules/uninorm/u16-normcmp-tests: New file.
84924         Tests for module 'uninorm/u8-normcmp'.
84925         * tests/uninorm/test-u8-normcmp.c: New file.
84926         * modules/uninorm/u8-normcmp-tests: New file.
84928         New module 'uninorm/u32-normcmp'.
84929         * lib/uninorm/u32-normcmp.c: New file.
84930         * modules/uninorm/u32-normcmp: New file.
84932         New module 'uninorm/u16-normcmp'.
84933         * lib/uninorm/u16-normcmp.c: New file.
84934         * modules/uninorm/u16-normcmp: New file.
84936         New module 'uninorm/u8-normcmp'.
84937         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84938         declarations.
84939         * lib/uninorm/u8-normcmp.c: New file.
84940         * lib/uninorm/u-normcmp.h: New file.
84941         * modules/uninorm/u8-normcmp: New file.
84943 2009-03-06  Bruno Haible  <bruno@clisp.org>
84945         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84946         Reported by Eric Blake.
84948 2009-03-06  Eric Blake  <ebb9@byu.net>
84949             Bruno Haible  <bruno@clisp.org>
84951         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84952         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84953         condition.
84954         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84955         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84956         condition.
84957         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84959 2009-03-06  Eric Blake  <ebb9@byu.net>
84961         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84962         to avoid compiler warnings.
84963         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84965 2009-03-05  Bruno Haible  <bruno@clisp.org>
84967         * tests/test-ftell.c (main): Disable test beyond end of file on
84968         FreeMiNT.
84969         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84971 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84973         * lib/filevercmp.c: Move hidden files up in ordering.
84974         * tests/test-filevercmp.c: Add tests for hidden files.
84976 2009-03-04  Bruno Haible  <bruno@clisp.org>
84978         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84979         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84980         AM_CFLAGS.
84981         Reported by Simon Josefsson.
84983 2009-03-03  Bruno Haible  <bruno@clisp.org>
84985         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84986         Reported by Simon Josefsson.
84988         * doc/ld-version-script.texi: Update node reference.
84990 2009-03-03  Bruno Haible  <bruno@clisp.org>
84992         * modules/visibility (License): Change to 'unlimited'.
84993         Suggested by Simon Josefsson.
84995 2009-03-03  Jim Meyering  <meyering@redhat.com>
84997         unlinkdir: cannot_unlink_dir may modify process state
84998         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84999         it's neither thread-safe nor appropriate for use in a library.
85001 2009-03-03  Eric Blake  <ebb9@byu.net>
85003         test-closein: silence test under Darwin
85004         * tests/test-closein.sh: Ignore stderr from cat, since we don't
85005         care if it dies from EPIPE or EBADF.
85007 2009-03-03  Bruno Haible  <bruno@clisp.org>
85009         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
85010         earlier.
85011         * doc/visibility.texi: Fix @node and @section.
85013 2009-03-03  Simon Josefsson  <simon@josefsson.org>
85015         * doc/gnulib.texi: Link to sections for ld version script and
85016         visibility.
85017         * doc/visibility.texi: Add @node and @section.
85018         * modules/ld-version-script: New module.
85019         * m4/ld-version-script.m4: New file.
85020         * doc/ld-version-script.texi: New file.
85022 2009-03-02  David Lutterkort  <lutter@redhat.com>
85024         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
85025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85027 2009-03-02  Bruno Haible  <bruno@clisp.org>
85029         * doc/visibility.texi: Mention libtool's -export-symbols option.
85031 2009-03-02  Jim Meyering  <meyering@redhat.com>
85033         announce-gen: new option: --no-print-checksums
85034         * build-aux/announce-gen (usage): Describe it.
85035         (print_checksums): Print a newline here, not in the [*] footnote.
85036         (main): Honor it.
85038 2009-03-01  Bruno Haible  <bruno@clisp.org>
85040         Use socklen_t in the native Windows replacements prototypes.
85041         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
85042         instead of 'int'.
85043         * lib/getsockopt.c (rpl_getsockopt): Likewise.
85044         * lib/setsockopt.c (rpl_setsockopt): Likewise.
85045         * modules/getsockopt (Depends-on): Add socklen.
85046         * modules/setsockopt (Depends-on): Add socklen.
85048 2009-03-01  Bruno Haible  <bruno@clisp.org>
85050         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
85051         least 4.2.
85053 2009-03-01  Eric Blake  <ebb9@byu.net>
85054             Bruno Haible  <bruno@clisp.org>
85056         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
85057         error messages.
85058         * lib/wait-process.c (wait_subprocess): Omit error message about
85059         deadly signal sent to the child of termsigp != NULL.
85061 2009-03-01  Eric Blake  <ebb9@byu.net>
85063         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
85065 2009-03-01  Bruno Haible  <bruno@clisp.org>
85067         Avoid a gcc warning.
85068         * tests/test-sched.c (b): Make global.
85069         Reported by Eric Blake.
85071 2009-01-19  Martin Lambers  <marlam@marlam.de>
85073         Provide POSIX semantics for socket timeout options on W32.
85074         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
85075         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
85076         * modules/setsockopt: Depend on sys_time module for struct timeval.
85077         * modules/getsockopt: Depend on sys_time module for struct timeval.
85079 2009-03-01  Simon Josefsson  <simon@josefsson.org>
85081         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
85082         __USE_GNU, for consistency with netdb.in.h.
85083         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85085 2009-03-01  Bruno Haible  <bruno@clisp.org>
85087         More support for FreeMiNT.
85088         * lib/fseeko.c (rpl_fseeko): Complete last commit.
85089         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85091 2009-03-01  Bruno Haible  <bruno@clisp.org>
85093         More support for FreeMiNT.
85094         * lib/fpurge.c (fpurge): Correct last commit.
85095         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85097 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85099         Fix unportable awk script in vc-list-files.
85100         * build-aux/vc-list-files: In the replacement awk script, use
85101         substr with a second argument of 1, not zero.
85102         Report by Simon Josefsson.
85104 2009-02-28  Bruno Haible  <bruno@clisp.org>
85106         More support for FreeMiNT.
85107         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
85108         to FreeMiNT today.
85109         * lib/fwriting.c (fwriting): Likewise.
85110         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
85112 2009-02-28  Bruno Haible  <bruno@clisp.org>
85114         * tests/test-freadseek.c (main): Disable test beyond end of file on
85115         FreeMiNT.
85116         * tests/test-ftello.c (main): Likewise.
85117         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85119 2009-02-28  Bruno Haible  <bruno@clisp.org>
85121         Add tentative support for FreeMiNT.
85122         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
85123         * lib/fpurge.c (fpurge): Likewise.
85124         * lib/freadable.c (freadable): Likewise.
85125         * lib/freading.c (freading): Likewise.
85126         * lib/freadptr.c (freadptr): Likewise.
85127         * lib/freadseek.c (freadptrinc): Likewise.
85128         * lib/fseeko.c (rpl_fseeko): Likewise.
85129         * lib/fseterr.c (fseterr): Likewise.
85130         * lib/fwritable.c (fwritable): Likewise.
85131         * lib/fwriting.c (fwriting): Likewise.
85132         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
85133         Hourihane.
85134         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85136 2009-02-28  Bruno Haible  <bruno@clisp.org>
85138         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
85139         SIGCHLD.
85140         Reported by Jim Meyering.
85142 2009-02-28  Bruno Haible  <bruno@clisp.org>
85144         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
85145         Mention the results of these tests on various platforms.
85146         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
85147         order.
85148         * doc/posix-functions/printf.texi: Likewise.
85149         * doc/posix-functions/snprintf.texi: Likewise.
85150         * doc/posix-functions/sprintf.texi: Likewise.
85151         * doc/posix-functions/vfprintf.texi: Likewise.
85152         * doc/posix-functions/vprintf.texi: Likewise.
85153         * doc/posix-functions/vsnprintf.texi: Likewise.
85154         * doc/posix-functions/vsprintf.texi: Likewise.
85155         * doc/glibc-functions/obstack_printf.texi: Likewise.
85156         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
85158 2009-02-28  Bruno Haible  <bruno@clisp.org>
85160         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
85161         Reported by Loïc Minier <lool@dooz.org>.
85163 2009-02-27  Bruno Haible  <bruno@clisp.org>
85165         * gnulib-tool (func_import): Make the sed expression used to create the
85166         sed script for updating the .gitignore file POSIX compliant.
85167         Reported by Eric Blake.
85169 2009-02-27  Bruno Haible  <bruno@clisp.org>
85171         * gnulib-tool (sed): Don't alias as "sed --posix".
85172         Reported by Eric Blake.
85174 2009-02-27  Bruno Haible  <bruno@clisp.org>
85176         Avoid test link errors.
85177         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
85178         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
85179         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
85180         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
85181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85183 2009-02-27  Bruno Haible  <bruno@clisp.org>
85185         Avoid spurious "(cached)" in configure output.
85186         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
85187         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
85188         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
85189         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
85190         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
85191         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
85192         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
85193         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
85194         Reported by Eric Blake.
85196 2009-02-27  Eric Blake  <ebb9@byu.net>
85198         printf: fix regression in previous patch
85199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
85201 2009-02-27  Bruno Haible  <bruno@clisp.org>
85203         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
85204         value.
85205         * lib/stdint.in.h: Likewise.
85206         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
85208 2009-02-27  Eric Blake  <ebb9@byu.net>
85210         doc: mention more functions added in cygwin 1.7.0
85211         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
85212         addition.
85213         * doc/posix-functions/open_wmemstream.texi: Likewise.
85214         * doc/posix-functions/wcsnlen.texi: Likewise.
85215         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85216         * doc/posix-functions/wcstod.texi: Likewise.
85217         * doc/posix-functions/wcstof.texi: Likewise.
85218         * doc/posix-functions/wcstoimax.texi: Likewise.
85219         * doc/posix-functions/wcstok.texi: Likewise.
85220         * doc/posix-functions/wcstoumax.texi: Likewise.
85222         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
85223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
85224         * doc/posix-functions/fprintf.texi: Update.
85225         * doc/posix-functions/printf.texi: Update.
85226         * doc/posix-functions/snprintf.texi: Update.
85227         * doc/posix-functions/sprintf.texi: Update.
85228         * doc/posix-functions/vfprintf.texi: Update.
85229         * doc/posix-functions/vprintf.texi: Update.
85230         * doc/posix-functions/vsnprintf.texi: Update.
85231         * doc/posix-functions/vsprintf.texi: Update.
85232         * doc/glibc-functions/obstack_printf.texi: Update.
85233         * doc/glibc-functions/obstack_vprintf.texi: Update.
85235 2009-02-26  Eric Blake  <ebb9@byu.net>
85237         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
85238         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
85239         compilation bug by using runtime conversion.
85240         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
85241         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
85242         * modules/ceill-tests (Files): Use nan.h.
85243         * modules/floorl-tests (Files): Likewise.
85244         * modules/frexpl-tests (Files): Likewise.
85245         * modules/isnanl-tests (Files): Likewise.
85246         * modules/ldexpl-tests (Files): Likewise.
85247         * modules/roundl-tests (Files): Likewise.
85248         * modules/truncl-tests (Files): Likewise.
85249         * tests/test-ceill.c (main): Use a working NaN.
85250         * tests/test-floorl.c (main): Likewise.
85251         * tests/test-frexpl.c (main): Likewise.
85252         * tests/test-isnan.c (test_long_double): Likewise.
85253         * tests/test-isnanl.h (main): Likewise.
85254         * tests/test-ldexpl.h (main): Likewise.
85255         * tests/test-roundl.h (main): Likewise.
85256         * tests/test-truncl.h (main): Likewise.
85257         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
85259 2009-02-26  Eric Blake  <ebb9@byu.net>
85260             Bruno Haible  <bruno@clisp.org>
85262         Work around a *printf bug with %ls on Solaris.
85263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
85264         precision is specified, sprintf stops converting the wide string
85265         argument when the number of bytes that have been produced by this
85266         conversion equals or exceeds the precision.
85267         * doc/posix-functions/fprintf.texi: Update.
85268         * doc/posix-functions/printf.texi: Update.
85269         * doc/posix-functions/snprintf.texi: Update.
85270         * doc/posix-functions/sprintf.texi: Update.
85271         * doc/posix-functions/vfprintf.texi: Update.
85272         * doc/posix-functions/vprintf.texi: Update.
85273         * doc/posix-functions/vsnprintf.texi: Update.
85274         * doc/posix-functions/vsprintf.texi: Update.
85275         * doc/glibc-functions/obstack_printf.texi: Update.
85276         * doc/glibc-functions/obstack_vprintf.texi: Update.
85278 2009-02-26  Eric Blake  <ebb9@byu.net>
85280         stdlib: favor compiler check of random.h
85281         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
85282         to avoid an ObjC random.h installed by Swarm.
85284 2009-02-26  Bruno Haible  <bruno@clisp.org>
85286         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
85287         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
85288         Reported by Gary V. Vaughan <gary@gnu.org>.
85290 2009-02-26  Bruno Haible  <bruno@clisp.org>
85292         Fix *printf behaviour regarding the %ls directive.
85293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
85294         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
85295         NEED_PRINTF_DIRECTIVE_LS.
85296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
85297         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85299         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
85300         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
85301         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
85302         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85307         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
85308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85311         * doc/posix-functions/fprintf.texi: Update.
85312         * doc/posix-functions/printf.texi: Update.
85313         * doc/posix-functions/snprintf.texi: Update.
85314         * doc/posix-functions/sprintf.texi: Update.
85315         * doc/posix-functions/vfprintf.texi: Update.
85316         * doc/posix-functions/vprintf.texi: Update.
85317         * doc/posix-functions/vsnprintf.texi: Update.
85318         * doc/posix-functions/vsprintf.texi: Update.
85319         * doc/glibc-functions/obstack_printf.texi: Update.
85320         * doc/glibc-functions/obstack_vprintf.texi: Update.
85321         Reported by Eric Blake.
85323 2009-02-25  Bruno Haible  <bruno@clisp.org>
85325         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
85326         with known value.
85327         Reported by Gary V. Vaughan <gary@gnu.org>.
85329 2009-02-25  Bruno Haible  <bruno@clisp.org>
85331         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
85332         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
85333         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
85334         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
85335         Reported by Gary V. Vaughan <gary@gnu.org>.
85337 2009-02-25  Bruno Haible  <bruno@clisp.org>
85339         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
85340         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
85341         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85342         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85343         Reported by Gary V. Vaughan <gary@gnu.org>.
85345 2009-02-25  Eric Blake  <ebb9@byu.net>
85347         tests: skip fseek/ftell tests if ungetc is broken
85348         * m4/ungetc.m4: New file.
85349         * modules/fseek-tests: Split test, so ungetc dependency is
85350         separate from rest of test.
85351         * modules/fseeko-tests: Likewise.
85352         * modules/ftell-tests: Likewise.
85353         * modules/ftello-tests: Likewise.
85354         * tests/test-fseek.c (main): Isolate ungetc dependency.
85355         * tests/test-fseeko.c (main): Likewise.
85356         * tests/test-ftell.c (main): Likewise.
85357         * tests/test-ftello.c (main): Likewise.
85358         * tests/test-fseek2.sh: New file.
85359         * tests/test-fseeko2.sh: Likewise.
85360         * tests/test-ftell2.sh: Likewise.
85361         * tests/test-ftello2.sh: Likewise.
85363 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85365         test-getaddrinfo: fix usage of skip return code 77
85366         * tests/test-gettaddrinfo.c: Return skip code 77 only
85367         for first occurrence of skip (4x77 is not 77)
85369 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85371         strtod: avoid C99 decl-after-statement
85372         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85374 2009-02-24  Eric Blake  <ebb9@byu.net>
85376         strtod: detect HP-UX 11.31 bug
85377         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85378         Reported by Gary V. Vaughan.
85380 2009-02-23  Bruno Haible  <bruno@clisp.org>
85382         Fix invalid read past end of memory block.
85383         * lib/vasnprintf.c (DCHAR_SET): Define.
85384         (local_wcslen): Define only when needed.
85385         (local_strnlen, local_wcsnlen): New functions.
85386         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85387         directives that involve a conversion ourselves.
85388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85389         wcsnlen, mbrtowc, wcrtomb.
85390         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85391         * tests/test-vasprintf-posix.c (test_function): Likewise.
85392         * tests/test-snprintf-posix.h (test_function): Likewise.
85393         * tests/test-sprintf-posix.h (test_function): Likewise.
85394         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85396 2009-02-22  Bruno Haible  <bruno@clisp.org>
85398         Implement new clarified decomposition of Hangul syllables.
85399         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85400         of type LTV, return only a pairwise decomposition.
85401         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85402         Likewise.
85403         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85404         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85405         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85407 2009-02-22  Bruno Haible  <bruno@clisp.org>
85409         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85410         zero-length results and shrink excess allocated memory.
85411         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85412         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85413         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85414         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85415         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85416         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85417         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85418         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85419         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85420         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85421         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85422         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85424 2009-02-21  Bruno Haible  <bruno@clisp.org>
85426         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85427         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85428         spaces after a period. Put a space between a macro name and its
85429         argument list. Trivial rewordings.
85430         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85431         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85432         (main): Return 0 explicitly.
85434 2009-02-21  Bruno Haible  <bruno@clisp.org>
85436         Tests for module 'uninorm/filter'.
85437         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85438         * modules/uninorm/filter-tests: New file.
85440         New module 'uninorm/filter'.
85441         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85442         uninorm_filter_flush, uninorm_filter_free): New declarations.
85443         * lib/uninorm/uninorm-filter.c: New file.
85444         * modules/uninorm/filter: New file.
85446 2009-02-21  Bruno Haible  <bruno@clisp.org>
85448         Tests for module 'uninorm/nfkc'.
85449         * tests/uninorm/test-nfkc.c: New file.
85450         * tests/uninorm/test-u8-nfkc.c: New file.
85451         * tests/uninorm/test-u16-nfkc.c: New file.
85452         * tests/uninorm/test-u32-nfkc.c: New file.
85453         * tests/uninorm/test-u32-nfkc-big.sh: New file.
85454         * tests/uninorm/test-u32-nfkc-big.c: New file.
85455         * modules/uninorm/nfkc-tests: New file.
85457         New module 'uninorm/nfkc'.
85458         * lib/uninorm/nfkc.c: New file.
85459         * modules/uninorm/nfkc: New file.
85461         Tests for module 'uninorm/nfkd'.
85462         * tests/uninorm/test-nfkd.c: New file.
85463         * tests/uninorm/test-u8-nfkd.c: New file.
85464         * tests/uninorm/test-u16-nfkd.c: New file.
85465         * tests/uninorm/test-u32-nfkd.c: New file.
85466         * tests/uninorm/test-u32-nfkd-big.sh: New file.
85467         * tests/uninorm/test-u32-nfkd-big.c: New file.
85468         * modules/uninorm/nfkd-tests: New file.
85470         New module 'uninorm/nfkd'.
85471         * lib/uninorm/nfkd.c: New file.
85472         * modules/uninorm/nfkd: New file.
85474         Tests for module 'uninorm/nfc'.
85475         * tests/uninorm/test-nfc.c: New file.
85476         * tests/uninorm/test-u8-nfc.c: New file.
85477         * tests/uninorm/test-u16-nfc.c: New file.
85478         * tests/uninorm/test-u32-nfc.c: New file.
85479         * tests/uninorm/test-u32-nfc-big.sh: New file.
85480         * tests/uninorm/test-u32-nfc-big.c: New file.
85481         * modules/uninorm/nfc-tests: New file.
85483         New module 'uninorm/nfc'.
85484         * lib/uninorm/nfc.c: New file.
85485         * modules/uninorm/nfc: New file.
85487         Tests for module 'uninorm/nfd'.
85488         * tests/uninorm/test-nfd.c: New file.
85489         * tests/uninorm/test-u8-nfd.c: New file.
85490         * tests/uninorm/test-u16-nfd.c: New file.
85491         * tests/uninorm/test-u32-nfd.c: New file.
85492         * tests/uninorm/test-u32-nfd-big.sh: New file.
85493         * tests/uninorm/test-u32-nfd-big.c: New file.
85494         * tests/uninorm/test-u32-normalize-big.h: New file.
85495         * tests/uninorm/test-u32-normalize-big.c: New file.
85496         * tests/uninorm/NormalizationTest.txt: New file, created from
85497         Unicode 5.1.0 NormalizationTest.txt.
85498         * modules/uninorm/nfd-tests: New file.
85500         New module 'uninorm/nfd'.
85501         * lib/uninorm/nfd.c: New file.
85502         * modules/uninorm/nfd: New file.
85504         New module 'uninorm/u32-normalize'.
85505         * lib/uninorm/u32-normalize.c: New file.
85506         * modules/uninorm/u32-normalize: New file.
85508         New module 'uninorm/u16-normalize'.
85509         * lib/uninorm/u16-normalize.c: New file.
85510         * modules/uninorm/u16-normalize: New file.
85512         New module 'uninorm/u8-normalize'.
85513         * lib/uninorm/u8-normalize.c: New file.
85514         * lib/uninorm/normalize-internal.h: New file.
85515         * lib/uninorm/u-normalize-internal.h: New file.
85516         * modules/uninorm/u8-normalize: New file.
85518         New module 'uninorm/decompose-internal'.
85519         * lib/uninorm/decompose-internal.c: New file.
85520         * modules/uninorm/decompose-internal: New file.
85522         Tests for module 'uninorm/composition'.
85523         * tests/uninorm/test-composition.c: New file.
85524         * modules/uninorm/composition-tests: New file.
85526         New module 'uninorm/composition'.
85527         * lib/uninorm/composition.c: New file.
85528         * lib/uninorm/composition-table.gperf: New file, generated by
85529         gen-uni-tables.
85530         * modules/uninorm/composition: New file.
85532         Tests for module 'uninorm/compat-decomposition'.
85533         * tests/uninorm/test-compat-decomposition.c: New file.
85534         * modules/uninorm/compat-decomposition-tests: New file.
85536         New module 'uninorm/compat-decomposition'.
85537         * lib/uninorm/decompose-internal.h: New file.
85538         * lib/uninorm/compat-decomposition.c: New file.
85539         * modules/uninorm/compat-decomposition: New file.
85541         Tests for module 'uninorm/canonical-decomposition'.
85542         * tests/uninorm/test-canonical-decomposition.c: New file.
85543         * modules/uninorm/canonical-decomposition-tests: New file.
85545         New module 'uninorm/canonical-decomposition'.
85546         * lib/uninorm/canonical-decomposition.c: New file.
85547         * modules/uninorm/canonical-decomposition: New file.
85549         Tests for module 'uninorm/decomposition'.
85550         * tests/uninorm/test-decomposition.c: New file.
85551         * modules/uninorm/decomposition-tests: New file.
85553         New module 'uninorm/decomposition'.
85554         * lib/uninorm/decomposition.c: New file.
85555         * modules/uninorm/decomposition: New file.
85557         New module 'uninorm/decomposition-table'.
85558         * lib/uninorm/decomposition-table.h: New file.
85559         * lib/uninorm/decomposition-table.c: New file.
85560         * lib/uninorm/decomposition-table1.h: New file, generated by
85561         gen-uni-tables.
85562         * lib/uninorm/decomposition-table2.h: New file, generated by
85563         gen-uni-tables.
85564         * modules/uninorm/decomposition-table: New file.
85566         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
85567         (UC_DECOMP_*): New enumeration items.
85568         (get_decomposition): New function.
85569         (struct decomp_table): New type.
85570         (output_decomposition, output_decomposition_tables): New functions.
85571         (unicode_composition_exclusions): New variable.
85572         (fill_composition_exclusions, debug_output_composition_tables): New
85573         functions.
85574         (main): Accept one more argument. Invoke fill_composition_exclusions.
85575         Output decomposition and composition tables.
85577         New module 'uninorm/base'.
85578         * lib/uninorm.h: New file.
85579         * lib/unictype.h: Update comment.
85580         * modules/uninorm/base: New file.
85582 2009-02-21  David Lutterkort  <lutter@redhat.com>
85584         Tests for module 'safe-alloc'.
85585         * tests/test-safe-alloc.c: New file.
85586         * modules/safe-alloc-tests: New file.
85588         New module 'safe-alloc'.
85589         * lib/safe-alloc.h: New file.
85590         * lib/safe-alloc.c: New file.
85591         * m4/safe-alloc.m4: New file.
85592         * modules/safe-alloc: New file.
85593         * doc/safe-alloc.texi: New file.
85594         * doc/gnulib.texi: Include it.
85595         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85596         safe-alloc.
85598 2009-02-18  Bruno Haible  <bruno@clisp.org>
85600         Fix link error on non-glibc systems.
85601         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
85602         variable.
85603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85605 2009-02-18  Jim Meyering  <meyering@redhat.com>
85607         fts: avoid used-uninitialized error due to recent change
85608         * lib/fts.c (fts_read): Guard uses of the new member,
85609         parent->fts_n_dirs_remaining, since it's not relevant for
85610         the parent of a directory specified on the command-line.
85612 2009-02-17  James Youngman  <jay@gnu.org>
85613             Bruno Haible  <bruno@clisp.org>
85615         * m4/include_next.m4: Reformulate comment.
85617 2009-02-16  Jim Meyering  <meyering@redhat.com>
85619         fts: add #if guards so that the fts_lgpl module still builds
85620         * lib/fts.c: Guard just-added hash-table-using parts with
85621         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
85622         Reported by Simon Josefsson.
85624 2009-02-15  Bruno Haible  <bruno@clisp.org>
85626         * modules/array-mergesort-tests: New file.
85627         * tests/test-array-mergesort.c: New file.
85629         New module 'array-mergesort'.
85630         * modules/array-mergesort: New file.
85631         * lib/array-mergesort.h: New file.
85633 2009-02-15  Bruno Haible  <bruno@clisp.org>
85635         Fix 2009-02-07 commit.
85636         * lib/gen-uni-tables.c (output_predicate, output_category,
85637         output_combclass, output_bidi_category, output_decimal_digit,
85638         output_digit, output_numeric, output_mirror, output_scripts,
85639         output_ident_category, output_simple_mapping): Fix format directives.
85640         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
85642 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
85644         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
85645         fixes are available from IBM.
85647 2009-02-13  Jim Meyering  <meyering@redhat.com>
85649         fts: arrange not to stat non-directories in more cases
85650         This makes GNU find (when it doesn't need to stat each file)
85651         *much* more efficient at traversing reiserfs file systems.
85652         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
85653         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
85654         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
85655         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
85656         (leaf_optimization_applies): New function.
85657         (LCO_hash, LCO_compare): New helper functions.
85658         (link_count_optimize_ok): New function.
85659         (fts_stat): Initialize new member (if dir).
85660         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85661         we've just stat'ed a directory.  Skip the stat call when possible.
85662         ---
85663         Note this AFS-related exchange:
85664         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85665         and note find's pioctl call in find/fstype.c.
85666         But that is necessary only if you want to enable the
85667         optimization for AFS, and for now, I don't.
85669         fts: move a function definition "up" (no semantic change)
85670         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85671         "up" to precede upcoming use of a related function.
85673 2009-02-11  Jim Meyering  <meyering@redhat.com>
85675         fts: correct internal computation of nlinks (optimization-related)
85676         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85677         whether the current entry is a directory, so don't test it.
85679 2009-02-10  Bruno Haible  <bruno@clisp.org>
85681         Tests for module 'uniwbrk/ulc-wordbreaks'.
85682         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85683         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85684         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85686         Tests for module 'uniwbrk/u32-wordbreaks'.
85687         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85688         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85690         Tests for module 'uniwbrk/u16-wordbreaks'.
85691         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85692         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85694         Tests for module 'uniwbrk/u8-wordbreaks'.
85695         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85696         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85698 2009-02-10  Bruno Haible  <bruno@clisp.org>
85700         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85701         property.
85702         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85703         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85704         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85706 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85708         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85709         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85711 2009-02-10  Bruno Haible  <bruno@clisp.org>
85713         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85714         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85715         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85716         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85717         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85718         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85720 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85722         * lib/sockets.h (gl_fd_to_handle): New function.
85724         * tests/test-sockets.c: Call gl_fd_to_handle.
85726 2009-02-09  Bruno Haible  <bruno@clisp.org>
85728         * doc/havelib.texi: Document the conventions on bi-arch systems.
85730 2009-02-08  Bruno Haible  <bruno@clisp.org>
85732         Document the AC_LIB_LINKFLAGS macro.
85733         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85734         * doc/gnulib.texi: Include it.
85736 2009-02-08  Bruno Haible  <bruno@clisp.org>
85738         Fix wrong order of sections, compared to TOC.
85739         * doc/gnulib.texi: Include relocatable-maint.texi after the
85740         "Regular expressions" node, not before.
85742 2009-02-08  Bruno Haible  <bruno@clisp.org>
85744         Tests for module 'unicase/totitle'.
85745         * modules/unicase/totitle-tests: New file.
85747         Tests for module 'unicase/tolower'.
85748         * modules/unicase/tolower-tests: New file.
85750         Tests for module 'unicase/toupper'.
85751         * modules/unicase/toupper-tests: New file.
85752         * tests/unicase/test-mapping-part1.h: New file.
85753         * tests/unicase/test-mapping-part2.h: New file.
85755         New module 'unicase/totitle'.
85756         * modules/unicase/totitle: New file.
85757         * lib/unicase/totitle.c: New file.
85759         New module 'unicase/tolower'.
85760         * modules/unicase/tolower: New file.
85761         * lib/unicase/tolower.c: New file.
85763         New module 'unicase/toupper'.
85764         * modules/unicase/toupper: New file.
85765         * lib/unicase/toupper.c: New file.
85766         * lib/unicase/simple-mapping.h: New file.
85768         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85769         (mapping_table): New structure.
85770         (output_simple_mapping): New function.
85771         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85772         * modules/gen-uni-tables (Description): Update.
85773         * lib/unicase/toupper.h: New file, automatically generated by
85774         gen-uni-tables.
85775         * lib/unicase/tolower.h: New file, automatically generated by
85776         gen-uni-tables.
85777         * lib/unicase/totitle.h: New file, automatically generated by
85778         gen-uni-tables.
85779         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85780         gen-uni-tables.
85781         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85782         gen-uni-tables.
85783         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85784         gen-uni-tables.
85786         New module 'unicase/base'.
85787         * modules/unicase/base: New file.
85788         * lib/unicase.h: New file.
85790 2009-02-08  Bruno Haible  <bruno@clisp.org>
85792         New module 'uniwbrk/ulc-wordbreaks'.
85793         * modules/uniwbrk/ulc-wordbreaks: New file.
85794         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85796         New module 'uniwbrk/u32-wordbreaks'.
85797         * modules/uniwbrk/u32-wordbreaks: New file.
85798         * lib/uniwbrk/u32-wordbreaks.c: New file.
85800         New module 'uniwbrk/u16-wordbreaks'.
85801         * modules/uniwbrk/u16-wordbreaks: New file.
85802         * lib/uniwbrk/u16-wordbreaks.c: New file.
85804         New module 'uniwbrk/u8-wordbreaks'.
85805         * modules/uniwbrk/u8-wordbreaks: New file.
85806         * lib/uniwbrk/u8-wordbreaks.c: New file.
85807         * lib/uniwbrk/u-wordbreaks.h: New file.
85809         New module 'uniwbrk/table'.
85810         * modules/uniwbrk/table: New file.
85811         * lib/uniwbrk/wbrktable.h: New file.
85812         * lib/uniwbrk/wbrktable.c: New file.
85814         New module 'uniwbrk/wordbreak-property'.
85815         * modules/uniwbrk/wordbreak-property: New file.
85816         * lib/uniwbrk/wordbreak-property.c: New file.
85818         * lib/gen-uni-tables.c (WBP_*): New enum items.
85819         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85820         (unicode_org_wbp): New variable.
85821         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85822         New functions.
85823         (wbp_table): New structure.
85824         (output_wbp, output_wbrk_tables): New functions.
85825         (main): Accept additional argument. Invoke fill_org_wbp,
85826         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85827         output_wbrk_tables.
85828         * modules/gen-uni-tables (Description): Update.
85829         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85830         gen-uni-tables.
85832         New module 'uniwbrk/base'.
85833         * modules/uniwbrk/base: New file.
85834         * lib/uniwbrk.h: New file.
85836 2009-02-08  Bruno Haible  <bruno@clisp.org>
85838         Update to Unicode 5.1.0.
85839         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85840         U+2185..U+2188.
85841         (is_property_default_ignorable_code_point): Don't include characters
85842         of category Cc or Cs and not-a-characters.
85843         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85844         U+0D79, U+109E, U+109F, U+A60C.
85845         * lib/unictype/bidi_of.h: Regenerated.
85846         * lib/unictype/blocks.h: Regenerated.
85847         * lib/unictype/categ_C.h: Regenerated.
85848         * lib/unictype/categ_Cf.h: Regenerated.
85849         * lib/unictype/categ_Cn.h: Regenerated.
85850         * lib/unictype/categ_L.h: Regenerated.
85851         * lib/unictype/categ_Ll.h: Regenerated.
85852         * lib/unictype/categ_Lm.h: Regenerated.
85853         * lib/unictype/categ_Lo.h: Regenerated.
85854         * lib/unictype/categ_Lu.h: Regenerated.
85855         * lib/unictype/categ_M.h: Regenerated.
85856         * lib/unictype/categ_Mc.h: Regenerated.
85857         * lib/unictype/categ_Me.h: Regenerated.
85858         * lib/unictype/categ_Mn.h: Regenerated.
85859         * lib/unictype/categ_N.h: Regenerated.
85860         * lib/unictype/categ_Nd.h: Regenerated.
85861         * lib/unictype/categ_Nl.h: Regenerated.
85862         * lib/unictype/categ_No.h: Regenerated.
85863         * lib/unictype/categ_P.h: Regenerated.
85864         * lib/unictype/categ_Pd.h: Regenerated.
85865         * lib/unictype/categ_Pe.h: Regenerated.
85866         * lib/unictype/categ_Pf.h: Regenerated.
85867         * lib/unictype/categ_Pi.h: Regenerated.
85868         * lib/unictype/categ_Po.h: Regenerated.
85869         * lib/unictype/categ_Ps.h: Regenerated.
85870         * lib/unictype/categ_S.h: Regenerated.
85871         * lib/unictype/categ_Sk.h: Regenerated.
85872         * lib/unictype/categ_Sm.h: Regenerated.
85873         * lib/unictype/categ_So.h: Regenerated.
85874         * lib/unictype/categ_of.h: Regenerated.
85875         * lib/unictype/combining.h: Regenerated.
85876         * lib/unictype/ctype_alnum.h: Regenerated.
85877         * lib/unictype/ctype_alpha.h: Regenerated.
85878         * lib/unictype/ctype_graph.h: Regenerated.
85879         * lib/unictype/ctype_lower.h: Regenerated.
85880         * lib/unictype/ctype_print.h: Regenerated.
85881         * lib/unictype/ctype_punct.h: Regenerated.
85882         * lib/unictype/ctype_upper.h: Regenerated.
85883         * lib/unictype/decdigit.h: Regenerated.
85884         * lib/unictype/digit.h: Regenerated.
85885         * lib/unictype/mirror.h: Regenerated.
85886         * lib/unictype/numeric.h: Regenerated.
85887         * lib/unictype/pr_alphabetic.h: Regenerated.
85888         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85889         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85890         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85891         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85892         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85893         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85894         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85895         * lib/unictype/pr_combining.h: Regenerated.
85896         * lib/unictype/pr_dash.h: Regenerated.
85897         * lib/unictype/pr_decimal_digit.h: Regenerated.
85898         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85899         * lib/unictype/pr_deprecated.h: Regenerated.
85900         * lib/unictype/pr_diacritic.h: Regenerated.
85901         * lib/unictype/pr_extender.h: Regenerated.
85902         * lib/unictype/pr_format_control.h: Regenerated.
85903         * lib/unictype/pr_grapheme_base.h: Regenerated.
85904         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85905         * lib/unictype/pr_grapheme_link.h: Regenerated.
85906         * lib/unictype/pr_id_continue.h: Regenerated.
85907         * lib/unictype/pr_id_start.h: Regenerated.
85908         * lib/unictype/pr_ideographic.h: Regenerated.
85909         * lib/unictype/pr_ignorable_control.h: Regenerated.
85910         * lib/unictype/pr_lowercase.h: Regenerated.
85911         * lib/unictype/pr_math.h: Regenerated.
85912         * lib/unictype/pr_numeric.h: Regenerated.
85913         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85914         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85915         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85916         * lib/unictype/pr_other_id_continue.h: Regenerated.
85917         * lib/unictype/pr_other_lowercase.h: Regenerated.
85918         * lib/unictype/pr_other_math.h: Regenerated.
85919         * lib/unictype/pr_punctuation.h: Regenerated.
85920         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85921         * lib/unictype/pr_soft_dotted.h: Regenerated.
85922         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85923         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85924         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85925         * lib/unictype/pr_uppercase.h: Regenerated.
85926         * lib/unictype/pr_xid_continue.h: Regenerated.
85927         * lib/unictype/pr_xid_start.h: Regenerated.
85928         * lib/unictype/pr_zero_width.h: Regenerated.
85929         * lib/unictype/scripts.h: Regenerated.
85930         * lib/unictype/scripts_byname.gperf: Regenerated.
85931         * lib/unictype/sy_java_ident.h: Regenerated.
85932         * lib/unilbrk/lbrkprop1.h: Regenerated.
85933         * lib/unilbrk/lbrkprop2.h: Regenerated.
85934         * tests/unictype/test-categ_C.c: Regenerated.
85935         * tests/unictype/test-categ_Cf.c: Regenerated.
85936         * tests/unictype/test-categ_Cn.c: Regenerated.
85937         * tests/unictype/test-categ_L.c: Regenerated.
85938         * tests/unictype/test-categ_Ll.c: Regenerated.
85939         * tests/unictype/test-categ_Lm.c: Regenerated.
85940         * tests/unictype/test-categ_Lo.c: Regenerated.
85941         * tests/unictype/test-categ_Lu.c: Regenerated.
85942         * tests/unictype/test-categ_M.c: Regenerated.
85943         * tests/unictype/test-categ_Mc.c: Regenerated.
85944         * tests/unictype/test-categ_Me.c: Regenerated.
85945         * tests/unictype/test-categ_Mn.c: Regenerated.
85946         * tests/unictype/test-categ_N.c: Regenerated.
85947         * tests/unictype/test-categ_Nd.c: Regenerated.
85948         * tests/unictype/test-categ_Nl.c: Regenerated.
85949         * tests/unictype/test-categ_No.c: Regenerated.
85950         * tests/unictype/test-categ_P.c: Regenerated.
85951         * tests/unictype/test-categ_Pd.c: Regenerated.
85952         * tests/unictype/test-categ_Pe.c: Regenerated.
85953         * tests/unictype/test-categ_Pf.c: Regenerated.
85954         * tests/unictype/test-categ_Pi.c: Regenerated.
85955         * tests/unictype/test-categ_Po.c: Regenerated.
85956         * tests/unictype/test-categ_Ps.c: Regenerated.
85957         * tests/unictype/test-categ_S.c: Regenerated.
85958         * tests/unictype/test-categ_Sk.c: Regenerated.
85959         * tests/unictype/test-categ_Sm.c: Regenerated.
85960         * tests/unictype/test-categ_So.c: Regenerated.
85961         * tests/unictype/test-ctype_alnum.c: Regenerated.
85962         * tests/unictype/test-ctype_alpha.c: Regenerated.
85963         * tests/unictype/test-ctype_graph.c: Regenerated.
85964         * tests/unictype/test-ctype_lower.c: Regenerated.
85965         * tests/unictype/test-ctype_print.c: Regenerated.
85966         * tests/unictype/test-ctype_punct.c: Regenerated.
85967         * tests/unictype/test-ctype_upper.c: Regenerated.
85968         * tests/unictype/test-decdigit.h: Regenerated.
85969         * tests/unictype/test-digit.h: Regenerated.
85970         * tests/unictype/test-numeric.h: Regenerated.
85971         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85972         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85973         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85974         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85975         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85976         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85977         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85978         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85979         * tests/unictype/test-pr_combining.c: Regenerated.
85980         * tests/unictype/test-pr_dash.c: Regenerated.
85981         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85982         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85983         * tests/unictype/test-pr_deprecated.c: Regenerated.
85984         * tests/unictype/test-pr_diacritic.c: Regenerated.
85985         * tests/unictype/test-pr_extender.c: Regenerated.
85986         * tests/unictype/test-pr_format_control.c: Regenerated.
85987         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85988         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85989         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85990         * tests/unictype/test-pr_id_continue.c: Regenerated.
85991         * tests/unictype/test-pr_id_start.c: Regenerated.
85992         * tests/unictype/test-pr_ideographic.c: Regenerated.
85993         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85994         * tests/unictype/test-pr_lowercase.c: Regenerated.
85995         * tests/unictype/test-pr_math.c: Regenerated.
85996         * tests/unictype/test-pr_numeric.c: Regenerated.
85997         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85998         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85999         Regenerated.
86000         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
86001         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
86002         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
86003         * tests/unictype/test-pr_other_math.c: Regenerated.
86004         * tests/unictype/test-pr_punctuation.c: Regenerated.
86005         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
86006         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
86007         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
86008         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
86009         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
86010         * tests/unictype/test-pr_uppercase.c: Regenerated.
86011         * tests/unictype/test-pr_xid_continue.c: Regenerated.
86012         * tests/unictype/test-pr_xid_start.c: Regenerated.
86013         * tests/unictype/test-pr_zero_width.c: Regenerated.
86015         Update to Unicode 5.1.0.
86016         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
86017         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
86018         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
86019         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
86020         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
86021         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
86022         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
86023         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
86024         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
86025         (nonspacing_table_ind): Update.
86026         * tests/uniwidth/test-uc_width2.sh: Update expected result.
86028         Update to Unicode 5.1.0.
86029         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
86030         code transform.
86031         * lib/uniname/uniname.c (unicode_character_name,
86032         unicode_name_character): Add the range 0x1Fxxx to the code transform.
86033         * lib/uniname/uninames.h: Regenerated.
86034         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
86036 2009-02-07  Bruno Haible  <bruno@clisp.org>
86038         Merge gen-ctype and gen-lbrk into a single program.
86039         * lib/gen-uni-tables.c: New file, incorporating
86040         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
86041         Add directory prefixes to the names of the generated files.
86042         * lib/unictype/gen-ctype.c: Remove file.
86043         * lib/unilbrk/gen-lbrk.c: Remove file.
86044         * modules/gen-uni-tables: New file.
86045         * modules/unictype/gen-ctype: Remove file.
86046         * modules/unilbrk/gen-lbrk: Remove file.
86048 2009-02-07  Bruno Haible  <bruno@clisp.org>
86050         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
86052         New module 'unistr/u32-strcoll'.
86053         * modules/unistr/u32-strcoll: New file.
86054         * lib/unistr/u32-strcoll.c: New file.
86056         New module 'unistr/u16-strcoll'.
86057         * modules/unistr/u16-strcoll: New file.
86058         * lib/unistr/u16-strcoll.c: New file.
86060         New module 'unistr/u8-strcoll'.
86061         * modules/unistr/u8-strcoll: New file.
86062         * lib/unistr/u8-strcoll.c: New file.
86063         * lib/unistr/u-strcoll.h: New file.
86065 2009-02-07  Bruno Haible  <bruno@clisp.org>
86067         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
86068         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86069         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86070         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
86071         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
86072         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
86074 2009-02-07  Bruno Haible  <bruno@clisp.org>
86076         Make 64-bit clean.
86077         * lib/unictype/gen-ctype.c (output_predicate, output_category,
86078         output_combclass, output_bidi_category, output_decimal_digit,
86079         output_digit, output_numeric, output_mirror, output_scripts,
86080         output_ident_category): Use proper width specifier in format strings.
86082 2009-02-07  Bruno Haible  <bruno@clisp.org>
86084         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
86085         failure behaviour.
86087 2009-02-07  Jim Meyering  <meyering@redhat.com>
86089         regex: avoid compilation failure with upcoming gcc-4.4
86090         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
86091         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
86092         "... error: integer overflow in preprocessor expression".
86094 2009-02-05  Ben Pfaff  <blp@gnu.org>
86096         Fix link errors on Windows when close module is used.
86097         * modules/close: Add $(LIB_CLOSE) to Link section.
86098         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
86099         $(LIB_CLOSE) on Windows.
86101 2009-02-05  Jim Meyering  <meyering@redhat.com>
86103         still avoid unused-parameter warnings, but do it cleanly
86104         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
86105         (get_fs_usage): Cast to void instead.
86106         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
86107         (dev_from_mount_options, read_file_system_list): Cast to void.
86108         Prompted by Bruno Haible.
86110 2009-02-04  Jim Meyering  <meyering@redhat.com>
86112         fsusage.c: correct copyright year
86113         * lib/fsusage.c: Reflect year in which the change is pushed into
86115         avoid misc. warnings
86116         * lib/fsusage.c (UNUSED_PARAM): Define.
86117         (get_fs_usage): Mark parameter "disk" as unused.
86118         * lib/getugroups.c (getgrent): Use "void" in prototype.
86119         * lib/mountlist.c: Mark unused parameters.
86120         (read_file_system_list): Declare a local with "const".
86121         * lib/nanosleep.c (getnow): Declare static.
86122         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
86124         dirfd: set errno upon failure
86125         * lib/dirfd.c: Include <errno.h>.
86126         Set errno to ENOTSUP when returning -1.
86127         * modules/dirfd (Depends-on): Add errno.
86128         Suggested by John Kodis <kodis@comcast.net>.
86130 2009-02-01  Bruno Haible  <bruno@clisp.org>
86132         Don't assume sizeof (long) >= sizeof (void *).
86133         * lib/memcmp.c: Include stdint.h.
86134         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
86135         srcp2 to 'const byte *'.
86136         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
86137         types to uintptr_t.
86138         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
86139         * modules/memcmp (Depends-on): Add stdint.
86140         Reported by Ozkan Sezer <sezeroz@gmail.com>.
86142 2009-01-30  Eric Blake  <ebb9@byu.net>
86144         fix more require-before-expand issues
86145         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
86146         expand, AC_PROG_AWK.
86147         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
86149 2009-01-28  Eric Blake  <ebb9@byu.net>
86151         version-etc: use consistent URL formatting
86152         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
86153         Improve formatting.  Use fputs for string without %.
86155 2009-01-28  Jim Meyering  <meyering@redhat.com>
86157         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
86158         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
86159         "underquoted definition of NAME" from autoconf-2.59.
86161 2009-01-28  Bruno Haible  <bruno@clisp.org>
86163         * doc/gnulib.texi: Add "Obsolete modules" to index.
86165 2009-01-28  Jim Meyering  <meyering@redhat.com>
86167         useless-if-before-free: recognize more variants
86168         * build-aux/useless-if-before-free: Also recognize e.g.,
86169         if (NULL != p) free (p);
86171 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86173         test-getaddrinfo: skip (don't fail) this test when there's no network
86174         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86175         on the presumption that it means you lack network access.
86177 2009-01-26  Jim Meyering  <meyering@redhat.com>
86179         fflush: avoid warnings on modern systems
86180         * lib/fflush.c (rpl_fflush): Move declarations of locals,
86181         pos and result, into scopes where they're used.
86183 2009-01-26  Eric Blake  <ebb9@byu.net>
86185         Silence warning reintroduced by recent extensions patch.
86186         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
86187         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
86188         autoconf.
86190         Backport improved autoconf semantics of AC_DEFUN_ONCE.
86191         * m4/00gnulib.m4: New file.
86192         * gnulib-tool (func_get_filelist): Always use it.
86193         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
86194         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
86196 2009-01-25  Bruno Haible  <bruno@clisp.org>
86198         Make test-quotearg work on MacOS X and AIX.
86199         * tests/test-quotearg.sh: New file.
86200         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
86201         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
86202         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
86203         include <libintl.h>.
86204         (fake_locale): Remove variable.
86205         (gettext, dgettext, dcgettext): Remove functions.
86206         (main): Instead of setting a fake locale, set a real locale. Call
86207         textdomain and bindtextdomain.
86208         * modules/quotearg-tests (Files): Add the new files.
86209         (Depends-on): Add gettext, setenv, unsetenv.
86210         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86211         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
86212         Augment TESTS_ENVIRONMENT.
86214 2009-01-25  Bruno Haible  <bruno@clisp.org>
86216         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
86217         fr_FR.ISO8859-1 locale on MacOS X.
86218         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
86219         ja_JP.eucJP locale on MacOS X.
86220         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
86221         zh_CN.GB18030 locale on MacOS X.
86223 2009-01-25  Bruno Haible  <bruno@clisp.org>
86225         Avoid link errors on MacOS X 10.3.
86226         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
86227         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
86229 2009-01-25  Bruno Haible  <bruno@clisp.org>
86231         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86232         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
86233         * modules/pipe (Files): Remove m4/posix_spawn.m4.
86234         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86235         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
86236         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86237         posix_spawnattr_init, posix_spawnattr_setsigmask,
86238         posix_spawnattr_setflags, posix_spawnattr_destroy.
86240         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86241         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
86242         * modules/execute (Files): Remove m4/posix_spawn.m4.
86243         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86244         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86245         posix_spawnattr_init, posix_spawnattr_setsigmask,
86246         posix_spawnattr_setflags, posix_spawnattr_destroy.
86248 2009-01-25  Bruno Haible  <bruno@clisp.org>
86250         * lib/glthread/threadlib.c: Include <stdlib.h>.
86252 2009-01-25  Bruno Haible  <bruno@clisp.org>
86254         * lib/glthread/threadlib.c (dummy): New declaration.
86256 2009-01-25  Bruno Haible  <bruno@clisp.org>
86258         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
86259         multibyte characters also for the GB18030 encoding. Don't crash when
86260         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
86262 2009-01-25  Bruno Haible  <bruno@clisp.org>
86264         Avoid redefining 'struct random_data' on OSF/1 5.1.
86265         * lib/stdlib.in.h: Include <random.h> if it exists.
86266         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
86267         HAVE_RANDOM_H. Include <random.h> when testing whether
86268         'struct random_data' exists.
86269         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
86271 2009-01-25  Bruno Haible  <bruno@clisp.org>
86273         Don't install charset.alias on MacOS X >= 10.3.
86274         * lib/localcharset.c (DARWIN7): New macro.
86275         (get_charset_aliases): Hardcode the result for Darwin7.
86276         * modules/localcharset (install-exec-local): Don't install
86277         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
86279 2009-01-25  Bruno Haible  <bruno@clisp.org>
86281         Don't install charset.alias on mingw and Cygwin.
86282         * modules/localcharset (install-exec-local): Don't install
86283         charset.alias on mingw and Cygwin, if the file does not yet exist.
86284         The result for these platforms is hardcoded in localcharset.c.
86286 2009-01-25  Bruno Haible  <bruno@clisp.org>
86288         Make it possible again to use AC_GNU_SOURCE together with gnulib.
86289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
86290         before requiring AC_USE_SYSTEM_EXTENSIONS.
86292 2009-01-25  Jim Meyering  <meyering@redhat.com>
86294         c-strtod: avoid warnings
86295         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
86296         "assignment discards qualifiers from pointer target type" warnings.
86298 2009-01-24  Bruno Haible  <bruno@clisp.org>
86300         Add support for non-UTF-8 locales on MacOS X.
86301         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
86302         canonical encodings. For Darwin 7 and newer, don't map traditional
86303         encodings to UTF-8.
86304         Reported by Vincent Lefevre <vincent@vinc17.org>
86305         at <http://savannah.gnu.org/bugs/?25235>.
86307 2009-01-24  Bruno Haible  <bruno@clisp.org>
86309         * doc/gnulib.texi (Obsolete modules): New section.
86310         Reported by Mike Frysinger <vapier@gentoo.org>.
86312 2009-01-24  Bruno Haible  <bruno@clisp.org>
86314         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
86315         (%.dvi): New rule.
86317 2009-01-24  Bruno Haible  <bruno@clisp.org>
86319         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
86320         Reported by Eric Blake.
86322 2009-01-24  Bruno Haible  <bruno@clisp.org>
86324         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
86325         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
86326         Reported by Gary V. Vaughan <gary@gnu.org>.
86328 2009-01-24  Bruno Haible  <bruno@clisp.org>
86330         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
86332 2009-01-23  Bruno Haible  <bruno@clisp.org>
86334         Make c-strtod, c-strtold usable in libraries.
86335         * lib/c-strtod.c: Include string.h instead of xalloc.h.
86336         (C_STRTOD): Call strdup instead of xstrdup.
86337         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
86338         * modules/c-strtold (Depends-on): Likewise.
86339         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
86340         * NEWS: Mention the change.
86341         Reported by Michael Gold <mgold@ncf.ca>.
86343 2009-01-23  Jim Meyering  <meyering@redhat.com>
86345         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86346         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86347         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86349 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86351         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86352         GNU CoreUtils.
86353         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86354         * modules/version-etc (Description): Update.
86356 2009-01-22  Bruno Haible  <bruno@clisp.org>
86358         Cache the C locale object.
86359         * lib/c-strtod.c (c_locale_cache): New variable.
86360         (c_locale): New function.
86361         (C_STRTOD): Use it, and don't call freelocale.
86362         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86363         Suggested by Paolo Bonzini.
86365 2009-01-21  Bruno Haible  <bruno@clisp.org>
86367         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86368         conditions other than overflow.
86370 2009-01-21  Bruno Haible  <bruno@clisp.org>
86372         * lib/c-strtod.c: Include errno.h.
86373         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86374         value from STRTOD_L and STRTOD.
86376 2009-01-21  Bruno Haible  <bruno@clisp.org>
86377         and Jim Meyering  <meyering@redhat.com>
86379         nanosleep: skip configure test (fail it) for apple universal builds
86380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86381         universal builds, assume that nanosleep does not work.
86382         * modules/nanosleep (Depends-on): Add multiarch.
86384         mktime: skip configure test (fail it) for apple universal builds
86385         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86386         universal builds, assume that mktime does not work.
86387         * modules/mktime (Depends-on): Add multiarch.
86389 2009-01-21  Eric Blake  <ebb9@byu.net>
86391         multiarch: avoid expand-before-require warning
86392         * modules/multiarch (configure.ac): Require, rather than expand,
86393         gl_MULTIARCH.
86394         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86395         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86396         enforce that all clients require it.  Partial reversion of
86397         2008-12-29 patch.
86399         error: avoid expand-before-require warning
86400         * modules/errno (configure.ac): Require, rather than expand,
86401         gl_HEADER_ERRNO_H.
86402         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86403         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86404         enforce that all clients require it.
86406         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86407         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86408         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86409         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86411 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86413         Revert:
86414         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86416         regex: do not depend on obsolete modules.
86417         * modules/regex: Remove memcmp and memmove.
86419 2009-01-20  Bruno Haible  <bruno@clisp.org>
86421         Make the 'link' module link on Windows NT 4.
86422         * lib/link.c (_WIN32_WINNT): Don't define.
86423         (CreateHardLinkFuncType): New type.
86424         (CreateHardLinkFunc, initialized): New variables.
86425         (initialize): New function.
86426         (link): Invoke CreateHardLink indirectly through the function pointer.
86428 2009-01-20  Bruno Haible  <bruno@clisp.org>
86430         Fix compilation failure on mingw.
86431         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86433 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86435         * doc/c-strtod.texi: Mention a couple of restrictions.
86437 2009-01-20  Jim Meyering  <meyering@redhat.com>
86439         gettimeofday: move more declarations out of functions
86440         * lib/gettimeofday.c: Move extern declarations of tzset and
86441         gmtime out of containing functions.  Prompted by Bruno Haible.
86443 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86445         regex: do not depend on obsolete modules.
86446         * modules/regex: Remove memcmp and memmove.
86448 2009-01-19  Bruno Haible  <bruno@clisp.org>
86450         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86451         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86452         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86453         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
86454         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
86456 2009-01-19  Bruno Haible  <bruno@clisp.org>
86458         * tests/test-link.c: Include <errno.h>.
86459         (main): Exit with code 77 when a hard link cannot be created due to
86460         the file system.
86461         * tests/test-link.sh: Skip test when a hard link cannot be created due
86462         to the file system.
86463         Suggested by Eric Blake.
86465 2009-01-19  Martin Lambers  <marlam@marlam.de>
86467         * modules/link-tests: New file.
86468         * tests/test-link.sh: New file.
86469         * tests/test-link.c: New file.
86471 2009-01-19  Eric Blake  <ebb9@byu.net>
86473         doc: mention another function added in cygwin 1.7.0
86474         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
86475         Another new function in cygwin 1.7.
86477 2009-01-19  Bruno Haible  <bruno@clisp.org>
86479         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86480         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
86481         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
86482         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86483         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
86484         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
86485         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
86486         * m4/md4.m4 (gl_MD4): Likewise.
86487         * m4/md5.m4 (gl_MD5): Likewise.
86488         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
86489         * m4/sha1.m4 (gl_SHA1): Likewise.
86490         * m4/sha256.m4 (gl_SHA256): Likewise.
86491         * m4/sha512.m4 (gl_SHA512): Likewise.
86493 2009-01-19  Bruno Haible  <bruno@clisp.org>
86495         * modules/uniname/uniname-tests (Depends-on): Add progname.
86496         * tests/uniname/test-uninames.c: Include progname.h.
86497         (main): Call set_program_name.
86499         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
86500         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
86501         (main): Call set_program_name.
86503         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
86504         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
86505         (main): Call set_program_name.
86507         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
86508         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
86509         (main): Call set_program_name.
86511         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
86512         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
86513         (main): Call set_program_name.
86515         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
86516         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
86517         (main): Call set_program_name.
86519         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
86520         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
86521         (main): Call set_program_name.
86523         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
86524         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
86525         (main): Call set_program_name.
86527         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
86528         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
86529         (main): Call set_program_name.
86531 2009-01-19  Eric Blake  <ebb9@byu.net>
86533         test-unistd: test previous patch
86534         * tests/test-unistd.c: Test *_FILENO macros.
86536         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
86537         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86538         Guarantee a definition.
86539         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
86540         * modules/unistd-safer (Depends-on): Add dependency on unistd.
86541         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
86542         * lib/dup-safer.c (STDERR_FILENO): Likewise.
86543         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86544         Likewise.
86545         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
86546         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
86547         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86548         Likewise.
86549         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
86550         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
86551         (STDERR_FILENO): Likewise.
86552         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
86553         (STDERR_FILENO): Likewise.
86554         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
86555         (STDERR_FILENO): Likewise.
86556         Reported by Elbert Pol.
86558 2009-01-19  Eric Blake  <ebb9@byu.net>
86560         doc: mention more functions added in cygwin 1.7.0
86561         * doc/posix-functions/abort.texi (abort): Update wording related
86562         to cygwin.
86563         * doc/posix-functions/daylight.texi (daylight): Likewise.
86564         * doc/posix-functions/optarg.texi (optarg): Likewise.
86565         * doc/posix-functions/optarg.texi (opterr): Likewise.
86566         * doc/posix-functions/optarg.texi (optind): Likewise.
86567         * doc/posix-functions/optarg.texi (optopt): Likewise.
86568         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
86569         worked in 1.5.x, and was withdrawn in 1.7.
86570         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
86571         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
86572         cygwin versions.
86573         * doc/posix-functions/perror.texi (perror): Likewise.
86574         * doc/posix-functions/printf.texi (printf): Likewise.
86575         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
86576         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
86577         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
86578         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
86579         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
86580         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
86581         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
86582         Likewise.
86583         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
86584         Likewise.
86585         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
86586         this function.
86587         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
86588         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86589         Likewise.
86590         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86591         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86592         * doc/posix-functions/confstr.texi (confstr): Likewise.
86593         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86594         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86595         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86596         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
86597         * doc/posix-functions/fputws.texi (fputws): Likewise.
86598         * doc/posix-functions/fwide.texi (fwide): Likewise.
86599         * doc/posix-functions/getwc.texi (getwc): Likewise.
86600         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
86601         * doc/posix-functions/putwc.texi (putwc): Likewise.
86602         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
86603         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
86604         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
86605         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
86606         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
86607         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
86608         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
86609         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
86610         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
86611         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
86612         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
86614 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86616         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
86617         * lib/ioctl.c: Include <sys/ioctl.h>.
86619 2009-01-19  Simon Josefsson  <simon@josefsson.org>
86621         * modules/getdate-tests (Depends-on): Add progname.
86622         * tests/test-getdate.c: Use progname module, to avoid link errors
86623         on non-glibc systems.
86625 2009-01-18  Simon Josefsson  <simon@josefsson.org>
86627         * modules/filenamecat-tests (Depends-on): Add progname.
86628         * modules/fstrcmp-tests (Depends-on): Likewise.
86630         * tests/test-filenamecat.c: Use progname module, to avoid link
86631         errors on non-glibc systems.
86632         * tests/test-fstrcmp.c: Likewise.
86634 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86636         gettimeofday: avoid warning: nested extern declaration of 'localtime'
86637         * lib/gettimeofday.c: Move extern declaration out of function.
86639 2009-01-18  Bruno Haible  <bruno@clisp.org>
86641         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
86642         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
86643         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
86645 2009-01-18  Bruno Haible  <bruno@clisp.org>
86647         * lib/strftime.c (MEMPCPY): Remove unused macro.
86648         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
86650 2009-01-18  Martin Lambers  <marlam@marlam.de>
86652         New module 'link'.
86653         * lib/unistd.in.h (link): New declaration.
86654         * lib/link.c: New file.
86655         * m4/link.m4: New file.
86656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
86657         HAVE_LINK.
86658         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
86659         * modules/link: New file.
86660         * doc/posix-functions/link.texi: Mention the new module.
86662 2009-01-18  Bruno Haible  <bruno@clisp.org>
86664         * tests/test-avltree_list.c (main): Call set_program_name.
86665         * tests/test-avltree_oset.c (main): Likewise.
86666         * tests/test-obstack-printf.c: Include progname.h.
86667         (main): Call set_program_name.
86668         * tests/test-quotearg.c: Include progname.h.
86669         (main): Call set_program_name.
86670         * tests/test-xmemdup0.c: Include progname.h.
86671         (main): Call set_program_name.
86673 2009-01-18  Bruno Haible  <bruno@clisp.org>
86675         New module 'alphasort'.
86676         * lib/dirent.in.h (alphasort): New declaration.
86677         * lib/alphasort.c: New file, from glibc with modifications.
86678         * m4/alphasort.m4: New file.
86679         * modules/alphasort: New file.
86680         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86681         HAVE_ALPHASORT.
86682         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86683         HAVE_ALPHASORT.
86684         * doc/posix-functions/alphasort.texi: Mention the new module and the
86685         portability problems.
86687 2009-01-18  Bruno Haible  <bruno@clisp.org>
86689         New module 'scandir'.
86690         * lib/dirent.in.h (scandir): New declaration.
86691         * lib/scandir.c: New file, from glibc with modifications.
86692         * m4/scandir.m4: New file.
86693         * modules/scandir: New file.
86694         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86695         HAVE_SCANDIR.
86696         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86697         HAVE_SCANDIR.
86698         * doc/posix-functions/scandir.texi: Mention the new module and the
86699         portability problems.
86701 2009-01-17  Bruno Haible  <bruno@clisp.org>
86703         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86704         Update documentation.
86705         (func_remove_suffix): Escape all dots in the suffix. Update
86706         documentation.
86707         (func_filter_filelist): Update documentation.
86708         Reported by Ralf Wildenhues.
86710 2009-01-17  Bruno Haible  <bruno@clisp.org>
86712         * modules/dprintf-posix-tests: New file.
86713         * tests/test-dprintf-posix.sh: New file.
86714         * tests/test-dprintf-posix.c: New file.
86716         New modules 'dprintf', 'dprintf-posix'.
86717         * lib/stdio.in.h (dprintf): New declaration.
86718         * lib/dprintf.c: New file.
86719         * m4/dprintf.m4: New file.
86720         * m4/dprintf-posix.m4: New file.
86721         * modules/dprintf: New file.
86722         * modules/dprintf-posix: New file.
86723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86724         HAVE_DPRINTF, REPLACE_DPRINTF.
86725         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86726         HAVE_DPRINTF, REPLACE_DPRINTF.
86727         * doc/posix-functions/dprintf.texi: Mention the new modules.
86729 2009-01-17  Bruno Haible  <bruno@clisp.org>
86731         * modules/vdprintf-posix-tests: New file.
86732         * tests/test-vdprintf-posix.sh: New file.
86733         * tests/test-vdprintf-posix.c: New file.
86735         New modules 'vdprintf', 'vdprintf-posix'.
86736         * lib/stdio.in.h (vdprintf): New declaration.
86737         * lib/vdprintf.c: New file.
86738         * m4/vdprintf.m4: New file.
86739         * m4/vdprintf-posix.m4: New file.
86740         * modules/vdprintf: New file.
86741         * modules/vdprintf-posix: New file.
86742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86743         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86744         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86745         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86746         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86748 2009-01-17  Bruno Haible  <bruno@clisp.org>
86750         Fix replacement of fopen on mingw.
86751         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86752         mingw.
86754 2009-01-17  Bruno Haible  <bruno@clisp.org>
86756         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86757         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86759 2009-01-17  Bruno Haible  <bruno@clisp.org>
86761         Avoid test-fflush2.sh failure on mingw.
86762         * tests/test-fflush2.c: Include binary-io.h.
86763         (main): Put standard input into binary mode.
86764         * modules/fflush-tests (Depends-on): Add binary-io.
86766 2009-01-17  Bruno Haible  <bruno@clisp.org>
86768         * lib/wchar.in.h: In another particular situation, include only the
86769         system's <wchar.h> file.
86770         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86771         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86772         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86774 2009-01-17  Bruno Haible  <bruno@clisp.org>
86776         Support for stripping executables in --enable-relocatable.
86777         * build-aux/install-reloc: Expect one more argument, or an environment
86778         variable RELOC_STRIP_PROG. If set, strip the destination program and
86779         its wrapper.
86780         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86781         RELOC_STRIP_PROG.
86782         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86783         to set RELOCATABLE_STRIP.
86784         * NEWS: Mention the new Makefile requirement.
86786 2009-01-17  Bruno Haible  <bruno@clisp.org>
86788         * build-aux/install-reloc: Remove debugging information left over by
86789         C compiler on MacOS X.
86791 2009-01-17  Bruno Haible  <bruno@clisp.org>
86793         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86794         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86795         _NSGetExecutablePath.
86797 2009-01-16  Jim Meyering  <meyering@redhat.com>
86799         strerror: avoid warnings about discarding "const"
86800         * lib/strerror.c (rpl_strerror): Instead of returning a const
86801         string from each and every "case", use a variable, and add a single
86802         cast after the switch.
86804 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86806         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86808 2009-01-16  Bruno Haible  <bruno@clisp.org>
86810         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86811         array initializer syntax that also works in C++ mode.
86812         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86814 2009-01-16  Jim Meyering  <meyering@redhat.com>
86816         poll: suppress a warning
86817         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86818         to ignore "...unsigned expression < 0 is always false" warnings.
86820 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86822         poll: remove declarations of unused variables
86823         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86824         sockbuf and optlen.
86826 2009-01-15  Bruno Haible  <bruno@clisp.org>
86828         Make fflush-after-ungetc POSIX compliant on BSD systems.
86829         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86830         (clear_ungetc_buffer): Implement also for other systems.
86831         (rpl_fflush): On glibc systems, invoke
86832         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86833         clear_ungetc_buffer after fetching the stream's position, not before.
86835 2009-01-15  Bruno Haible  <bruno@clisp.org>
86837         Make fflush-after-ungetc POSIX compliant on glibc systems.
86838         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86839         after ungetc.
86840         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86841         (rpl_fflush): On glibc systems, simply call the system's fflush
86842         function after clearing the ungetc buffer.
86843         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86844         Instead, lseek only to the end of file, then use the system's fseeko
86845         for the rest. On glibc systems, reset the EOF indicator bit.
86847 2009-01-15  Jim Meyering  <meyering@redhat.com>
86849         openmp.m4: revert quote-adding change, for portability to older autoconf
86850         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86851         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86852         Simon Josefsson noticed the problem when using autoconf-2.61.
86854 2009-01-15  Bruno Haible  <bruno@clisp.org>
86856         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86857         * tests/test-fflush2.c (ASSERT): Always fail.
86858         (main): Add two tests for fflush() after ungetc(), taking into account
86859         the Austin Group's clarification.
86860         Suggested by Eric Blake.
86862 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86864         mktime.m4: remove K&R-style function prototypes
86865         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86866         for the Sun C++ compiler.
86868 2009-01-14  Bruno Haible  <bruno@clisp.org>
86870         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86871         while including <wchar.h>.
86872         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86873         the system's <wchar.h> file.
86874         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86876 2009-01-14  Bruno Haible  <bruno@clisp.org>
86878         * m4/csharp.m4: Don't mention gettext on the serial number line.
86879         * m4/csharpexec.m4: Likewise.
86880         * m4/eaccess.m4: Likewise.
86881         * m4/javaexec.m4: Likewise.
86882         * m4/sig_atomic_t.m4: Likewise.
86883         * m4/tmpdir.m4: Likewise.
86884         * m4/intldir.m4: Bump gettext version.
86885         * m4/lib-ld.m4: Likewise.
86887 2009-01-14  Bruno Haible  <bruno@clisp.org>
86889         * lib/progname.c (set_program_name): Add more comments.
86890         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86892 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86894         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86895         were sys/stat.h does not define it.
86897 2009-01-14  Jim Meyering  <meyering@redhat.com>
86899         many *.m4 files: improve m4 quoting
86900         99% of this change was performed by running the following commands:
86901         git ls-files | grep '\.m4$' | xargs perl -pi \
86902           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86903           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86904           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86905           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86906         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86907         The remainder were to add Copyright dates, increment serial numbers,
86908         undo some changes in comments, exclude m4/intl.m4, and add quotes
86909         around the "1" in ",1" where the unusual spacing prohibited the
86910         above regexps from doing the job.  For more details, see
86911         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86912         * m4/acl.m4: Modified.
86913         * m4/afs.m4: Likewise.
86914         * m4/alloca.m4: Likewise.
86915         * m4/argp.m4: Likewise.
86916         * m4/argz.m4: Likewise.
86917         * m4/atexit.m4: Likewise.
86918         * m4/bison-i18n.m4: Likewise.
86919         * m4/bison.m4: Likewise.
86920         * m4/byteswap.m4: Likewise.
86921         * m4/c-stack.m4: Likewise.
86922         * m4/c-strtod.m4: Likewise.
86923         * m4/calloc.m4: Likewise.
86924         * m4/canonicalize-lgpl.m4: Likewise.
86925         * m4/chown.m4: Likewise.
86926         * m4/clock_time.m4: Likewise.
86927         * m4/codeset.m4: Likewise.
86928         * m4/copy-file.m4: Likewise.
86929         * m4/csharp.m4: Likewise.
86930         * m4/csharpcomp.m4: Likewise.
86931         * m4/csharpexec.m4: Likewise.
86932         * m4/d-ino.m4: Likewise.
86933         * m4/d-type.m4: Likewise.
86934         * m4/dirfd.m4: Likewise.
86935         * m4/double-slash-root.m4: Likewise.
86936         * m4/eaccess.m4: Likewise.
86937         * m4/eealloc.m4: Likewise.
86938         * m4/environ.m4: Likewise.
86939         * m4/errno_h.m4: Likewise.
86940         * m4/euidaccess.m4: Likewise.
86941         * m4/execute.m4: Likewise.
86942         * m4/fatal-signal.m4: Likewise.
86943         * m4/fchdir.m4: Likewise.
86944         * m4/fcntl_h.m4: Likewise.
86945         * m4/fileblocks.m4: Likewise.
86946         * m4/filenamecat.m4: Likewise.
86947         * m4/findprog.m4: Likewise.
86948         * m4/flexmember.m4: Likewise.
86949         * m4/fnmatch.m4: Likewise.
86950         * m4/fopen.m4: Likewise.
86951         * m4/fpending.m4: Likewise.
86952         * m4/fprintf-posix.m4: Likewise.
86953         * m4/free.m4: Likewise.
86954         * m4/frexp.m4: Likewise.
86955         * m4/frexpl.m4: Likewise.
86956         * m4/fsusage.m4: Likewise.
86957         * m4/ftruncate.m4: Likewise.
86958         * m4/gc-camellia.m4: Likewise.
86959         * m4/gc-random.m4: Likewise.
86960         * m4/gc.m4: Likewise.
86961         * m4/getaddrinfo.m4: Likewise.
86962         * m4/getcwd-abort-bug.m4: Likewise.
86963         * m4/getcwd-path-max.m4: Likewise.
86964         * m4/getdate.m4: Likewise.
86965         * m4/getdomainname.m4: Likewise.
86966         * m4/getgroups.m4: Likewise.
86967         * m4/gethostname.m4: Likewise.
86968         * m4/gethrxtime.m4: Likewise.
86969         * m4/getline.m4: Likewise.
86970         * m4/getloadavg.m4: Likewise.
86971         * m4/getndelim2.m4: Likewise.
86972         * m4/getpass.m4: Likewise.
86973         * m4/gettext.m4: Likewise.
86974         * m4/gettime.m4: Likewise.
86975         * m4/gettimeofday.m4: Likewise.
86976         * m4/gnulib-common.m4: Likewise.
86977         * m4/group-member.m4: Likewise.
86978         * m4/host-os.m4: Likewise.
86979         * m4/iconv.m4: Likewise.
86980         * m4/iconv_open.m4: Likewise.
86981         * m4/inet_ntop.m4: Likewise.
86982         * m4/inet_pton.m4: Likewise.
86983         * m4/inline.m4: Likewise.
86984         * m4/intldir.m4: Likewise.
86985         * m4/intlmacosx.m4: Likewise.
86986         * m4/intmax.m4: Likewise.
86987         * m4/intmax_t.m4: Likewise.
86988         * m4/inttypes.m4: Likewise.
86989         * m4/inttypes_h.m4: Likewise.
86990         * m4/inttypes-pri.m4: Likewise.
86991         * m4/isapipe.m4: Likewise.
86992         * m4/isnand.m4: Likewise.
86993         * m4/isnanf.m4: Likewise.
86994         * m4/isnanl.m4: Likewise.
86995         * m4/javacomp.m4: Likewise.
86996         * m4/javaexec.m4: Likewise.
86997         * m4/jm-winsz1.m4: Likewise.
86998         * m4/jm-winsz2.m4: Likewise.
86999         * m4/lchown.m4: Likewise.
87000         * m4/lcmessage.m4: Likewise.
87001         * m4/ldexpl.m4: Likewise.
87002         * m4/lib-ld.m4: Likewise.
87003         * m4/lib-link.m4: Likewise.
87004         * m4/libsigsegv.m4: Likewise.
87005         * m4/link-follow.m4: Likewise.
87006         * m4/localcharset.m4: Likewise.
87007         * m4/locale-fr.m4: Likewise.
87008         * m4/locale-ja.m4: Likewise.
87009         * m4/locale-tr.m4: Likewise.
87010         * m4/locale-zh.m4: Likewise.
87011         * m4/lock.m4: Likewise.
87012         * m4/longlong.m4: Likewise.
87013         * m4/ls-mntd-fs.m4: Likewise.
87014         * m4/lstat.m4: Likewise.
87015         * m4/malloc.m4: Likewise.
87016         * m4/mathl.m4: Likewise.
87017         * m4/mbrtowc.m4: Likewise.
87018         * m4/mbstate_t.m4: Likewise.
87019         * m4/mbswidth.m4: Likewise.
87020         * m4/memchr.m4: Likewise.
87021         * m4/memcmp.m4: Likewise.
87022         * m4/memcpy.m4: Likewise.
87023         * m4/memmem.m4: Likewise.
87024         * m4/memmove.m4: Likewise.
87025         * m4/mempcpy.m4: Likewise.
87026         * m4/memrchr.m4: Likewise.
87027         * m4/memset.m4: Likewise.
87028         * m4/minmax.m4: Likewise.
87029         * m4/mkdir-slash.m4: Likewise.
87030         * m4/mkdtemp.m4: Likewise.
87031         * m4/mktime.m4: Likewise.
87032         * m4/mmap-anon.m4: Likewise.
87033         * m4/mountlist.m4: Likewise.
87034         * m4/nanosleep.m4: Likewise.
87035         * m4/nls.m4: Likewise.
87036         * m4/nocrash.m4: Likewise.
87037         * m4/open.m4: Likewise.
87038         * m4/openat.m4: Likewise.
87039         * m4/openmp.m4: Likewise.
87040         * m4/pathmax.m4: Likewise.
87041         * m4/perl.m4: Likewise.
87042         * m4/physmem.m4: Likewise.
87043         * m4/pipe.m4: Likewise.
87044         * m4/po.m4: Likewise.
87045         * m4/poll.m4: Likewise.
87046         * m4/posixtm.m4: Likewise.
87047         * m4/posixver.m4: Likewise.
87048         * m4/printf-frexp.m4: Likewise.
87049         * m4/printf-frexpl.m4: Likewise.
87050         * m4/printf-posix.m4: Likewise.
87051         * m4/printf-posix-rpl.m4: Likewise.
87052         * m4/printf.m4: Likewise.
87053         * m4/progtest.m4: Likewise.
87054         * m4/putenv.m4: Likewise.
87055         * m4/readline.m4: Likewise.
87056         * m4/readlink.m4: Likewise.
87057         * m4/readutmp.m4: Likewise.
87058         * m4/realloc.m4: Likewise.
87059         * m4/regex.m4: Likewise.
87060         * m4/relocatable.m4: Likewise.
87061         * m4/relocatable-lib.m4: Likewise.
87062         * m4/rename-dest-slash.m4: Likewise.
87063         * m4/rename.m4: Likewise.
87064         * m4/rmdir-errno.m4: Likewise.
87065         * m4/rmdir.m4: Likewise.
87066         * m4/roundf.m4: Likewise.
87067         * m4/roundl.m4: Likewise.
87068         * m4/rpmatch.m4: Likewise.
87069         * m4/save-cwd.m4: Likewise.
87070         * m4/selinux-selinux-h.m4: Likewise.
87071         * m4/setenv.m4: Likewise.
87072         * m4/settime.m4: Likewise.
87073         * m4/sig2str.m4: Likewise.
87074         * m4/sig_atomic_t.m4: Likewise.
87075         * m4/signalblocking.m4: Likewise.
87076         * m4/signbit.m4: Likewise.
87077         * m4/sigpipe.m4: Likewise.
87078         * m4/sockets.m4: Likewise.
87079         * m4/sockpfaf.m4: Likewise.
87080         * m4/st_dm_mode.m4: Likewise.
87081         * m4/stat-time.m4: Likewise.
87082         * m4/stdbool.m4: Likewise.
87083         * m4/stdint.m4: Likewise.
87084         * m4/stdint_h.m4: Likewise.
87085         * m4/stpcpy.m4: Likewise.
87086         * m4/stpncpy.m4: Likewise.
87087         * m4/strcase.m4: Likewise.
87088         * m4/strchrnul.m4: Likewise.
87089         * m4/strcspn.m4: Likewise.
87090         * m4/strdup.m4: Likewise.
87091         * m4/strftime.m4: Likewise.
87092         * m4/strndup.m4: Likewise.
87093         * m4/strnlen.m4: Likewise.
87094         * m4/strpbrk.m4: Likewise.
87095         * m4/strptime.m4: Likewise.
87096         * m4/strsep.m4: Likewise.
87097         * m4/strtod.m4: Likewise.
87098         * m4/strtoimax.m4: Likewise.
87099         * m4/strtok_r.m4: Likewise.
87100         * m4/strtol.m4: Likewise.
87101         * m4/strtoll.m4: Likewise.
87102         * m4/strtoul.m4: Likewise.
87103         * m4/strtoull.m4: Likewise.
87104         * m4/strtoumax.m4: Likewise.
87105         * m4/strverscmp.m4: Likewise.
87106         * m4/threadlib.m4: Likewise.
87107         * m4/timegm.m4: Likewise.
87108         * m4/tm_gmtoff.m4: Likewise.
87109         * m4/tmpdir.m4: Likewise.
87110         * m4/tmpfile.m4: Likewise.
87111         * m4/tzset.m4: Likewise.
87112         * m4/uintmax_t.m4: Likewise.
87113         * m4/unlinkdir.m4: Likewise.
87114         * m4/unlocked-io.m4: Likewise.
87115         * m4/uptime.m4: Likewise.
87116         * m4/userspec.m4: Likewise.
87117         * m4/utimbuf.m4: Likewise.
87118         * m4/utime.m4: Likewise.
87119         * m4/utimes-null.m4: Likewise.
87120         * m4/utimes.m4: Likewise.
87121         * m4/vararrays.m4: Likewise.
87122         * m4/vasnprintf.m4: Likewise.
87123         * m4/vfprintf-posix.m4: Likewise.
87124         * m4/vprintf-posix.m4: Likewise.
87125         * m4/wait-process.m4: Likewise.
87126         * m4/wchar_t.m4: Likewise.
87127         * m4/wint_t.m4: Likewise.
87128         * m4/write-any-file.m4: Likewise.
87129         * m4/yield.m4: Likewise.
87131 2009-01-13  Bruno Haible  <bruno@clisp.org>
87133         Avoid test-copy-file.sh failures when ACL support insufficient.
87134         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
87135         TESTS_ENVIRONMENT.
87136         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
87137         Reported by Jim Meyering.
87139 2009-01-13  Bruno Haible  <bruno@clisp.org>
87141         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
87142         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
87143         * modules/unistdio/u8-printf-parse (Files): Likewise.
87144         * modules/unistdio/u32-printf-parse (Files): Likewise.
87145         * modules/unistdio/ulc-printf-parse (Files): Likewise.
87147 2009-01-13  Simon Josefsson  <simon@josefsson.org>
87149         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
87150         and m4/inttypes_h.m4 too.
87152 2009-01-12  Eric Blake  <ebb9@byu.net>
87154         tests: IRIX 6.2 cc can't compile -0.0 into .data
87155         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
87156         rather than at compile-time.
87157         * tests/test-floorl.c (minus_zero): Likewise.
87158         * tests/test-frexpl.c (minus_zero): Likewise.
87159         * tests/test-isnan.c (minus_zerol): Likewise.
87160         * tests/test-isnanl.h (minus_zero): Likewise.
87161         * tests/test-ldexpl.c (minus_zero): Likewise.
87162         * tests/test-roundl.c (minus_zero): Likewise.
87163         * tests/test-signbit.c (minus_zerol): Likewise.
87164         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87165         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87166         * tests/test-truncl.c (minus_zero): Likewise.
87167         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87168         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87169         Reported by Tom G. Christensen and Nelson H. F. Beebe.
87171 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87173         regex: fix glibc bug 9697
87174         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87175         handling.
87177 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87179         regex: fix glibc bug 697
87180         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
87181         being NULL also if there are no backreferences.
87183 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87185         regex: merge glibc changes
87186         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
87187         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
87188         re_string_skip_chars, re_string_reconstruct): Likewise.
87189         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
87191 2009-01-07  Jim Meyering  <meyering@redhat.com>
87193         poll: filter through cppi
87194         * lib/poll.c: Indent cpp directives to reflect nesting.
87196 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
87198         poll: don't return uninitialized
87199         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
87201 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
87203         avoid compile failure on AIX 6.1
87204         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
87205         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
87207 2009-01-04  Jim Meyering  <meyering@redhat.com>
87209         remove duplicate inclusion of <stdio.h>
87210         * tests/test-fprintf-posix.c: Likewise.
87211         * tests/test-printf-posix.c: Likewise.
87212         * tests/test-snprintf-posix.c: Likewise.
87213         * tests/test-sprintf-posix.c: Likewise.
87214         * tests/test-vasprintf-posix.c: Likewise.
87215         * tests/test-vfprintf-posix.c: Likewise.
87216         * tests/test-vprintf-posix.c: Likewise.
87217         * tests/test-vsnprintf-posix.c: Likewise.
87218         * tests/test-vsprintf-posix.c: Likewise.
87220 2009-01-03  Jim Meyering  <meyering@redhat.com>
87222         gnulib-tool: fix sed-based filtering
87223         * gnulib-tool (func_filter_filelist): Remove extra backslash
87224         in sed_fff_filter definition.
87226 2009-01-02  Jim Meyering  <meyering@redhat.com>
87228         strftime: avoid compilation failure on Solaris 2.6
87229         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
87230         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
87231         Don't #define mbrlen or mbsinit, since now they're guaranteed to
87232         be available.  Reported by Tom G. Christensen.  Details in
87233         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
87235 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87236             Bruno Haible  <bruno@clisp.org>
87238         Speed up gnulib-tool by doing more string processing through shell
87239         built-ins.
87240         * gnulib-tool (fast_func_append): New variable.
87241         (func_remove_prefix, func_remove_suffix): New functions.
87242         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
87243         (func_filter_filelist): New function.
87244         (func_get_dependencies): Use func_remove_suffix instead of sed.
87245         (func_get_automake_snippet): Use func_filter_filelist instead of a
87246         subshell and sed invocation.
87248 2009-01-01  Bruno Haible  <bruno@clisp.org>
87250         Fix a security bug.
87251         * gnulib-tool (func_import, import, update): Don't allow the characters
87252         '"', '$', '`', '\' in macro arguments that become part of commands that
87253         are evaluated.
87255 2009-01-01  Bruno Haible  <bruno@clisp.org>
87257         * gnulib-tool (func_reset_sigpipe): Add more comments.
87259 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87261         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
87262         func_emit_tests_Makefile_am, func_import): Abort loops early if we
87263         already know the answer.
87265 2009-01-01  Jim Meyering  <meyering@redhat.com>
87267         * lib/version-etc.c (version_etc_va): Update copyright year.
87269 2008-12-30  Bruno Haible  <bruno@clisp.org>
87271         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
87272         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
87273         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
87275 2008-12-29  Eric Blake  <ebb9@byu.net>
87277         multiarch: avoid autoconf AC_REQUIRE bug
87278         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
87279         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
87280         2.63 and older.
87281         Reported by Bruno Haible, and analyzed in
87282         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
87284 2008-12-29  Bruno Haible  <bruno@clisp.org>
87286         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
87287         files in subdirectories correctly.
87288         Reported by Ralf Wildenhues.
87290 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87292         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
87293         rather than 'join FILE -', for Solaris join.
87295 2008-12-29  Bruno Haible  <bruno@clisp.org>
87297         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
87298         quoting.
87299         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87300         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
87301         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
87302         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
87303         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
87304         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
87305         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
87306         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
87307         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
87308         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
87309         * m4/nls.m4 (AM_NLS): Likewise.
87310         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
87311         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
87312         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87313         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
87314         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
87315         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
87316         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
87317         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
87318         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
87319         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87320         * m4/xsize.m4 (gl_XSIZE): Likewise.
87321         Suggested by Jim Meyering.
87323 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87325         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
87326         * lib/parse-duration.c: use a switch instead of cascading if's.
87328 2008-12-29  Eric Blake  <ebb9@byu.net>
87330         wchar.h: supply WEOF on Irix 5.3
87331         * lib/wchar.in.h (wint_t): Also supply WEOF.
87332         * lib/wctype.in.h (wint_t): Likewise.
87333         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
87334         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
87335         Reported by Tom G. Christensen.
87337 2008-12-26  Bruno Haible  <bruno@clisp.org>
87339         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
87340         i486, i586, i686.
87342 2008-12-26  Bruno Haible  <bruno@clisp.org>
87344         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87346 2008-12-26  Bruno Haible  <bruno@clisp.org>
87348         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87349         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87350         not __STDC_CONSTANT_MACROS.
87351         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87353 2008-12-25  Bruno Haible  <bruno@clisp.org>
87355         Add support for universal builds to vasnprintf.
87356         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87357         universal builds, guess no.
87358         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87359         * modules/vasprintf-posix (Depends-on): Likewise.
87360         * modules/fprintf-posix (Depends-on): Likewise.
87361         * modules/vfprintf-posix (Depends-on): Likewise.
87362         * modules/snprintf-posix (Depends-on): Likewise.
87363         * modules/vsnprintf-posix (Depends-on): Likewise.
87364         * modules/sprintf-posix (Depends-on): Likewise.
87365         * modules/vsprintf-posix (Depends-on): Likewise.
87366         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87367         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87368         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87369         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87370         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87371         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87372         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87374         Add support for universal builds to <inttypes.h>.
87375         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87376         _SCNu64_PREFIX): In Apple
87377         universal builds, define directly, using _LP64.
87378         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87379         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87380         * modules/inttypes (Depends-on): Add multiarch.
87381         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87383         Add support for universal builds to <stdint.h>.
87384         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87385         universal builds, define directly, using _LP64.
87386         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87387         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87388         and size_t.
87389         * modules/stdint (Depends-on): Add multiarch.
87390         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87392         New module 'multiarch'.
87393         * modules/multiarch: New file.
87394         * m4/multiarch.m4: New file.
87396 2008-12-25  Bruno Haible  <bruno@clisp.org>
87398         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87400 2008-12-25  Bruno Haible  <bruno@clisp.org>
87402         * modules/btowc (License): Relicense under LGPLv2+.
87403         * modules/mbsinit (License): Likewise.
87404         * modules/mbrtowc (License): Likewise.
87405         * modules/wcrtomb (License): Likewise.
87406         * modules/streq (License): Likewise.
87407         Reported by David Lutterkort <lutter@redhat.com>.
87409 2008-12-23  Bruno Haible  <bruno@clisp.org>
87411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87413 2008-12-23  Bruno Haible  <bruno@clisp.org>
87415         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87417         GETADDRINFO_LIB, not in LIBS.
87418         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87419         * modules/canon-host (Link): Likewise.
87420         * NEWS: Mention the change.
87421         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87422         GETADDRINFO_LIB.
87424 2008-12-22  Bruno Haible  <bruno@clisp.org>
87426         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87427         * doc/posix-functions/iswalpha_l.texi: Likewise.
87428         * doc/posix-functions/iswblank_l.texi: Likewise.
87429         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87430         * doc/posix-functions/iswctype_l.texi: Likewise.
87431         * doc/posix-functions/iswdigit_l.texi: Likewise.
87432         * doc/posix-functions/iswgraph_l.texi: Likewise.
87433         * doc/posix-functions/iswlower_l.texi: Likewise.
87434         * doc/posix-functions/iswprint_l.texi: Likewise.
87435         * doc/posix-functions/iswpunct_l.texi: Likewise.
87436         * doc/posix-functions/iswspace_l.texi: Likewise.
87437         * doc/posix-functions/iswupper_l.texi: Likewise.
87438         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87439         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87440         * doc/posix-functions/open_wmemstream.texi: Likewise.
87441         * doc/posix-functions/swscanf.texi: Likewise.
87442         * doc/posix-functions/towctrans_l.texi: Likewise.
87443         * doc/posix-functions/towlower.texi: Likewise.
87444         * doc/posix-functions/towlower_l.texi: Likewise.
87445         * doc/posix-functions/towupper.texi: Likewise.
87446         * doc/posix-functions/towupper_l.texi: Likewise.
87447         * doc/posix-functions/vfwprintf.texi: Likewise.
87448         * doc/posix-functions/vfwscanf.texi: Likewise.
87449         * doc/posix-functions/vswscanf.texi: Likewise.
87450         * doc/posix-functions/vwprintf.texi: Likewise.
87451         * doc/posix-functions/vwscanf.texi: Likewise.
87452         * doc/posix-functions/wcpcpy.texi: Likewise.
87453         * doc/posix-functions/wcpncpy.texi: Likewise.
87454         * doc/posix-functions/wcscasecmp.texi: Likewise.
87455         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
87456         * doc/posix-functions/wcscoll_l.texi: Likewise.
87457         * doc/posix-functions/wcsdup.texi: Likewise.
87458         * doc/posix-functions/wcsncasecmp.texi: Likewise.
87459         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
87460         * doc/posix-functions/wcsnlen.texi: Likewise.
87461         * doc/posix-functions/wcsnrtombs.texi: Likewise.
87462         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
87463         * doc/posix-functions/wctrans_l.texi: Likewise.
87464         * doc/posix-functions/wctype_l.texi: Likewise.
87465         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
87466         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
87467         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
87468         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
87469         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
87470         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
87471         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
87472         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
87473         * doc/glibc-functions/wcschrnul.texi: Likewise.
87474         * doc/glibc-functions/wcsftime_l.texi: Likewise.
87475         * doc/glibc-functions/wcstod_l.texi: Likewise.
87476         * doc/glibc-functions/wcstof_l.texi: Likewise.
87477         * doc/glibc-functions/wcstol_l.texi: Likewise.
87478         * doc/glibc-functions/wcstold_l.texi: Likewise.
87479         * doc/glibc-functions/wcstoll_l.texi: Likewise.
87480         * doc/glibc-functions/wcstoq.texi: Likewise.
87481         * doc/glibc-functions/wcstoul_l.texi: Likewise.
87482         * doc/glibc-functions/wcstoull_l.texi: Likewise.
87483         * doc/glibc-functions/wcstouq.texi: Likewise.
87484         * doc/glibc-functions/wmempcpy.texi: Likewise.
87486 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
87487             Eric Blake  <ebb9@byu.net>
87488             Paolo Bonzini  <bonzini@gnu.org>
87489             Bruno Haible  <bruno@clisp.org>
87491         Make c-stack work on Haiku.
87492         * lib/c-stack.c (SA_ONSTACK): Define fallback.
87493         (c_stack_action): Use SA_ONSTACK flag.
87495 2008-12-22  Bruno Haible  <bruno@clisp.org>
87497         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
87499 2008-12-22  Bruno Haible  <bruno@clisp.org>
87501         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
87502         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
87503         being overridden.
87504         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
87505         New macros.
87506         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
87507         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
87508         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
87509         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
87511 2008-12-22  Bruno Haible  <bruno@clisp.org>
87513         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
87514         from test code.
87516 2008-12-22  Eric Blake  <ebb9@byu.net>
87518         Avoid gcc warnings on cygwin.
87519         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
87520         Avoid unused variable.
87521         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
87522         Likewise.
87524 2008-12-22  Bruno Haible  <bruno@clisp.org>
87526         Remove HAVE_MBRTOWC conditionals.
87527         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
87528         (mbscasecmp): Assume mbrtowc function.
87529         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
87530         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
87531         * lib/mbschr.c: Include mbuiter.h unconditionally.
87532         (mbschr): Assume mbrtowc function.
87533         * lib/mbscspn.c: Include mbuiter.h unconditionally.
87534         (mbscspn): Assume mbrtowc function.
87535         * lib/mbslen.c: Include mbuiter.h unconditionally.
87536         (mbslen): Assume mbrtowc function.
87537         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
87538         (mbsncasecmp): Assume mbrtowc function.
87539         * lib/mbsnlen.c: Include mbiter.h unconditionally.
87540         (mbsnlen): Assume mbrtowc function.
87541         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
87542         (mbspbrk): Assume mbrtowc function.
87543         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
87544         (mbspcasecmp): Assume mbrtowc function.
87545         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
87546         (mbsrchr): Assume mbrtowc function.
87547         * lib/mbssep.c: Include mbuiter.h unconditionally.
87548         (mbssep): Assume mbrtowc function.
87549         * lib/mbsspn.c: Include mbuiter.h unconditionally.
87550         (mbsspn): Assume mbrtowc function.
87551         * lib/mbsstr.c: Include mbuiter.h unconditionally.
87552         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
87553         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
87554         (mbstok_r): Assume mbrtowc function.
87555         * lib/propername.c: Include mbuiter.h unconditionally.
87556         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
87557         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
87558         (trim2): Assume mbrtowc function.
87559         * lib/mbswidth.c (mbsinit): Remove fallback definition.
87560         (mbsnwidth): Assume mbrtowc function.
87561         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
87562         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
87563         fallback definitions.
87564         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
87566 2008-12-22  Bruno Haible  <bruno@clisp.org>
87568         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
87570 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
87572         * modules/regex: Request emulations for the mb*/wc* functions we need.
87573         * m4/regex.m4: Don't look for those functions here.
87574         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
87576 2008-12-22  Bruno Haible  <bruno@clisp.org>
87578         * modules/fnmatch (Depends-on): Remove duplicated dependency.
87580 2008-12-21  Bruno Haible  <bruno@clisp.org>
87582         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
87583         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
87584         (Include): Remove conditionalization.
87585         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
87586         (Include): Remove conditionalization.
87587         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
87588         (Include): Remove conditionalization.
87589         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87590         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87591         * NEWS: Mention the change.
87592         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87593         via Sergey Poznyakoff <gray@gnu.org.ua>.
87595 2008-12-21  Bruno Haible  <bruno@clisp.org>
87597         * MODULES.html.sh (Extended multibyte and wide character utilities
87598         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
87599         wcrtomb, wcsrtombs.
87600         (Support for systems lacking POSIX:2008): Add accept, bind, close,
87601         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
87602         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
87603         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
87605 2008-12-21  Bruno Haible  <bruno@clisp.org>
87607         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
87609 2008-12-21  Bruno Haible  <bruno@clisp.org>
87611         * modules/wcsnrtombs-tests: New file.
87612         * tests/test-wcsnrtombs1.sh: New file.
87613         * tests/test-wcsnrtombs2.sh: New file.
87614         * tests/test-wcsnrtombs3.sh: New file.
87615         * tests/test-wcsnrtombs4.sh: New file.
87616         * tests/test-wcsnrtombs.c: New file.
87618         New module 'wcsnrtombs'.
87619         * lib/wchar.in.h (wcsnrtombs): New declaration.
87620         * lib/wcsnrtombs.c: New file.
87621         * lib/wcsrtombs-state.c: New file.
87622         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
87623         (internal_state): Remove variable.
87624         * m4/wcsnrtombs.m4: New file.
87625         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
87626         compilation units.
87627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
87628         HAVE_WCSNRTOMBS.
87629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
87630         HAVE_WCSNRTOMBS.
87631         * modules/wcsnrtombs: New file.
87632         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
87633         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
87635 2008-12-21  Bruno Haible  <bruno@clisp.org>
87637         * modules/wcsrtombs-tests: New file.
87638         * tests/test-wcsrtombs1.sh: New file.
87639         * tests/test-wcsrtombs2.sh: New file.
87640         * tests/test-wcsrtombs3.sh: New file.
87641         * tests/test-wcsrtombs4.sh: New file.
87642         * tests/test-wcsrtombs.c: New file.
87644         New module 'wcsrtombs'.
87645         * lib/wchar.in.h (wcsrtombs): New declaration.
87646         * lib/wcsrtombs.c: New file.
87647         * m4/wcsrtombs.m4: New file.
87648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
87649         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
87651         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87652         * modules/wcsrtombs: New file.
87653         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
87654         bugs.
87656 2008-12-21  Bruno Haible  <bruno@clisp.org>
87658         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
87659         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
87660         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87661         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87662         if not correct.
87663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87664         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87665         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87666         m4/locale-zh.m4, m4/codeset.m4.
87667         * doc/posix-functions/wcrtomb.texi: Document the bug.
87669 2008-12-21  Bruno Haible  <bruno@clisp.org>
87671         Work around a btowc() bug on IRIX 6.5.
87672         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87673         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87674         REPLACE_WTOBC if not.
87675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87676         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87677         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87679 2008-12-21  Bruno Haible  <bruno@clisp.org>
87681         * modules/wcrtomb-tests: New file.
87682         * tests/test-wcrtomb.sh: New file.
87683         * tests/test-wcrtomb.c: New file.
87685         New module 'wcrtomb'.
87686         * lib/wchar.in.h (wcrtomb): New declaration.
87687         * lib/wcrtomb.c: New file.
87688         * m4/wcrtomb.m4: New file.
87689         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87690         HAVE_WCRTOMB.
87691         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87692         HAVE_WCRTOMB.
87693         * modules/wcrtomb: New file.
87694         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87696 2008-12-21  Bruno Haible  <bruno@clisp.org>
87698         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87699         * modules/mbsrtowcs (Files): Likewise.
87700         * modules/wctob (Files): Likewise.
87701         * modules/c-strcase-tests (Files): Likewise.
87702         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87703         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87704         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87705         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87706         * modules/vasnprintf-posix-tests (Files): Likewise.
87708 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87710         gitlog-to-changelog: pass all command-line arguments to git-log
87711         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87712         it is sometimes convenient to filter the commits in various ways.
87713         gitlog-to-changelog only allows --since to specify a start date,
87714         but git-log itself supports many other filtering mechanisms.
87715         At the moment, I want to filter by branch name.  Rather than
87716         adding a --branch option to gitlog-to-changelog, it seems more
87717         flexible to simply pass all options directly to git-log and let
87718         git do the work.  Notice that this effectively makes --since a
87719         redundant option for gitlog-to-changelog, but removing it would
87720         require current usage to change since calls would then require
87721         an additional '--'.
87723 2008-12-21  Bruno Haible  <bruno@clisp.org>
87725         * modules/mbsnrtowcs-tests: New file.
87726         * tests/test-mbsnrtowcs1.sh: New file.
87727         * tests/test-mbsnrtowcs2.sh: New file.
87728         * tests/test-mbsnrtowcs3.sh: New file.
87729         * tests/test-mbsnrtowcs4.sh: New file.
87730         * tests/test-mbsnrtowcs.c: New file.
87732         New module 'mbsnrtowcs'.
87733         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87734         * lib/mbsnrtowcs.c: New file.
87735         * lib/mbsrtowcs-state.c: New file.
87736         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87737         (internal_state): Remove variable.
87738         * m4/mbsnrtowcs.m4: New file.
87739         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87740         compilation units.
87741         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87742         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87743         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87744         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87745         * modules/mbsnrtowcs: New file.
87746         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87747         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87748         portability problem.
87750 2008-12-21  Bruno Haible  <bruno@clisp.org>
87752         Work around mbsrtowcs bug.
87753         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87754         (gl_FUNC_MBSRTOWCS): Invoke it.
87755         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87756         m4/locale-zh.m4.
87757         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87759 2008-12-21  Bruno Haible  <bruno@clisp.org>
87761         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87763 2008-12-21  Bruno Haible  <bruno@clisp.org>
87765         Update doc for AIX.
87766         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87767         16-bit wchar_t type.
87768         * doc/posix-functions/btowc.texi: Likewise.
87769         * doc/posix-functions/fgetwc.texi: Likewise.
87770         * doc/posix-functions/fgetws.texi: Likewise.
87771         * doc/posix-functions/fputwc.texi: Likewise.
87772         * doc/posix-functions/fputws.texi: Likewise.
87773         * doc/posix-functions/fwide.texi: Likewise.
87774         * doc/posix-functions/fwprintf.texi: Likewise.
87775         * doc/posix-functions/fwscanf.texi: Likewise.
87776         * doc/posix-functions/getwchar.texi: Likewise.
87777         * doc/posix-functions/getwc.texi: Likewise.
87778         * doc/posix-functions/iswalnum.texi: Likewise.
87779         * doc/posix-functions/iswalpha.texi: Likewise.
87780         * doc/posix-functions/iswblank.texi: Likewise.
87781         * doc/posix-functions/iswcntrl.texi: Likewise.
87782         * doc/posix-functions/iswctype.texi: Likewise.
87783         * doc/posix-functions/iswdigit.texi: Likewise.
87784         * doc/posix-functions/iswgraph.texi: Likewise.
87785         * doc/posix-functions/iswlower.texi: Likewise.
87786         * doc/posix-functions/iswprint.texi: Likewise.
87787         * doc/posix-functions/iswpunct.texi: Likewise.
87788         * doc/posix-functions/iswspace.texi: Likewise.
87789         * doc/posix-functions/iswupper.texi: Likewise.
87790         * doc/posix-functions/iswxdigit.texi: Likewise.
87791         * doc/posix-functions/mbrtowc.texi: Likewise.
87792         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87793         * doc/posix-functions/mbstowcs.texi: Likewise.
87794         * doc/posix-functions/mbtowc.texi: Likewise.
87795         * doc/posix-functions/putwchar.texi: Likewise.
87796         * doc/posix-functions/putwc.texi: Likewise.
87797         * doc/posix-functions/swprintf.texi: Likewise.
87798         * doc/posix-functions/tolower.texi: Likewise.
87799         * doc/posix-functions/toupper.texi: Likewise.
87800         * doc/posix-functions/towctrans.texi: Likewise.
87801         * doc/posix-functions/ungetwc.texi: Likewise.
87802         * doc/posix-functions/vswprintf.texi: Likewise.
87803         * doc/posix-functions/wcrtomb.texi: Likewise.
87804         * doc/posix-functions/wcscat.texi: Likewise.
87805         * doc/posix-functions/wcschr.texi: Likewise.
87806         * doc/posix-functions/wcscmp.texi: Likewise.
87807         * doc/posix-functions/wcscoll.texi: Likewise.
87808         * doc/posix-functions/wcscpy.texi: Likewise.
87809         * doc/posix-functions/wcscspn.texi: Likewise.
87810         * doc/posix-functions/wcsftime.texi: Likewise.
87811         * doc/posix-functions/wcslen.texi: Likewise.
87812         * doc/posix-functions/wcsncat.texi: Likewise.
87813         * doc/posix-functions/wcsncmp.texi: Likewise.
87814         * doc/posix-functions/wcsncpy.texi: Likewise.
87815         * doc/posix-functions/wcspbrk.texi: Likewise.
87816         * doc/posix-functions/wcsrchr.texi: Likewise.
87817         * doc/posix-functions/wcsrtombs.texi: Likewise.
87818         * doc/posix-functions/wcsspn.texi: Likewise.
87819         * doc/posix-functions/wcsstr.texi: Likewise.
87820         * doc/posix-functions/wcstod.texi: Likewise.
87821         * doc/posix-functions/wcstof.texi: Likewise.
87822         * doc/posix-functions/wcstoimax.texi: Likewise.
87823         * doc/posix-functions/wcstok.texi: Likewise.
87824         * doc/posix-functions/wcstold.texi: Likewise.
87825         * doc/posix-functions/wcstoll.texi: Likewise.
87826         * doc/posix-functions/wcstol.texi: Likewise.
87827         * doc/posix-functions/wcstombs.texi: Likewise.
87828         * doc/posix-functions/wcstoull.texi: Likewise.
87829         * doc/posix-functions/wcstoul.texi: Likewise.
87830         * doc/posix-functions/wcstoumax.texi: Likewise.
87831         * doc/posix-functions/wcswidth.texi: Likewise.
87832         * doc/posix-functions/wcsxfrm.texi: Likewise.
87833         * doc/posix-functions/wctob.texi: Likewise.
87834         * doc/posix-functions/wctomb.texi: Likewise.
87835         * doc/posix-functions/wctrans.texi: Likewise.
87836         * doc/posix-functions/wctype.texi: Likewise.
87837         * doc/posix-functions/wcwidth.texi: Likewise.
87838         * doc/posix-functions/wmemchr.texi: Likewise.
87839         * doc/posix-functions/wmemcmp.texi: Likewise.
87840         * doc/posix-functions/wmemcpy.texi: Likewise.
87841         * doc/posix-functions/wmemmove.texi: Likewise.
87842         * doc/posix-functions/wmemset.texi: Likewise.
87843         * doc/posix-functions/wprintf.texi: Likewise.
87844         * doc/posix-functions/wscanf.texi: Likewise.
87846 2008-12-21  Bruno Haible  <bruno@clisp.org>
87848         Update doc for HP-UX 11.11.
87849         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87850         in HP-UX version 11.00, not in all versions of HP-UX 11.
87851         * doc/posix-functions/fwide.texi: Likewise.
87852         * doc/posix-functions/fwprintf.texi: Likewise.
87853         * doc/posix-functions/fwscanf.texi: Likewise.
87854         * doc/posix-functions/inet_ntop.texi: Likewise.
87855         * doc/posix-functions/inet_pton.texi: Likewise.
87856         * doc/posix-functions/mbrlen.texi: Likewise.
87857         * doc/posix-functions/mbrtowc.texi: Likewise.
87858         * doc/posix-functions/mbsinit.texi: Likewise.
87859         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87860         * doc/posix-functions/swprintf.texi: Likewise.
87861         * doc/posix-functions/swscanf.texi: Likewise.
87862         * doc/posix-functions/towctrans.texi: Likewise.
87863         * doc/posix-functions/vfwprintf.texi: Likewise.
87864         * doc/posix-functions/vswprintf.texi: Likewise.
87865         * doc/posix-functions/vwprintf.texi: Likewise.
87866         * doc/posix-functions/wcrtomb.texi: Likewise.
87867         * doc/posix-functions/wcsrtombs.texi: Likewise.
87868         * doc/posix-functions/wcsstr.texi: Likewise.
87869         * doc/posix-functions/wctob.texi: Likewise.
87870         * doc/posix-functions/wctrans.texi: Likewise.
87871         * doc/posix-functions/wmemchr.texi: Likewise.
87872         * doc/posix-functions/wmemcmp.texi: Likewise.
87873         * doc/posix-functions/wmemcpy.texi: Likewise.
87874         * doc/posix-functions/wmemmove.texi: Likewise.
87875         * doc/posix-functions/wmemset.texi: Likewise.
87876         * doc/posix-functions/wprintf.texi: Likewise.
87877         * doc/posix-functions/wscanf.texi: Likewise.
87879 2008-12-21  Bruno Haible  <bruno@clisp.org>
87881         Work around a portability problem.
87882         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87883         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87885 2008-12-20  Bruno Haible  <bruno@clisp.org>
87887         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87888         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87889         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87891         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87893         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87894         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87895         set.
87896         (GNULIB_defined_mbstate_t): New macro.
87897         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87898         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87899         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87900         reuses the system's mbrtowc function but works around the bugs.
87901         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87902         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87903         macros.
87904         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87905         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87906         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87907         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87908         REPLACE_MBSINIT if mbsinit needs to be overridden.
87909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87910         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87911         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87912         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87913         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87914         m4/locale-zh.m4.
87915         (Depends): Add mbsinit.
87916         * modules/mbsinit (Depends): Add mbrtowc.
87917         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87919 2008-12-20  Bruno Haible  <bruno@clisp.org>
87921         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87922         so that there are no conversion errors on AIX.
87923         * tests/test-mbsrtowcs.c (main): LIkewise.
87925 2008-12-20  Bruno Haible  <bruno@clisp.org>
87927         Work around wctob bug on Solaris <= 9.
87928         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87929         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87931         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87932         * modules/wctob (Files): Add m4/locale-fr.m4.
87933         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87935 2008-12-20  Bruno Haible  <bruno@clisp.org>
87937         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87938         /dev/null.
87939         * tests/test-select-in.sh: Likewise.
87940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87942 2008-12-20  Bruno Haible  <bruno@clisp.org>
87944         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87945         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87946         Cygwin 1.5.x.
87948 2008-12-20  Bruno Haible  <bruno@clisp.org>
87950         Ensure mbstate_t is defined on HP-UX 11.11.
87951         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87952         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87953         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87954         AC_USE_SYSTEM_EXTENSIONS.
87955         * modules/fnmatch (Depends-on): Add extensions.
87956         * modules/mbrlen (Depends-on): Likewise.
87957         * modules/mbrtowc (Depends-on): Likewise.
87958         * modules/mbsinit (Depends-on): Likewise.
87959         * modules/mbsrtowcs (Depends-on): Likewise.
87960         * modules/mbswidth (Depends-on): Likewise.
87961         * modules/quotearg (Depends-on): Likewise.
87962         * modules/strftime (Depends-on): Likewise.
87964 2008-12-20  Bruno Haible  <bruno@clisp.org>
87966         Ensure wctob is declared on IRIX 6.5.
87967         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87968         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87969         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87971         of HAVE_WCTOB.
87972         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87973         HAVE_WCTOB.
87974         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87976 2008-12-19  Bruno Haible  <bruno@clisp.org>
87978         * modules/mbsrtowcs-tests: New file.
87979         * tests/test-mbsrtowcs1.sh: New file.
87980         * tests/test-mbsrtowcs2.sh: New file.
87981         * tests/test-mbsrtowcs3.sh: New file.
87982         * tests/test-mbsrtowcs4.sh: New file.
87983         * tests/test-mbsrtowcs.c: New file.
87985         New module 'mbsrtowcs'.
87986         * lib/wchar.in.h (mbsrtowcs): New declaration.
87987         * lib/mbsrtowcs.c: New file.
87988         * m4/mbsrtowcs.m4: New file.
87989         * modules/mbsrtowcs: New file.
87990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87991         HAVE_MBSRTOWCS.
87992         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87993         HAVE_MBSRTOWCS.
87994         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87996 2008-12-19  Bruno Haible  <bruno@clisp.org>
87998         New module 'mbrlen'.
87999         * lib/wchar.in.h (mbrlen): New declaration.
88000         * lib/mbrlen.c: New file.
88001         * m4/mbrlen.m4: New file.
88002         * modules/mbrlen: New file.
88003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
88004         HAVE_MBRLEN.
88005         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
88006         HAVE_MBRLEN.
88007         * doc/posix-functions/mbrlen.texi: Document the new module.
88009 2008-12-19  Bruno Haible  <bruno@clisp.org>
88011         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
88012         * modules/mbrtowc (Depends-on): Add verify.
88013         Suggested by Paul Eggert.
88015 2008-12-18  Bruno Haible  <bruno@clisp.org>
88017         * modules/mbsinit-tests: New file.
88018         * tests/test-mbsinit.sh: New file.
88019         * tests/test-mbsinit.c: New file.
88021 2008-12-18  Bruno Haible  <bruno@clisp.org>
88023         * modules/mbrtowc-tests: New file.
88024         * tests/test-mbrtowc1.sh: New file.
88025         * tests/test-mbrtowc2.sh: New file.
88026         * tests/test-mbrtowc3.sh: New file.
88027         * tests/test-mbrtowc4.sh: New file.
88028         * tests/test-mbrtowc.c: New file.
88030         New module 'mbrtowc'.
88031         * lib/wchar.in.h (mbstate_t): Override when the system does not have
88032         mbsinit and mbrtowc.
88033         (mbrtowc): New declaration.
88034         * lib/mbrtowc.c: New file.
88035         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
88036         * modules/mbrtowc: New file.
88037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
88038         HAVE_MBRTOWC.
88039         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
88040         HAVE_MBRTOWC.
88041         * doc/posix-functions/mbrtowc.texi: Document the new module.
88043 2008-12-18  Bruno Haible  <bruno@clisp.org>
88045         New module 'wctob'.
88046         * lib/wchar.in.h (wctob): New declaration.
88047         * lib/wctob.c: New file.
88048         * m4/wctob.m4: New file.
88049         * modules/wctob: New file.
88050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
88051         HAVE_WCTOB.
88052         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
88053         * doc/posix-functions/wctob.texi: Document the new module.
88055 2008-12-18  Bruno Haible  <bruno@clisp.org>
88057         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
88058         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
88060 2008-12-18  Simon Josefsson  <simon@josefsson.org>
88062         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
88063         G. Christensen" <tgc@jupiterrise.com>.
88065         * lib/flock.c: Need to include errno.h.  Reported by "Tom
88066         G. Christensen" <tgc@jupiterrise.com>.
88068         * lib/flock.c: Need to include string.h.  Reported by "Tom
88069         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
88070         <ebb9@byu.net>.
88072 2008-12-18  Bruno Haible  <bruno@clisp.org>
88074         * m4/locale-ja.m4: New file, from GNU gettext.
88076 2008-12-17  Bruno Haible  <bruno@clisp.org>
88078         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
88079         Suggested by Eric Blake.
88081 2008-12-17  Bruno Haible  <bruno@clisp.org>
88083         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
88085 2008-12-17  Bruno Haible  <bruno@clisp.org>
88087         * lib/mbsinit.c: Include verify.h. Verify an assumption.
88088         * modules/mbsinit (Depends-on): Add verify.
88089         Suggested by Paul Eggert.
88091 2008-12-17  Bruno Haible  <bruno@clisp.org>
88093         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
88094         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
88095         gl_FUNC_MBRTOWC.
88096         * m4/mbiter.m4 (gl_MBITER): LIkewise.
88097         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
88098         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
88099         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
88100         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
88101         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
88102         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
88103         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
88104         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
88105         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
88106         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
88107         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
88108         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
88109         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
88110         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
88111         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88112         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
88113         * modules/trim (configure.ac): Likewise.
88115 2008-12-17  Bruno Haible  <bruno@clisp.org>
88117         * modules/btowc-tests: New file.
88118         * tests/test-btowc1.sh: New file.
88119         * tests/test-btowc2.sh: New file.
88120         * tests/test-btowc.c: New file.
88122         New module 'btowc'.
88123         * lib/wchar.in.h (btowc): New declaration.
88124         * lib/btowc.c: New file.
88125         * m4/btowc.m4: New file.
88126         * modules/btowc: New file.
88127         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
88128         HAVE_BTOWC.
88129         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
88130         * doc/posix-functions/btowc.texi: Document the new module.
88132 2008-12-17  Bruno Haible  <bruno@clisp.org>
88134         New module 'mbsinit'.
88135         * lib/wchar.in.h (mbsinit): New declaration.
88136         * lib/mbsinit.c: New file.
88137         * m4/mbsinit.m4: New file.
88138         * modules/mbsinit: New file.
88139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
88140         HAVE_MBSINIT.
88141         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
88142         HAVE_MBSINIT.
88143         * doc/posix-functions/mbsinit.texi: Document the new module.
88145 2008-12-16  Bruno Haible  <bruno@clisp.org>
88147         * lib/unistd.in.h: Add comment.
88148         * tests/test-environ.c: Don't include <stdlib.h>.
88150 2008-12-16  Bruno Haible  <bruno@clisp.org>
88152         * lib/parse-duration.h (parse_duration): Document return value
88153         convention.
88154         * lib/parse-duration.c: Include specification header first. Add
88155         comments.
88156         (_): Remove macro.
88157         (parse_year_month_day, parse_hour_minute_second): Move side effects
88158         outside of strchr call.
88159         (parse_non_iso8601): Move side effects outside of isspace call.
88160         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
88161         call.
88163 2008-12-16  Bruno Haible  <bruno@clisp.org>
88165         * tests/test-parse-duration.sh: Produce no output when the test
88166         succeeds.
88168 2008-12-16  Bruno Haible  <bruno@clisp.org>
88170         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
88171         expressions.
88173 2008-12-15  Bruno Haible  <bruno@clisp.org>
88175         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88176         * doc/glibc-functions/flistxattr.texi: Likewise.
88177         * doc/glibc-functions/fopencookie.texi: Likewise.
88178         * doc/glibc-functions/fremovexattr.texi: Likewise.
88179         * doc/glibc-functions/fsetxattr.texi: Likewise.
88180         * doc/glibc-functions/getxattr.texi: Likewise.
88181         * doc/glibc-functions/lgetxattr.texi: Likewise.
88182         * doc/glibc-functions/listxattr.texi: Likewise.
88183         * doc/glibc-functions/llistxattr.texi: Likewise.
88184         * doc/glibc-functions/lremovexattr.texi: Likewise.
88185         * doc/glibc-functions/lsetxattr.texi: Likewise.
88186         * doc/glibc-functions/removexattr.texi: Likewise.
88187         * doc/glibc-functions/setxattr.texi: Likewise.
88188         * doc/posix-functions/open_memstream.texi: Likewise.
88190 2008-12-15  Eric Blake  <ebb9@byu.net>
88192         Update doc for cygwin 1.7.
88193         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
88194         functions.
88195         * doc/posix-functions/fchmodat.texi: Likewise.
88196         * doc/posix-functions/fchownat.texi: Likewise.
88197         * doc/posix-functions/fdopendir.texi: Likewise.
88198         * doc/posix-functions/fmemopen.texi: Likewise.
88199         * doc/posix-functions/freeaddrinfo.texi: Likewise.
88200         * doc/posix-functions/fstatat.texi: Likewise.
88201         * doc/posix-functions/futimens.texi: Likewise.
88202         * doc/posix-functions/gai_strerror.texi: Likewise.
88203         * doc/posix-functions/getaddrinfo.texi: Likewise.
88204         * doc/posix-functions/getnameinfo.texi: Likewise.
88205         * doc/posix-functions/if_freenameindex.texi: Likewise.
88206         * doc/posix-functions/if_indextoname.texi: Likewise.
88207         * doc/posix-functions/if_nameindex.texi: Likewise.
88208         * doc/posix-functions/if_nametoindex.texi: Likewise.
88209         * doc/posix-functions/insque.texi: Likewise.
88210         * doc/posix-functions/linkat.texi: Likewise.
88211         * doc/posix-functions/llrint.texi: Likewise.
88212         * doc/posix-functions/llrintf.texi: Likewise.
88213         * doc/posix-functions/llrintl.texi: Likewise.
88214         * doc/posix-functions/lockf.texi: Likewise.
88215         * doc/posix-functions/lrintl.texi: Likewise.
88216         * doc/posix-functions/mkdirat.texi: Likewise.
88217         * doc/posix-functions/mkfifoat.texi: Likewise.
88218         * doc/posix-functions/mknodat.texi: Likewise.
88219         * doc/posix-functions/mq_close.texi: Likewise.
88220         * doc/posix-functions/mq_getattr.texi: Likewise.
88221         * doc/posix-functions/mq_notify.texi: Likewise.
88222         * doc/posix-functions/mq_open.texi: Likewise.
88223         * doc/posix-functions/mq_receive.texi: Likewise.
88224         * doc/posix-functions/mq_send.texi: Likewise.
88225         * doc/posix-functions/mq_setattr.texi: Likewise.
88226         * doc/posix-functions/mq_timedreceive.texi: Likewise.
88227         * doc/posix-functions/mq_timedsend.texi: Likewise.
88228         * doc/posix-functions/mq_unlink.texi: Likewise.
88229         * doc/posix-functions/open_memstream.texi: Likewise.
88230         * doc/posix-functions/openat.texi: Likewise.
88231         * doc/posix-functions/posix_fadvise.texi: Likewise.
88232         * doc/posix-functions/posix_fallocate.texi: Likewise.
88233         * doc/posix-functions/posix_madvise.texi: Likewise.
88234         * doc/posix-functions/posix_memalign.texi: Likewise.
88235         * doc/posix-functions/posix_openpt.texi: Likewise.
88236         * doc/posix-functions/readlinkat.texi: Likewise.
88237         * doc/posix-functions/remque.texi: Likewise.
88238         * doc/posix-functions/renameat.texi: Likewise.
88239         * doc/posix-functions/rintl.texi: Likewise.
88240         * doc/posix-functions/sem_unlink.texi: Likewise.
88241         * doc/posix-functions/shm_open.texi: Likewise.
88242         * doc/posix-functions/shm_unlink.texi: Likewise.
88243         * doc/posix-functions/signgam.texi: Likewise.
88244         * doc/posix-functions/sigset.texi: Likewise.
88245         * doc/posix-functions/stpcpy.texi: Likewise.
88246         * doc/posix-functions/stpncpy.texi: Likewise.
88247         * doc/posix-functions/strerror.texi: Likewise.
88248         * doc/posix-functions/strtod.texi: Likewise.
88249         * doc/posix-functions/symlinkat.texi: Likewise.
88250         * doc/posix-functions/unlinkat.texi: Likewise.
88251         * doc/posix-functions/utimensat.texi: Likewise.
88252         * doc/glibc-functions/bindresvport.texi: Likewise.
88253         * doc/glibc-functions/dn_expand.texi: Likewise.
88254         * doc/glibc-functions/exp10.texi: Likewise.
88255         * doc/glibc-functions/exp10f.texi: Likewise.
88256         * doc/glibc-functions/fgetxattr.texi: Likewise.
88257         * doc/glibc-functions/flistxattr.texi: Likewise.
88258         * doc/glibc-functions/fopencookie.texi: Likewise.
88259         * doc/glibc-functions/freeifaddrs.texi: Likewise.
88260         * doc/glibc-functions/fremovexattr.texi: Likewise.
88261         * doc/glibc-functions/fsetxattr.texi: Likewise.
88262         * doc/glibc-functions/getifaddrs.texi: Likewise.
88263         * doc/glibc-functions/getxattr.texi: Likewise.
88264         * doc/glibc-functions/lgetxattr.texi: Likewise.
88265         * doc/glibc-functions/listxattr.texi: Likewise.
88266         * doc/glibc-functions/llistxattr.texi: Likewise.
88267         * doc/glibc-functions/lremovexattr.texi: Likewise.
88268         * doc/glibc-functions/lsetxattr.texi: Likewise.
88269         * doc/glibc-functions/pow10.texi: Likewise.
88270         * doc/glibc-functions/pow10f.texi: Likewise.
88271         * doc/glibc-functions/rcmd_af.texi: Likewise.
88272         * doc/glibc-functions/removexattr.texi: Likewise.
88273         * doc/glibc-functions/res_init.texi: Likewise.
88274         * doc/glibc-functions/res_mkquery.texi: Likewise.
88275         * doc/glibc-functions/res_query.texi: Likewise.
88276         * doc/glibc-functions/res_querydomain.texi: Likewise.
88277         * doc/glibc-functions/res_send.texi: Likewise.
88278         * doc/glibc-functions/rresvport_af.texi: Likewise.
88279         * doc/glibc-functions/setxattr.texi: Likewise.
88280         * doc/glibc-functions/strcasestr.texi: Likewise.
88282 2008-12-15  Bruno Haible  <bruno@clisp.org>
88284         Fix compilation error on OSF/1 4.0.
88285         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
88286         <sys/time.h>, simply delegate to the system header.
88287         Reported by Daniel Richard G. <oss@teragram.com>.
88289 2008-12-15  Bruno Haible  <bruno@clisp.org>
88291         * doc/posix-functions/openat.texi: Mention the 'openat' module.
88292         * doc/posix-functions/fchmodat.texi: Likewise.
88293         * doc/posix-functions/fchownat.texi: Likewise.
88294         * doc/posix-functions/fdopendir.texi: Likewise.
88295         * doc/posix-functions/fstatat.texi: Likewise.
88296         * doc/posix-functions/mkdirat.texi: Likewise.
88297         * doc/posix-functions/unlinkat.texi: Likewise.
88299 2008-12-14  Bruno Haible  <bruno@clisp.org>
88301         Update doc for POSIX:2008.
88302         * doc/posix-functions/faccessat.texi: New file.
88303         * doc/posix-functions/fchmodat.texi: New file.
88304         * doc/posix-functions/fchownat.texi: New file.
88305         * doc/posix-functions/fdopendir.texi: New file.
88306         * doc/posix-functions/fstatat.texi: New file.
88307         * doc/posix-functions/futimens.texi: New file.
88308         * doc/posix-functions/linkat.texi: New file.
88309         * doc/posix-functions/mkdirat.texi: New file.
88310         * doc/posix-functions/mkfifoat.texi: New file.
88311         * doc/posix-functions/mknodat.texi: New file.
88312         * doc/posix-functions/open_wmemstream.texi: New file.
88313         * doc/posix-functions/openat.texi: New file.
88314         * doc/posix-functions/psiginfo.texi: New file.
88315         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
88316         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
88317         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
88318         * doc/posix-functions/readlinkat.texi: New file.
88319         * doc/posix-functions/renameat.texi: New file.
88320         * doc/posix-functions/strerror_l.texi: New file.
88321         * doc/posix-functions/symlinkat.texi: New file.
88322         * doc/posix-functions/unlinkat.texi: New file.
88323         * doc/posix-functions/utimensat.texi: New file.
88324         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88326 2008-12-14  Bruno Haible  <bruno@clisp.org>
88328         Update doc for POSIX:2008.
88329         * doc/posix-functions/alphasort.texi: Renamed from
88330         doc/glibc-functions/alphasort.texi.
88331         * doc/posix-functions/dirfd.texi: Renamed from
88332         doc/glibc-functions/dirfd.texi.
88333         * doc/posix-functions/dprintf.texi: Renamed from
88334         doc/glibc-functions/dprintf.texi.
88335         * doc/posix-functions/duplocale.texi: Renamed from
88336         doc/glibc-functions/duplocale.texi.
88337         * doc/posix-functions/fexecve.texi: Renamed from
88338         doc/glibc-functions/fexecve.texi.
88339         * doc/posix-functions/fmemopen.texi: Renamed from
88340         doc/glibc-functions/fmemopen.texi.
88341         * doc/posix-functions/freelocale.texi: Renamed from
88342         doc/glibc-functions/freelocale.texi.
88343         * doc/posix-functions/getdate_err.texi: Renamed from
88344         doc/glibc-functions/getdate_err.texi.
88345         * doc/posix-functions/isalnum_l.texi: Renamed from
88346         doc/glibc-functions/isalnum_l.texi.
88347         * doc/posix-functions/isalpha_l.texi: Renamed from
88348         doc/glibc-functions/isalpha_l.texi.
88349         * doc/posix-functions/isblank_l.texi: Renamed from
88350         doc/glibc-functions/isblank_l.texi.
88351         * doc/posix-functions/iscntrl_l.texi: Renamed from
88352         doc/glibc-functions/iscntrl_l.texi.
88353         * doc/posix-functions/isdigit_l.texi: Renamed from
88354         doc/glibc-functions/isdigit_l.texi.
88355         * doc/posix-functions/isgraph_l.texi: Renamed from
88356         doc/glibc-functions/isgraph_l.texi.
88357         * doc/posix-functions/islower_l.texi: Renamed from
88358         doc/glibc-functions/islower_l.texi.
88359         * doc/posix-functions/isprint_l.texi: Renamed from
88360         doc/glibc-functions/isprint_l.texi.
88361         * doc/posix-functions/ispunct_l.texi: Renamed from
88362         doc/glibc-functions/ispunct_l.texi.
88363         * doc/posix-functions/isspace_l.texi: Renamed from
88364         doc/glibc-functions/isspace_l.texi.
88365         * doc/posix-functions/isupper_l.texi: Renamed from
88366         doc/glibc-functions/isupper_l.texi.
88367         * doc/posix-functions/iswalnum_l.texi: Renamed from
88368         doc/glibc-functions/iswalnum_l.texi.
88369         * doc/posix-functions/iswalpha_l.texi: Renamed from
88370         doc/glibc-functions/iswalpha_l.texi.
88371         * doc/posix-functions/iswblank_l.texi: Renamed from
88372         doc/glibc-functions/iswblank_l.texi.
88373         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88374         doc/glibc-functions/iswcntrl_l.texi.
88375         * doc/posix-functions/iswctype_l.texi: Renamed from
88376         doc/glibc-functions/iswctype_l.texi.
88377         * doc/posix-functions/iswdigit_l.texi: Renamed from
88378         doc/glibc-functions/iswdigit_l.texi.
88379         * doc/posix-functions/iswgraph_l.texi: Renamed from
88380         doc/glibc-functions/iswgraph_l.texi.
88381         * doc/posix-functions/iswlower_l.texi: Renamed from
88382         doc/glibc-functions/iswlower_l.texi.
88383         * doc/posix-functions/iswprint_l.texi: Renamed from
88384         doc/glibc-functions/iswprint_l.texi.
88385         * doc/posix-functions/iswpunct_l.texi: Renamed from
88386         doc/glibc-functions/iswpunct_l.texi.
88387         * doc/posix-functions/iswspace_l.texi: Renamed from
88388         doc/glibc-functions/iswspace_l.texi.
88389         * doc/posix-functions/iswupper_l.texi: Renamed from
88390         doc/glibc-functions/iswupper_l.texi.
88391         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88392         doc/glibc-functions/iswxdigit_l.texi.
88393         * doc/posix-functions/isxdigit_l.texi: Renamed from
88394         doc/glibc-functions/isxdigit_l.texi.
88395         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88396         doc/glibc-functions/mbsnrtowcs.texi.
88397         * doc/posix-functions/mkdtemp.texi: Renamed from
88398         doc/glibc-functions/mkdtemp.texi.
88399         * doc/posix-functions/newlocale.texi: Renamed from
88400         doc/glibc-functions/newlocale.texi.
88401         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88402         doc/glibc-functions/nl_langinfo_l.texi.
88403         * doc/posix-functions/open_memstream.texi: Renamed from
88404         doc/glibc-functions/open_memstream.texi.
88405         * doc/posix-functions/opterr.texi: Renamed from
88406         doc/glibc-functions/opterr.texi.
88407         * doc/posix-functions/optind.texi: Renamed from
88408         doc/glibc-functions/optind.texi.
88409         * doc/posix-functions/optopt.texi: Renamed from
88410         doc/glibc-functions/optopt.texi.
88411         * doc/posix-functions/psignal.texi: Renamed from
88412         doc/glibc-functions/psignal.texi.
88413         * doc/posix-functions/scandir.texi: Renamed from
88414         doc/glibc-functions/scandir.texi.
88415         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88416         doc/glibc-functions/sched_get_priority_min.texi.
88417         * doc/posix-functions/signgam.texi: Renamed from
88418         doc/glibc-functions/signgam.texi.
88419         * doc/posix-functions/stpcpy.texi: Renamed from
88420         doc/glibc-functions/stpcpy.texi.
88421         * doc/posix-functions/stpncpy.texi: Renamed from
88422         doc/glibc-functions/stpncpy.texi.
88423         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88424         doc/glibc-functions/strcasecmp_l.texi.
88425         * doc/posix-functions/strcoll_l.texi: Renamed from
88426         doc/glibc-functions/strcoll_l.texi.
88427         * doc/posix-functions/strfmon_l.texi: Renamed from
88428         doc/glibc-functions/strfmon_l.texi.
88429         * doc/posix-functions/strftime_l.texi: Renamed from
88430         doc/glibc-functions/strftime_l.texi.
88431         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88432         doc/glibc-functions/strncasecmp_l.texi.
88433         * doc/posix-functions/strndup.texi: Renamed from
88434         doc/glibc-functions/strndup.texi.
88435         * doc/posix-functions/strnlen.texi: Renamed from
88436         doc/glibc-functions/strnlen.texi.
88437         * doc/posix-functions/strsignal.texi: Renamed from
88438         doc/glibc-functions/strsignal.texi.
88439         * doc/posix-functions/strxfrm_l.texi: Renamed from
88440         doc/glibc-functions/strxfrm_l.texi.
88441         * doc/posix-functions/timer_gettime.texi: Renamed from
88442         doc/glibc-functions/timer_gettime.texi.
88443         * doc/posix-functions/tolower_l.texi: Renamed from
88444         doc/glibc-functions/tolower_l.texi.
88445         * doc/posix-functions/toupper_l.texi: Renamed from
88446         doc/glibc-functions/toupper_l.texi.
88447         * doc/posix-functions/towctrans_l.texi: Renamed from
88448         doc/glibc-functions/towctrans_l.texi.
88449         * doc/posix-functions/towlower_l.texi: Renamed from
88450         doc/glibc-functions/towlower_l.texi.
88451         * doc/posix-functions/towupper_l.texi: Renamed from
88452         doc/glibc-functions/towupper_l.texi.
88453         * doc/posix-functions/uselocale.texi: Renamed from
88454         doc/glibc-functions/uselocale.texi.
88455         * doc/posix-functions/vdprintf.texi: Renamed from
88456         doc/glibc-functions/vdprintf.texi.
88457         * doc/posix-functions/wcpcpy.texi:
88458         Renamed from doc/glibc-functions/wcpcpy.texi.
88459         * doc/posix-functions/wcpncpy.texi: Renamed from
88460         doc/glibc-functions/wcpncpy.texi.
88461         * doc/posix-functions/wcscasecmp.texi: Renamed from
88462         doc/glibc-functions/wcscasecmp.texi.
88463         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
88464         doc/glibc-functions/wcscasecmp_l.texi.
88465         * doc/posix-functions/wcscoll_l.texi: Renamed from
88466         doc/glibc-functions/wcscoll_l.texi.
88467         * doc/posix-functions/wcsdup.texi: Renamed from
88468         doc/glibc-functions/wcsdup.texi.
88469         * doc/posix-functions/wcsncasecmp.texi: Renamed from
88470         doc/glibc-functions/wcsncasecmp.texi.
88471         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
88472         doc/glibc-functions/wcsncasecmp_l.texi.
88473         * doc/posix-functions/wcsnlen.texi: Renamed from
88474         doc/glibc-functions/wcsnlen.texi.
88475         * doc/posix-functions/wcsnrtombs.texi: Renamed from
88476         doc/glibc-functions/wcsnrtombs.texi.
88477         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
88478         doc/glibc-functions/wcsxfrm_l.texi.
88479         * doc/posix-functions/wctrans_l.texi: Renamed from
88480         doc/glibc-functions/wctrans_l.texi.
88481         * doc/posix-functions/wctype_l.texi: Renamed from
88482         doc/glibc-functions/wctype_l.texi.
88483         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88484         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
88485         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
88486         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
88487         these subsections.
88488         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
88489         Remove sections.
88491 2008-12-14  Bruno Haible  <bruno@clisp.org>
88493         Update doc for POSIX:2008.
88494         * doc/posix-functions/*.texi: Update URL of POSIX specification.
88496 2008-12-14  Bruno Haible  <bruno@clisp.org>
88498         Update doc for POSIX:2008.
88499         * doc/pastposix-functions/bcmp.texi: Renamed from
88500         doc/posix-functions/bcmp.texi.
88501         * doc/pastposix-functions/bcopy.texi: Renamed from
88502         doc/posix-functions/bcopy.texi.
88503         * doc/pastposix-functions/bsd_signal.texi: Renamed from
88504         doc/posix-functions/bsd_signal.texi.
88505         * doc/pastposix-functions/bzero.texi: Renamed from
88506         doc/posix-functions/bzero.texi.
88507         * doc/pastposix-functions/ecvt.texi: Renamed from
88508         doc/posix-functions/ecvt.texi.
88509         * doc/pastposix-functions/fcvt.texi: Renamed from
88510         doc/posix-functions/fcvt.texi.
88511         * doc/pastposix-functions/ftime.texi: Renamed from
88512         doc/posix-functions/ftime.texi.
88513         * doc/pastposix-functions/gcvt.texi: Renamed from
88514         doc/posix-functions/gcvt.texi.
88515         * doc/pastposix-functions/getcontext.texi: Renamed from
88516         doc/posix-functions/getcontext.texi.
88517         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
88518         doc/posix-functions/gethostbyaddr.texi.
88519         * doc/pastposix-functions/gethostbyname.texi: Renamed from
88520         doc/posix-functions/gethostbyname.texi.
88521         * doc/pastposix-functions/getwd.texi: Renamed from
88522         doc/posix-functions/getwd.texi.
88523         * doc/pastposix-functions/h_errno.texi: Renamed from
88524         doc/posix-functions/h_errno.texi.
88525         * doc/pastposix-functions/index.texi: Renamed from
88526         doc/posix-functions/index.texi.
88527         * doc/pastposix-functions/makecontext.texi: Renamed from
88528         doc/posix-functions/makecontext.texi.
88529         * doc/pastposix-functions/mktemp.texi: Renamed from
88530         doc/posix-functions/mktemp.texi.
88531         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
88532         doc/posix-functions/pthread_attr_getstackaddr.texi.
88533         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
88534         doc/posix-functions/pthread_attr_setstackaddr.texi.
88535         * doc/pastposix-functions/rindex.texi: Renamed from
88536         doc/posix-functions/rindex.texi.
88537         * doc/pastposix-functions/scalb.texi: Renamed from
88538         doc/posix-functions/scalb.texi.
88539         * doc/pastposix-functions/setcontext.texi: Renamed from
88540         doc/posix-functions/setcontext.texi.
88541         * doc/pastposix-functions/swapcontext.texi: Renamed from
88542         doc/posix-functions/swapcontext.texi.
88543         * doc/pastposix-functions/ualarm.texi: Renamed from
88544         doc/posix-functions/ualarm.texi.
88545         * doc/pastposix-functions/usleep.texi: Renamed from
88546         doc/posix-functions/usleep.texi.
88547         * doc/pastposix-functions/vfork.texi: Renamed from
88548         doc/posix-functions/vfork.texi.
88549         * doc/pastposix-functions/wcswcs.texi: Renamed from
88550         doc/posix-functions/wcswcs.texi.
88551         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
88552         (Function Substitutes): Update.
88554 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88556         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
88557         m4/strerror.m4.
88559 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88560             Bruno Haible  <bruno@clisp.org>
88562         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
88564 2008-12-13  Bruno Haible  <bruno@clisp.org>
88566         * modules/strtoull (Depends-on): Remove unistd.
88568 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88570         * modules/strtoull (Depends-on): Add stdlib.
88572 2008-12-11  Simon Josefsson  <simon@josefsson.org>
88574         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
88576 2008-12-10  Jim Meyering  <meyering@redhat.com>
88578         gl_ASSERT: don't say assertions are disabled when they're not
88579         * m4/assert.m4 (gl_ASSERT): Do not make configure report
88580         "checking whether to enable assertions... no", when they are in
88581         fact enabled.  This is solely a bug in the output of configure.
88582         In spite of saying "no", NDEBUG was not defined in that case.
88583         Also, as noted by Eric Blake, leave assertions enabled upon
88584         --enable-assert=INVALID.
88586 2008-12-10  Bruno Haible  <bruno@clisp.org>
88588         Change MODULES.html to refer to POSIX:2008 where possible.
88589         * MODULES.html.sh (POSIX2008_URL): New variable.
88590         (posix_headers): Remove sys/timeb, ucontext.
88591         (posix2001_headers): New variable.
88592         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88593         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88594         index, makecontext, mktemp, pthread_attr_getstackaddr,
88595         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88596         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
88597         (posix2001_functions): New variable.
88598         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
88599         otherwise.
88601 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88603         add missing include to parse-duration.c
88604         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
88605         * modules/parse-duration (Depends-on): Add xalloc.
88607         fix sed script reading maint.mk
88608         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
88609         (syntax-check-rules): Use it.
88611 2008-12-09  Bruno Haible  <bruno@clisp.org>
88613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
88614         MacOS X 10.4/PowerPC.
88615         Reported by Simon Josefsson.
88617 2008-12-08  Jim Meyering  <meyering@redhat.com>
88619         work around mingw's lack of some S_IF definitions
88620         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
88621         Reported by Simon Josefsson.
88623 2008-12-08  Bruno Haible  <bruno@clisp.org>
88625         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
88626         applied to variables. Needed on MacOS X 10.4/PowerPC.
88627         Reported by Simon Josefsson.
88629 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
88630         and Eric Blake  <ebb9@byu.net>
88632         assert: honor --enable-assert
88633         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
88634         order to honor --enable-assert, rather than treating it as a
88635         synonym for --disable-assert.
88637 2008-12-08  Jim Meyering  <meyering@redhat.com>
88639         * lib/posixtm.c: Remove now-useless declaration of mktime.
88641         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
88643 2008-12-07  Bruno Haible  <bruno@clisp.org>
88645         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
88646         test_once): Mark functions as static.
88647         * tests/test-tls.c (test_tls): Likewise.
88649 2008-12-07  Bruno Haible  <bruno@clisp.org>
88651         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
88652         iconv_register_autodetect.
88654 2008-12-07  Jim Meyering  <meyering@redhat.com>
88656         posixtm.c: avoid a warning
88657         * lib/posixtm.c (posixtime): Don't initialize tm0.
88658         It's no longer needed to placate gcc4's -Wuninitialized,
88659         and the attempt to placate would elicit a new warning.
88661         unicodeio.c: mark unused parameters
88662         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88663         (fallback_failure_callback): Likewise.
88665 2008-12-07  Bruno Haible  <bruno@clisp.org>
88667         * gnulib-tool (func_create_testdir): When building the tests
88668         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88669         Reported by Simon Josefsson.
88671 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88673         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88675 2008-12-06  Bruno Haible  <bruno@clisp.org>
88677         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88678         Suggested by Eric Blake.
88680 2008-12-06  Bruno Haible  <bruno@clisp.org>
88682         Fix a c-stack test failure on MacOS X.
88683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88684         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88685         handler for SIGBUS as well.
88686         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88687         install a signal handler for SIGBUS as well.
88688         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88690 2008-12-06  Bruno Haible  <bruno@clisp.org>
88692         Advocacy documentation.
88693         * doc/gnulib-intro.texi (Benefits): New section.
88694         * doc/gnulib.texi: Update.
88696 2008-12-06  Bruno Haible  <bruno@clisp.org>
88698         Document the 'manywarnings' module.
88699         * doc/manywarnings.texi: New file.
88700         * doc/gnulib.texi: Include it.
88702 2008-12-05  Eric Blake  <ebb9@byu.net>
88704         tests: silence some gcc warnings
88705         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88706         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88707         type mismatches.
88709 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88710             Bruno Haible  <bruno@clisp.org>
88712         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88714 2008-11-29  Jim Meyering  <meyering@redhat.com>
88716         unicodeio.c: mark unused parameters
88717         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88718         (fallback_failure_callback): Likewise.
88720         fts: fix a thinko
88721         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88722         (set_stat_type): Return S_IF*-valued "type" directly.
88723         Prompted by James Youngman's spotting a related bug.
88724         Confirmed by further testing through find.
88726         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88727         * lib/fts.c (D_TYPE): Define.
88728         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88729         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88730         (s_ifmt_shift_bits): New function.
88731         (set_stat_type): New function.
88732         (fts_build): When not calling fts_stat, call set_stat_type
88733         to propagate dirent.d_type info to fts_read caller.
88734         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88735         fts_statp->st_mode type information may be valid.
88737 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88739         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88740         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88741         <sds@gnu.org>.
88743 2008-11-20  Bruno Haible  <bruno@clisp.org>
88745         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88746         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88747         INCLUDE_NEXT.
88748         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88749         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88750         * modules/math (Makefile.am): Substitute
88751         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88752         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88754 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88755             Bruno Haible  <bruno@clisp.org>
88757         * lib/stdint.in.h: Define all type macros so that their expansion is
88758         a single typedef'ed token. Fixes a compilation failure in Boost which
88759         does "using ::int8_t;".
88761 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88763         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88764         gl_MANYWARN_ALL_GCC.
88765         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88766         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88767         * modules/manywarnings: New file.
88768         * MODULES.html.sh: Mention manywarnings module.
88770 2008-11-18  Bruno Haible  <bruno@clisp.org>
88772         * doc/gnulib-tool.texi (Unit tests): New section.
88774 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88776         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88777         paths like 'lib/po/foo.po'.
88779 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88781         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88782         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88784 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88786         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88787         parameter works.
88789 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88791         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88793 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88795         * modules/parse-duration-tests: New file.
88796         * tests/test-parse-duration.sh: New file.
88797         * tests/test-parse-duration.c: New file.
88799         New module 'parse-duration'.
88800         * lib/parse-duration.h: New file.
88801         * lib/parse-duration.c: New file.
88802         * modules/parse-duration: New file.
88804 2008-11-17  Bruno Haible  <bruno@clisp.org>
88806         * tests/test-select-out.sh: Comment out the first pipe test.
88807         Reported by Simon Josefsson.
88809 2008-11-17  Bruno Haible  <bruno@clisp.org>
88811         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88812         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88813         gl_HOSTENT.
88815 2008-11-17  Bruno Haible  <bruno@clisp.org>
88817         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88818         -lnetwork and -lnet. Needed for Haiku and BeOS.
88820 2008-11-16  Bruno Haible  <bruno@clisp.org>
88822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88824 2008-11-16  Bruno Haible  <bruno@clisp.org>
88826         Avoid test failure on Haiku.
88827         * tests/test-fsync.c: Include <errno.h>.
88828         (main): Don't require that fsync (0) fails.
88830 2008-11-15  Bruno Haible  <bruno@clisp.org>
88832         New module 'hostent'.
88833         * modules/hostent: New file.
88834         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88836 2008-11-15  Bruno Haible  <bruno@clisp.org>
88838         New module 'servent'.
88839         * modules/servent: New file.
88840         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88842 2008-11-15  Bruno Haible  <bruno@clisp.org>
88844         Avoid generating same test program with two different rules.
88845         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88846         test-frexp to test-frexp-nolibm.
88847         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88848         test-frexpl to test-frexpl-nolibm.
88850 2008-11-15  Bruno Haible  <bruno@clisp.org>
88852         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88853         $(FREXPL_LIBM).
88855 2008-11-15  Bruno Haible  <bruno@clisp.org>
88857         * lib/netdb.in.h: Activate the definitions also when the system's
88858         <netdb.h> has 'struct addrinfo'.
88859         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88860         EAI_OVERFLOW or AI_NUMERICSERV.
88861         * doc/posix-headers/netdb.texi: Document the problem.
88863 2008-11-15  Bruno Haible  <bruno@clisp.org>
88865         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88867         Make the 'sched' module work on platforms where <sched.h> exists but
88868         is incomplete (such as Haiku).
88869         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88870         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88871         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88872         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88873         HAVE_STRUCT_SCHED_PARAM.
88874         * modules/sched (Depends-on): Add include_next.
88875         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88876         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88877         * doc/posix-headers/sched.texi: Document the issue.
88879 2008-11-13  Jim Meyering  <meyering@redhat.com>
88881         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88882         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88883         test would fail due to the difference in the Report bugs to ...
88884         line.  The expected address is empty, "<>", while the actual
88885         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88887 2008-11-12  Bruno Haible  <bruno@clisp.org>
88889         lstat: don't compile lstat.c on systems lacking lstat
88890         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88891         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88892         Reported by Daniel P. Berrange via Jim Meyering.
88894 2008-11-12  Jim Meyering  <meyering@redhat.com>
88896         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88898 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88900         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88901         instead.
88903 2008-11-12  Bruno Haible  <bruno@clisp.org>
88905         * lib/unicodeio.c: Include unistr.h.
88906         (utf8_wctomb): Remove function.
88907         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88909 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88911         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88912         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88913         <bruno@clisp.org>.
88914         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88916 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88918         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88919         * doc/gnulib.texi: Add section for warnings.
88921 2008-11-11  Bruno Haible  <bruno@clisp.org>
88923         * lib/sockets.h: Add a comment.
88925 2008-11-11  Karl Berry  <karl@gnu.org>
88927         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88929 2008-11-11  Eric Blake  <ebb9@byu.net>
88931         fdl.texi: avoid git symlinks
88932         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88934 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88936         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88938 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88940         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88941         (gl_WARN_ADD): Substitute $2 if literal.
88943 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88945         * m4/warning.m4: Remove.
88947 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88949         * m4/warnings.m4: Almost complete rewrite. :-)
88951 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88953         * modules/warnings: New module.
88954         * m4/warnings.m4: New file.
88955         * MODULES.html.sh: Mention warnings module.
88956         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88957         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88959 2008-11-10  Eric Blake  <ebb9@byu.net>
88961         fdl.texi: make a symlink to the latest version
88962         * doc/standards.texi: Revert today's earlier change.
88963         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88964         * doc/fdl.texi: ...and replace this with a symlink to the newer
88965         fdl-1.3.texi.
88967 2008-11-10  Bruno Haible  <bruno@clisp.org>
88969         * tests/test-select-fd.c (main): Accept the result file name as fourth
88970         argument.
88971         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88972         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88974 2008-11-10  Bruno Haible  <bruno@clisp.org>
88976         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88977         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88978         as autoconf-substituted macros.
88979         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88981         gl_NETDB_H_DEFAULTS. Set these variables.
88982         * modules/netdb (Makefile.am): Substitute these variables.
88984 2008-11-10  Eric Blake  <ebb9@byu.net>
88986         standards.texi: include correct file for FDL 1.3
88987         * doc/standards.texi (GNU Free Documentation License): Change
88988         include file to pull in FDL 1.3, not 1.2.
88990         fdl.texi: revert accidental change to license
88991         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88993 2008-11-10  Bruno Haible  <bruno@clisp.org>
88995         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88996         cross-compiling guesses also when the native compile gives no result.
88998 2008-11-10  Bruno Haible  <bruno@clisp.org>
89000         * lib/spawni.c (__spawni): Force variable into the stack.
89002 2008-11-10  Bruno Haible  <bruno@clisp.org>
89004         Add support for Haiku.
89005         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
89006         glibc and BeOS, but also on Haiku.
89007         * lib/fpurge.c (fpurge): Likewise.
89008         * lib/freadable.c (freadable): Likewise.
89009         * lib/freadahead.c (freadahead): Likewise.
89010         * lib/freading.c (freading): Likewise.
89011         * lib/freadptr.c (freadptr): Likewise.
89012         * lib/freadseek.c (freadptrinc): Likewise.
89013         * lib/fseeko.c (rpl_fseeko): Likewise.
89014         * lib/fseterr.c (fseterr): Likewise.
89015         * lib/fwritable.c (fwritable): Likewise.
89016         * lib/fwriting.c (fwriting): Likewise.
89017         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
89019 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89021         * lib/config.charset: Treat Haiku like BeOS.
89023 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89025         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
89026         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
89028 2008-11-08  Bruno Haible  <bruno@clisp.org>
89030         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
89031         AC_CACHE_CHECK.
89033 2008-11-08  Bruno Haible  <bruno@clisp.org>
89035         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
89037 2008-11-08  Bruno Haible  <bruno@clisp.org>
89039         * tests/test-select-fd.c: New file.
89040         * tests/test-select-in.sh: New file.
89041         * tests/test-select-out.sh: New file.
89042         * tests/test-select-stdin.c: New file.
89043         * modules/select-tests (Files): Add the new files.
89044         (Depends-on): Add gettimeofday.
89045         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
89046         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
89047         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
89049 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
89050             Bruno Haible  <bruno@clisp.org>
89052         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
89054 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
89056         * build-aux/pmccabe2html: Added support for C++ source files.
89058 2008-11-05  Ben Pfaff  <blp@gnu.org>
89060         Fix lib/close.c build on Windows.
89061         * modules/close (Files): Add lib/w32sock.h.
89063 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
89065         Accept Bison's NEWS format.
89066         * build-aux/announce-gen (print_news_deltas): Tweak
89067         $re_prefix.
89069 2008-11-04  Bruno Haible  <bruno@clisp.org>
89071         * modules/random_r (Maintainer): Add glibc.
89073 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89075         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
89076         by karl@freefriends.org (Karl Berry).
89077         * doc/alloca.texi: Likewise.
89078         * doc/c-ctype.texi: Likewise.
89079         * doc/c-strcase.texi: Likewise.
89080         * doc/c-strcaseeq.texi: Likewise.
89081         * doc/c-strcasestr.texi: Likewise.
89082         * doc/c-strstr.texi: Likewise.
89083         * doc/c-strtod.texi: Likewise.
89084         * doc/c-strtold.texi: Likewise.
89085         * doc/ctime.texi: Likewise.
89086         * doc/error.texi: Likewise.
89087         * doc/fdl.texi: Likewise.
89088         * doc/gcd.texi: Likewise.
89089         * doc/getdate.texi: Likewise.
89090         * doc/gnulib-intro.texi: Likewise.
89091         * doc/gnulib-tool.texi: Likewise.
89092         * doc/gnulib.texi: Likewise.
89093         * doc/inet_ntoa.texi: Likewise.
89094         * doc/maintain.texi: Likewise.
89095         * doc/make-stds.texi: Likewise.
89096         * doc/quote.texi: Likewise.
89097         * doc/regexprops-generic.texi: Likewise.
89098         * doc/standards.texi: Likewise.
89099         * doc/verify.texi: Likewise.
89100         * doc/visibility.texi: Likewise.
89101         * doc/gnulib.texi (GNU Free Documentation License): Include
89102         fdl-1.3.texi instead of fdl.texi.
89104 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89106         * doc/fdl-1.3.texi: New file, from
89107         <http://www.gnu.org/licenses/fdl-1.3.texi>.
89108         * modules/fdl-1.3: Add.
89109         * MODULES.html.sh: Add fdl-1.3.
89111 2008-11-03  Bruno Haible  <bruno@clisp.org>
89113         Make determination of absolute name of header file work with AIX xlc.
89114         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
89115         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
89116         preprocessing.
89117         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89118         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
89120 2008-11-03  Simon Josefsson  <simon@josefsson.org>
89122         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
89123         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
89124         <ludo@gnu.org>.
89126 2008-11-02  Bruno Haible  <bruno@clisp.org>
89128         Mark 'strpbrk' obsolete.
89129         * modules/strpbrk (Status, Notice): New sections.
89130         * modules/strtok_r (Depends-on): Add strpbrk.
89132 2008-11-02  Bruno Haible  <bruno@clisp.org>
89134         Mark 'strdup' obsolete.
89135         * modules/strdup (Status, Notice): New sections.
89136         * modules/findprog (Depends-on): Add strdup.
89137         * modules/getaddrinfo (Depends-on): Likewise.
89138         * modules/localename (Depends-on): Likewise.
89139         * modules/relocatable-lib (Depends-on): Likewise.
89140         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
89141         * modules/relocatable-prog (Depends-on): Likewise.
89142         * modules/trim (Depends-on): Likewise.
89143         * modules/unictype/gen-ctype (Depends-on): Likewise.
89144         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89146 2008-11-02  Bruno Haible  <bruno@clisp.org>
89148         Mark 'strcspn' obsolete.
89149         * modules/strcspn (Status, Notice): New sections.
89151 2008-11-02  Bruno Haible  <bruno@clisp.org>
89153         Mark 'rmdir' obsolete.
89154         * modules/rmdir (Status, Notice): New sections.
89155         * modules/clean-temp (Depends-on): Add rmdir.
89156         * modules/openat (Depends-on): Likewise.
89158 2008-11-02  Bruno Haible  <bruno@clisp.org>
89160         Mark 'raise' obsolete.
89161         * modules/raise (Status, Notice): New sections.
89162         (Include): Specify <signal.h>.
89163         * modules/stdio (Depends-on): Add raise.
89164         * modules/write (Depends-on): Likewise.
89166 2008-11-02  Bruno Haible  <bruno@clisp.org>
89168         Mark 'memset' obsolete.
89169         * modules/memset (Status, Notice): New sections.
89171 2008-11-02  Bruno Haible  <bruno@clisp.org>
89173         Mark 'memmove' obsolete.
89174         * modules/memmove (Status, Notice): New sections.
89175         * modules/argp (Depends-on): Add memmove.
89176         * modules/argz (Depends-on): Likewise.
89177         * modules/canonicalize (Depends-on): Likewise.
89178         * modules/canonicalize-lgpl (Depends-on): Likewise.
89179         * modules/fts (Depends-on): Likewise.
89180         * modules/getcwd (Depends-on): Likewise.
89181         * modules/human (Depends-on): Likewise.
89182         * modules/regex (Depends-on): Likewise.
89183         * modules/striconveh (Depends-on): Likewise.
89184         * modules/trim (Depends-on): Likewise.
89185         * modules/unistr/u8-move (Depends-on): Likewise.
89186         * modules/unistr/u16-move (Depends-on): Likewise.
89187         * modules/unistr/u32-move (Depends-on): Likewise.
89189 2008-11-02  Bruno Haible  <bruno@clisp.org>
89191         Mark 'memcpy' obsolete.
89192         * modules/memcpy (Status, Notice): New sections.
89194 2008-11-02  Bruno Haible  <bruno@clisp.org>
89196         Mark 'memcmp' obsolete.
89197         * modules/memcmp (Status, Notice): New sections.
89198         * modules/argmatch (Depends-on): Add memchr.
89199         * modules/backupfile (Depends-on): Likewise.
89200         * modules/c-strcasestr (Depends-on): Likewise.
89201         * modules/crypto/des (Depends-on): Likewise.
89202         * modules/csharpcomp (Depends-on): Likewise.
89203         * modules/fnmatch (Depends-on): Likewise.
89204         * modules/git-merge-changelog (Depends-on): Likewise.
89205         * modules/isnand (Depends-on): Likewise.
89206         * modules/isnand-nolibm (Depends-on): Likewise.
89207         * modules/isnanf (Depends-on): Likewise.
89208         * modules/isnanf-nolibm (Depends-on): Likewise.
89209         * modules/isnanl (Depends-on): Likewise.
89210         * modules/isnanl-nolibm (Depends-on): Likewise.
89211         * modules/mbchar (Depends-on): Likewise.
89212         * modules/memcoll (Depends-on): Likewise.
89213         * modules/quotearg (Depends-on): Likewise.
89214         * modules/regex (Depends-on): Likewise.
89215         * modules/relocatable-prog (Depends-on): Likewise.
89216         * modules/same (Depends-on): Likewise.
89217         * modules/signbit (Depends-on): Likewise.
89218         * modules/strcasestr-simple (Depends-on): Likewise.
89219         * modules/unictype/gen-ctype (Depends-on): Likewise.
89220         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89221         * modules/uniname/uniname (Depends-on): Likewise.
89222         * modules/unistr/u8-cmp (Depends-on): Likewise.
89224 2008-11-02  Bruno Haible  <bruno@clisp.org>
89226         Mark 'memchr' obsolete.
89227         * modules/memchr (Status, Notice): New sections.
89228         * modules/argp (Depends-on): Add memchr.
89229         * modules/base64 (Depends-on): Likewise.
89230         * modules/c-strcasestr (Depends-on): Likewise.
89231         * modules/chdir-long (Depends-on): Likewise.
89232         * modules/fnmatch (Depends-on): Likewise.
89233         * modules/getsubopt (Depends-on): Likewise.
89234         * modules/git-merge-changelog (Depends-on): Likewise.
89235         * modules/glob (Depends-on): Likewise.
89236         * modules/strcasestr-simple (Depends-on): Likewise.
89237         * modules/strnlen (Depends-on): Likewise.
89239 2008-11-02  Bruno Haible  <bruno@clisp.org>
89241         Mark 'atexit' obsolete.
89242         * modules/atexit (Status, Notice): New sections.
89243         * modules/chdir-long (Depends-on): Add atexit.
89244         * modules/wait-process (Depends-on): Likewise.
89246 2008-11-02  Bruno Haible  <bruno@clisp.org>
89248         * gnulib-tool: New option --with-obsolete.
89249         (func_usage): Document it.
89250         (func_modules_transitive_closure): Drop obsolete dependencies if
89251         incobsolete is not true.
89252         (func_import): Read and save the incobsolete variable to the cache.
89254 2008-11-02  Bruno Haible  <bruno@clisp.org>
89256         * modules/TEMPLATE-EXTENDED: New field 'Status'.
89257         * gnulib-tool: New option --extract-status.
89258         (func_usage): Document it.
89259         (sed_extract_prog): Recognize it.
89260         (func_get_status): New function.
89262 2008-10-30  Simon Josefsson  <simon@josefsson.org>
89264         * modules/sockets (License): Change from LGPL to LGPLv2+.
89266 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89268         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
89270 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89272         * MODULES.html.sh (Support for systems lacking POSIX:2001):
89273         Mention times and sys_times.
89274         * modules/sys_times, modules/sys_times-tests: New modules.
89275         * modules/times, modules/times-tests: Likewise
89276         * m4/sys_times_h.m4: New file.
89277         * lib/sys_times.in.h: Likewise
89278         * lib/times.c: Likewise.
89279         * tests/test-sys_times.c: Likewise.
89280         * tests/test-times.c: Likewise.
89281         * doc/posix-headers/sys_times.texi: Update.
89282         * doc/posix-functions/times.texi: Update.
89284 2008-10-28  Jim Meyering  <meyering@redhat.com>
89286         * modules/tempname (Depends-on): Add lstat.
89288         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
89290 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89292         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
89293         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
89294         using idiom used elsewhere in gnulib.
89296 2008-10-27  Jim Meyering  <meyering@redhat.com>
89298         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
89300 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89302         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
89303         TESTS_ENVIRONMENT, for shell scripts that needs to call built
89304         programs.
89305         * tests/test-argp-2.sh: Use $EXEEXT when needed.
89307 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89309         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
89311 2008-10-27  Bruno Haible  <bruno@clisp.org>
89313         * tests/test-lstat.c: Include <stdio.h>.
89315 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89317         * modules/lstat-tests: New module.
89318         * tests/test-lstat.c: New file.
89320 2008-10-26  Jim Meyering  <meyering@redhat.com>
89322         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
89324 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89325             Bruno Haible  <bruno@clisp.org>
89327         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
89328         * modules/configmake (Include): Add a note that the include must come
89329         after all system headers.
89330         * lib/javaversion.c: Include configmake.h after all other includes.
89332 2008-10-26  Bruno Haible  <bruno@clisp.org>
89334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
89335         HAVE_STRUCT_RANDOM_DATA to 1.
89336         (gl_STDLIB_H): Simplify.
89338 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89340         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
89341         substitute HAVE_STRUCT_RANDOM_DATA.
89342         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89343         random_data.
89344         * modules/stdlib (Makefile.am): Substitute
89345         HAVE_STRUCT_RANDOM_DATA.
89347 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89349         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89350         * doc/gnulib-intro.texi (Copyright): Likewise.
89352 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89354         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89355         findings.
89357 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89358             Bruno Haible  <bruno@clisp.org>
89360         * lib/unistd.in.h: Include <winsock2.h>.
89361         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89362         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89363         Provide dummy declarations.
89364         (gethostname): Override.
89365         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89366         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89367         gl_PREREQ_SYS_H_WINSOCK2.
89368         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89369         * doc/posix-functions/gethostname.texi: More details.
89371 2008-10-25  Bruno Haible  <bruno@clisp.org>
89373         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89374         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89375         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89377         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89378         here ...
89379         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89380         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89381         gl_UNISTD_H_DEFAULTS.
89383 2008-10-25  Eric Blake  <ebb9@byu.net>
89385         signbit: avoid spurious compiler failure
89386         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89387         declarations inside function.
89389 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89390             Bruno Haible  <bruno@clisp.org>
89392         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89393         * modules/random_r (Depends-on): Add stdint.
89395 2008-10-24  Bruno Haible  <bruno@clisp.org>
89397         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89398         Eggert.
89399         * modules/strerror (License): Likewise.
89401 2008-10-24  Jim Meyering  <meyering@redhat.com>
89403         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89404         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89406 2008-10-24  Eric Blake  <ebb9@byu.net>
89408         getgroups: fix compilation when getgroups is available
89409         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89410         but with <config.h> override of getgroups disabled.
89412 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89414         * doc/gnulib.texi (Header files): Add note about C++ problems.
89415         Explained by Bruno Haible <bruno@clisp.org>.
89417 2008-10-23  Bruno Haible  <bruno@clisp.org>
89419         Define a dummy SA_NODEFER macro on Interix.
89420         * lib/signal.in.h (SA_NODEFER): Define fallback.
89421         Reported by Aleksey Cheusov <cheusov@tut.by> via
89422         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89424 2008-10-23  Bruno Haible  <bruno@clisp.org>
89426         * modules/freadahead (License): Change to LGPLv2+.
89427         Suggested by Simon Josefsson.
89429 2008-10-23  Jim Meyering  <meyering@redhat.com>
89431         random_r: new module
89432         * modules/random_r: New file.
89433         * m4/random_r.m4: New file.
89434         * lib/random_r.c: New file, from glibc.
89435         * modules/random_r-tests: New file.
89436         * tests/test-random_r.c: New file.
89437         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89438          Declare.
89439         (RAND_MAX): Define.
89440         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89441         * modules/stdlib: Substitute them, too.
89442         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89443         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89444         * doc/glibc-functions/random_r.texi: Likewise.
89445         * doc/glibc-functions/setstate_r.texi: Likewise.
89446         * doc/glibc-functions/srandom_r.texi: Likewise.
89447         * config/srclist.txt: Mention it.
89449 2008-10-23  David Lutterkort  <lutter@redhat.com>
89451         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89452         link requirement
89454 2008-10-23  Jim Meyering  <meyering@redhat.com>
89456         selinux-h: mark parameters of stub functions as intentionally unused
89457         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
89458         * lib/se-context.in.h: Likewise.
89460 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89462         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
89464 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89466         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
89468 2008-10-22  Eric Blake  <ebb9@byu.net>
89470         glthread/thread: avoid compiler warning
89471         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
89472         Add unreachable abort to silence compiler.
89474 2008-10-22  Eric Blake  <ebb9@byu.net>
89476         netdb: also supply struct addrinfo for cygwin 1.5.x
89477         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
89478         older cygwin.
89479         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
89480         cygwin.
89481         * doc/posix-headers/netdb.texi (netdb.h): Document this.
89483 2008-10-22  Bruno Haible  <bruno@clisp.org>
89485         * users.txt: Update entry about pspp.
89487 2008-10-21  Bruno Haible  <bruno@clisp.org>
89489         Simplification.
89490         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
89491         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
89493         Simplification.
89494         * lib/ioctl.c (ioctl): Don't undefine.
89495         * lib/socket.c (socket): Don't undefine.
89497         Remove unused module indicator macros.
89498         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
89499         GNULIB_$1 as a C macro.
89501         * doc/posix-functions/close.texi: Undo last change.
89502         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
89503         Windows platforms.
89505 2008-10-21  Bruno Haible  <bruno@clisp.org>
89507         Add gethostname() declaration to <unistd.h>.
89508         * lib/unistd.in.h (gethostname): New declaration.
89509         * lib/gethostname.c: Include <unistd.h>.
89510         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
89511         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
89512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
89513         and HAVE_GETHOSTNAME.
89514         * modules/gethostname (Depends-on): Add unistd.
89515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89516         (Include): Specify <unistd.h>.
89517         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
89518         HAVE_GETHOSTNAME.
89519         * tests/test-gethostname.c: Include <unistd.h> first.
89521 2008-10-21  Bruno Haible  <bruno@clisp.org>
89523         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
89524         * modules/select-tests (Depends-on): Likewise.
89525         Reported by Simon Josefsson.
89527 2008-10-21  Simon Josefsson  <simon@josefsson.org>
89529         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
89530         * lib/accept.c: New file, based on winsock.c.
89531         * lib/bind.c: New file, based on winsock.c.
89532         * lib/connect.c: New file, based on winsock.c.
89533         * lib/getpeername.c: New file, based on winsock.c.
89534         * lib/getsockname.c: New file, based on winsock.c.
89535         * lib/getsockopt.c: New file, based on winsock.c.
89536         * lib/ioctl.c: New file, based on winsock.c.
89537         * lib/listen.c: New file, based on winsock.c.
89538         * lib/recv.c: New file, based on winsock.c.
89539         * lib/recvfrom.c: New file, based on winsock.c.
89540         * lib/send.c: New file, based on winsock.c.
89541         * lib/sendto.c: New file, based on winsock.c.
89542         * lib/setsockopt.c: New file, based on winsock.c.
89543         * lib/shutdown.c: New file, based on winsock.c.
89544         * lib/socket.c: New file, based on winsock.c.
89545         * lib/w32sock.h: New file, based on winsock.c.
89546         * lib/winsock.c: Remove file.
89547         * modules/accept: Likewise.
89548         * modules/bind: Likewise.
89549         * modules/connect: Likewise.
89550         * modules/getpeername: Likewise.
89551         * modules/getsockname: Likewise.
89552         * modules/getsockopt: Likewise.
89553         * modules/ioctl: Likewise.
89554         * modules/listen: Likewise.
89555         * modules/recv: Likewise.
89556         * modules/recvfrom: Likewise.
89557         * modules/send: Likewise.
89558         * modules/sendto: Likewise.
89559         * modules/setsockopt: Likewise.
89560         * modules/shutdown: Likewise.
89561         * modules/socket: Use socket.c instead of winsock.c.
89562         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
89563         * doc/posix-functions/accept.texi: Doc fix.
89564         * doc/posix-functions/bind.texi: Doc fix.
89565         * doc/posix-functions/close.texi: Doc fix.
89566         * doc/posix-functions/connect.texi: Doc fix.
89567         * doc/posix-functions/getpeername.texi: Doc fix.
89568         * doc/posix-functions/getsockname.texi: Doc fix.
89569         * doc/posix-functions/getsockopt.texi: Doc fix.
89570         * doc/posix-functions/ioctl.texi: Doc fix.
89571         * doc/posix-functions/listen.texi: Doc fix.
89572         * doc/posix-functions/recv.texi: Doc fix.
89573         * doc/posix-functions/recvfrom.texi: Doc fix.
89574         * doc/posix-functions/send.texi: Doc fix.
89575         * doc/posix-functions/sendto.texi: Doc fix.
89576         * doc/posix-functions/setsockopt.texi: Doc fix.
89577         * doc/posix-functions/shutdown.texi: Doc fix.
89578         * doc/posix-functions/socket.texi: Doc fix.
89580 2008-10-20  Bruno Haible  <bruno@clisp.org>
89582         Take into account the role of SIGABRT_COMPAT on Windows 2008.
89583         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
89584         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
89585         as an alias for SIGABRT.
89586         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
89587         (sigaction): Map it to SIGABRT.
89588         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89590 2008-10-20  Bruno Haible  <bruno@clisp.org>
89592         * lib/fts.c: Don't include lstat.h.
89593         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89595         Move the lstat() declaration to <sys/stat.h>.
89596         * lib/lstat.h: Remove file.
89597         * lib/sys_stat.in.h: Add special invocation convention.
89598         (lstat): New declaration.
89599         * lib/lstat.c (orig_lstat): New function.
89600         (rpl_lstat): Use orig_lstat instead of lstat.
89601         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
89602         AC_C_INLINE. Set REPLACE_LSTAT.
89603         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
89604         and REPLACE_LSTAT.
89605         * modules/lstat (Files): Remove lib/lstat.h.
89606         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89607         (Include): Specify <sys/stat.h> instead of lstat.h.
89608         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
89609         REPLACE_LSTAT.
89610         * NEWS: Mention the change.
89612 2008-10-20  Bruno Haible  <bruno@clisp.org>
89614         * modules/posix_spawn-tests: New file.
89615         * tests/test-posix_spawn3.c: New file.
89617 2008-10-20  Bruno Haible  <bruno@clisp.org>
89619         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
89620         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89621         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
89622         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89623         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
89625 2008-10-20  Bruno Haible  <bruno@clisp.org>
89627         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
89628         of posix_spawn on AIX 5.3.
89630 2008-10-20  Bruno Haible  <bruno@clisp.org>
89632         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
89634 2008-10-20  Bruno Haible  <bruno@clisp.org>
89636         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
89637         of AC_LANG_PROGRAM.
89639 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89641         * lib/netdb.in.h: Don't define GNU specific constants until they
89642         are supported or needed.  Reported by Bruno Haible
89643         <bruno@clisp.org>.
89645 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89647         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
89649 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89651         * lib/getaddrinfo.h: Remove file.
89652         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
89653         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
89654         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
89655         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
89656         * modules/netdb: Substitute GNULIB_GETADDRINFO.
89657         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
89658         * tests/test-getaddrinfo.c: Likewise.
89659         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
89660         * NEWS: Mention change.
89662 2008-10-19  Bruno Haible  <bruno@clisp.org>
89664         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89666 2008-10-19  Bruno Haible  <bruno@clisp.org>
89668         * lib/wait-process.c: Include simply <sys/wait.h>.
89669         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89670         WIFSTOPPED): Remove fallback definitions.
89671         * modules/wait-process (Depends-on): Add sys_wait.
89673         New module 'sys_wait'.
89674         * modules/sys_wait: New file.
89675         * lib/sys_wait.in.h: New file, partially copied from
89676         lib/wait-process.c.
89677         * m4/sys_wait_h.m4: New file.
89678         * doc/posix-headers/sys_wait.texi: Mention the new module.
89680 2008-10-19  Bruno Haible  <bruno@clisp.org>
89682         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89684 2008-10-19  Bruno Haible  <bruno@clisp.org>
89686         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89687         * lib/wait-process.c (WAIT_T): Remove type.
89688         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89689         (wait_subprocess): Update.
89691 2008-10-19  Bruno Haible  <bruno@clisp.org>
89693         New module 'atoll'.
89694         * modules/atoll: New file.
89695         * lib/stdlib.in.h (atoll): New declaration.
89696         * lib/atoll.c: New file, from glibc with modifications.
89697         * m4/atoll.m4: New file.
89698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89699         HAVE_ATOLL.
89700         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89701         * doc/posix-functions/atoll.texi: Mention the new module.
89703 2008-10-19  Bruno Haible  <bruno@clisp.org>
89705         Add strtoull() declaration to <stdlib.h>.
89706         * lib/stdlib.in.h (strtoull): New declaration.
89707         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89708         Set HAVE_STRTOULL.
89709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89710         HAVE_STRTOULL.
89711         * modules/strtoull (Depends-on): Add stdlib.
89712         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89713         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89714         HAVE_STRTOULL.
89716 2008-10-19  Bruno Haible  <bruno@clisp.org>
89718         Add strtoll() declaration to <stdlib.h>.
89719         * lib/stdlib.in.h (strtoll): New declaration.
89720         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89721         Set HAVE_STRTOLL.
89722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89723         HAVE_STRTOLL.
89724         * modules/strtoll (Depends-on): Add stdlib.
89725         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89726         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89728 2008-10-19  Bruno Haible  <bruno@clisp.org>
89730         * modules/bcopy (Depends-on): Add strings.
89731         (Include): Specify <strings.h>.
89733 2008-10-19  Bruno Haible  <bruno@clisp.org>
89735         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89737 2008-10-19  Bruno Haible  <bruno@clisp.org>
89739         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89740         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89741         mingw.
89743 2008-10-19  Bruno Haible  <bruno@clisp.org>
89745         * lib/atanl.c: Don't include isnanl.h.
89746         * lib/cosl.c: Likewise.
89747         * lib/ldexpl.c: Likewise.
89748         * lib/logl.c: Likewise.
89749         * lib/sinl.c: Likewise.
89750         * lib/sqrtl.c: Likewise.
89751         * lib/tanl.c: Likewise.
89753         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89754         * lib/isnanf.h: Remove file.
89755         * lib/isnand.h: Remove file.
89756         * lib/isnanl.h: Remove file.
89757         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89758         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89759         macros.
89760         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89761         HAVE_ISNANF, don't define it as a C macro.
89762         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89763         HAVE_ISNAND, don't define it as a C macro.
89764         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89765         HAVE_ISNANL, don't define it as a C macro.
89766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89767         HAVE_ISNAN[FDL].
89768         * modules/isnanf (Files): Remove lib/isnanf.h.
89769         (Depends-on): Add math.
89770         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89771         (Include): Specify <math.h> instead of isnanf.h.
89772         * modules/isnand (Files): Remove lib/isnand.h.
89773         (Depends-on): Add math.
89774         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89775         (Include): Specify <math.h> instead of isnand.h.
89776         * modules/isnanl (Files): Remove lib/isnanl.h.
89777         (Depends-on): Add math.
89778         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89779         (Include): Specify <math.h> instead of isnanl.h.
89780         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89781         HAVE_ISNAN[FDL].
89782         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89783         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89784         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89785         * NEWS: Mention the change.
89787 2008-10-18  Bruno Haible  <bruno@clisp.org>
89789         Add getusershell(), setusershell(), endusershell() declarations to
89790         <unistd.h>.
89791         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89792         declarations.
89793         * lib/getusershell.c: Include unistd.h.
89794         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89795         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89796         HAVE_GETUSERSHELL.
89797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89798         and HAVE_GETUSERSHELL.
89799         * modules/getusershell (Depends-on): Add unistd, extensions.
89800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89801         (Include): Specify <unistd.h>.
89802         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89803         HAVE_GETUSERSHELL.
89805 2008-10-18  Bruno Haible  <bruno@clisp.org>
89807         Add a getloadavg() declaration to <stdlib.h>.
89808         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89809         getloadavg declaration.
89810         (getloadavg): New declaration.
89811         * lib/getloadavg.c: Include <stdlib.h> first.
89812         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89813         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89814         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89816         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89817         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89818         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89819         (Include): Specify <stdlib.h>.
89820         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89821         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89823 2008-10-18  Bruno Haible  <bruno@clisp.org>
89825         * lib/dirchownmod.c: Don't include lchmod.h.
89827         Move the lchmod() declaration to <sys/stat.h>.
89828         * lib/lchmod.h: Remove file.
89829         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89830         (lchmod): New declaration, moved here from lib/lchown.h.
89831         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89832         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89833         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89834         and HAVE_LCHMOD.
89835         * modules/lchmod (Files): Remove lib/lchmod.h.
89836         (Depends-on): Add sys_stat, extensions.
89837         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89838         (Include): Specify <sys/stat.h> instead of lchmod.h.
89839         * modules/sys_stat (Depends-on): Add link-warning.
89840         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89841         definition of GL_LINK_WARNING.
89842         * NEWS: Mention the change.
89844 2008-10-18  Bruno Haible  <bruno@clisp.org>
89846         * lib/fchdir.c: Don't include dirfd.h.
89847         * lib/fts.c: Likewise.
89848         * lib/getcwd.c: Likewise.
89849         * lib/glob.c: Likewise.
89851         Move the dirfd() declaration to <dirent.h>.
89852         * lib/dirfd.h: Remove file.
89853         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89854         (dirfd): New declaration.
89855         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89856         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89857         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89858         HAVE_DECL_DIRFD.
89859         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89860         HAVE_DECL_DIRFD.
89861         * modules/dirfd (Files): Remove lib/dirfd.h.
89862         (Depends-on): Add dirent, extensions.
89863         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89864         (Include): Specify <dirent.h> instead of dirfd.h.
89865         * modules/dirent (Depends-on): Add link-warning.
89866         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89867         definition of GL_LINK_WARNING.
89868         * NEWS: Mention the change.
89870 2008-10-18  Bruno Haible  <bruno@clisp.org>
89872         Move the euidaccess() declaration to <unistd.h>.
89873         * lib/euidaccess.h: Remove file.
89874         * lib/unistd.in.h (euidaccess): New declaration.
89875         * lib/euidaccess.c: Don't include euidaccess.h.
89876         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89877         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89879         and HAVE_EUIDACCESS.
89880         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89881         (Depends-on): Add unistd.
89882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89883         (Include): Specify <unistd.h> instead of euidaccess.h.
89884         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89885         HAVE_EUIDACCESS.
89886         * NEWS: Mention the change.
89888 2008-10-18  Bruno Haible  <bruno@clisp.org>
89890         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89892         Move the getdomainname() declaration to <unistd.h>.
89893         * lib/getdomainname.h: Remove file.
89894         * lib/unistd.in.h (getdomainname): New declaration.
89895         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89896         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89897         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89898         HAVE_GETDOMAINNAME.
89899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89900         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89901         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89902         (Depends-on): Add unistd, extensions.
89903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89904         (Includes): Specify <unistd.h> instead of getdomainname.h.
89905         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89906         HAVE_GETDOMAINNAME.
89907         * NEWS: Mention the change.
89909 2008-10-18  Bruno Haible  <bruno@clisp.org>
89911         * modules/dirent: New file.
89912         * m4/dirent_h.m4: New file.
89913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89914         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89915         * modules/fchdir (Files): Remove lib/dirent.in.h.
89916         (Depends-on): Add dirent.
89917         (Makefile.am): Move rules to modules/dirent.
89918         * doc/posix-headers/dirent.texi: Mention the new module.
89920 2008-10-18  Bruno Haible  <bruno@clisp.org>
89922         Avoid -Wunused-parameter warnings in public gnulib header files.
89923         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89924         macro.
89925         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89927 2008-10-18  Bruno Haible  <bruno@clisp.org>
89929         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89930         * doc/glibc-functions/error.texi: Mention the module 'error'.
89931         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89932         * doc/glibc-functions/getdomainname.texi: Mention the module
89933         'getdomainname'.
89934         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89935         * doc/glibc-functions/getpagesize.texi: Mention the module
89936         'getpagesize'.
89937         * doc/glibc-functions/getusershell.texi: Mention the module
89938         'getusershell'.
89939         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89940         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89941         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89942         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89943         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89944         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89945         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89946         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89947         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89948         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89949         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89950         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89951         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89952         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89954 2008-10-17  Bruno Haible  <bruno@clisp.org>
89956         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89957         HP-UX and IRIX, use -0.0L.
89958         * tests/test-ceill.c (minus_zero): Likewise.
89959         * tests/test-floorl.c (minus_zero): Likewise.
89960         * tests/test-frexpl.c (minus_zero): Likewise.
89961         * tests/test-isnan.c (minus_zerol): Likewise.
89962         * tests/test-isnanl.h (minus_zero): Likewise.
89963         * tests/test-ldexpl.c (minus_zero): Likewise.
89964         * tests/test-roundl.c (minus_zero): Likewise.
89965         * tests/test-signbit.c (minus_zerol): Likewise.
89966         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89967         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89968         * tests/test-truncl.c (minus_zero): Likewise.
89969         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89970         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89971         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89972         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89974 2008-10-17  Bruno Haible  <bruno@clisp.org>
89976         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89977         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89978         that it gets activated only for gcc >= 3.0.
89979         * lib/dirent.in.h: Likewise.
89980         * lib/errno.in.h: Likewise.
89981         * lib/fcntl.in.h: Likewise.
89982         * lib/float.in.h: Likewise.
89983         * lib/iconv.in.h: Likewise.
89984         * lib/inttypes.in.h: Likewise.
89985         * lib/locale.in.h: Likewise.
89986         * lib/math.in.h: Likewise.
89987         * lib/netdb.in.h: Likewise.
89988         * lib/netinet_in.in.h: Likewise.
89989         * lib/search.in.h: Likewise.
89990         * lib/signal.in.h: Likewise.
89991         * lib/spawn.in.h: Likewise.
89992         * lib/stdarg.in.h: Likewise.
89993         * lib/stdint.in.h: Likewise.
89994         * lib/stdio.in.h: Likewise.
89995         * lib/stdlib.in.h: Likewise.
89996         * lib/string.in.h: Likewise.
89997         * lib/strings.in.h: Likewise.
89998         * lib/sys_file.in.h: Likewise.
89999         * lib/sys_ioctl.in.h: Likewise.
90000         * lib/sys_select.in.h: Likewise.
90001         * lib/sys_socket.in.h: Likewise.
90002         * lib/sys_stat.in.h: Likewise.
90003         * lib/sys_time.in.h: Likewise.
90004         * lib/sysexits.in.h: Likewise.
90005         * lib/time.in.h: Likewise.
90006         * lib/unistd.in.h: Likewise.
90007         * lib/wchar.in.h: Likewise.
90008         * lib/wctype.in.h: Likewise.
90009         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90011 2008-10-17  Jim Meyering  <meyering@redhat.com>
90013         ignore-value: don't depend on inline module
90014         * modules/ignore-value (Depends-on): Remove 'inline'.
90015         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
90016         Suggestion from Bruno Haible.
90018 2008-10-17  Bruno Haible  <bruno@clisp.org>
90020         New implementation of condition variables for Win32.
90021         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
90022         (gl_linked_waitqueue_t): New type.
90023         (gl_cond_t): Use it.
90024         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
90025         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
90026         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
90027         (glthread_cond_init_func, glthread_cond_wait_func,
90028         glthread_cond_timedwait_func, glthread_cond_signal_func,
90029         glthread_cond_broadcast_func, glthread_cond_destroy_func):
90030         Reimplemented on the basis of gl_linked_waitqueue_t.
90031         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
90032         gl_waitqueue_t.
90033         (gl_rwlock_t): Update.
90034         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
90036 2008-10-17  Simon Josefsson  <simon@josefsson.org>
90038         * modules/recvfrom (Depends-on): Add dependency on getpeername.
90039         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90041 2008-10-17  Jim Meyering  <meyering@redhat.com>
90043         ignore-value: new module
90044         * modules/ignore-value: New file.
90045         * lib/ignore-value.h: New file.
90046         * MODULES.html.sh (Compiler warning management): New section,
90047         just for this module.  More to come.
90049 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90051         open-safer.c: avoid 'signed and unsigned in conditional...' warning
90052         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
90053         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
90055 2008-10-16  Jim Meyering  <meyering@redhat.com>
90057         openat-die.c: avoid 'no previous prototype' warning
90058         * lib/openat-die.c: Include "openat.h".
90059         Reported by Reuben Thomas <rrt@sc3d.org>.
90061 2008-10-16  Simon Josefsson  <simon@josefsson.org>
90063         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
90064         * lib/netdb.in.h: Fix typo.
90065         Reported by Bruno Haible  <bruno@clisp.org>
90067         * lib/netdb.in.h: Include sys/socket.h for platforms without
90068         netdb.h, to get structures like hostent on MinGW.
90069         * modules/netdb (Depends-on): Add sys_socket.
90071 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90073         * modules/netdb, modules/netdb-tests: New file.
90074         * m4/netdb_h.m4: New file.
90075         * lib/netdb.in.h: Add, currently just an empty file pending
90076         definitions.
90077         * tests/test-netdb.c: New file.
90078         * doc/posix-headers/netdb.texi: Mention that we replace it if
90079         needed.
90080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90081         netdb.
90083 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90085         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
90086         with code.
90088 2008-10-13  Bruno Haible  <bruno@clisp.org>
90090         * lib/glthread/cond.c (glthread_cond_wait_func,
90091         glthread_cond_timedwait_func): Add a comment.
90093 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90095         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
90096         * tests/test-select.c: Likewise,
90098 2008-10-13  Bruno Haible  <bruno@clisp.org>
90100         * lib/glthread/cond.c (glthread_cond_wait_func,
90101         glthread_cond_timedwait_func): Fix variable name.
90102         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90104 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
90106         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
90107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
90108         struct sockaddr.sa_len.
90109         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
90111 2008-10-13  Simon Josefsson  <simon@josefsson.org>
90113         * build-aux/pmccabe2html: Add css and css_url parameters.
90115 2008-10-12  Bruno Haible  <bruno@clisp.org>
90117         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
90118         calling aclx_get.
90119         Reported by Rainer Tammer <tammer@tammer.net>.
90121 2008-10-12  Bruno Haible  <bruno@clisp.org>
90123         Use msvcrt aware primitives for creation/termination of Win32 threads.
90124         * lib/glthread/thread.c: Include <process.h>.
90125         (glthread_create_func): Use _beginthreadex instead of CreateThread.
90126         (wrapper_func): Update signature.
90127         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
90129 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90130             Bruno Haible  <bruno@clisp.org>
90132         Provide a Win32 implementation of the 'cond' module.
90133         * lib/glthread/cond.h [USE_WIN32]: New implementation.
90134         * lib/glthread/cond.c (glthread_cond_init_func,
90135         glthread_cond_wait_func, glthread_cond_timedwait_func,
90136         glthread_cond_signal_func, glthread_cond_broadcast_func,
90137         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90138         * modules/cond (Dependencies): Add gettimeofday.
90140 2008-10-11  Bruno Haible  <bruno@clisp.org>
90142         Make sleep work on older versions of mingw.
90143         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
90144         only whether it exists.
90145         * doc/posix-functions/sleep.texi: Mention the problem with older
90146         versions of mingw.
90148 2008-10-11  Bruno Haible  <bruno@clisp.org>
90150         New module 'shutdown'.
90151         * modules/shutdown: New file.
90152         * lib/sys_socket.in.h (shutdown): New declaration.
90153         * lib/winsock.c (shutdown): New function.
90154         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
90155         GNULIB_SHUTDOWN.
90156         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
90157         * doc/posix-functions/shutdown.texi: Document the new module.
90159 2008-10-11  Jim Meyering  <meyering@redhat.com>
90161         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
90163 2008-10-11  Bruno Haible  <bruno@clisp.org>
90165         New module 'fclose'.
90166         * modules/fclose: New file.
90167         * lib/stdio.in.h (fclose): New declaration.
90168         * lib/fclose.c: New file.
90169         * m4/fclose.m4: New file.
90170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
90171         REPLACE_FCLOSE.
90172         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90173         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90174         REPLACE_FCLOSE.
90175         * modules/close (Depends-on): fclose.
90176         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
90178 2008-10-11  Bruno Haible  <bruno@clisp.org>
90180         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
90181         set errno and don't call _close.
90183 2008-10-10  Bruno Haible  <bruno@clisp.org>
90185         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
90186         ACL, not afterwards. Fixes test failure on Cygwin.
90188 2008-10-09  Ben Pfaff  <blp@gnu.org>
90190         * build-aux/announce-gen: Fix gnulib version related part of usage
90191         message.  Die with a useful error message if no tarballs are
90192         found.
90194 2008-10-10  Jim Meyering  <meyering@redhat.com>
90196         bootstrap: use git's --depth=N option only if it's supported
90197         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
90198         recognize the --depth option.  Reported by Pádraig Brady.
90200 2008-10-09  Bruno Haible  <bruno@clisp.org>
90202         New module 'ioctl'.
90203         * modules/ioctl: New file.
90204         * lib/sys_socket.in.h (ioctl): Remove declaration.
90205         * lib/winsock.c: Include <sys/ioctl.h>.
90206         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
90207         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90208         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
90209         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
90210         * doc/posix-functions/ioctl.texi: Mention the new module.
90212 2008-10-09  Bruno Haible  <bruno@clisp.org>
90214         New module 'sys_ioctl'.
90215         * lib/sys_ioctl.in.h: New file.
90216         * m4/sys_ioctl_h.m4: New file.
90217         * modules/sys_ioctl: New file.
90218         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
90220 2008-10-09  Bruno Haible  <bruno@clisp.org>
90222         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
90223         * lib/winsock.c: Include <stdarg.h>.
90224         (rpl_ioctl): Change to second argument 'int' and then varargs.
90226 2008-10-09  Bruno Haible  <bruno@clisp.org>
90228         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
90229         when the sys_socket module is present and the system has <winsock2.h>.
90231 2008-10-09  Bruno Haible  <bruno@clisp.org>
90233         * doc/posix-functions/close.texi: Mention module 'close' instead of
90234         module 'sys_socket'.
90236 2008-10-09  Bruno Haible  <bruno@clisp.org>
90238         * doc/glibc-headers/sys_ioctl.texi: New file.
90239         * doc/gnulib.texi: Include it.
90241 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90242             Bruno Haible  <bruno@clisp.org>
90244         Combine the two replacements of 'close'.
90245         * lib/sys_socket.in.h (close): Define to a reminder to include
90246         <unistd.h>.
90247         (_gl_close_fd_maybe_socket): New declaration.
90248         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
90249         * lib/winsock.c (close): Remove undefinition.
90250         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
90251         needed for the gnulib module 'close'.
90252         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
90253         define to an error symbol or to a warning, if suitable.
90254         * lib/close.c: Include <sys/socket.h>.
90255         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
90256         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
90257         UNISTD_H_HAVE_WINSOCK2_H.
90258         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
90259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90260         UNISTD_H_HAVE_WINSOCK2_H.
90261         * modules/sys_socket (Files): Add m4/unistd_h.m4.
90262         (configure.ac): Set a module indicator.
90263         (Makefile.am): Substitute GNULIB_CLOSE.
90264         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
90265         * modules/poll-tests (Depends-on): Add close.
90266         * modules/select-tests (Depends-on): Likewise.
90268 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90269             Bruno Haible  <bruno@clisp.org>
90271         New module 'close'.
90272         * modules/close: New file.
90273         * lib/unistd.in.h (close): Move declaration out of the
90274         FCHDIR_REPLACEMENT scope.
90275         (_gl_unregister_fd): New declaration.
90276         * lib/close.c: New file.
90277         * lib/fchdir.c (rpl_close): Remove function.
90278         * m4/close.m4: New file.
90279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90280         close.
90281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
90282         REPLACE_CLOSE.
90283         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
90284         REPLACE_CLOSE.
90285         * modules/fchdir (Depends-on): Add close.
90287 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90288             Bruno Haible  <bruno@clisp.org>
90290         * lib/fcntl.in.h (open): Simplify conditionals.
90291         (_gl_register_fd): New declaration.
90292         * lib/fchdir.c (rpl_open): Remove function.
90293         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
90294         also.
90295         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
90296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90297         open.
90299 2008-10-09  Jim Meyering  <meyering@redhat.com>
90301         GNUmakefile: use the more name-space-friendly "_version"
90302         * top/GNUmakefile (_dummy): Update.
90303         (_version): Rename from "version".
90305 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90306             Bruno Haible  <bruno@clisp.org>
90308         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
90309         rpl_close.
90310         (_gl_register_fd): New function, extracted from rpl_open.
90311         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
90312         (rpl_open, rpl_opendir): Use _gl_register_fd.
90314 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90316         Fix organization of 'open' replacement.
90317         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
90318         (gl_FUNC_OPEN): Use it.
90319         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
90321 2008-10-08  Bruno Haible  <bruno@clisp.org>
90323         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
90325 2008-10-08  Simon Josefsson  <simon@josefsson.org>
90327         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
90328         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
90329         listen).
90331 2008-10-08  Eric Blake  <ebb9@byu.net>
90333         GNUmakefile: add 'make version' target
90334         * top/GNUmakefile (_curr-ver): Split version update rules...
90335         (version): ...into a target.
90337 2008-10-07  Bruno Haible  <bruno@clisp.org>
90339         Use a more portable replacement expression for -0.0L.
90340         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
90341         instead of -0.0L. Fix m4 quotation.
90343         * tests/test-signbit.c: Include <float.h>.
90344         (minus_zero): New variable.
90345         (test_signbitl): Use minus_zero instead of -zero.
90346         * modules/signbit-tests (Depends-on): Add float.
90348         * tests/test-ceill.c: Include <float.h>.
90349         (zero): Remove variable.
90350         (minus_zero): New variable.
90351         (main): Use minus_zero instead of -zero.
90352         * modules/ceill-tests (Depends-on): Add float.
90354         * tests/test-floorl.c: Include <float.h>.
90355         (zero): Remove variable.
90356         (minus_zero): New variable.
90357         (main): Use minus_zero instead of -zero.
90358         * modules/floorl-tests (Depends-on): Add float.
90360         * tests/test-roundl.c: Include <float.h>.
90361         (zero): Remove variable.
90362         (minus_zero): New variable.
90363         (main): Use minus_zero instead of -zero.
90364         * modules/roundl-tests (Depends-on): Add float.
90366         * tests/test-truncl.c: Include <float.h>.
90367         (zero): Remove variable.
90368         (minus_zero): New variable.
90369         (main): Use minus_zero instead of -zero.
90370         * modules/truncl-tests (Depends-on): Add float.
90372         * tests/test-frexpl.c (zero): Remove variable.
90373         (minus_zero): New variable.
90374         (main): Use minus_zero instead of -zero.
90375         * modules/frexpl-tests (Depends-on): Add float.
90377         * tests/test-isnan.c (zerol): Remove variable.
90378         (minus_zerol): New variable.
90379         (test_long_double): Use minus_zerol instead of -zerol.
90380         * modules/isnan-tests (Depends-on): Add float.
90382         * tests/test-isnanl.h (zero): Remove variable.
90383         (minus_zero): New variable.
90384         (main): Use minus_zero instead of -zero.
90385         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90386         * modules/isnanl-tests (Depends-on): Add float.
90388         * tests/test-ldexpl.c (zero): Remove variable.
90389         (minus_zero): New variable.
90390         (main): Use minus_zero instead of -zero.
90391         * modules/ldexpl-tests (Depends-on): Add float.
90393         * tests/test-snprintf-posix.h (zerol): Remove variable.
90394         (minus_zerol): New variable.
90395         (test_function): Use minus_zerol instead of -zerol.
90396         * modules/snprintf-posix-tests (Depends-on): Add float.
90397         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90399         * tests/test-sprintf-posix.h (zerol): Remove variable.
90400         (minus_zerol): New variable.
90401         (test_function): Use minus_zerol instead of -zerol.
90402         * modules/sprintf-posix-tests (Depends-on): Add float.
90403         * modules/vsprintf-posix-tests (Depends-on): Add float.
90405         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90406         (minus_zerol): New variable.
90407         (test_function): Use minus_zerol instead of -zerol.
90408         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90410         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90411         (minus_zerol): New variable.
90412         (test_function): Use minus_zerol instead of -zerol.
90413         * modules/vasprintf-posix-tests (Depends-on): Add float.
90415 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90417         * MODULES.html.sh (Support for building documentation): Mention
90418         pmccabe2html.  Sort entries.
90420         Add pmccabe2html module, from gnupdf.
90421         * build-aux/pmccabe.css: New file.
90422         * build-aux/pmccabe2html: New file.
90423         * m4/pmccabe2html.m4: New file.
90424         * modules/pmccabe2html: New file.
90426 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90428         flock: new module
90429         * MODULES.html.sh: Add to list of modules.
90430         * lib/flock.c: flock implementation for Windows and Unix systems
90431         which have fcntl.
90432         * doc/glibc-functions/flock.texi: Update documentation.
90433         * lib/sys_file.in.h: <sys/file.h> header file.
90434         * m4/flock.m4: M4 macros.
90435         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90436         * modules/flock: flock module.
90437         * modules/flock-tests: flock tests module.
90438         * modules/sys_file: sys/file.h module.
90439         * tests/test-flock.c: test suite for flock.
90441 2008-10-06  Jim Meyering  <meyering@redhat.com>
90443         bootstrap: check for LT_INIT more portably still ;-)
90444         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90445         Spotted by Bruno Haible.
90447 2008-10-06  Eric Blake  <ebb9@byu.net>
90449         test-signbit: avoid tripping Irix cc bug on -0.0L
90450         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90451         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90452         entire testsuite consistent and avoids an Irix 6.2 bug.
90454 2008-10-05  Bruno Haible  <bruno@clisp.org>
90455             Jim Meyering  <jim@meyering.net>
90457         Add an option for ignoring EPIPE during close_stdout.
90458         * lib/closeout.h: Include <stdbool.h>.
90459         (close_stdout_set_ignore_EPIPE): New declaration.
90460         * lib/closeout.c: Include <stdbool.h>.
90461         (ignore_EPIPE): New variable.
90462         (close_stdout_set_ignore_EPIPE): New function.
90463         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
90464         * lib/close-stream.c (close_stream): Mention the possible EPIPE
90465         failure.
90466         * modules/closeout (Depends-on): Add stdbool.
90468 2008-10-05  Bruno Haible  <bruno@clisp.org>
90470         * modules/accept: New file.
90471         * modules/bind: New file.
90472         * modules/connect: New file.
90473         * modules/getpeername: New file.
90474         * modules/getsockname: New file.
90475         * modules/getsockopt: New file.
90476         * modules/listen: New file.
90477         * modules/recv: New file.
90478         * modules/recvfrom: New file.
90479         * modules/send: New file.
90480         * modules/sendto: New file.
90481         * modules/setsockopt: New file.
90482         * modules/socket: New file.
90483         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
90484         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
90485         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
90486         the particular module is requested. Add a link warning when the
90487         particular module is not requested.
90488         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
90489         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
90490         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
90491         the particular module is requested.
90492         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
90493         gl_SYS_SOCKET_H_DEFAULTS): New macros.
90494         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
90495         * modules/sys_socket (Depends-on): Add link-warning.
90496         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
90497         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
90498         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
90499         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
90500         GL_LINK_WARNING.
90501         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
90502         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
90503         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
90504         * doc/posix-functions/getpeername.texi: Mention the new module
90505         'getpeername'.
90506         * doc/posix-functions/getsockname.texi: Mention the new module
90507         'getsockname'.
90508         * doc/posix-functions/getsockopt.texi: Mention the new module
90509         'getsockopt'.
90510         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
90511         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
90512         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
90513         * doc/posix-functions/send.texi: Mention the new module 'send'.
90514         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
90515         * doc/posix-functions/setsockopt.texi: Mention the new module
90516         'setsockopt'.
90517         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
90518         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
90519         listen, connect, accept.
90520         * modules/select-tests (Depends-on): Likewise.
90522 2008-10-05  Bruno Haible  <bruno@clisp.org>
90524         * lib/winsock.c (strerror): Remove unused #undef.
90525         (rpl_close): Remove unused local variable.
90527         * modules/sys_socket (Depends-on); Add errno.
90529 2008-10-05  Bruno Haible  <bruno@clisp.org>
90531         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
90532         (select): Add a link warning when the 'select' module is not used.
90533         * modules/sys_select (Depends-on): Add link-warning.
90534         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
90535         Suggested by Paolo Bonzini.
90537 2008-10-05  Jim Meyering  <meyering@redhat.com>
90539         bootstrap: check for LT_INIT more portably
90540         * build-aux/bootstrap: Avoid using grep -E, since it's not
90541         portable enough.  Suggestion from Bruno Haible.
90543 2008-10-05  Bruno Haible  <bruno@clisp.org>
90545         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
90546         as being fixed by gnulib.
90548 2008-10-05  Bruno Haible  <bruno@clisp.org>
90550         * modules/select-tests: New file, mostly copied from
90551         modules/sys_select-tests.
90552         * tests/test-select.c: New file, mostly copied from
90553         tests/test-sys_select.c.
90554         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
90555         * modules/sys_select-tests (Depends-on): Remove all dependencies.
90556         (Makefile.am): Remove test_sys_select_LDADD.
90558         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
90559         to an undefined symbol, for an error message.
90560         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
90561         (gl_SYS_SELECT_H_DEFAULTS): New macro.
90562         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
90563         winsock-select.c here.
90564         * modules/sys_select (Files): Remove lib/winsock-select.c.
90565         (Depends-on): Remove alloca.
90566         (Makefile.am): Substitute GNULIB_SELECT.
90567         * modules/select: New file.
90568         * doc/posix-functions/select.texi: Update.
90570 2008-10-05  Bruno Haible  <bruno@clisp.org>
90572         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
90573         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
90574         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
90575         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
90576         getdtablesize.
90577         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
90578         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
90580 2008-10-05  Bruno Haible  <bruno@clisp.org>
90582         * modules/getdtablesize-tests: New file.
90583         * tests/test-getdtablesize.c: New file.
90585         New module 'getdtablesize'.
90586         * lib/unistd.in.h (getdtablesize): New declaration.
90587         * lib/getdtablesize.c: New file.
90588         * m4/getdtablesize.m4: New file.
90589         * modules/getdtablesize: New file.
90590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90591         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90592         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90593         HAVE_GETDTABLESIZE.
90594         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90596 2008-10-05  Bruno Haible  <bruno@clisp.org>
90598         * modules/sched (Makefile.am): Fix typo.
90599         Reported by Simon Josefsson.
90601 2008-10-05  Jim Meyering  <meyering@redhat.com>
90603         bootstrap: check for LT_INIT, too
90604         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
90605         are deprecated.  Suggestion from Ralf Wildenhues.
90607 2008-10-05  Bruno Haible  <bruno@clisp.org>
90609         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
90610         overriding them by ours.
90611         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
90613 2008-10-05  Jim Meyering  <meyering@redhat.com>
90615         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
90616         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
90617         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
90619 2008-10-04  Bruno Haible  <bruno@clisp.org>
90621         * modules/dup2 (License): Change to LGPLv2+.
90622         * modules/sleep (License): Likewise.
90623         * modules/perror (License): Likewise.
90624         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
90625         Blake.
90626         * modules/signal (License): Likewise.
90627         * modules/sigprocmask (License): Likewise.
90628         * modules/raise (License): Change to LGPLv2+, with approval by Jim
90629         Meyering.
90631 2008-10-04  Bruno Haible  <bruno@clisp.org>
90633         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
90634         Reported by Rainer Tammer <tammer@tammer.net>.
90636 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
90637             Bruno Haible  <bruno@clisp.org>
90639         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
90640         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
90641         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
90643 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
90645         filevercmp: new module
90646         * lib/filevercmp.h: New function filevercmp comparing version strings.
90647         * lib/filevercmp.c: Implementation of filevercmp function.
90648         * modules/filevercmp: Module metadata.
90649         * tests/test-filevercmp.c: Unit test for new module.
90650         * modules/filevercmp-tests: Unit test metadata.
90651         * MODULES.html.sh: Add filevercmp module.
90653 2008-10-03  Bruno Haible  <bruno@clisp.org>
90655         * lib/c-ctype.h: Add comment.
90656         Reported by Jim Meyering.
90658 2008-10-02  Bruno Haible  <bruno@clisp.org>
90660         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90662 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90664         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90665         name of bootstrap.conf accordingly.
90667 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90669         * build-aux/bootstrap: Install git-merge-changelog configuration
90670         items into .gitconfig if needed.
90672 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90674         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90675         git repository, and initialize/update it accordingly.
90677 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90679         * modules/fsync-tests: New file.
90680         * tests/test-fsync.c: New file.
90682         New module 'fsync'.
90683         * lib/fsync.c: New file.
90684         * m4/fsync.m4: New file.
90685         * modules/fsync: New file.
90686         * lib/unistd.in.h (fsync): New declaration.
90687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90688         GNULIB_FSYNC and HAVE_FSYNC.
90689         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90690         * MODULES.html.sh (posix_functions): Add fsync.
90691         * doc/posix-functions/fsync.texi: Mention the new module.
90693 2008-10-02  Jim Meyering  <meyering@redhat.com>
90695         fts.c: sync with similar code from coreutils' remove.c
90696         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90697         Guard also with "#if defined __linux__", since for now at least,
90698         this code is Linux-kernel-specific.
90700 2008-10-02  Jim Meyering  <meyering@redhat.com>
90702         fts: bug fixes
90703         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90704         Include <sys/vfs.h>, not <sys/statfs.h>.
90706         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90707         Include <sys/vfs.h>, not <sys/statfs.h>.
90709 2008-10-01  Bruno Haible  <bruno@clisp.org>
90711         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90712         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90713         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90714         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90715         * doc/posix-functions/posix_spawnp.texi: Likewise.
90716         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90717         whether posix_spawn actually works.
90718         * m4/pipe.m4 (gl_PIPE): Likewise.
90719         * modules/execute (Files): Add m4/posix_spawn.m4.
90720         * modules/pipe (Files): Add m4/posix_spawn.m4.
90721         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90723 2008-10-01  Jim Meyering  <meyering@redhat.com>
90725         remove trailing spaces
90726         * NEWS: Likewise.
90727         * lib/poll.c (poll): Likewise.
90728         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90729         * lib/winsock.c (rpl_close): Likewise.
90730         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90731         * modules/yield: Likewise.
90732         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90733         * tests/test-sys_select.c (connect_to_socket): Likewise.
90735         fts.c: adjust a new interface to be more generally useful
90736         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90737         (fts_build): Adjust caller.
90739 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90741         * modules/cond-tests: New file.
90742         * tests/test-cond.c: New file.
90744 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90745             Bruno Haible  <bruno@clisp.org>
90747         * modules/cond (Dependencies): Add errno, time.
90748         * lib/glthread/cond.h: Include <time.h>.
90749         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90750         across platforms.
90752 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90753             Bruno Haible  <bruno@clisp.org>
90755         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90757 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90758             Bruno Haible  <bruno@clisp.org>
90760         * modules/tls-tests (Depends-on): Add thread, yield.
90761         (configure.ac): Remove all checks.
90762         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90763         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90764         gl_thread_self): Remove definitions. Include glthread/thread.h and
90765         glthread/yield.h instead.
90766         (test_tls): Pass an additional NULL argument to gl_thread_join.
90768 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90769             Bruno Haible  <bruno@clisp.org>
90771         * modules/lock-tests (Depends-on): Add thread, yield.
90772         (configure.ac): Remove all checks.
90773         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90774         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90775         gl_thread_self): Remove definitions. Include glthread/thread.h and
90776         glthread/yield.h instead.
90777         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90778         additional NULL argument to gl_thread_join.
90780 2008-09-30  Bruno Haible  <bruno@clisp.org>
90782         Fix the Win32 implementation of the 'thread' module.
90783         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90784         pointer type.
90785         (gl_thread_self): Invoke gl_thread_self_func.
90786         (gl_thread_self_func): New declaration.
90787         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90788         (do_init_self_key, init_self_key): New functions.
90789         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90790         Remove some fields.
90791         (running_threads, running_lock): Remove variables.
90792         (get_current_thread_handle): New function.
90793         (gl_thread_self_func, wrapper_func, glthread_create_func,
90794         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90795         simplified.
90797 2008-09-30  Bruno Haible  <bruno@clisp.org>
90799         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90800         files.
90802 2008-09-30  Jim Meyering  <meyering@redhat.com>
90804         fts.m4: correct the test for statfs.f_type
90805         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90806         when checking for statfs.f_type.
90808 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90810         tests: avoid some compiler warnings
90811         * tests/test-memchr.c (main): Pass NULL indirectly.
90812         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90814 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90816         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90817         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90818         exactly specified dayshifts.
90819         (dayshift): New rule.
90820         (rel): Add dayshift.
90821         (relative_time_table) [tomorrow, yesterday, today, now]:
90822         Use tDAY_SHIFT in place of tDAY_UNIT.
90823         * tests/test-getdate.c: Add tests for now-disallowed countable
90824         dayshifts, e.g., "4 yesterday ago".
90826 2008-09-29  Bruno Haible  <bruno@clisp.org>
90828         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90829         * tests/test-posix_spawn1.in.sh: Renamed from
90830         tests/test-posix_spawn.in.sh.
90831         * tests/test-posix_spawn2.c: New file.
90832         * tests/test-posix_spawn2.in.sh: New file.
90833         * modules/posix_spawnp-tests (Files): Update.
90834         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90836 2008-09-29  Bruno Haible  <bruno@clisp.org>
90838         Propagate effects of putenv/setenv/unsetenv to child processes.
90839         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90840         * lib/pipe.c (create_pipe): Likewise.
90842 2008-09-29  Bruno Haible  <bruno@clisp.org>
90844         Enable use of shell scripts as executables in mingw.
90845         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90846         run the program as a shell script.
90847         * lib/pipe.c (create_pipe): Likewise.
90848         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90849         resulting array.
90851 2008-09-29  Eric Blake  <ebb9@byu.net>
90853         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90855 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90857         * doc/posix-functions/accept.texi: Update mingw problems.
90858         * doc/posix-functions/bind.texi: Update mingw problems.
90859         * doc/posix-functions/close.texi: Update mingw problems.
90860         * doc/posix-functions/connect.texi: Update mingw problems.
90861         * doc/posix-functions/getpeername.texi: Update mingw problems.
90862         * doc/posix-functions/getsockname.texi: Update mingw problems.
90863         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90864         * doc/posix-functions/ioctl.texi: Update mingw problems.
90865         * doc/posix-functions/listen.texi: Update mingw problems.
90866         * doc/posix-functions/recv.texi: Update mingw problems.
90867         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90868         * doc/posix-functions/select.texi: Update mingw problems.
90869         * doc/posix-functions/send.texi: Update mingw problems.
90870         * doc/posix-functions/sendto.texi: Update mingw problems.
90871         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90872         * doc/posix-functions/socket.texi: Update mingw problems.
90874 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90875             Bruno Haible  <bruno@clisp.org>
90877         * lib/sys_select.in.h: Include sys/time.h.
90878         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90879         * modules/sys_select: Depend on sys_time.
90880         * tests/test-sys_select.c: Test that sys/select.h defines struct
90881         timeval fully.
90883 2008-09-29  Bruno Haible  <bruno@clisp.org>
90885         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90886         * lib/sys_select.in.h: Likewise.
90888 2008-09-29  Bruno Haible  <bruno@clisp.org>
90890         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90892 2008-09-29  Bruno Haible  <bruno@clisp.org>
90894         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90895         Set LIBSOCKET instead of augmenting LIBS.
90896         * modules/sockets (Link): New section.
90897         * modules/sockets-tests (test_sockets_LDADD): New variable.
90898         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90899         * modules/poll-tests (test_poll_LDADD): New variable.
90900         * NEWS: Document the change.
90902 2008-09-29  Bruno Haible  <bruno@clisp.org>
90904         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90905         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90906         ARPA_INET_H directly.
90907         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90909 2008-09-28  Bruno Haible  <bruno@clisp.org>
90911         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90912         from gl_HEADER_SYS_SOCKET.
90913         (gl_HEADER_SYS_SOCKET): Invoke it.
90914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90916 2008-09-28  Bruno Haible  <bruno@clisp.org>
90918         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90919         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90920         Needed on OSF/1 4.0.
90922 2008-09-28  Bruno Haible  <bruno@clisp.org>
90924         Override open more carefully.
90925         * lib/open.c (orig_open): New function.
90926         (rpl_open): Use orig_open instead of open.
90927         * lib/fcntl.in.h: Add special invocation convention.
90928         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90929         (gl_FUNC_OPEN): Invoke it.
90931         Override freopen more carefully.
90932         * lib/freopen.c (orig_freopen): New function.
90933         (rpl_freopen): Use orig_freopen instead of freopen.
90934         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90935         (gl_FUNC_FREOPEN): Invoke it.
90937         Override fopen more carefully.
90938         * lib/fopen.c (orig_fopen): New function.
90939         (rpl_fopen): Use orig_fopen instead of fopen.
90940         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90941         (gl_FUNC_FOPEN): Invoke it.
90942         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90944 2008-09-28  Bruno Haible  <bruno@clisp.org>
90946         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90947         SIGPIPE.
90949 2008-09-28  Bruno Haible  <bruno@clisp.org>
90951         * tests/test-sigaction.c (handler, main): Disable the check whether
90952         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90953         glibc systems with LinuxThreads.
90955 2008-09-28  Bruno Haible  <bruno@clisp.org>
90957         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90959         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90960         with AIX xlc.
90961         * lib/fcntl.in.h (open): Likewise.
90962         Reported by Rainer Tammer <tammer@tammer.net>.
90964 2008-09-28  Bruno Haible  <bruno@clisp.org>
90966         * modules/posix_spawnp-tests: New file.
90967         * tests/test-posix_spawn.c: New file.
90968         * tests/test-posix_spawn.in.sh: New file.
90970         New module 'posix_spawnp'.
90971         * modules/posix_spawnp: New file.
90972         * lib/spawnp.c: New file, from GNU libc with modifications.
90973         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90975         New module 'posix_spawn'.
90976         * modules/posix_spawn: New file.
90977         * lib/spawn.c: New file, from GNU libc with modifications.
90978         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90980         New module 'posix_spawnattr_destroy'.
90981         * modules/posix_spawnattr_destroy: New file.
90982         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90983         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90984         module.
90986         New module 'posix_spawnattr_setsigmask'.
90987         * modules/posix_spawnattr_setsigmask: New file.
90988         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90989         modifications.
90990         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90991         new module.
90993         New module 'posix_spawnattr_getsigmask'.
90994         * modules/posix_spawnattr_getsigmask: New file.
90995         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90996         modifications.
90997         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90998         new module.
91000         New module 'posix_spawnattr_setsigdefault'.
91001         * modules/posix_spawnattr_setsigdefault: New file.
91002         * lib/spawnattr_setdefault.c: New file, from GNU libc with
91003         modifications.
91004         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
91005         new module.
91007         New module 'posix_spawnattr_getsigdefault'.
91008         * modules/posix_spawnattr_getsigdefault: New file.
91009         * lib/spawnattr_getdefault.c: New file, from GNU libc with
91010         modifications.
91011         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
91012         new module.
91014         New module 'posix_spawnattr_setschedpolicy'.
91015         * modules/posix_spawnattr_setschedpolicy: New file.
91016         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
91017         modifications.
91018         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
91019         new module.
91021         New module 'posix_spawnattr_getschedpolicy'.
91022         * modules/posix_spawnattr_getschedpolicy: New file.
91023         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
91024         modifications.
91025         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
91026         new module.
91028         New module 'posix_spawnattr_setschedparam'.
91029         * modules/posix_spawnattr_setschedparam: New file.
91030         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
91031         modifications.
91032         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
91033         new module.
91035         New module 'posix_spawnattr_getschedparam'.
91036         * modules/posix_spawnattr_getschedparam: New file.
91037         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
91038         modifications.
91039         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
91040         new module.
91042         New module 'posix_spawnattr_setpgroup'.
91043         * modules/posix_spawnattr_setpgroup: New file.
91044         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
91045         modifications.
91046         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
91047         module.
91049         New module 'posix_spawnattr_getpgroup'.
91050         * modules/posix_spawnattr_getpgroup: New file.
91051         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
91052         modifications.
91053         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
91054         module.
91056         New module 'posix_spawnattr_setflags'.
91057         * modules/posix_spawnattr_setflags: New file.
91058         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
91059         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
91060         module.
91062         New module 'posix_spawnattr_getflags'.
91063         * modules/posix_spawnattr_getflags: New file.
91064         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
91065         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
91066         module.
91068         New module 'posix_spawnattr_init'.
91069         * modules/posix_spawnattr_init: New file.
91070         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
91071         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
91072         module.
91074         New module 'posix_spawn_file_actions_destroy'.
91075         * modules/posix_spawn_file_actions_destroy: New file.
91076         * lib/spawn_faction_destroy.c: New file, from GNU libc with
91077         modifications.
91078         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
91079         the new module.
91081         New module 'posix_spawn_file_actions_addopen'.
91082         * modules/posix_spawn_file_actions_addopen: New file.
91083         * lib/spawn_faction_addopen.c: New file, from GNU libc with
91084         modifications.
91085         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
91086         the new module.
91088         New module 'posix_spawn_file_actions_adddup2'.
91089         * modules/posix_spawn_file_actions_adddup2: New file.
91090         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
91091         modifications.
91092         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
91093         the new module.
91095         New module 'posix_spawn_file_actions_addclose'.
91096         * modules/posix_spawn_file_actions_addclose: New file.
91097         * lib/spawn_faction_addclose.c: New file, from GNU libc with
91098         modifications.
91099         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
91100         the new module.
91102         New module 'posix_spawn_file_actions_init'.
91103         * modules/posix_spawn_file_actions_init: New file.
91104         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
91105         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
91106         new module.
91108         New module 'posix_spawn-internal'.
91109         * modules/posix_spawn-internal: New file.
91110         * lib/spawn_int.h: New file, from GNU libc with modifications.
91111         * lib/spawni.c: New file, from GNU libc with modifications.
91112         * m4/posix_spawn.m4: New file.
91114         New module 'spawn'.
91115         * modules/spawn: New file.
91116         * lib/spawn.in.h: New file, from GNU libc with modifications.
91117         * m4/spawn_h.m4: New file.
91118         * doc/posix-headers/spawn.texi: Mention the new module.
91120 2008-09-28  Bruno Haible  <bruno@clisp.org>
91122         * modules/sched-tests: New file.
91123         * tests/test-sched.c: New file.
91125         New module 'sched'.
91126         * modules/sched: New file.
91127         * lib/sched.in.h: New file.
91128         * m4/sched_h.m4: New file.
91129         * doc/posix-headers/sched.texi: Mention the new module.
91131 2008-09-27  Eric Blake  <ebb9@byu.net>
91133         Fix previous patch, and tweak references to $0.
91134         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
91135         (func_version, func_gnulib_dir): Don't call this program
91136         gnulib-tool.
91137         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
91138         with using $0 in function.
91139         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
91140         (func_fatal_error): Reuse the name the user invoked us with.
91142 2008-09-27  Bruno Haible  <bruno@clisp.org>
91144         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
91145         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
91146         (gl_ICONV_H): Not here.
91147         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
91148         instead of assigning ICONV_H directly.
91150         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
91151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
91152         WCHAR_H directly.
91154 2008-09-27  Bruno Haible  <bruno@clisp.org>
91156         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
91157         * modules/arpa_inet (Depends-on): Add link-warning.
91158         (Makefile.am): Insert the definition of GL_LINK-WARNING.
91159         * modules/unistd (Makefile.am): Likewise.
91161 2008-09-26  Bruno Haible  <bruno@clisp.org>
91163         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
91164         variables.
91165         (func_version): Essentially copied from gnulib-tool.
91166         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
91167         func_readlink): Copied from gnulib-tool.
91169 2008-09-26  Bruno Haible  <bruno@clisp.org>
91171         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91172         invoking git-version-gen.
91174 2008-09-26  Bruno Haible  <bruno@clisp.org>
91176         * posix-modules: Update to directory names changed on 2008-01-19.
91177         Remove commas in output before splitting into words. No more need to
91178         avoid 'ftruncate' since 2007-02-19.
91180 2008-09-26  Bruno Haible  <bruno@clisp.org>
91182         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
91184 2008-09-26  Bruno Haible  <bruno@clisp.org>
91186         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
91187         * modules/fwriteerror (Depends-on): Add errno.
91189 2008-09-26  Bruno Haible  <bruno@clisp.org>
91191         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
91192         * tests/test-vc-list-files-cvs.sh: Likewise.
91194 2008-09-26  Bruno Haible  <bruno@clisp.org>
91196         * doc/posix-headers/sys_resource.texi: Reorder items.
91198 2008-09-26  Jim Meyering  <meyering@redhat.com>
91200         fts: tweak inode comparison function
91201         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
91202         inode numbers, as documented.
91204         fts: sort dirent entries on inode number before traversing
91205         This avoids a quadratic, seek-related performance penalty when
91206         operating on a directory containing many entries (measurable at 10k;
91207         3.5 hours at 2 million entries with a cold cache) on certain types
91208         of file systems, including ext3 and ext4, but not tmpfs.
91209         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
91210         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
91211         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
91212         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91213         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
91214         (fts_build): Set the stat.st_ino member from D_INO.
91215         If it is likely to be useful, sort dirent entries on inode number.
91217         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
91218         and the struct statfs.f_type member.
91219         * modules/fts (Depends-on): Add d-ino.
91221 2008-09-26  Bruno Haible  <bruno@clisp.org>
91223         * modules/sigpipe-die (Depends-on): Add sigpipe.
91225         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
91226         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
91227         and GNULIB_STDIO_H_SIGPIPE are set.
91228         * lib/stdio-write.c: New file.
91229         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
91230         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91231         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91232         REPLACE_STDIO_WRITE_FUNCS.
91233         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
91234         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91235         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91236         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91237         * modules/stdio (Files): Add lib/stdio-write.c.
91238         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
91239         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91240         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91241         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91242         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
91243         REPLACE_FPRINTF_POSIX.
91244         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
91245         REPLACE_PRINTF_POSIX.
91246         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
91247         REPLACE_VFPRINTF_POSIX.
91248         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
91249         REPLACE_VPRINTF_POSIX.
91250         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
91251         SIGPIPE issue.
91252         * doc/posix-functions/fputc.texi: Likewise.
91253         * doc/posix-functions/fputs.texi: Likewise.
91254         * doc/posix-functions/fwrite.texi: Likewise.
91255         * doc/posix-functions/printf.texi: Likewise.
91256         * doc/posix-functions/putc.texi: Likewise.
91257         * doc/posix-functions/putchar.texi: Likewise.
91258         * doc/posix-functions/puts.texi: Likewise.
91259         * doc/posix-functions/vfprintf.texi: Likewise.
91260         * doc/posix-functions/vprintf.texi: Likewise.
91262         * modules/safe-write (Depends-on): Add write.
91264         * modules/sigpipe-tests: New file.
91265         * tests/test-sigpipe.c: New file.
91266         * tests/test-sigpipe.sh: New file.
91268         * modules/write: New file.
91269         * lib/unistd.in.h: Include <sys/types.h>.
91270         (write): New declaration.
91271         * lib/write.c: New file.
91272         * m4/write.m4: New file.
91273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91274         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
91275         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
91276         GNULIB_WRITE, REPLACE_WRITE.
91277         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
91278         and the SIGPIPE issue.
91280         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
91281         (raise): New declaration.
91282         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
91283         (ext_signal): New function.
91284         (rpl_raise): New function.
91285         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
91286         GNULIB_SIGNAL_H_SIGPIPE.
91287         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
91288         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
91290         * modules/sigpipe: New file.
91291         * m4/sigpipe.m4: New file.
91293 2008-09-25  Derek Price  <derek@ximbiot.com>
91294             Bruno Haible  <bruno@clisp.org>
91296         * gnulib-tool (func_import): Report all license incompatibilities, not
91297         just the first one.
91299 2008-09-25  Bruno Haible  <bruno@clisp.org>
91301         * gnulib-tool (func_import): When computing the edits, consider not
91302         only the Makefile.ams that exist but also those that will be generated.
91304 2008-09-25  Simon Josefsson  <simon@josefsson.org>
91306         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
91307         fixes gnulib-tool --test warning about duplicate dependency.
91309 2008-09-25  Bruno Haible  <bruno@clisp.org>
91311         * gnulib-tool: Don't ask the user to perform edits in the generated
91312         Makefile.ams.
91313         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
91314         apply to the Makefile.am being generated.
91315         (func_emit_tests_Makefile_am): Execute edits that apply to the
91316         Makefile.am being generated.
91317         (func_import): Setup list of Makefile.am edits before emitting the
91318         Makefile.ams, not at the end.
91319         (func_create_testdir): Update.
91320         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91322 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91324         * gnulib-tool (func_import): Store the --tests-base option in the
91325         comment in gnulib-cache.m4.
91327 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
91329         * NEWS: Document increased portability that sys_select now provides.
91331         * lib/sys_select.in.h: Install select wrapper.
91332         * lib/sys_socket.in.h: Use more descriptive name when there is no
91333         select wrapper.
91334         * lib/winsock-select.c: New.
91335         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
91336         Require gl_HEADER_SYS_SOCKET.
91337         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
91338         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
91339         * tests/test-sys_select.c: Add functional tests.
91341 2008-09-24  Eric Blake  <ebb9@byu.net>
91343         open, fopen: close fd leak in last patch
91344         * lib/open.c (rpl_open): Close fd before returning error.
91345         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91346         * doc/posix-functions/open.texi (open): Document that Irix also
91347         has the bug.
91348         * doc/posix-functions/fopen.texi (fopen): Likewise.
91349         Reported by Paolo Bonzini.
91351 2008-09-24  Bruno Haible  <bruno@clisp.org>
91353         Ensure that a filename ending in a slash cannot be used to access a
91354         non-directory.
91355         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91356         to check whether it's really a directory.
91357         * lib/fopen.c: Include fcntl.h, unistd.h.
91358         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91359         and fdopen().
91360         * modules/fopen (Depends-on): Add unistd.
91361         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91362         * tests/test-fopen.c (main): Likewise.
91363         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91364         * doc/posix-functions/fopen.texi: Likewise.
91365         Reported by Eric Blake.
91367 2008-09-23  Eric Blake  <ebb9@byu.net>
91369         c-stack: avoid compiler optimizations when provoking overflow
91370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91371         recursion harder to optimize, to ensure a stack overflow occurs.
91372         * tests/test-c-stack.c (recurse): Likewise.
91373         Borrowed from libsigsegv.
91375         c-stack: work around Irix sigaltstack bug
91376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91377         whether sigaltstack uses wrong end of stack_t (copied in part from
91378         libsigsegv).
91379         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91380         Irix bug, without requiring an over-allocation.
91381         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91382         bug.
91384         fopen: document mingw bug on directories
91385         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91386         not allowing a stream visiting a directory, even though reading
91387         from such a stream is not portable.
91389 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91391         * lib/poll.c: Rewrite.
91392         * modules/poll: Depend on alloca.
91394 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91396         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91397         instead define prototypes for a full set of wrappers.  Ensure
91398         that Cygwin does not use the compatibility code, which is only
91399         for MinGW.
91400         * lib/winsock.c: New.
91401         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91402         * modules/sys_socket: Add lib/winsock.c.
91404         * modules/poll-tests: Add errno and perror.
91405         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91407 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91409         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91411 2008-09-23  Bruno Haible  <bruno@clisp.org>
91413         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91414         * doc/glibc-functions/*: Likewise.
91416 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91418         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91419         success.
91421 2008-09-22  Eric Blake  <ebb9@byu.net>
91422             Bruno Haible  <bruno@clisp.org>
91424         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91425         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91426         supply %A but mishandle pseudo-NaN.
91427         Reported by Simon Josefsson.
91429 2008-09-21  Bruno Haible  <bruno@clisp.org>
91431         * tests/test-lock.c (main): Tweak skip message.
91432         * tests/test-tls.c (main): Likewise.
91434 2008-09-21  Bruno Haible  <bruno@clisp.org>
91436         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91437         whether 'struct sigaction' has sa_sigaction here...
91438         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91439         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91441 2008-09-21  Bruno Haible  <bruno@clisp.org>
91443         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91444         section.
91445         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91446         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91447         the new section.
91448         (Support for obsolete systems lacking POSIX:2001): New section.
91449         (String handling <string.h>): Move strdup to the new section.
91450         Suggested by Simon Josefsson and Paolo Bonzini.
91452 2008-09-21  Bruno Haible  <bruno@clisp.org>
91454         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
91455         exponents in %e and %g results on 'long double'. Needed for mingw's
91456         improved *printf functions.
91457         * tests/test-vasprintf-posix.c (test_function): Likewise.
91458         * tests/test-snprintf-posix.h (test_function): Likewise.
91459         * tests/test-sprintf-posix.h (test_function): Likewise.
91460         Reported by Eric Blake.
91462 2008-09-21  Bruno Haible  <bruno@clisp.org>
91464         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
91465         * tests/test-sprintf-posix.h (test_function): Likewise.
91467 2008-09-21  Bruno Haible  <bruno@clisp.org>
91469         * modules/getpass (Depends-on): Add strdup-posix.
91471         New module 'strdup-posix'.
91472         * modules/strdup-posix: New file.
91473         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
91474         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
91475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91476         REPLACE_STRDUP.
91477         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
91478         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
91479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91480         strdup-posix.
91482         * modules/strdup (Depends-on): Remove malloc-posix.
91484 2008-09-20  Bruno Haible  <bruno@clisp.org>
91486         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
91487         Wildenhues.
91489 2008-09-20  Bruno Haible  <bruno@clisp.org>
91491         Ensure that wint_t gets defined on IRIX 5.3.
91492         * lib/wchar.in.h (wint_t): Define if not defined by the system.
91493         * lib/wctype.in.h (wint_t): Likewise.
91494         (__wctype_wint_t): Remove type.
91495         (isw*): Use wint_t instead of __wctype_wint_t.
91496         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
91497         * modules/wchar (Files): Add m4/wint_t.m4.
91498         (Makefile.am): Substitute HAVE_WINT_T.
91499         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
91500         * tests/test-wctype.c: Check that wint_t is defined.
91501         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
91502         * doc/posix-headers/wctype.texi: Likewise.
91503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
91505 2008-09-18  Bruno Haible  <bruno@clisp.org>
91507         * gnulib-tool (func_exit): Update comment.
91509 2008-09-18  Simon Josefsson  <simon@josefsson.org>
91511         * modules/getaddrinfo (Depends-on): Remove strdup, this module
91512         assumes strdup exists and does not depend on strdup to return
91513         ENOMEM on out of memory conditions.
91515 2008-09-18  Bruno Haible  <bruno@clisp.org>
91517         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
91518         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
91519         digits for the exponent.
91521 2008-09-18  Jim Meyering  <meyering@redhat.com>
91522             Bruno Haible  <bruno@clisp.org>
91524         * lib/vasnprintf.c (decimal_point_char): Define also if
91525         NEED_PRINTF_INFINITE_LONG_DOUBLE.
91527 2008-09-16  Bruno Haible  <bruno@clisp.org>
91528         and Eric Blake  <ebb9@byu.net>
91530         vasnprintf: support Irix 5.3
91531         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
91532         that mishandle long double infinity.
91533         Reported by Tom G. Christensen.
91535 2008-09-16  Bruno Haible  <bruno@clisp.org>
91537         * doc/glibc-functions/scandir.texi: Mention the function is missing on
91538         Solaris 9.
91539         * doc/glibc-functions/alphasort.texi: Likewise.
91540         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
91542 2008-09-16  Jim Meyering  <meyering@redhat.com>
91544         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
91545         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
91546         a umask modification leak out of a subshell.  Otherwise, the
91547         opensolaris /bin/sh would be accepted and thus cause unwarranted
91548         failures in the coreutils test suite.
91550 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
91552         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
91553         to succeed.
91555 2008-09-16  Jim Meyering  <meyering@redhat.com>
91557         avoid spurious test failure when library is built without ACL support
91558         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
91559         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
91560         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
91561         * tests/test-copy-acl.sh: Likewise.
91563 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91565         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
91566         based on character occurrence counts.
91568 2008-09-15  Eric Blake  <ebb9@byu.net>
91570         tests: avoid some compiler warnings
91571         * tests/test-memchr.c (main): Pass NULL indirectly.
91572         * tests/test-closein.c (main): Avoid unused variable.
91574 2008-09-15  Bruno Haible  <bruno@clisp.org>
91576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
91577         are missing on OpenBSD 4.0 individually.
91578         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91580 2008-09-15  Bruno Haible  <bruno@clisp.org>
91582         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
91583         * doc/posix-functions/strerror.texi: Mention also Cygwin.
91584         * doc/posix-functions/perror.texi: Likewise.
91585         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
91586         is missing.
91587         Reported by Eric Blake.
91589         * lib/errno.in.h: Use replacement values >= 2000.
91590         Reported by Eric Blake.
91592 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91594         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91595         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91596         limit.
91597         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
91598         compareseq was aborted.
91600 2008-09-14  Bruno Haible  <bruno@clisp.org>
91602         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
91603         yvec_edit_count.
91604         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
91605         (fstrcmp_bounded): Simplify result computation accordingly.
91607 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91609         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
91610         (fstrcmp): Define in terms of fstrcmp_bounded.
91611         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
91612         lower_bound argument.
91613         Return quickly if the result is certainly < lower_bound.
91614         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
91616 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91618         * lib/diffseq.h (EARLY_ABORT): New macro.
91619         (compareseq): Change return type to bool. Return true when EARLY_ABORT
91620         evaluates to true.
91622 2008-09-14  Bruno Haible  <bruno@clisp.org>
91624         * modules/perror-tests: New file.
91625         * tests/test-perror.sh: New file.
91626         * tests/test-perror.c: New file.
91628         New module 'perror'.
91629         * lib/stdio.in.h (perror): New declaration.
91630         * lib/perror.c: New file.
91631         * m4/perror.m4: New file.
91632         * modules/perror: New file.
91633         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
91634         * doc/posix-functions/perror.texi: Mention the perror module.
91635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
91636         REPLACE_PERROR.
91637         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
91638         REPLACE_PERROR.
91640 2008-09-14  Bruno Haible  <bruno@clisp.org>
91642         * modules/stdio (Makefile.am): Reorder to match the order in
91643         lib/stdio.in.h.
91644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91646 2008-09-13  Bruno Haible  <bruno@clisp.org>
91648         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
91650 2008-09-13  Bruno Haible  <bruno@clisp.org>
91652         Extend strerror to cover the added errno values.
91653         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
91654         (rpl_strerror): Provide error messages for the added errno values and
91655         for the WSA* values.
91656         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
91657         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
91658         strerror.
91659         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
91660         * modules/strerror (Depends-on): Add errno.
91661         * doc/posix-functions/strerror.texi: Document the change.
91662         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91663         and EOVERFLOW.
91665 2008-09-13  Bruno Haible  <bruno@clisp.org>
91667         * modules/EOVERFLOW: Remove file.
91668         * m4/eoverflow.m4: Remove file.
91669         * modules/EOVERFLOW-tests: Remove file.
91670         * tests/test-EOVERFLOW.c: Remove file.
91671         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91672         * modules/ftell (Depends-on): Likewise.
91673         * modules/getdelim (Depends-on): Likewise.
91674         * modules/getugroups (Depends-on): Likewise.
91675         * modules/poll (Depends-on): Likewise.
91676         * modules/snprintf (Depends-on): Likewise.
91677         * modules/sprintf-posix (Depends-on): Likewise.
91678         * modules/vasnprintf (Depends-on): Likewise.
91679         * modules/vasprintf (Depends-on): Likewise.
91680         * modules/vfprintf-posix (Depends-on): Likewise.
91681         * modules/vsnprintf (Depends-on): Likewise.
91682         * modules/vsprintf-posix (Depends-on): Likewise.
91683         * modules/xvasprintf (Depends-on): Likewise.
91684         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91685         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91686         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91687         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91689         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91690         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91691         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91692         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91693         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91694         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91695         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91696         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91697         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91698         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91699         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91700         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91701         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91702         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91703         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91704         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91705         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91706         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91707         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91708         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91709         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91710         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91711         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91712         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91713         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91714         * MODULES.html.sh: Remove EOVERFLOW.
91715         * NEWS: Mention the change.
91717 2008-09-13  Bruno Haible  <bruno@clisp.org>
91719         * modules/errno-tests: New file.
91720         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91722         * lib/errno.in.h: New file.
91723         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91724         * modules/errno: New file.
91725         * doc/posix-headers/errno.texi: Update documentation.
91726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91728 2008-09-13  Bruno Haible  <bruno@clisp.org>
91730         * tests/test-poll.c: Use #if for native Windows, rather than testing
91731         __MSVCRT__.
91733 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91734             Bruno Haible  <bruno@clisp.org>
91736         * lib/glob.c: Don't include <pwd.h> on native Windows.
91737         (WINDOWS32): New macro.
91738         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91740 2008-09-13  Bruno Haible  <bruno@clisp.org>
91742         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91743         (ETIMEDOUT): Remove macro.
91744         (glthread_cond_timedwait_multithreaded): New declaration.
91745         (glthread_cond_timedwait): Use it.
91746         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91747         (glthread_cond_timedwait_multithreaded): New function.
91749 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91751         * modules/poll-tests: Do not check for io.h.
91752         * tests/test-poll.c: Check for __MSVCRT__ instead.
91754 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91756         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91757         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91758         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91760 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91762         * modules/poll-tests: New.
91763         * tests/test-poll.c: New.
91765 2008-09-12  Eric Blake  <ebb9@byu.net>
91767         frexp: test for NetBSD failure on -0.0
91768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91769         not all, bugs from NetBSD 3.0 have been fixed.
91770         * doc/posix-functions/frexp.texi (frexp): Document bug.
91771         Reported by Thomas Klausner.
91773         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91774         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91775         literal -0.0.
91776         Reported by Jonathan C. Patschke <jp@centtech.com>.
91778 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91780         * lib/glthread/cond.h: Use dummy implementation also if
91781         USE_WIN32_THREADS.
91783 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91785         * modules/fnmatch-posix (License): Change to LGPLv2+.
91786         * modules/fnmatch-gnu (License): Likewise.
91788 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91790         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91792 2008-09-11  Jim Meyering  <meyering@redhat.com>
91794         * users.txt: Add gtk-vnc.
91796 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91798         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91799         rotate amounts.
91801         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91802         required for 16-bit and 8-bit rotates.
91803         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91804         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91805         UINT8_MAX instead of hard-coded constants.
91806         Suggested by Paul Eggert.
91808 2008-09-07  Bruno Haible  <bruno@clisp.org>
91810         * tests/test-striconveh.c (main): Check behaviour when converting from
91811         UTF-7.
91813         Make striconveh work better with stateful encodings.
91814         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91815         that iconv does not increment the inptr when returning -1/EINVAL.
91817 2008-09-07  Bruno Haible  <bruno@clisp.org>
91819         * build-aux/config.rpath: Update according to libtool-2.2.6.
91820         * build-aux/config.libpath: Likewise.
91822 2008-09-06  Bruno Haible  <bruno@clisp.org>
91824         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91825         * lib/freadptr.c (freadptr): Likewise.
91826         * lib/freadseek.c (freadptrinc): Likewise.
91827         Reported by Simon Josefsson.
91829 2008-09-06  Bruno Haible  <bruno@clisp.org>
91831         * modules/freadptr (License): Change to LGPLv2+.
91832         * modules/freadseek (License): Likewise.
91833         Suggested by Eric Blake.
91835         * modules/memchr2 (License): Change to LGPLv2+.
91836         Approved by Eric Blake.
91838 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91839             Bruno Haible  <bruno@clisp.org>
91841         Make gnulib-tool work with native 'sed' on AIX.
91842         * gnulib-tool (sed_noop): New variable.
91843         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91844         func_add_or_update, func_create_testdir): Use it to initialize sed
91845         script variables.
91846         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91848 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91849             Bruno Haible  <bruno@clisp.org>
91851         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91852         also works after #include directives.
91854 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91856         getdate.y: reject an out-of-range timezone value
91857         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91858         the range [-24...+24].  When specified with only one or two digits,
91859         * tests/test-getdate.c: Tests for the fix.
91860         * doc/getdate.texi: Document this change.
91862 2008-09-03  Bruno Haible  <bruno@clisp.org>
91864         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91866 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91868         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91869         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91870         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91871         Blake <ebb9@byu.net>.
91873         * tests/test-bitrotate.c: Add more test vectors.
91875 2008-09-02  Eric Blake  <ebb9@byu.net>
91877         vasnprintf-posix: handle large precision via %.*d
91878         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91879         when handling it ourselves.
91880         * tests/test-vasnprintf-posix.c (test_function): Add test.
91881         * tests/test-snprintf-posix.h (test_function): Likewise.
91882         * tests/test-sprintf-posix.h (test_function): Likewise.
91883         * tests/test-vasprintf-posix.c (test_function): Likewise.
91884         Reported by Alain Guibert.
91886 2008-09-01  Eric Blake  <ebb9@byu.net>
91888         c-stack: make configure-time check more robust
91889         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91890         successful sigaction call.
91891         Reported by Tom G. Christensen.
91893 2008-09-01  Bruno Haible  <bruno@clisp.org>
91895         New module 'findprog-lgpl'.
91896         * modules/findprog-lgpl: New file.
91897         * lib/findprog-lgpl.c: New file.
91898         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91899         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91900         to decide whether to use strdup or xstrdup, concatenated_filename or
91901         xconcatenated_filename.
91903 2008-09-01  Bruno Haible  <bruno@clisp.org>
91905         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91906         'xconcat-filename' (GPL).
91907         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91908         (License): Change to LGPLv2+.
91909         * modules/xconcat-filename: New file.
91910         * lib/concat-filename.h (concatenated_filename): Change specification.
91911         (xconcatenated_filename): New declaration.
91912         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91913         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91914         memory situations.
91915         * lib/xconcat-filename.c: New file.
91916         * NEWS: Mention the change.
91917         * lib/findprog.c: Include concat-filename.h, not filename.h.
91918         (find_in_path): Use xconcatenated_filename instead of
91919         concatenated_filename.
91920         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91921         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91922         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91923         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91924         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91925         instead of concatenated_filename.
91926         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91927         (execute_java_class): Use xconcatenated_filename instead of
91928         concatenated_filename.
91929         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91930         * modules/javacomp (Depends-on): Likewise.
91931         * modules/javaexec (Depends-on): Likewise.
91933 2008-09-01  Bruno Haible  <bruno@clisp.org>
91935         Split module 'filename' into 'filename' and 'concat-filename'.
91936         * modules/filename: Keep only lib/filename.h.
91937         (License): Change to LGPLv2+.
91938         * modules/concat-filename: New file, extracted from modules/filename.
91939         * lib/filename.h (concatenated_filename): Remove declaration.
91940         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91941         * lib/concat-filename.c: Include concat-filename.h.
91942         * NEWS: Mention the change.
91944 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91946         * lib/bitrotate.h (rotl8, rotr8): Add.
91948         * modules/bitrotate (configure.ac): Need
91949         AC_REQUIRE([AC_C_INLINE]).
91950         (Description): Mention stdint.h.  Reported by Bruno Haible
91951         <bruno@clisp.org>.
91953         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91954         Paolo Bonzini <bonzini@gnu.org>.
91956 2008-08-31  Bruno Haible  <bruno@clisp.org>
91958         Assume Solaris specific bi-arch conventions on Solaris systems.
91959         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91960         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91961         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91962         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91963         like acl_libdirstem.
91964         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91965         acl_libdirstem.
91966         * NEWS: Mention the change.
91967         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91969 2008-08-31  Jim Meyering  <meyering@redhat.com>
91971         * lib/strftime.h: Add comments describing the two added arguments.
91973         remove duplicate #include directives
91974         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91975         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91977 2008-08-31  Bruno Haible  <bruno@clisp.org>
91979         New module 'sigpipe-die'.
91980         * modules/sigpipe-die: New file.
91981         * lib/sigpipe-die.h: New file.
91982         * lib/sigpipe-die.c: New file.
91983         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91985 2008-08-31  Bruno Haible  <bruno@clisp.org>
91987         Don't override previously installed signal handlers.
91988         * lib/fatal-signal.c (saved_sigactions): New variable.
91989         (uninstall_handlers): Reset the signal to the saved handler, not
91990         to SIG_DFL (except when ignored).
91991         (install_handlers): Save the previous handlers.
91993 2008-08-30  Bruno Haible  <bruno@clisp.org>
91995         * gnulib-tool (func_reset_sigpipe): New function.
91996         (func_get_automake_snippet, func_modules_transitive_closure,
91997         func_import): Invoke it before a join command that reads from stdin,
91998         to avoid "echo: write error: Broken pipe" error messages on stderr.
91999         Reported by Sam Steingold <sds@gnu.org>.
92001 2008-08-30  Bruno Haible  <bruno@clisp.org>
92003         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
92004         Code copied from m4/open.m4.
92005         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
92006         access and the filename ends in a slash. Code copied from lib/open.c.
92007         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
92008         * tests/test-fopen.c (main): Check against bug with trailing slash.
92010 2008-08-29  Bruno Haible  <bruno@clisp.org>
92012         Avoid some "gcc -pedantic" warnings.
92013         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
92014         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
92015         * lib/dirent.in.h: Likewise.
92016         * lib/fcntl.in.h: Likewise.
92017         * lib/float.in.h: Likewise.
92018         * lib/iconv.in.h: Likewise.
92019         * lib/inttypes.in.h: Likewise.
92020         * lib/locale.in.h: Likewise.
92021         * lib/math.in.h: Likewise.
92022         * lib/netinet_in.in.h: Likewise.
92023         * lib/search.in.h: Likewise.
92024         * lib/signal.in.h: Likewise.
92025         * lib/stdarg.in.h: Likewise.
92026         * lib/stdint.in.h: Likewise.
92027         * lib/stdio.in.h: Likewise.
92028         * lib/stdlib.in.h: Likewise.
92029         * lib/string.in.h: Likewise.
92030         * lib/strings.in.h: Likewise.
92031         * lib/sys_select.in.h: Likewise.
92032         * lib/sys_socket.in.h: Likewise.
92033         * lib/sys_stat.in.h: Likewise.
92034         * lib/sys_time.in.h: Likewise.
92035         * lib/sysexits.in.h: Likewise.
92036         * lib/time.in.h: Likewise.
92037         * lib/unistd.in.h: Likewise.
92038         * lib/wchar.in.h: Likewise.
92039         * lib/wctype.in.h: Likewise.
92040         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
92041         * modules/fchdir (Makefile.am): Likewise.
92042         * modules/fcntl (Makefile.am): Likewise.
92043         * modules/float (Makefile.am): Likewise.
92044         * modules/iconv_open (Makefile.am): Likewise.
92045         * modules/inttypes (Makefile.am): Likewise.
92046         * modules/locale (Makefile.am): Likewise.
92047         * modules/math (Makefile.am): Likewise.
92048         * modules/netinet_in (Makefile.am): Likewise.
92049         * modules/search (Makefile.am): Likewise.
92050         * modules/signal (Makefile.am): Likewise.
92051         * modules/stdarg (Makefile.am): Likewise.
92052         * modules/stdint (Makefile.am): Likewise.
92053         * modules/stdio (Makefile.am): Likewise.
92054         * modules/stdlib (Makefile.am): Likewise.
92055         * modules/string (Makefile.am): Likewise.
92056         * modules/strings (Makefile.am): Likewise.
92057         * modules/sys_select (Makefile.am): Likewise.
92058         * modules/sys_socket (Makefile.am): Likewise.
92059         * modules/sys_stat (Makefile.am): Likewise.
92060         * modules/sys_time (Makefile.am): Likewise.
92061         * modules/sysexits (Makefile.am): Likewise.
92062         * modules/time (Makefile.am): Likewise.
92063         * modules/unistd (Makefile.am): Likewise.
92064         * modules/wchar (Makefile.am): Likewise.
92065         * modules/wctype (Makefile.am): Likewise.
92066         Reported by Reuben Thomas <rrt@sc3d.org>.
92068 2008-08-29  Bruno Haible  <bruno@clisp.org>
92070         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
92071         any more.
92073 2008-08-29  Simon Josefsson  <simon@josefsson.org>
92075         * MODULES.html.sh (Misc): Add bitrotate.
92077         * modules/bitrotate: New file.
92079         * lib/bitrotate.h: New file.
92081         * modules/bitrotate-tests: New file.
92083         * tests/test-bitrotate.c: New file.
92085         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
92086         on the bitrotate module.
92088         * lib/arctwo.c: Use new bitrotate module.
92090 2008-08-29  Jim Meyering  <meyering@redhat.com>
92092         bootstrap: merge changes from coreutils
92093         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
92094         of copied files.  Remove a kludge, now that this is fixed.
92095         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
92096         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
92097         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
92099 2008-08-29  Bruno Haible  <bruno@clisp.org>
92101         * MODULES.html.sh: Remove --cvs-urls option.
92103 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
92105         maint.mk: adjust to file name change
92106         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
92108 2008-08-28  Jim Meyering  <meyering@redhat.com>
92110         * modules/getndelim2 (License): Relicense to LGPLv2+.
92111         Approved by Richard Stallman for the version of 1995, and by
92112         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
92114 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
92116         * lib/getdelim.c (flockfile, funlockfile): Make all of them
92117         dummy if one is not available.  Do not touch them if
92118         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
92119         (getc_maybe_unlocked): New.
92120         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
92122 2008-08-26  Eric Blake  <ebb9@byu.net>
92124         doc/INSTALL: resync from autoconf
92125         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
92126         (INSTALL_PRELUDE): Delete; this is done more efficiently by
92127         moving...
92128         * install.texi [!autoconf]: ...here.  Resync from autoconf.
92129         * INSTALL: Regenerate.
92130         * INSTALL.ISO: New file.
92131         * INSTALL.UTF-8: Likewise.
92133 2008-08-26  Jim Meyering  <meyering@redhat.com>
92135         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
92136         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
92137         these definitions conditional, so that they may be overridden, too.
92139 2008-08-26  Bruno Haible  <bruno@clisp.org>
92141         Generate INSTALL file variants with prettier quotes.
92142         * doc/Makefile (INSTALL_PRELUDE): New macro.
92143         (INSTALL): Use it.
92144         (INSTALL.ISO, INSTALL.UTF-8): New rules.
92146 2008-08-26  Bruno Haible  <bruno@clisp.org>
92148         Run makeinfo in an English locale.
92149         * doc/Makefile (MAKEINFO): New variable.
92151 2008-08-26  Bruno Haible  <bruno@clisp.org>
92153         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
92154         Suggested by Eric Blake.
92156 2008-08-25  Bruno Haible  <bruno@clisp.org>
92158         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
92160 2008-08-25  Eric Blake  <ebb9@byu.net>
92162         c-stack: test that stack overflow can be caught
92163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
92164         that platform allows handling stack overflow; at least OS/2 EMX
92165         has sigaltstack, but crashes before transferring control to
92166         handler on stack overflow.
92167         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
92168         check for HAVE_STACK_OVERFLOW_HANDLING.
92169         Reported by Elbert Pol.
92171 2008-08-25  Bruno Haible  <bruno@clisp.org>
92173         * doc/posix-functions/strftime.texi: Fix description of strftime
92174         module.
92176 2008-08-24  Bruno Haible  <bruno@clisp.org>
92178         * tests/uniwidth/test-uc_width2.c: New file.
92179         * tests/uniwidth/test-uc_width2.sh: New file.
92180         * modules/uniwidth/width-tests (Files): Add the new files.
92181         (TESTS): Add uniwidth/test-uc_width2.sh.
92182         (TESTS_ENVIRONMENT): New variable.
92183         (check_PROGRAMS): Add test-uc_width2.
92184         (test_uc_width2_SOURCES): New variable.
92186         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
92187         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
92188         not 0x00AB.
92189         Reported by Alexander V. Lukyanov <lav@netis.ru>.
92191 2008-08-22  Eric Blake  <ebb9@byu.net>
92193         test-lock, test-tls: mention why a test is skipped
92194         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
92195         skipped.
92196         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
92198         count-one-bits: relax license
92199         * modules/count-one-bits (License): Relicense to LGPLv2+.
92200         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92202 2008-08-22  Andreas Schwab  <schwab@suse.de>
92204         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
92205         Remove spurious space in assignment.
92207 2008-08-21  Simon Josefsson  <simon@josefsson.org>
92209         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
92210         Paul Eggert <eggert@CS.UCLA.EDU>.
92212 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
92214         * modules/gettext: Add m4/threadlib.m4.
92216 2008-08-19  Eric Blake  <ebb9@byu.net>
92218         test-c-stack: fix compilation failure on FreeBSD 5.0
92219         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
92220         headers before <sys/resource.h>.
92221         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
92222         the bug.
92223         Reported by Nelson H. F. Beebe.
92225         strverscmp: migrate from "strverscmp.h" to <string.h>
92226         * modules/string (Makefile.am): Add new hooks.
92227         * modules/strverscmp (Files): Remove strverscmp.h.
92228         (Depends-on): Add string.
92229         (configure.ac): Add indicator.
92230         (Include): Mention new header.
92231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
92232         defaults.
92233         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
92234         results.
92235         * lib/strverscmp.h: Delete.
92236         * lib/string.in.h (strverscmp): Provide declaration, when needed.
92237         * tests/test-strverscmp.c (includes): Adjust client.
92238         * lib/check-version.c (includes): Likewise.
92239         * NEWS: Document the change.
92241         strverscmp: add unit test
92242         * modules/strverscmp-tests: New file.
92243         * tests/test-strverscmp.c: Likewise.
92245 2008-08-19  Simon Josefsson  <simon@josefsson.org>
92247         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
92248         regarding Windows crypto stuff, from Mono.
92250 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
92252         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
92253         if present, for intel RND.  Return error on failures.
92255 2008-08-18  Ben Pfaff  <blp@gnu.org>
92257         gitlog-to-changelog: give better diagnostic for failed pipe-open
92258         * build-aux/gitlog-to-changelog: Improve error message: suggest
92259         that the version of Git may be too old.
92261 2008-08-18  Simon Josefsson  <simon@josefsson.org>
92263         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
92264         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
92266 2008-08-18  Bruno Haible  <bruno@clisp.org>
92268         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
92269         pthread_in_use().
92271 2008-08-18  Bruno Haible  <bruno@clisp.org>
92273         * lib/glthread/threadlib.c: Include <pthread.h>.
92275 2008-08-18  Bruno Haible  <bruno@clisp.org>
92277         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
92278         glthread_recursive_lock_* macros.
92279         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
92280         Fix syntax error.
92282 2008-08-18  Bruno Haible  <bruno@clisp.org>
92284         * lib/glthread/thread.c: Avoid forcing a context switch right after
92285         thread creation.
92287 2008-08-17  Bruno Haible  <bruno@clisp.org>
92289         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
92290         * lib/glthread/thread.h: Provide Win32 specific implementation.
92291         * modules/thread (Files): Add lib/glthread/thread.c.
92292         (Depends-on): Add lock.
92293         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
92295 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92297         New module 'yield'.
92298         * modules/yield: New file.
92299         * lib/glthread/yield.h: New file.
92300         * m4/yield.m4: New file.
92301         * MODULES.html.sh (Multithreading): Add yield.
92303 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92305         New module 'thread'.
92306         * modules/thread: New file.
92307         * lib/glthread/thread.h: New file.
92308         * m4/thread.m4: New file.
92309         * MODULES.html.sh (Multithreading): Add thread.
92311 2008-08-17  Bruno Haible  <bruno@clisp.org>
92313         * lib/glthread/lock.h: Include <stdlib.h> always.
92314         * lib/glthread/tls.h: Likewise.
92315         * lib/glthread/cond.h: Likewise.
92317 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92319         New module 'cond'.
92320         * modules/cond: New file.
92321         * lib/glthread/cond.h: New file.
92322         * lib/glthread/cond.c: New file.
92323         * m4/cond.m4: New file.
92324         * MODULES.html.sh (Multithreading): Add cond.
92326 2008-08-16  Eric Blake  <ebb9@byu.net>
92328         c-stack: fix regression on Irix 5.3 from 2008-06-21
92329         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
92330         sa_sigaction...
92331         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
92332         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
92333         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
92334         * modules/signal (Makefile.am): Use the value.
92335         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
92336         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
92337         * doc/posix-headers/signal.texi (signal.h): Document this
92338         portability issue.
92339         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
92340         Reported by Tom G. Christensen.
92342 2008-08-17  Bruno Haible  <bruno@clisp.org>
92344         New module 'threadlib'.
92345         * modules/threadlib: New file.
92346         * lib/glthread/threadlib.c: New file, extracted from
92347         lib/glthread/lock.c.
92348         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92349         functions.
92350         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92351         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92352         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92353         macros.
92354         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92355         (gl_DISABLE_THREADS): Remove macro.
92356         * modules/lock (Files): Remove build-aux/config.rpath.
92357         (Depends-on): Remove havelib. Add threadlib.
92358         (configure.ac-early): Remove section.
92359         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92360         * modules/tls (Depends-on): Remove lock. Add threadlib.
92361         (Link): New section, copied from threadlib.
92362         * MODULES.html.sh (Multithreading): Add threadlib.
92364 2008-08-14  Bruno Haible  <bruno@clisp.org>
92366         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92367         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92368         glthread_rwlock_unlock, glthread_rwlock_destroy,
92369         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92370         glthread_recursive_lock_destroy): Define as macros always.
92371         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92372         glthread_lock_lock.
92373         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92374         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92375         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92376         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92377         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92378         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92379         (glthread_recursive_lock_lock_func): Renamed from
92380         glthread_recursive_lock_lock.
92381         (glthread_recursive_lock_unlock_func): Renamed from
92382         glthread_recursive_lock_unlock.
92383         (glthread_recursive_lock_destroy_func): Renamed from
92384         glthread_recursive_lock_destroy.
92386 2008-08-14  Bruno Haible  <bruno@clisp.org>
92388         * lib/glthread/lock.h: Renamed from lib/lock.h.
92389         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92390         * lib/glthread/tls.h: Renamed from lib/tls.h.
92391         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92392         * lib/fstrcmp.c: Update includes.
92393         * lib/strsignal.c: Update includes.
92394         * modules/lock (Files, Makefile.am): Update.
92395         (Include): Change to "glthread/lock.h".
92396         * modules/tls (Files, Makefile.am): Update.
92397         (Include): Change to "glthread/tls.h".
92398         * tests/test-lock.c: Update includes.
92399         * tests/test-tls.c: Update includes.
92400         * NEWS: Mention the renamed header files.
92402 2008-08-11  Jim Meyering  <meyering@redhat.com>
92404         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92406 2008-08-11  Eric Blake  <ebb9@byu.net>
92408         test-c-stack: avoid C99-ism
92409         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92410         before statement.
92411         Reported by Alain Guibert.
92413 2008-08-10  Jim Meyering  <meyering@redhat.com>
92415         ensure that return value of uinttostr et al are not ignored
92416         * lib/inttostr.h (__GNUC_PREREQ): Define.
92417         (__attribute_warn_unused_result__): Define.
92418         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92420 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92422         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92423         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92425 2008-08-07  Jim Meyering  <meyering@redhat.com>
92427         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92429         * modules/mkstemp (License): Relicense under LGPLv2+.
92430         * modules/tempname (License): Likewise.
92432 2008-08-06  Bruno Haible  <bruno@clisp.org>
92434         * lib/poll.c (poll): Further micro-optimization.
92436 2008-08-06  Jim Meyering  <meyering@redhat.com>
92438         inet_pton.c: use locale-independent tolower
92439         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92440         (inet_pton6): Use c_tolower rather than tolower.
92441         * modules/inet_pton (Depends-on): Add c-ctype.
92443 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92445         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92446         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92448 2008-08-06  Jim Meyering  <meyering@redhat.com>
92450         * modules/inet_pton (License): Relicense under LGPLv2+.
92452 2008-08-03  Bruno Haible  <bruno@clisp.org>
92454         Additional non-aborting API for lock and tls.
92455         * lib/lock.h: Include <errno.h>.
92456         (glthread_lock_init): New macro/function.
92457         (gl_lock_init): Define as wrapper around glthread_lock_init.
92458         (glthread_lock_lock): New macro/function.
92459         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
92460         (glthread_lock_unlock): New macro/function.
92461         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
92462         (glthread_lock_destroy): New macro/function.
92463         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
92464         (glthread_rwlock_init): New macro/function.
92465         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
92466         (glthread_rwlock_rdlock): New macro/function.
92467         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
92468         (glthread_rwlock_wrlock): New macro/function.
92469         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
92470         (glthread_rwlock_unlock): New macro/function.
92471         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
92472         (glthread_rwlock_destroy): New macro/function.
92473         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
92474         (glthread_recursive_lock_init): New macro/function.
92475         (gl_recursive_lock_init): Define as wrapper around
92476         glthread_recursive_lock_init.
92477         (glthread_recursive_lock_lock): New macro/function.
92478         (gl_recursive_lock_lock): Define as wrapper around
92479         glthread_recursive_lock_lock.
92480         (glthread_recursive_lock_unlock): New macro/function.
92481         (gl_recursive_lock_unlock): Define as wrapper around
92482         glthread_recursive_lock_unlock.
92483         (glthread_recursive_lock_destroy): New macro/function.
92484         (gl_recursive_lock_destroy): Define as wrapper around
92485         glthread_recursive_lock_destroy.
92486         (glthread_once): New macro/function.
92487         (gl_once): Define as wrapper around glthread_once.
92488         Update function declarations.
92489         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
92490         glthread_rwlock_init. Return error code.
92491         (glthread_rwlock_rdlock_multithreaded): Renamed from
92492         glthread_rwlock_rdlock. Return error code.
92493         (glthread_rwlock_wrlock_multithreaded): Renamed from
92494         glthread_rwlock_wrlock. Return error code.
92495         (glthread_rwlock_unlock_multithreaded): Renamed from
92496         glthread_rwlock_unlock. Return error code.
92497         (glthread_rwlock_destroy_multithreaded): Renamed from
92498         glthread_rwlock_destroy. Return error code.
92499         (glthread_recursive_lock_init_multithreaded): Renamed from
92500         glthread_recursive_lock_init. Return error code.
92501         (glthread_recursive_lock_lock_multithreaded): Renamed from
92502         glthread_recursive_lock_lock. Return error code.
92503         (glthread_recursive_lock_unlock_multithreaded): Renamed from
92504         glthread_recursive_lock_unlock. Return error code.
92505         (glthread_recursive_lock_destroy_multithreaded): Renamed from
92506         glthread_recursive_lock_destroy. Return error code.
92507         (glthread_once_call): Make static.
92508         (glthread_once_multithreaded): Renamed from glthread_once.
92509         * lib/tls.h: Include <errno.h>.
92510         (glthread_tls_key_init): New macro/function.
92511         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
92512         (glthread_tls_set): New macro/function.
92513         (gl_tls_set): Define as wrapper around glthread_tls_set.
92514         (glthread_tls_key_destroy): New macro/function.
92515         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
92516         Update function declarations.
92517         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
92518         glthread_tls_get.
92519         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
92521 2008-08-04  Eric Blake  <ebb9@byu.net>
92523         gnumakefile: use space, not TAB, outside of targets
92524         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
92526 2008-08-02  Jim Meyering  <meyering@redhat.com>
92528         getdate.y: avoid locale-dependent date parsing failure
92529         In Turkish locales, getdate would fail to recognize keywords
92530         containing a lowercase "i".  The solution is not to rely on
92531         locale-sensitive case-conversion.
92532         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
92533         (lookup_word): Use c_toupper in place of toupper.
92534         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
92535         Reported by Vefa Bicakci <bicave@superonline.com> in
92536         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
92537         * modules/getdate (Depends-on): Add c-ctype.
92539 2008-08-02  Bruno Haible  <bruno@clisp.org>
92541         * gnulib-tool (func_import): When updating or creating a .gitignore
92542         file, prepend each added line with a slash, and ignore leading slashes
92543         from the existing lines.
92544         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92546 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92548         Portability fix for GNU make 3.79.1.
92549         * top/GNUmakefile: Avoid 'else COND', which older GNU make
92550         versions do not understand.
92552 2008-08-01  Bruno Haible  <bruno@clisp.org>
92554         Work around bug of HP-UX 10.20 cc with -0.0 literal.
92555         * tests/test-isnanf.h (zero): New variable.
92556         (main): Avoid literal -0.0f.
92557         * tests/test-isnand.h (zero): New variable.
92558         (main): Avoid literal -0.0.
92559         * tests/test-isnanl.h (zero): New variable.
92560         (main): Avoid literal -0.0L.
92561         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
92562         (test_float, test_double, test_long_double): Avoid literals -0.0f,
92563         -0.0, -0.0L.
92564         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
92565         (test_signbitd): Avoid literal -0.0.
92566         (test_signbitl): Avoid literal -0.0L.
92567         * tests/test-ceilf1.c (zero): New variable.
92568         (main): Avoid literal -0.0f.
92569         * tests/test-ceill.c (zero): New variable.
92570         (main): Avoid literal -0.0L.
92571         * tests/test-floorf1.c (zero): New variable.
92572         (main): Avoid literal -0.0f.
92573         * tests/test-floorl.c (zero): New variable.
92574         (main): Avoid literal -0.0L.
92575         * tests/test-roundf1.c (zero): New variable.
92576         (main): Avoid literal -0.0f.
92577         * tests/test-round1.c (zero): New variable.
92578         (main): Avoid literal -0.0.
92579         * tests/test-roundl.c (zero): New variable.
92580         (main): Avoid literal -0.0L.
92581         * tests/test-truncf1.c (zero): New variable.
92582         (main): Avoid literal -0.0f.
92583         * tests/test-trunc1.c (zero): New variable.
92584         (main): Avoid literal -0.0.
92585         * tests/test-truncl.c (zero): New variable.
92586         (main): Avoid literal -0.0L.
92587         * tests/test-frexp.c (zero): New variable.
92588         (main): Avoid literal -0.0.
92589         * tests/test-frexpl.c (zero): New variable.
92590         (main): Avoid literal -0.0L.
92591         * tests/test-ldexpl.c (zero): New variable.
92592         (main): Avoid literal -0.0L.
92593         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92594         (zerod, zerol): New variables.
92595         (test_function): Avoid literals -0.0, -0.0L.
92596         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92597         (zerod, zerol): New variables.
92598         (test_function): Avoid literals -0.0, -0.0L.
92599         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92600         (zerod, zerol): New variables.
92601         (test_function): Avoid literals -0.0, -0.0L.
92602         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92603         (zerod, zerol): New variables.
92604         (test_function): Avoid literals -0.0, -0.0L.
92605         * tests/test-strtod.c (zero): New variable.
92606         (main): Avoid literal -0.0.
92607         Reported by Jonathan C. Patschke <jp@centtech.com>.
92609 2008-07-31  Jim Meyering  <meyering@redhat.com>
92611         sha256.h: correct definition of SHA224_DIGEST_SIZE
92612         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
92613         Reported by Paulie Pena IV <paulie4@gmail.com>.
92614         Define as 224 / 8, rather than as a literal.
92615         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
92616         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
92617         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
92619 2008-07-31  Bruno Haible  <bruno@clisp.org>
92621         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
92622         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
92623         Reported by Jonathan Patschke <jp@centtech.com>.
92625 2008-07-31  Bruno Haible  <bruno@clisp.org>
92627         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
92628         Reported by Paolo Bonzini <bonzini@gnu.org>.
92630 2008-07-30  Eric Blake  <ebb9@byu.net>
92632         test-strtod: allow compilation without -lm
92633         * tests/test-strtod.c (main): Avoid link dependence on fabs.
92634         Reported by Dennis Clarke <blastwave@gmail.com>.
92636 2008-07-28  Jim Meyering  <meyering@redhat.com>
92638         bootstrap: work also when there are no .po files in po/
92639         * build-aux/bootstrap (update_po_files): Complete the change
92640         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
92642 2008-07-27  Jim Meyering  <meyering@redhat.com>
92644         * users.txt: Add zile.
92646 2008-07-26  Ben Pfaff  <blp@gnu.org>
92648         Add missing dependencies on new m4/exponent[fdl].m4 files.
92649         * modules/isnanf-nolibm: Add m4/exponentf.m4.
92650         * modules/isnand-nolibm: Add m4/exponentd.m4.
92651         * modules/isnanl-nolibm: Add m4/exponentl.m4.
92652         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
92653         m4/isnan[fdl].m4, because the macros actually used moved.
92654         Reported by Jim Meyering.
92656 2008-07-14  Ben Pfaff  <blp@gnu.org>
92658         Add isinf module.
92659         * lib/isinf.c: New file.
92660         * lib/math.in.h: Define isinf macro if we have decided to replace
92661         it.
92662         * m4/isinf.m4: New file.
92663         * m4/math_h.m4: Initialize and substitute variables for isinf
92664         module.
92665         * modules/isinf: New file.
92666         * modules/isinf-tests: New file.
92667         * modules/math: Add substitutions for new module.
92668         * tests/test-isinf.c: New file.
92669         * doc/posix-functions/isinf.texi: Mention new module.
92670         * MODULES.html.sh: Mention new module.
92672 2008-07-14  Ben Pfaff  <blp@gnu.org>
92674         Factor out some macros for use by additional modules.
92675         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92676         exponentf.m4.
92677         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92678         exponentd.m4.
92679         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92680         file exponentl.m4.
92681         * m4/exponentf.m4: New file.
92682         * m4/exponentd.m4: New file.
92683         * m4/exponentl.m4: New file.
92684         * modules/isnanf: Use new file m4/exponentf.m4.
92685         * modules/isnand: Use new file m4/exponentd.m4.
92686         * modules/isnanl: Use new file m4/exponentl.m4.
92688 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92690         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92691         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92692         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92693         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92695         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92696         readlink on platforms without PATH_MAX.
92698 2008-07-21  Eric Blake  <ebb9@byu.net>
92700         Warn, not fail, on stale version.
92701         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92703         Don't allow installation with stale devel version number.
92704         * top/GNUmakefile (_is-install-target): New macro.
92705         (_curr-ver): Forbid installation with stale version number.
92707 2008-07-20  Bruno Haible  <bruno@clisp.org>
92709         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92710         TESTS_ENVIRONMENT.
92711         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92713 2008-07-20  Bruno Haible  <bruno@clisp.org>
92715         * lib/c-stack.h (c_stack_action): Add documentation.
92716         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92718 2008-07-20  Bruno Haible  <bruno@clisp.org>
92720         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92721         * modules/readlink (License): Likewise.
92723 2008-07-17  Eric Blake  <ebb9@byu.net>
92725         * modules/c-stack (Link): Fix typo.
92727         Make c-stack use libsigsegv, when available.
92728         * modules/c-stack (Depends-on): Add libsigsegv.
92729         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92730         needed.
92731         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92732         (segv_handler, overflow_handler, c_stack_action)
92733         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92734         implementation when libsigsegv is available, but only when using
92735         the library is necessary.
92736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92737         comment, explaining why XSI check fails on Linux.
92738         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92739         * tests/test-c-stack2.sh: Tweak skip message.
92740         * NEWS: Document new link-time requirements.
92742 2008-07-16  Eric Blake  <ebb9@byu.net>
92744         c-stack: Expose false positives when not using libsigsegv.
92745         * modules/c-stack-tests (Files): Expand test.
92746         * tests/test-c-stack.c (main): Add means to conditionally trigger
92747         non-overflow SIGSEGV.
92748         * tests/test-c-stack2.sh: New file.
92750 2008-07-14  Bruno Haible  <bruno@clisp.org>
92752         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92753         Reported by Eric Blake.
92755 2008-07-14  Sam Steingold  <sds@gnu.org>
92756             Bruno Haible  <bruno@clisp.org>
92758         New module libsigsegv.
92759         * modules/libsigsegv: New file.
92760         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92761         modifications.
92762         * MODULES.html.sh (Signal handling): New section.
92764 2008-07-14  Bruno Haible  <bruno@clisp.org>
92766         * modules/unictype/ctype-* (Description): Add the word "function".
92767         Improves the resulting doc in MODULES.html.
92769 2008-07-12  Ben Pfaff  <blp@gnu.org>
92771         Add longlong module.
92772         * modules/longlong: New file.
92774 2008-07-12  Bruno Haible  <bruno@clisp.org>
92776         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92777         to empty.
92779 2008-07-10  Ben Pfaff  <blp@gnu.org>
92781         Add isnan module.
92782         * doc/posix-functions/isnan.texi: Mention new module.
92783         * lib/math.in.h: Define isnan macro if we have decided to replace
92784         it.
92785         * m4/isnan.m4: New file.
92786         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92787         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92788         also.
92789         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92790         redundancy.
92791         * m4/math_h.m4: Initialize and substitute variables for isnan
92792         module.
92793         * modules/isnan: New file.
92794         * modules/isnan-tests: New file.
92795         * modules/math: Add substitutions for new module.
92796         * tests/test-isnan.c: New file.
92797         * MODULES.html.sh: Mention new module.
92799 2008-07-10  Ben Pfaff  <blp@gnu.org>
92801         Add isnanf module.
92802         * lib/isnanf.m4: New file.
92803         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92804         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92805         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92806         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92807         * modules/isnanf: New file.
92808         * modules/isnanf-tests: New file.
92809         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92810         files.
92811         * tests/test-isnanf-nolibm.c: factored most of its contents into
92812         new file tests/test-isnanf.h.
92813         * tests/test-isnanf.h: New file.
92814         * tests/test-isnanf.c: New file.
92815         * MODULES.html.sh: Mention new module.
92816         * doc/glibc-functions/isnanf.texi: Mention new module.
92818 2008-07-10  Ben Pfaff  <blp@gnu.org>
92820         Add isnand module.
92821         * lib/isnand.h: New file.
92822         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92823         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92824         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92825         functionality also.
92826         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92827         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92828         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92829         * modules/isnand: New file.
92830         * modules/isnand-tests: New file.
92831         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92832         files.
92833         * tests/test-isnand-nolibm.c: factored most of its contents into
92834         new file tests/test-isnand.h.
92835         * tests/test-isnand.h: New file.
92836         * tests/test-isnand.c: New file.
92837         * MODULES.html.sh: Mention new module.
92839 2008-07-10  Ben Pfaff  <blp@gnu.org>
92841         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92842         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92843         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92844         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92845         * modules/isnanf-nolibm: Update references to renamed files.
92846         * modules/isnand-nolibm: Likewise.
92847         * modules/isnanf-nolibm-tests: Likewise.
92848         * modules/isnand-nolibm-tests: Likewise.
92849         * lib/frexp.c: Likewise.
92850         * lib/isfinite.c: Likewise.
92851         * lib/signbitd.c: Likewise.
92852         * lib/signbitf.c: Likewise.
92853         * lib/vasnprintf.c: Likewise.
92854         * tests/test-ceilf1.c: Likewise.
92855         * tests/test-ceilf2.c: Likewise.
92856         * tests/test-floorf1.c: Likewise.
92857         * tests/test-floorf2.c: Likewise.
92858         * tests/test-frexp.c: Likewise.
92859         * tests/test-round1.c: Likewise.
92860         * tests/test-round2.c: Likewise.
92861         * tests/test-roundf1.c: Likewise.
92862         * tests/test-strtod.c: Likewise.
92863         * tests/test-trunc1.c: Likewise.
92864         * tests/test-trunc2.c: Likewise.
92865         * tests/test-truncf1.c: Likewise.
92866         * tests/test-truncf2.c: Likewise.
92867         * NEWS: Mention the renamed header files.
92869 2008-07-11  Jim Meyering  <meyering@redhat.com>
92871         vc-list-files: make the last-resort awk code more portable
92872         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92873         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92874         does not support it.
92876 2008-07-10  Eric Blake  <ebb9@byu.net>
92878         Work with tar's bootstrap.
92879         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92880         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92881         an m4 comment.
92883 2008-07-09  Jim Meyering  <meyering@redhat.com>
92885         posix-shell.m4: fix typo that made this test malfunction
92886         * m4/posix-shell.m4: Remove capitalization in variable name.
92888 2008-07-08  Bruno Haible  <bruno@clisp.org>
92890         * m4/onceonly.m4: Update comments.
92891         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92893 2008-07-04  Jim Meyering  <meyering@redhat.com>
92895         * users.txt: Add vc-dwim.
92896         (bison, coreutils): Use the gitweb URL.
92898 2008-07-03  Jim Meyering  <meyering@redhat.com>
92900         * users.txt: Add libffcall.  From Sam Steingold.
92902 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92904         getdate.y: do not ignore TZ with relative day, month or year offset
92905         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92906         relative-date-handling, since otherwise, the latter would clobber the
92907         sole output (an updated Start value) of the tz-handling block.
92908         * tests/test-getdate.c: Tests for the fix
92910 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92912         Recognize 'foo_LIBRARIES += libgnu.a'.
92913         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92914         makefile snippet has already specified an installation location,
92915         also using '+='.
92917 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92919         getdate.y: factor out common actions
92920         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92921         Use them in place of open-coded actions.
92923 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92925         Add self-test for getdate module.
92926         * modules/getdate-tests: New file.
92927         * tests/test-getdate.c: New file.
92929 2008-06-29  Bruno Haible  <bruno@clisp.org>
92931         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92932         .gitignore.
92933         Reported by Sylvain Beucler <beuc@beuc.net>.
92935 2008-06-29  Bruno Haible  <bruno@clisp.org>
92937         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92938         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92940 2008-06-29  Bruno Haible  <bruno@clisp.org>
92942         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92943         EXTRA_DIST.
92944         Reported by Sylvain Beucler <beuc@beuc.net>.
92946 2008-06-26  Jim Meyering  <meyering@redhat.com>
92948         make several modules depend on the "open" module
92949         This provides slightly increased consistency when opening-for-write
92950         the name of a non-directory spelled with a trailing slash.
92951         * modules/chdir-safer: Likewise.
92952         * modules/chown: Likewise.
92953         * modules/clean-temp: Likewise.
92954         * modules/copy-file: Likewise.
92955         * modules/fchdir: Likewise.
92956         * modules/fcntl-safer: Likewise.
92957         * modules/pipe: Likewise.
92958         * modules/utime: Likewise.
92959         Prompted by Eric Blake and Bruno Haible.
92961 2008-06-24  Andreas Schwab  <schwab@suse.de>
92963         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92964         literals can be used as initializers for global variables.
92966 2008-06-23  Eric Blake  <ebb9@byu.net>
92968         Make gnulib-cache.m4 easier to diff.
92969         * gnulib-tool (func_import): Allow newlines when reading cached
92970         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92972 2008-06-23  Bruno Haible  <bruno@clisp.org>
92974         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92975         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92976         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92977         m4/signalblocking.m4.
92978         (gl_PREREQ_SIGACTION): Don't invoke it.
92979         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92980         gl_PREREQ_SIG_HANDLER_H.
92981         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92982         Don't check for sigaction here.
92984 2008-06-23  Bruno Haible  <bruno@clisp.org>
92986         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92987         (install_handlers): Don't set the SA_RESETHAND flag.
92989 2008-06-23  Bruno Haible  <bruno@clisp.org>
92991         * m4/sigaction.m4: Comment fixes.
92992         * lib/signal.in.h: Likewise.
92994 2008-06-23  Eric Blake  <ebb9@byu.net>
92996         Fix typo.
92997         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92999         Avoid SA_ namespace.
93000         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
93001         Reported by Ralf Wildenhues.
93003         Avoid test failure due to SA_RESTORER.
93004         * tests/test-sigaction.c (SA_MASK): New macro.
93005         (main): Avoid failing due to extension flags being set.
93006         Reported by Jim Meyering.
93008         Revert use of sig-handler.h in sigprocmask.c.
93009         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
93010         it requires the existence of struct sigaction.
93011         * lib/sigprocmask.c (handler_t): Restore typedef.
93012         (rpl_signal, old_handlers): Use local type.
93014 2008-06-22  Bruno Haible  <bruno@clisp.org>
93016         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
93017         conditionally.
93018         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93020 2008-06-22  Bruno Haible  <bruno@clisp.org>
93022         * doc/posix-functions/siginterrupt.texi: Move note.
93024         * lib/signal.in.h (SA_RESTART): New macro.
93025         * lib/sigaction.c: Update comment.
93027         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
93029         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
93030         (gl_PREREQ_SIGPROCMASK): Invoke it.
93031         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
93033         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
93035         * lib/sigprocmask.c: Update a comment.
93037 2008-06-21  Eric Blake  <ebb9@byu.net>
93039         Use sigaction module rather than signal().
93040         * modules/c-stack (Depends-on): Add sigaction.
93041         * modules/fatal-signal (Depends-on): Likewise.
93042         * modules/nanosleep (Depends-on): Likewise.
93043         * modules/sigprocmask (Files): Add sig-handler.h.
93044         * modules/sigaction (Files): Likewise.
93045         * lib/sig-handler.h (get_handler): New file, suggested by Paul
93046         Eggert.
93047         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
93048         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
93049         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
93050         (init_fatal_signals): Likewise.
93051         * lib/nanosleep.c (rpl_nanosleep): Likewise.
93052         (siginterrupt): Delete fallback.
93053         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
93054         instead.
93055         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
93056         siginterrupt.
93058         New module sigaction, for mingw.
93059         * modules/sigaction: New module...
93060         * modules/sigaction-tests: ...and its test.
93061         * m4/sigaction.m4: New file.
93062         * lib/sigaction.c: Likewise.
93063         * tests/test-sigaction.c: Likewise.
93064         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
93065         * modules/signal (Makefile.am): Likewise.
93066         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
93067         needed.
93068         * doc/posix-headers/signal.texi (signal.h): Mention provided
93069         types.
93070         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
93071         that sigaction is preferable.
93072         * doc/posix-functions/sigaction.texi (sigaction): Mention new
93073         module.
93074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93075         sigaction.
93077         Improve robustness of sigprocmask by overriding signal.
93078         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
93079         is in use.
93080         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
93081         (SIGKILL, SIGSTOP): Provide fallbacks.
93082         (rpl_signal): Implement.
93083         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
93084         signal can be called inside handlers.
93086         Fix nanosleep module on mingw.
93087         * modules/nanosleep (Depends-on): Add sys_select.
93088         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
93090         Fix licensing of sigprocmask.
93091         * modules/raise (License): Relicense as LGPL.
93093 2008-06-21  Bruno Haible  <bruno@clisp.org>
93095         * lib/propername.c (proper_name_utf8): Don't use the transliterated
93096         result if it contains question marks.
93097         Reported by Michael Geng <linux@michaelgeng.de>.
93099 2008-06-19  Bruno Haible  <bruno@clisp.org>
93101         Fix CVS-ism.
93102         * doc/gnulib.texi: Include updated-stamp.texi.
93103         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
93104         (updated-stamp.texi): New rule.
93105         (gnulib.info): Depend on it.
93106         * doc/.gitignore: Add updated-stamp.texi.
93107         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
93109 2008-06-19  Bruno Haible  <bruno@clisp.org>
93111         * doc/Makefile (gnulib.info): Update and simplify dependencies.
93112         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93114 2008-06-19  Eric Blake  <ebb9@byu.net>
93116         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
93117         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
93118         Reported by Stepan Kasal.
93120 2008-06-18  Bruno Haible  <bruno@clisp.org>
93122         * lib/fatal-signal.c (init_fatal_signals): Add comment.
93123         Reported by Eric Blake.
93125 2008-06-18  Eric Blake  <ebb9@byu.net>
93127         Work around cygwin 1.5.25 strsignal bug.
93128         * tests/test-strsignal.c: Allow for const char *.
93129         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
93131 2008-06-18  Simon Josefsson  <simon@josefsson.org>
93133         * users.txt: Update URL to article and add author/date
93134         information.
93136 2008-06-17  Bruno Haible  <bruno@clisp.org>
93138         New macro gl_DISABLE_THREADS.
93139         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
93140         if the user did not pass --enable-threads or --disable-threads option.
93141         (gl_DISABLE_THREADS): New macro.
93142         Reported by Eric Blake <ebb9@byu.net>.
93144 2008-06-17  Bruno Haible  <bruno@clisp.org>
93146         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
93147         when the macro ignores it.
93148         Based on a patch by Eric Blake <ebb9@byu.net>.
93150 2008-06-17  Bruno Haible  <bruno@clisp.org>
93152         * modules/tls (License): Change to LGPLv2+.
93153         Reported by Eric Blake.
93155 2008-06-17  Eric Blake  <ebb9@byu.net>
93157         Simplify c-stack prerequisites.
93158         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
93159         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
93160         no longer requires <ucontext.h> to exist.  Optimize setrlimit
93161         check.
93162         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
93163         <sys/resource.h>.
93165         Move c-stack test into testsuite.
93166         * modules/c-stack-tests: New file.
93167         * lib/c-stack.c [DEBUG]: Move test program...
93168         * tests/test-c-stack.c: ...into this new file.  Skip rather than
93169         fail test if sigaltstack is lacking.
93170         * tests/test-c-stack.sh: New driver file.
93172 2008-06-16  Eric Blake  <ebb9@byu.net>
93174         Use raise module consistently.
93175         * modules/fatal-signal (Depends-on): Add raise.
93176         * modules/sigprocmask (Depends-on): Likewise.
93177         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
93178         * lib/sigprocmask.c (sigprocmask): Likewise.
93179         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93180         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
93182         Fix compliance bug in sigpending.
93183         * lib/sigprocmask.c (sigpending): Return pending array via
93184         parameter, not return value.
93186 2008-06-14  Eric Blake  <ebb9@byu.net>
93188         Improve obstack-printf test code.
93189         * tests/test-obstack-printf.c (test_function): Fix comment, and
93190         simplify usage of obstack_* in macros.  Add a test for coverage.
93191         Reported by Bruno Haible.
93193 2008-06-14  Bruno Haible  <bruno@clisp.org>
93195         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
93196         array size as a constant, not as a const variable.
93197         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
93198         AC_USE_SYSTEM_EXTENSIONS.
93199         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
93200         Test whether the obstack_printf function actually exists.
93201         * modules/obstack-printf (Depends-on): Add extensions.
93202         (Include): Remove obstack.h.
93203         * modules/obstack-printf-posix (Depends-on): Add extensions.
93204         (Include): Remove obstack.h.
93206 2008-06-13  Eric Blake  <ebb9@byu.net>
93208         Add obstack-printf and obstack-printf-posix modules.
93209         * modules/obstack-printf: New file.
93210         * modules/obstack-printf-posix: Likewise.
93211         * MODULES.html.sh (Misc): Mention them.
93212         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
93213         Likewise.
93214         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
93215         Likewise.
93216         * modules/stdio (Makefile.am): Accomodate new modules.
93217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93218         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
93219         Declare.
93220         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
93221         functions.
93222         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
93223         (gl_REPLACE_OBSTACK_PRINTF): New macros
93224         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
93225         * tests/test-obstack-printf.c: New file.
93226         * modules/obstack-printf-tests: Likewise.
93227         * modules/obstack-printf-posix-tests: Likewise.
93229 2008-06-11  Bruno Haible  <bruno@clisp.org>
93231         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
93232         * lib/open.c: Include errno.h.
93233         (open): Fail when attempting to write to a file that has a trailing
93234         slash.
93235         * tests/test-open.c (main): Test against trailing slash bug.
93236         * doc/posix-functions/open.texi: Mention the trailing slash bug.
93238 2008-06-10  Bruno Haible  <bruno@clisp.org>
93240         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
93241         for $? to work inside the trap command, with various /bin/sh-s.
93242         * tests/test-vc-list-files-cvs.sh: Likewise.
93244 2008-06-10  Bruno Haible  <bruno@clisp.org>
93246         * lib/acl-internal.h: Don't include gettext.h here.
93247         * lib/set-mode-acl.c: Include gettext.h here.
93248         * lib/copy-acl.c: Likewise.
93250 2008-06-10  Bruno Haible  <bruno@clisp.org>
93252         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
93253         * lib/wait-process.c (wait_subprocess): Likewise.
93254         * lib/execute.h (execute): Add termsigp argument.
93255         * lib/execute.c (execute): Likewise.
93256         * lib/csharpcomp.c (compile_csharp_using_pnet,
93257         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
93258         * lib/csharpexec.c (execute_csharp_using_pnet,
93259         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
93260         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
93261         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
93262         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
93263         is_jikes_present): Update.
93264         * lib/javaexec.c (execute_java_class): Update.
93265         * lib/javaversion.c (execute_and_read_line): Update.
93266         * NEWS: Document the changes.
93267         Reported by Eric Blake.
93269 2008-06-10  Eric Blake  <ebb9@byu.net>
93271         Add missing include.
93272         * tests/test-strstr.c (includes): Add <signal.h>.
93273         * tests/test-strcasestr.c (includes): Likewise.
93274         * tests/test-memmem.c (includes): Likewise.
93276 2008-06-10  Bruno Haible  <bruno@clisp.org>
93278         * lib/wait-process.c (wait_subprocess): Add an assertion.
93280 2008-06-10  Bruno Haible  <bruno@clisp.org>
93282         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
93284 2008-06-10  Bruno Haible  <bruno@clisp.org>
93286         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
93287         using alarm().
93288         * tests/test-strcasestr.c (main): Likewise.
93289         * tests/test-strstr.c (main): Likewise.
93291 2008-06-09  Bruno Haible  <bruno@clisp.org>
93293         Work around the Solaris 10 ACE ACLs ABI change.
93294         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
93295         declare if ACL_NO_TRIVIAL is present.
93296         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
93297         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93298         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
93299         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
93300         define if ACL_NO_TRIVIAL is present.
93301         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
93302         and use the current ABI.
93303         (file_has_acl): Use same #if condition as elsewhere.
93304         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
93305         in use, and use the current ABI.
93306         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
93307         Reported by Jim Meyering.
93309 2008-06-09  Eric Blake  <ebb9@byu.net>
93311         Work around environments that (stupidly) ignore SIGALRM.
93312         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
93313         before using alarm().
93314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93315         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93316         Reported by Ian Beckwith <ianb@erislabs.net>.
93318         Produce autobuild blurb earlier in log.
93319         * modules/autobuild (configure.ac-early): Move AB_INIT here.
93321 2008-06-09  Jim Meyering  <meyering@redhat.com>
93322         and Ondřej Vašík  <ovasik@redhat.com>
93324         utimens.c: correct kernel bug work-around
93325         Ondřej Vašík found that the invalid return value of 280 indicates
93326         failure, not success, and the kernel bug we're trying to work
93327         around affects not just the utimensat call, but also the fallback
93328         futimens call.
93329         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
93330         not success.
93331         [HAVE_FUTIMENS]: Use the same work-around, here.
93333 2008-06-09  Jim Meyering  <meyering@redhat.com>
93335         add more guards around definition of ACE_-related code
93336         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
93337         ALLOW and ACE_OWNER are also defined.
93339 2008-06-08  Bruno Haible  <bruno@clisp.org>
93341         * lib/acl-internal.h: Add me as co-author.
93342         * lib/file-has-acl.c: Likewise.
93343         * lib/set-mode-acl.c: Likewise.
93344         * lib/copy-acl.c: Likewise.
93346 2008-06-08  Bruno Haible  <bruno@clisp.org>
93348         Add support for AIX ACLs.
93349         * lib/acl-internal.h (acl_nontrivial): New declaration.
93350         * lib/file-has-acl.c (acl_nontrivial): New function.
93351         (file_has_acl): Add implementation using AIX 4 ACL API.
93352         * lib/set-mode-acl.c (qset_acl): Likewise.
93353         * lib/copy-acl.c (qcopy_acl): Likewise.
93355 2008-06-08  Bruno Haible  <bruno@clisp.org>
93357         Add support for HP-UX ACLs.
93358         * lib/acl-internal.h (acl_nontrivial): New declaration.
93359         * lib/file-has-acl.c (acl_nontrivial): New function.
93360         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93361         * lib/set-mode-acl.c (qset_acl): Likewise.
93362         * lib/copy-acl.c (qcopy_acl): Likewise.
93364 2008-06-08  Bruno Haible  <bruno@clisp.org>
93366         Add support for Cygwin ACLs.
93367         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93368         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93369         the chmod_or_fchmod call.
93370         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93372 2008-06-08  Bruno Haible  <bruno@clisp.org>
93374         Fix bug with setuid modes in Solaris 10+ code.
93375         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93376         succeeded, when the mode contains some special bits.
93378 2008-06-08  Bruno Haible  <bruno@clisp.org>
93380         Add support for Solaris 7..10 ACLs.
93381         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93382         declarations.
93383         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93384         functions.
93385         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93386         * lib/set-mode-acl.c (qset_acl): Likewise.
93387         * lib/copy-acl.c (qcopy_acl): Likewise.
93389 2008-06-08  Bruno Haible  <bruno@clisp.org>
93391         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93392         declaration.
93393         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93394         (acl_access_nontrivial): Remove MacOS X case.
93395         (file_has_acl): Use acl_extended_nontrivial.
93396         * lib/copy-acl.c (qcopy_acl): Likewise.
93398 2008-06-08  Bruno Haible  <bruno@clisp.org>
93400         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93402 2008-06-08  Jim Meyering  <meyering@redhat.com>
93404         * modules/acl (Maintainer): Add Bruno Haible.
93406 2008-06-07  Bruno Haible  <bruno@clisp.org>
93408         Improve support for Tru64 ACLs.
93409         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93410         ACL on OSF/1.
93412 2008-06-07  Bruno Haible  <bruno@clisp.org>
93414         Add support for MacOS X ACLs.
93415         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93416         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93417         * lib/set-mode-acl.c (qset_acl): Likewise.
93418         * lib/copy-acl.c (qcopy_acl): Likewise.
93420 2008-06-07  Bruno Haible  <bruno@clisp.org>
93422         Fix memory leak introduced on 2008-05-22.
93423         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93424         use.
93426 2008-06-07  Bruno Haible  <bruno@clisp.org>
93428         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93429         to construct an empty ACL.
93431 2008-06-07  Bruno Haible  <bruno@clisp.org>
93433         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93434         precisely.
93435         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93437 2008-06-07  Bruno Haible  <bruno@clisp.org>
93439         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93440         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93442 2008-06-07  Bruno Haible  <bruno@clisp.org>
93444         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93445         regardless of POSIX.
93446         * doc/posix-functions/_longjmp.texi: Likewise.
93447         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93448         SystemV platform in this case.
93450 2008-06-06  Eric Blake  <ebb9@byu.net>
93452         Document abort() bugs.
93453         * doc/posix-functions/abort.texi (abort): Mention anomalies.
93455         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
93456         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
93457         sigsetjmp.
93458         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
93459         siglongjmp, but only as a macro.
93460         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
93461         is obsolete.
93462         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
93464         Tweak documentation to cover cygwin argz bugs.
93465         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
93466         argz bug fix; no code change needed since no cygwin releases
93467         occurred between the last fix and the bug being tested.
93468         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
93469         module and recently fixed cygwin bugs.
93470         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
93471         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
93472         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
93473         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
93474         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
93475         Likewise.
93476         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
93477         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
93478         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
93479         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
93480         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
93481         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
93482         Likewise.
93484         Avoid gcc warning on cygwin.
93485         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
93486         !ACL_NO_TRIVIAL]: Avoid unused variable.
93488 2008-06-05  Eric Blake  <ebb9@byu.net>
93490         Be tolerant of UNKNOWN version in gnulib-tool test dir.
93491         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
93492         git-version-gen fails to come up with a version.
93493         Reported by Simon Josefsson.
93495 2008-06-05  Jim Meyering  <meyering@redhat.com>
93496             Paul Eggert  <eggert@cs.ucla.edu>
93498         utimens.c: work around a probable Linux kernel bug
93499         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
93500         appears to be a kernel bug that causes utimensat to return 280
93501         instead of 0, indicating success.
93503 2008-06-04  Bruno Haible  <bruno@clisp.org>
93505         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
93506         2008-06-01 commit.
93508 2008-06-04  Bruno Haible  <bruno@clisp.org>
93510         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
93511         * lib/file-has-acl.c (acl_access_nontrivial): New function.
93512         (file_has_acl): Use it. Save errno afterwards.
93513         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
93515 2008-06-03  Bruno Haible  <bruno@clisp.org>
93517         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
93518         draft code. Simplify #ifs.
93519         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
93520         Put Solaris code after POSIX-draft code. Fix comments regarding
93521         Solaris 10, HP-UX. Mention Cygwin.
93522         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
93524 2008-06-03  Eric Blake  <ebb9@byu.net>
93526         Provide fallback for older kernels.
93527         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
93528         Provide runtime fallback if kernel lacks support.
93529         Reported by Mike Frysinger.
93531 2008-06-02  Bruno Haible  <bruno@clisp.org>
93533         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
93534         it exists.
93536 2008-06-02  Bruno Haible  <bruno@clisp.org>
93538         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
93539         * lib/copy-acl.c (qcopy_acl): Update comment.
93541 2008-06-02  Bruno Haible  <bruno@clisp.org>
93543         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
93544         like ACL APIs.
93546 2008-06-02  Bruno Haible  <bruno@clisp.org>
93548         * tests/test-file-has-acl.sh: Use different code for Cygwin.
93549         * tests/test-set-mode-acl.sh: Likewise.
93550         * tests/test-copy-acl.sh: Likewise.
93551         * tests/test-copy-file.sh: Likewise.
93553 2008-06-02  Bruno Haible  <bruno@clisp.org>
93555         * tests/test-file-has-acl.sh: Remove unused code.
93557 2008-06-01  Bruno Haible  <bruno@clisp.org>
93559         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
93560         (copy_acl): Just a wrapper around qcopy_acl that emits the error
93561         messages.
93562         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
93564 2008-06-01  Bruno Haible  <bruno@clisp.org>
93566         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
93567         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
93568         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
93569         APIs.
93570         * modules/acl-tests (configure.ac): Remove tests now contained in
93571         m4/acl.m4.
93573 2008-06-02  Jim Meyering  <meyering@redhat.com>
93575         announce-gen: use a better key-server host name
93576         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
93577         it may be more consistently reliable.  Suggested by Werner Koch
93578         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
93580 2008-06-01  Bruno Haible  <bruno@clisp.org>
93582         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
93583         Reported by Voroskoi Andras <voroskoi@gmail.com>.
93585 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
93587         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93589 2008-06-01  Bruno Haible  <bruno@clisp.org>
93591         New ACL tests.
93592         * tests/test-file-has-acl.sh: New file.
93593         * tests/test-file-has-acl.c: New file.
93594         * tests/test-set-mode-acl.sh: New file.
93595         * tests/test-set-mode-acl.c: New file.
93596         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
93597         * tests/test-copy-acl.c: New file.
93598         * modules/acl-tests: New file, based on modules/copy-file-tests.
93599         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
93600         (Depends-on): Add acl-tests.
93601         (configure.ac): Remove checks.
93602         (Makefile.am): Don't create test-sameacls program here any more.
93604 2008-06-01  Bruno Haible  <bruno@clisp.org>
93606         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
93607         * tests/test-sameacls.c: Include progname.h.
93608         (main): Invoke set_program_name. Portability fixes for MacOS X,
93609         Solaris, HP-UX.
93611 2008-06-01  Bruno Haible  <bruno@clisp.org>
93613         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
93614         function.
93615         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
93617 2008-06-01  Bruno Haible  <bruno@clisp.org>
93619         * modules/rpmatch (Depends-on): Add strdup.
93621 2008-06-01  Bruno Haible  <bruno@clisp.org>
93623         * lib/pipe.c: Include unistd-safer.h.
93624         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
93625         * modules/pipe (Depends-on): Add unistd-safer.
93627 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93629         * modules/autobuild (configure.ac): Call AB_INIT.
93631 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93633         * tests/test-getaddrinfo.c: Don't print debug messages by default.
93634         Suggested by Bruno Haible <bruno@clisp.org>.
93636 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93638         * tests/test-base64.c: Cast size_t to unsigned long when invoking
93639         printf.  Use %lu instead of %d.  Reported by Bruno Haible
93640         <bruno@clisp.org>.
93642 2008-05-29  Eric Blake  <ebb9@byu.net>
93644         Prefer new POSIX 200x interfaces over futimesat.
93645         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
93646         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
93647         when available.
93648         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
93650 2008-05-28  Bruno Haible  <bruno@clisp.org>
93652         * modules/stpcpy (License): Change to LGPLv2+.
93653         Requested by David Lutterkort <dlutter@redhat.com>.
93655 2008-05-27  Bruno Haible  <bruno@clisp.org>
93657         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
93658         current mingw.
93659         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93661 2008-05-27  Bruno Haible  <bruno@clisp.org>
93663         * modules/iconv_open (Link): New section, from module 'iconv'.
93664         * modules/striconv (Link): Likewise.
93665         * modules/striconveh (Link): Likewise.
93666         * modules/xstriconv (Link): Likewise.
93667         * modules/unicodeio (Link): Likewise.
93668         * modules/propername (Link): Likewise.
93669         Reported by Jim Meyering.
93671 2008-05-26  Jim Meyering  <meyering@redhat.com>
93673         sha256: do not artificially restrict buffer length to be < 2^32
93674         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93675         uint32_t to size_t.
93676         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93677         to match.
93679         avoid unaligned access errors, e.g., on sparc
93680         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93681         direct access through a possibly-unaligned uint64* pointer.
93682         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93683         direct access through a possibly-unaligned uint32* pointer.
93684         Prompted by this patch from Tom "spot" Callaway:
93685         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93687         sha512.c: fix typo in comment
93688         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93690 2008-05-25  Bruno Haible  <bruno@clisp.org>
93692         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93693         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93694         (Makefile.am): Update lib_SOURCES.
93696 2008-05-25  Bruno Haible  <bruno@clisp.org>
93698         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93700 2008-05-25  Jim Meyering  <meyering@redhat.com>
93702         useless-if-before-free: freed expr may have white-space differences
93703         * build-aux/useless-if-before-free: Recognize cases in which the
93704         freed expression differs from the tested one in embedded white
93705         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93706         $1 was used, so we can't make any regexp shy.  Improved tests now
93707         detect this.
93709         useless-if-before-free: accept white space in the expression.
93710         * build-aux/useless-if-before-free: For now, any white space
93711         in the expression must be identical in the free argument.
93713         useless-if-before-free: efficiency tweak
93714         * build-aux/useless-if-before-free: Make the expression-matching
93715         regexp "shy".
93716         Make the *outer* regexp shy, not the expr-matching one.
93718         update code-in-comment to accept cast of free arg
93719         * build-aux/useless-if-before-free: Update regexp.
93721 2008-05-25  Bruno Haible  <bruno@clisp.org>
93723         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93724         * modules/copy-file-tests (Files, Makefile.am): Update.
93725         * tests/test-copy-file.c (func_test_copy): Update.
93727 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93729         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93731 2008-05-23  Bruno Haible  <bruno@clisp.org>
93733         Improve support for ACLs on OSF/1.
93734         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93735         Remove fallback for unknown flavors of ACLs.
93737 2008-05-22  Bruno Haible  <bruno@clisp.org>
93739         Add support for ACLs on OSF/1.
93740         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93741         replacements.
93742         (acl_free_text): New macro fallback.
93743         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93744         acl_free.
93745         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93746         acl_free_text function. Require AC_C_INLINE.
93748 2008-05-22  Bruno Haible  <bruno@clisp.org>
93750         Make copy_acl work on MacOS X 10.5.
93751         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93752         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93753         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93754         If MODE_INSIDE_ACL, don't assume that every system has the same text
93755         representation for ACLs as FreeBSD.
93756         * lib/copy-acl.c (copy_acl): Add support for platforms with
93757         !MODE_INSIDE_ACL.
93758         * lib/file-has-acl.c (file_has_acl): Likewise.
93759         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93760         FreeBSD, MacOS X, or IRIX, respectively.
93762 2008-05-22  Bruno Haible  <bruno@clisp.org>
93764         * lib/acl.h: Don't include <sys/acl.h>.
93765         (GETACLCNT): Move fallback to lib/acl-internal.h.
93766         * lib/acl-internal.h: Include <sys/acl.h> here.
93767         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93769 2008-05-22  Bruno Haible  <bruno@clisp.org>
93771         Split off copy_acl function to separate file.
93772         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93773         * lib/acl.c (copy_acl): Moved function to separate file.
93774         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93775         * modules/acl (Files): Add lib/copy-acl.c.
93776         (Makefiles.am): Augment lib_SOURCES.
93778 2008-05-22  Bruno Haible  <bruno@clisp.org>
93780         * modules/copy-file-tests: New file.
93781         * tests/test-copy-file.sh: New file.
93782         * tests/test-copy-file.c: New file.
93783         * tests/test-copy-file-sameacls.c: New file.
93785 2008-05-22  Eric Blake  <ebb9@byu.net>
93787         Avoid gcc warning.
93788         * tests/test-memcmp.c (main): Pass NULL indirectly.
93790 2008-05-21  Bruno Haible  <bruno@clisp.org>
93792         Add reference doc about ACLs.
93793         * doc/acl-resources.txt: New file.
93794         * doc/acl-cygwin.txt: New file.
93796 2008-05-21  Bruno Haible  <bruno@clisp.org>
93798         Avoid one more warning from gcc.
93799         * lib/vasnprintf.c (IF_LINT): Update comments.
93800         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93802 2008-05-21  Jim Meyering  <meyering@redhat.com>
93804         avoid a warning from gcc
93805         * lib/vasnprintf.c (IF_LINT): Define.
93806         (scale10_round_decimal_long_double):
93807         Use it to avoid a "may be used uninitialized" warning.
93808         (scale10_round_decimal_double): Likewise.
93810 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93812         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93813         declared.
93815 2008-05-20  Bruno Haible  <bruno@clisp.org>
93817         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93818         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93820 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93822         * modules/memcmp-tests: New file.
93823         * tests/test-memcmp.c: New file.
93825 2008-05-19  Bruno Haible  <bruno@clisp.org>
93827         * modules/propername (Notice, configure.ac): Put quoted "..." into
93828         --keyword option.
93829         * lib/propername.h: Update comments accordingly.
93830         Reported by Eric Blake.
93832 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93834         * modules/getpass-gnu (Depends-on): Add fseeko.
93836 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93838         * modules/base64-tests: New file.
93840 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93842         * lib/base64.c (base64_decode_ctx): If a decode context structure
93843         was passed in use it to ignore newlines.  If a context structure
93844         was _not_ passed in, continue to treat newlines as garbage (this
93845         is the historical behavior).  Formerly base64_decode.
93846         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93847         takes a decode context structure.
93848         * lib/base64.h (base64_decode): Macro for four-argument calls.
93849         (base64_decode_alloc): Likewise.
93850         * lib/base64.c (base64_decode_ctx): If a decode context structure
93851         was passed in use it to ignore newlines.  If a context structure
93852         was _not_ passed in, continue to treat newlines as garbage (this
93853         is the historical behavior).  Formerly base64_decode.
93854         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93855         takes a decode context structure.
93856         * lib/base64.h (base64_decode): Macro for four-argument calls.
93857         (base64_decode_alloc): Likewise.
93859 2008-05-19  Jim Meyering  <meyering@redhat.com>
93861         avoid a warning from gcc
93862         * lib/trim.c (IF_LINT): Define.
93863         (trim2): Use it to avoid a "may be used uninitialized" warning.
93865         Fix doc typo.
93866         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93868 2008-05-19  Bruno Haible  <bruno@clisp.org>
93870         * doc/glibc-functions/getpass.texi: Document limits of other
93871         implementations.
93873 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93874             Bruno Haible <bruno@clisp.org>
93876         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93878 2008-05-18  Bruno Haible  <bruno@clisp.org>
93880         * modules/propername: New file, from GNU gettext.
93881         * lib/propername.h: New file, from GNU gettext.
93882         * lib/propername.c: New file, from GNU gettext.
93883         * MODULES.html.sh (Internationalization functions): Add propername.
93885 2008-05-16  Jim Meyering  <meyering@redhat.com>
93886             Bruno Haible  <bruno@clisp.org>
93888         Avoid some warnings from "gcc -Wshadow".
93889         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93891 2008-05-15  Eric Blake  <ebb9@byu.net>
93893         Extend previous patch to cygwin 1.7.0.
93894         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93895         fast implementation in cygwin >= 1.7.0.
93896         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93899 2008-05-15  Bruno Haible  <bruno@clisp.org>
93901         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93902         implementation in glibc >= 2.9.
93903         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93906 2008-05-15  Bruno Haible  <bruno@clisp.org>
93908         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93909         (Unicode string functions): Add unilbrk/*.
93910         Reported by Karl Berry.
93912 2008-05-15  Eric Blake  <ebb9@byu.net>
93914         Fix violation of <stdbool.h> replacement in regex.
93915         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93916         * lib/regexec.c (re_search_internal): Likewise.
93917         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93919 2008-05-15  Jim Meyering  <meyering@redhat.com>
93921         avoid distracting test output when git or cvs is not found
93922         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93923         * tests/test-vc-list-files-git.sh: Likewise.
93925 2008-05-15  Eric Blake  <ebb9@byu.net>
93927         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93928         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93929         glibc version.
93930         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93931         * doc/posix-functions/strstr.texi (strstr): Likewise.
93932         * lib/str-two-way.h (MAX): Sychronize with glibc.
93934 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93936         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93937         opr.ctx_type.
93938         (calc_first): Initialize constraint field.
93939         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93940         Fix grammar.
93941         (duplicate_node): Merge constraint field for all node types.
93942         (calc_eclosure_iter): Look at constraint field for all node types.
93943         * lib/regex_internal.c (create_cd_newstate): Don't look at
93944         opr.ctx_type.
93946 2008-05-14  Bruno Haible  <bruno@clisp.org>
93948         Help GCC to do better code generation.
93949         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93950         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93951         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93952         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93953         Declare with attribute 'malloc' if supported.
93955 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93957         use "echo STR|wc -c" rather than unportable "expr length STR"
93958         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93959         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93961 2008-05-14  Jim Meyering  <meyering@redhat.com>
93963         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93964         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93965         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93966         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93967         via Collin Lasse.
93969 2008-05-14  Eric Blake  <ebb9@byu.net>
93971         Avoid quadratic growth in gl_LIBSOURCES.
93972         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93973         Suggested by Bruno Haible.
93975         Test xmemdup0.
93976         * modules/xmemdup0-tests: New file.
93977         * tests/test-xmemdup0.c: Likewise.
93979 2008-05-13  Eric Blake  <ebb9@byu.net>
93981         Split xmemdup0 into its own module.
93982         * modules/xmemdup0: New file.
93983         * lib/xmemdup0.h: Likewise.
93984         * lib/xmemdup0.c: Likewise.
93985         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93986         * lib/xalloc.h (xmemdup0): Remove.
93987         * lib/xmalloc.c (xmemdup0): Likewise.
93989 2008-05-13  Eric Blake  <ebb9@byu.net>
93990             Bruno Haible  <bruno@clisp.org>
93992         Reduce number of forks required during autoconf.
93993         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93994         and gl_LIBSOURCES_DIR.
93995         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93996         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93997         m4_syscmd per file.
93998         <m4_foreach_w>: Move...
93999         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
94001 2008-05-13  Eric Blake  <ebb9@byu.net>
94003         * gnulib-tool: Fix various comment typos.
94005 2008-05-12  Bruno Haible  <bruno@clisp.org>
94007         Tailor the linebreaking algorithm.
94008         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
94010 2008-05-12  Bruno Haible  <bruno@clisp.org>
94012         Update to Unicode 5.0.0.
94013         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94014         LBP_JV, LBP_JT. Redistribute values.
94015         (unilbrk_table): Change size.
94016         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
94017         Unicode TR#14 rev. 22.
94018         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94019         LBP_JV, LBP_JT. Redistribute values.
94020         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
94021         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
94022         Update.
94023         * lib/unilbrk/lbrkprop1.h: Regenerated.
94024         * lib/unilbrk/lbrkprop2.h: Regenerated.
94025         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
94026         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
94027         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
94028         Likewise.
94029         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
94030         Likewise.
94031         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
94032         result.
94033         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
94034         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
94035         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
94036         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
94037         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
94038         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
94040 2008-05-11  Bruno Haible  <bruno@clisp.org>
94042         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
94044 2008-05-11  Bruno Haible  <bruno@clisp.org>
94046         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
94047         * modules/unilbrk/gen-lbrk: New file.
94049 2008-05-11  Bruno Haible  <bruno@clisp.org>
94051         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
94052         * m4/sha512.m4 (gl_SHA512): Likewise.
94054 2008-05-11  Jim Meyering  <meyering@redhat.com>
94056         New modules: crypto/sha256, crypto/sha512 (from coreutils)
94057         * modules/crypto/sha256: New file.
94058         * modules/crypto/sha512: Likewise.
94059         * lib/sha256.c: Likewise.
94060         * lib/sha256.h: Likewise.
94061         * lib/sha512.c: Likewise.
94062         * lib/sha512.h: Likewise.
94063         * lib/u64.h: Likewise.
94064         * m4/sha256.m4: Likewise.
94065         * m4/sha512.m4: Likewise.
94066         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
94068 2008-05-10  Bruno Haible  <bruno@clisp.org>
94070         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
94071         (Input/Output <stdio.h>): Add xprintf.
94072         (Signal handling <signal.h>): Add strsignal.
94073         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
94074         (Core language properties): Add func.
94075         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
94076         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
94077         strings.
94078         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
94079         (Input/output): New section.
94080         (File system functions): Add openat-die, stat-macros.
94081         (Networking functions): Add sockets.
94082         (Unicode string functions): Add unictype/*.
94083         (Support for building libraries and executables): Add gperf.
94084         (Support for building documentation): Add agpl-3.0.
94085         (Misc): Add nocrash.
94087 2008-05-10  Bruno Haible  <bruno@clisp.org>
94089         * modules/unictype/gen-ctype: New file.
94091 2008-05-10  Jim Meyering  <meyering@redhat.com>
94093         Make chdir-safer.c more efficient on a system with no symlinks.
94094         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
94095         also if ELOOP is zero.  Suggested by Bruno Haible.
94097         Make chdir-safer.c slightly safer.
94098         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
94099         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
94101         Avoid compile failure on systems without ELOOP (like mingw).
94102         * lib/chdir-safer.c (ELOOP): Define if not already defined.
94103         Reported by Bruno Haible.
94105 2008-05-10  Bruno Haible  <bruno@clisp.org>
94107         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
94108         (is_utf8_encoding): Use a case-insensitive comparison.
94109         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
94110         streq.
94112 2008-05-10  Bruno Haible  <bruno@clisp.org>
94114         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
94115         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
94116         * lib/unilbrk/ulc-common.h (iconv_string_length,
94117         iconv_string_keeping_offsets): Remove declarations.
94118         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
94119         Don't include <iconv.h>, streq.h, xsize.h.
94120         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
94121         conversion.
94122         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
94123         <iconv.h>, streq.h, xsize.h.
94124         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
94125         conversion.
94126         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
94127         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
94128         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
94129         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
94131 2008-05-10  Bruno Haible  <bruno@clisp.org>
94133         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
94134         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
94136         * modules/unilbrk/u32-width-linebreaks-tests: New file.
94137         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
94139         * modules/unilbrk/u16-width-linebreaks-tests: New file.
94140         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
94142         * modules/unilbrk/u8-width-linebreaks-tests: New file.
94143         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
94145         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
94146         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
94148         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
94149         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
94151         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
94152         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
94154         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
94155         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
94157 2008-05-10  Bruno Haible  <bruno@clisp.org>
94159         Split up 'linebreak' module.
94160         * lib/unilbrk.h: New file, based on lib/linebreak.h.
94161         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
94162         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
94163         modifications.
94164         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
94165         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
94166         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
94167         lib/linebreak.c.
94168         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
94169         lib/linebreak.c.
94170         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
94171         lib/linebreak.c.
94172         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94173         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94174         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94175         lib/linebreak.c.
94176         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
94177         lib/linebreak.c.
94178         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
94179         lib/linebreak.c.
94180         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
94181         lib/linebreak.c.
94182         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
94183         lib/linebreak.c.
94184         * modules/unilbrk/base: New file.
94185         * modules/unilbrk/tables: New file.
94186         * modules/unilbrk/u8-possible-linebreaks: New file.
94187         * modules/unilbrk/u16-possible-linebreaks: New file.
94188         * modules/unilbrk/u32-possible-linebreaks: New file.
94189         * modules/unilbrk/ulc-common: New file.
94190         * modules/unilbrk/ulc-possible-linebreaks: New file.
94191         * modules/unilbrk/u8-width-linebreaks: New file.
94192         * modules/unilbrk/u16-width-linebreaks: New file.
94193         * modules/unilbrk/u32-width-linebreaks: New file.
94194         * modules/unilbrk/ulc-width-linebreaks: New file.
94195         * lib/linebreak.h: Remove file.
94196         * lib/linebreak.c: Remove file.
94197         * m4/linebreak.m4: Remove file.
94198         * modules/linebreak: Remove file.
94199         * NEWS: Mention the changes.
94201 2008-05-09  Eric Blake  <ebb9@byu.net>
94203         Add xmemdup0.
94204         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
94205         implementation.
94206         * lib/xmalloc.c (xmemdup0): New C implementation.
94208 2008-05-08  Bruno Haible  <bruno@clisp.org>
94210         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
94212 2008-05-07  Eric Blake  <ebb9@byu.net>
94214         Support cross-compilation of <wctype.h>.
94215         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
94216         AC_CACHE_CHECK.
94218 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
94220         * build-aux/vc-list-files: Add support for bzr.
94222 2008-05-03  Jim Meyering  <meyering@redhat.com>
94224         avoid failed assertion with tight malloc
94225         * tests/test-getndelim2.c: Correct an off-by-one assertion.
94227 2008-05-03  Simon Josefsson  <simon@josefsson.org>
94229         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
94230         are needed from arpa/inet.h.
94231         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
94232         Reported by Bruno Haible.
94234 2008-05-02  Jim Meyering  <meyering@redhat.com>
94236         avoid compilation error on FreeBSD 6
94237         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
94239 2008-05-01  Jim Meyering  <meyering@redhat.com>
94241         useless-if-before-free: correct --help's exit status description
94242         * build-aux/useless-if-before-free (usage): Like grep, exit 0
94243         for one or more matches, etc.  Reported by Bruno Haible.
94245         vc-list-files: make the stand-alone gnulib test work
94246         * modules/vc-list-files-tests (configure.ac):
94247         Define and AC_SUBST abs_aux_dir.
94248         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
94249         $(abs_top_srcdir) to each script and having each of them
94250         duplicate the work of setting PATH, set PATH here, using
94251         the new variable, abs_aux_dir instead.
94252         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
94253         * tests/test-vc-list-files-git.sh: Likewise.
94254         Reported by Bruno Haible.
94256 2008-05-01  Bruno Haible  <bruno@clisp.org>
94258         * lib/getndelim2.c (getndelim2): Fix newsize computation during
94259         reallocation. Rename 'done' to 'found_delimiter'.
94261 2008-05-01  Jim Meyering  <meyering@redhat.com>
94263         vc-list-files: accommodate /bin/sh like the one from Solaris 10
94264         * build-aux/vc-list-files: Use `...`, not $(...).
94266 2008-04-30  Jim Meyering  <meyering@redhat.com>
94268         add tests for vc-list-files
94269         * modules/vc-list-files-tests: New module.
94270         * tests/test-vc-list-files-cvs.sh: New file.
94271         * tests/test-vc-list-files-git.sh: New file.
94273         avoid a warning from gcc
94274         * lib/getndelim2.c (IF_LINT): Define.
94275         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
94277         vc-list-files: work properly with build-aux/cvsu, too
94278         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
94279         to all cvs-based clauses.
94281         vc-list-files: work properly in the CVS+awk case, too
94282         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
94284         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
94285         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
94286         take more than one file argument, so .  Add quotes, just in case $dir
94287         ever contains a shell meta-character.  Prompted by Soren Hansen in
94288         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
94290 2008-04-29  Eric Blake  <ebb9@byu.net>
94292         Optimize getndelim2 to use block operations when possible.
94293         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
94294         freadseek, and memchr2.
94295         * lib/getndelim2.c (getndelim2): Use them for block reads.
94297 2008-04-29  Bruno Haible  <bruno@clisp.org>
94299         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
94300         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94301         * modules/inet_ntop (Depends-on): Add extensions.
94302         * modules/inet_pton (Depends-on): Likewise.
94303         Reported by Simon Josefsson.
94305 2008-04-29  Jim Meyering  <meyering@redhat.com>
94307         When the is more than one match in a block, match all of them.
94308         * build-aux/useless-if-before-free: Iterate through each block
94309         until there are no more matches.
94311         Fix broken useless-if-before-free script.
94312         * build-aux/useless-if-before-free: Fix typo: missing "?" after
94313         the expression to match cast of argument to free-like function.
94315 2008-04-29  Eric Blake  <ebb9@byu.net>
94317         Use new header.
94318         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
94320 2008-04-29  Jim Meyering  <meyering@redhat.com>
94322         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
94323         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
94324         by gnulib to exist and to declare e.g., inet_ntop.
94325         Don't include "inet_ntop.h", now removed.
94327         * m4/arpa_inet_h.m4: Remove trailing blanks.
94329 2008-04-29  Eric Blake  <ebb9@byu.net>
94331         Silence valgrind on safe reads beyond potential array bounds.
94332         * lib/rawmemchr.valgrind: New file.
94333         * lib/strchrnul.valgrind: Likewise.
94334         * modules/rawmemchr (Files): Distribute new file.
94335         * modules/strchrnul (Files): Likewise.
94336         Suggested by Bruno Haible.
94338 2008-04-29  Bruno Haible  <bruno@clisp.org>
94340         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
94341         (inet_ntop, inet_pton): Change portability warning's wording.
94342         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94343         Invoke gl_CHECK_NEXT_HEADERS.
94344         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94345         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94346         set ARPA_INET_H.
94347         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94348         * modules/arpa_inet (Description): No longer only for systems that
94349         lack it.
94350         (Depends-on): Add include_next.
94351         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94352         HAVE_ARPA_INET_H.
94354 2008-04-29  Jim Meyering  <meyering@redhat.com>
94356         * modules/mkdir (License): Re-license as LGPLv2+.
94358 2008-04-29  Bruno Haible  <bruno@clisp.org>
94360         * modules/rawmemchr (Maintainer): Set to Eric.
94361         * modules/strchrnul (Maintainer): Likewise.
94363 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94365         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94366         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94368         * modules/arpa_inet (arpa/inet.h): Use them.
94370 2008-04-28  Eric Blake  <ebb9@byu.net>
94372         Test getndelim2.
94373         * modules/getndelim2-tests: New file.
94374         * tests/test-getndelim2.c: Likewise.
94375         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94376         stream.
94377         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94379         * MODULES.html.sh: Document new module.
94381 2008-04-20  Bruno Haible  <bruno@clisp.org>
94383         * lib/c-stack.c (die): Use raise.
94384         * modules/c-stack (Depends-on): Add raise.
94386 2008-04-28  Bruno Haible  <bruno@clisp.org>
94388         Expect rpmatch to be declared.
94389         * lib/yesno.c (rpmatch): Remove declaration.
94391         Declare rpmatch.
94392         * lib/stdlib.in.h (rpmatch): New declaration.
94393         * lib/rpmatch.c: Include <stdlib.h> first.
94394         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94395         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94397         HAVE_RPMATCH.
94398         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94399         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94400         (Include): Set to <stdlib.h>.
94401         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94402         HAVE_RPMATCH.
94403         * NEWS: Document the change.
94405 2008-04-28  Bruno Haible  <bruno@clisp.org>
94407         Change rpmatch to use nl_langinfo when appropriate.
94408         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94409         (N_): New macro.
94410         (localized_pattern): New function/macro.
94411         (try): Remove match, nomatch arguments. Copy the pattern into safe
94412         memory before caching it.
94413         (rpmatch): Use localized_pattern. Add translator comments.
94414         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94415         Suggested by Eric Blake.
94416         * modules/rpmatch (Depends-on): Add stdbool.
94418 2008-04-28  Eric Blake  <ebb9@byu.net>
94420         Add rawmemchr module, matching glibc.
94421         * modules/string (Makefile.am): New indicator.
94422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94423         * lib/string.in.h (rawmemchr): Declare when appropriate.
94424         * modules/rawmemchr: New file.
94425         * m4/rawmemchr.m4: Likewise.
94426         * lib/rawmemchr.c: Likewise.
94427         * modules/rawmemchr-tests: Likewise.
94428         * tests/test-rawmemchr.c: Likewise.
94429         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94430         module.
94431         * modules/strchrnul (Depends-on): Add rawmemchr.
94432         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94434         Whitespace cleanup.
94435         * tests/test-strchrnul.c: Reindent.
94436         * lib/strchrnul.c: Likewise.
94438         Optimize and test strchrnul.
94439         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94440         * modules/strchrnul-tests: New file.
94441         * tests/test-strchrnul.c: Likewise.
94443         Remove intprops dependency.
94444         * modules/memchr (Depends-on): Remove intprops.
94445         * modules/memrchr (Depends-on): Likewise.
94446         * modules/memchr2 (Depends-on): Likewise.
94447         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94448         * lib/memrchr.c (__memrchr): Likewise.
94449         * lib/memrchr2.c (memchr2): Likewise.
94450         Reported by Simon Josefsson.
94452 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94454         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
94455         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94457 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94459         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
94461         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
94463         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
94465         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
94466         declarations.
94467         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
94469         * m4/inet_pton.m4: Don't check for header files.
94471         * m4/inet_ntop.m4: Don't check for header files.
94473 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94475         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
94476         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
94477         trigger for cygwin).
94478         Reported by Bruno Haible  <bruno@clisp.org>.
94480 2008-04-28  Bruno Haible  <bruno@clisp.org>
94482         * doc/posix-functions/strdup.texi: Mention mingw problem.
94484 2008-04-27  Bruno Haible  <bruno@clisp.org>
94486         * modules/stat-time-tests (Depends-on): Add sleep.
94487         * tests/test-stat-time.c (force_unlink): New function.
94488         (cleanup): Use it.
94489         (test_mtime): Remove the ctime related tests.
94490         (test_ctime): New function, containing the ctime related tests.
94491         (main): Call test_ctime, except on native Windows platforms.
94493 2008-04-27  Bruno Haible  <bruno@clisp.org>
94495         * lib/rpmatch.c (rpmatch): Add some comments.
94496         Reported by James Youngman <jay@gnu.org>.
94498 2008-04-27  Bruno Haible  <bruno@clisp.org>
94500         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
94501         quiet NaNs.
94503 2008-04-27  Bruno Haible  <bruno@clisp.org>
94505         Make test-yesno.sh work on mingw.
94506         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
94507         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
94508         (main): Set stdin to binary mode.
94509         * modules/yesno-tests (Depends-on): Add binary-io.
94511 2008-04-27  Bruno Haible  <bruno@clisp.org>
94513         Fix 'isfinite' on x86, x86_64, ia64 platforms.
94514         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
94515         argument that lie outside the IEEE 854 domain.
94516         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
94517         (gl_ISFINITE): Use it.
94518         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
94520 2008-04-27  Bruno Haible  <bruno@clisp.org>
94522         Allow local renaming in config.h.
94523         * lib/memrchr.c (memrchr): Don't undefine outside libc.
94525 2008-04-27  Bruno Haible  <bruno@clisp.org>
94527         * lib/memchr.c (__memchr): Change type of 'i'.
94528         * lib/memchr2.c (memchr2): Likewise.
94530 2008-04-26  Eric Blake  <ebb9@byu.net>
94531         and Bruno Haible  <bruno@clisp.org>
94533         Optimize and test memrchr.
94534         * modules/memrchr (Depends-on): Add intprops.
94535         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
94536         * modules/memrchr-tests: New file.
94537         * tests/test-memrchr.c: New file.
94539 2008-04-26  Bruno Haible  <bruno@clisp.org>
94541         Add tentative support for DragonFly BSD.
94542         * lib/stdio-impl.h: Add macros for DragonFly BSD.
94543         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
94544         fp.
94545         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94546         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
94547         * lib/fpurge.c (fpurge): Likewise.
94548         * lib/freadable.c (freaadable): Likewise.
94549         * lib/freadahead.c (freadahead): Likewise.
94550         * lib/freading.c (freading): Likewise.
94551         * lib/freadptr.c (freadptr): Likewise.
94552         * lib/freadseek.c (freadptrinc): Likewise.
94553         * lib/fseeko.c (fseeko): Likewise.
94554         * lib/fseterr.c (fseterr): Likewise.
94555         * lib/fwritable.c (fwritable): Likewise.
94556         * lib/fwriting.c (fwriting): Likewise.
94558 2008-04-26  Bruno Haible  <bruno@clisp.org>
94560         * lib/stdio-impl.h: New file.
94561         * lib/fbufmode.c: Include stdio-impl.h.
94562         (fbufmode): Use fp_, remove redundant #defines.
94563         * lib/fflush.c: Include stdio-impl.h.
94564         (clear_ungetc_buffer): Remove redundant #defines.
94565         * lib/fpurge.c: Include stdio-impl.h.
94566         (fpurge): Remove redundant #defines.
94567         * lib/freadable.c: Include stdio-impl.h.
94568         (freadable): Remove redundant #defines.
94569         * lib/freadahead.c: Include stdio-impl.h.
94570         (freadahead): Remove redundant #defines.
94571         * lib/freading.c: Include stdio-impl.h.
94572         (freading): Remove redundant #defines.
94573         * lib/freadptr.c: Include stdio-impl.h.
94574         (freadptr): Remove redundant #defines.
94575         * lib/freadseek.c: Include stdio-impl.h.
94576         (freadptrinc): Remove redundant #defines.
94577         * lib/fseeko.c: Include stdio-impl.h.
94578         (rpl_fseeko): Remove redundant #defines.
94579         * lib/fseterr.c: Include stdio-impl.h.
94580         (fseterr): Remove redundant #defines.
94581         * lib/fwritable.c: Include stdio-impl.h.
94582         (fwritable: Remove redundant #defines.
94583         * lib/fwriting.c: Include stdio-impl.h.
94584         (fwriting): Remove redundant #defines.
94585         * modules/fbufmode (Files): Add lib/stdio-impl.h.
94586         * modules/fflush (Files): Likewise.
94587         * modules/fpurge (Files): Likewise.
94588         * modules/freadable (Files): Likewise.
94589         * modules/freadahead (Files): Likewise.
94590         * modules/freading (Files): Likewise.
94591         * modules/freadptr (Files): Likewise.
94592         * modules/freadseek (Files): Likewise.
94593         * modules/fseeko (Files): Likewise.
94594         * modules/fseterr (Files): Likewise.
94595         * modules/fwritable (Files): Likewise.
94596         * modules/fwriting (Files): Likewise.
94598 2008-04-26  Bruno Haible  <bruno@clisp.org>
94600         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94601         restore_seek_optimization, update_fpos_cache): New functions, extracted
94602         from rpl_fflush.
94603         (rpl_fflush): Use them.
94604         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
94605         (gl_REPLACE_FFLUSH): Use it.
94607 2008-04-26  Bruno Haible  <bruno@clisp.org>
94609         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
94610         on Solaris.
94611         * tests/test-xstrtoimax.sh: Likewise.
94612         * tests/test-xstrtoumax.sh: Likewise.
94613         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94615 2008-04-26  Bruno Haible  <bruno@clisp.org>
94617         * modules/memchr-tests: New file.
94618         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
94620 2008-04-26  Eric Blake  <ebb9@byu.net>
94621             Bruno Haible  <bruno@clisp.org>
94623         * lib/memchr.c: Include intprops.h.
94624         (__memchr): Optimize parallel detection of matching bytes. Rename local
94625         variables. Add explanatory comments.
94627 2008-04-26  Bruno Haible  <bruno@clisp.org>
94629         Fix module 'memchr', broken since 2000-10-28.
94630         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
94632 2008-04-26  Bruno Haible  <bruno@clisp.org>
94634         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
94635         comments.
94637 2008-04-25  Eric Blake  <ebb9@byu.net>
94639         Use native fstatat on cygwin 1.7.0.
94640         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
94641         first.
94643 2008-04-23  Eric Blake  <ebb9@byu.net>
94645         Improve memchr2 performance.
94646         * lib/memchr2.c (memchr2): Further optimize parallel detection of
94647         NUL bytes.
94648         * modules/memchr2 (Depends-on): Use intprops.h.
94650 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94652         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
94653         an inline function instead of a CPP macro.  Patch by Ben Pfaff
94654         <blp@cs.stanford.edu>.
94656 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94658         * lib/arpa_inet.in.h: New file.
94660         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94661         (Makefile.am): Sed in substitute header file.
94663         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94664         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94666         * modules/inet_ntop (configure.ac): Use
94667         gl_ARPA_INET_MODULE_INDICATOR.
94669         * modules/inet_pton (configure.ac): Use
94670         gl_ARPA_INET_MODULE_INDICATOR.
94672 2008-04-22  Jim Meyering  <meyering@redhat.com>
94674         * modules/verify (License): Re-license as LGPLv2+.
94676 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94678         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94679         parameter to void* as per POSIX standard (MinGW uses char*).
94681 2008-04-21  Bruno Haible  <bruno@clisp.org>
94683         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94684         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94685         Define to replacements if REPLACE_ISWCNTRL is 1.
94686         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94687         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94688         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94689         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94690         what it fixes.
94691         * doc/posix-functions/iswalpha.texi: Likewise.
94692         * doc/posix-functions/iswblank.texi: Likewise.
94693         * doc/posix-functions/iswcntrl.texi: Likewise.
94694         * doc/posix-functions/iswdigit.texi: Likewise.
94695         * doc/posix-functions/iswgraph.texi: Likewise.
94696         * doc/posix-functions/iswlower.texi: Likewise.
94697         * doc/posix-functions/iswprint.texi: Likewise.
94698         * doc/posix-functions/iswpunct.texi: Likewise.
94699         * doc/posix-functions/iswspace.texi: Likewise.
94700         * doc/posix-functions/iswupper.texi: Likewise.
94701         * doc/posix-functions/iswxdigit.texi: Likewise.
94702         Reported by Alain Guibert.
94704 2008-04-21  Bruno Haible  <bruno@clisp.org>
94706         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94707         Patch by Alain Guibert.
94709 2008-04-21  Bruno Haible  <bruno@clisp.org>
94711         Fix test failures on mingw.
94712         * tests/test-xstrtol.c (print_no_progname): New function.
94713         (main): Install it in error_print_progname hook.
94714         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94715         * tests/test-xstrtoimax.sh: Likewise.
94716         * tests/test-xstrtoumax.sh: Likewise.
94718 2008-04-21  Bruno Haible  <bruno@clisp.org>
94720         Fix test failure on mingw.
94721         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94723 2008-04-21  Bruno Haible  <bruno@clisp.org>
94725         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94726         Actually assign a value.
94728 2008-04-20  Bruno Haible  <bruno@clisp.org>
94730         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94731         take 2.
94732         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94733         'canonicalize-lgpl' module is also used.
94734         * lib/canonicalize-lgpl.c: Undo last change.
94735         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94737 2008-04-20  Bruno Haible  <bruno@clisp.org>
94739         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94740         config.h. Provide _mkdir based fallback for mingw.
94741         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94742         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94743         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94744         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94745         rather than defining mkdir in config.h.
94746         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94747         (gl_SYS_STAT_H_DEFAULTS): New macro.
94748         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94749         HAVE_IO_H any more.
94750         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94751         HAVE_DECL_MKDIR and HAVE_IO_H.
94753 2008-04-20  Bruno Haible  <bruno@clisp.org>
94755         * lib/isapipe.c: Port to native Windows platforms.
94757 2008-04-20  Bruno Haible  <bruno@clisp.org>
94759         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94761 2008-04-21  Eric Blake  <ebb9@byu.net>
94763         Work around preprocessors that don't handle UINTMAX_MAX.
94764         * lib/memchr2.c (memchr2): Avoid embedded #if.
94765         Reported by Alain Guibert, fix suggested by Bruno Haible.
94767 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94769         * doc/posix-functions/strftime.texi (strftime): Explain better
94770         Windows incompatibility.  Suggested by Micah Cowan
94771         <micah@cowan.name>.
94773 2008-04-20  Bruno Haible  <bruno@clisp.org>
94775         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94776         unistr/u8-mblen.
94778 2008-04-20  Bruno Haible  <bruno@clisp.org>
94780         Fix test failure on platforms with non-GNU iconv.
94781         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94782         (U_TO_U8): Use it, rather than u16_to_u8.
94783         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94784         units at the end of the input string.
94785         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94787 2008-04-20  Bruno Haible  <bruno@clisp.org>
94789         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94790         when the resulting length is 0.
94791         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94793 2008-04-20  Bruno Haible  <bruno@clisp.org>
94795         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94796         works.
94797         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94799 2008-04-20  Bruno Haible  <bruno@clisp.org>
94801         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94802         * modules/tsearch-tests (configure.ac): Test for initstate function.
94804 2008-04-20  Bruno Haible  <bruno@clisp.org>
94806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94807         for nlink_t if missing.
94808         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94810 2008-04-19  Bruno Haible  <bruno@clisp.org>
94812         Work around snprintf bug on Linux libc5.
94813         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94815         gl_SNPRINTF_SIZE1.
94816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94817         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94818         that test failed.
94819         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94820         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94821         * modules/snprintf (Files): Add m4/printf.m4.
94822         * modules/vsnprintf (Files): Likewise.
94823         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94824         * doc/posix-functions/vsnprintf.texi: Likewise.
94826 2008-04-19  Bruno Haible  <bruno@clisp.org>
94828         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94829         from 0.0058 to less than 10^-7.
94831 2008-04-19  Bruno Haible  <bruno@clisp.org>
94833         Fix rounding when a precision is given.
94834         * lib/vasnprintf.c (is_borderline): New function.
94835         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94836         9...9x.
94837         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94838         %e, %g.
94839         * tests/test-vasprintf-posix.c (test_function): Likewise.
94840         * tests/test-snprintf-posix.h (test_function): Likewise.
94841         * tests/test-sprintf-posix.h (test_function): Likewise.
94842         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94843         * tests/test-printf-posix.h (test_function): Likewise.
94844         * tests/test-printf-posix.output: Update.
94845         Reported by John Darrington <john@darrington.wattle.id.au> via
94846         Ben Pfaff <blp@cs.stanford.edu>.
94848 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94850         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94851         Suggested by Bruno Haible <bruno@clisp.org>.
94853 2008-04-17  Bruno Haible  <bruno@clisp.org>
94855         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94856         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94857         implementation.
94858         Patch by Bruce Merry <bmerry@gmail.com>.
94860 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94862         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94863         doesn't work under Windows.
94865 2008-04-16  Bruno Haible  <bruno@clisp.org>
94867         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94868         New macros.
94869         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94870         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94871         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94872         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94873         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94874         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94875         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94876         macros.
94877         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94878         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94879         Northern Sotho, Uighur.
94881 2008-04-16  Bruno Haible  <bruno@clisp.org>
94883         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94884         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94885         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94886         Reported by Daniel Bergström <daniel@octocode.com>.
94888 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94889             Bruno Haible  <bruno@clisp.org>
94891         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94892         function.
94893         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94894         New functions, mostly extracted from gl_locale_name_default.
94895         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94897 2008-04-16  Eric Blake  <ebb9@byu.net>
94899         Adjust strtod detection to catch glibc 2.7 bug.
94900         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94901         Reported by John Gatewood Ham.
94903 2008-04-16  Bruno Haible  <bruno@clisp.org>
94905         Add tentative support for Linux libc5.
94906         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94907         * lib/fpurge.c (fpurge): Likewise.
94908         * lib/freadable.c (freadable): Likewise.
94909         * lib/freadahead.c (freadahead): Likewise.
94910         * lib/freading.c (freading): Likewise.
94911         * lib/freadptr.c (freadptr): Likewise.
94912         * lib/freadseek.c (freadptrinc): Likewise.
94913         * lib/fseeko.c (rpl_fseeko): Likewise.
94914         * lib/fseterr.c (fseterr): Likewise.
94915         * lib/fwritable.c (fwritable): Likewise.
94916         * lib/fwriting.c (fwriting): Likewise.
94917         Reported by Alain Guibert <alguibert+bts@free.fr>.
94919 2008-04-15  Bruno Haible  <bruno@clisp.org>
94921         * modules/mathl (configure.ac): Define module indicator.
94923 2008-04-15  Bruno Haible  <bruno@clisp.org>
94925         * lib/logl.c (logl): Remove unused variables.
94927 2008-04-15  Bruno Haible  <bruno@clisp.org>
94929         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94930         fails.
94932 2008-04-15  Bruno Haible  <bruno@clisp.org>
94934         * lib/trim.c (trim2): Fix argument of isspace() macro.
94936 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94938         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94939         to 0.
94940         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94942 2008-04-14  Bruno Haible  <bruno@clisp.org>
94944         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94945         AC_LANG_PROGRAM argument.
94946         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94947         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94948         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94949         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94950         * m4/math_h.m4 (gl_MATH_H): Likewise.
94951         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94952         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94953         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94954         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94955         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94956         * m4/regex.m4 (gl_REGEX): Likewise.
94957         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94958         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94959         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94960         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94961         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94962         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94963         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94966 2008-04-14  Jim Meyering  <meyering@redhat.com>
94968         test-strtod: fix typos: s/abs/fabs/
94969         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94971 2008-04-13  Bruno Haible  <bruno@clisp.org>
94973         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94974         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94975         module is also used and while not building the reloc-wrapper.
94977 2008-04-13  Bruno Haible  <bruno@clisp.org>
94979         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94981 2008-04-13  Bruno Haible  <bruno@clisp.org>
94983         Fix AIX compilation failure introduced on 2008-04-02.
94984         * tests/test-frexp.c (exp): Undefine before redefining.
94985         * tests/test-frexpl.c (exp): Likewise.
94987 2008-04-13  Bruno Haible  <bruno@clisp.org>
94989         Work around a HP-UX stdio bug.
94990         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94991         * tests/test-ftello.c (main): Likewise.
94992         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94993         * doc/posix-functions/ftello.texi: Likewise.
94995 2008-04-13  Bruno Haible  <bruno@clisp.org>
94997         Make test-signbit pass on HP-UX/hppa.
94998         * tests/test-signbit.c (minus_zerol): New variable.
94999         (test_signbitl): Use it.
95001 2008-04-13  Bruno Haible  <bruno@clisp.org>
95003         Make truncl work on OSF/1 4.0.
95004         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
95005         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95006         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
95008         HAVE_DECL_TRUNCL.
95009         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
95010         HAVE_DECL_TRUNCL.
95011         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
95013 2008-04-13  Bruno Haible  <bruno@clisp.org>
95015         * lib/unictype.h: Remove trailing comma from enumeration definitions.
95017 2008-04-13  Bruno Haible  <bruno@clisp.org>
95019         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
95020         expression, so as to avoid HP-UX 11 cc compiler bug.
95022 2008-04-13  Bruno Haible  <bruno@clisp.org>
95024         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
95026 2008-04-13  Bruno Haible  <bruno@clisp.org>
95028         * lib/git-merge-changelog.c: Remove empty declaration outside of
95029         functions.
95031 2008-04-13  Bruno Haible  <bruno@clisp.org>
95033         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
95035 2008-04-13  Bruno Haible  <bruno@clisp.org>
95037         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
95038         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
95039         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
95040         also if it exists but lacks definitions of the SHUT_* macros.
95041         * modules/sys_socket (Description): Update.
95042         Reported by Elbert Pol <e.pol@chello.nl>.
95044 2008-04-13  Bruno Haible  <bruno@clisp.org>
95046         * lib/localcharset.c (OS2): Don't redefine if already defined.
95047         Reported by Elbert Pol <e.pol@chello.nl>.
95049 2008-04-13  Bruno Haible  <bruno@clisp.org>
95051         * lib/binary-io.h [__EMX__]: Include <io.h>.
95052         Reported by Elbert Pol <e.pol@chello.nl>.
95054 2008-04-12  Bruno Haible  <bruno@clisp.org>
95056         * lib/fpucw.h: Enable the definitions also for x86_64.
95057         Needed for NetBSD/x86_64.
95058         Reported by Thomas Klausner <tk@giga.or.at>.
95060 2008-04-12  Bruno Haible  <bruno@clisp.org>
95062         * tests/test-strtod.c: Include isnand.h.
95063         (main): Use isnand instead of isnan.
95064         Reported by Jim Meyering.
95066 2008-04-12  Bruno Haible  <bruno@clisp.org>
95068         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
95069         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95071 2008-04-12  Jim Meyering  <meyering@redhat.com>
95073         * m4/math_h.m4 (gl_MATH_H): Fix typos.
95075 2008-04-12  Bruno Haible  <bruno@clisp.org>
95077         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
95078         Reported by Elbert Pol <e.pol@chello.nl>.
95080 2008-04-12  Eric Blake  <ebb9@byu.net>
95082         Work around Solaris 10 math.h bug.
95083         * m4/math_h.m4 (gl_MATH_H): Check for bug.
95084         (gl_MATH_H_DEFAULTS): Set up default.
95085         * modules/math (Makefile.am): Replace new indicators.
95086         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
95087         * tests/test-math.c (main): Test this.
95088         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
95089         * doc/posix-headers/math.texi (math.h): Mention bug.
95090         Reported by Nelson H. F. Beebe and Jim Meyering.
95092 2008-04-11  Bruno Haible  <bruno@clisp.org>
95094         Adapt to future versions of Apple GCC.
95095         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
95096         Reported by Peter O'Gorman <peter@pogma.com>.
95098 2008-04-11  Bruno Haible  <bruno@clisp.org>
95100         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
95102 2008-04-11  Bruno Haible  <bruno@clisp.org>
95104         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
95106         * modules/getaddrinfo-tests (Makefile.am): Define
95107         test_getaddrinfo_LDADD.
95109 2008-04-11  Bruno Haible  <bruno@clisp.org>
95111         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
95112         (init): Fix syntax error.
95113         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
95114         is declared.
95116 2008-04-11  Bruno Haible  <bruno@clisp.org>
95118         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
95119         * modules/glob (Depends-on): Add stdbool.
95121 2008-04-11  Bruno Haible  <bruno@clisp.org>
95123         * lib/trim.c: Include <string.h>.
95125 2008-04-11  Eric Blake  <ebb9@byu.net>
95127         Avoid compile failure on OS/2.
95128         * lib/regex_internal.h (internal_function): Disable optimization
95129         on OS/2 (__EMX__), where it caused compiler error.
95130         Reported by Elbert Pol.
95132 2008-04-11  Bruno Haible  <bruno@clisp.org>
95134         Flush the standard error stream before aborting. Needed on mingw.
95135         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
95136         * tests/test-array_list.c (ASSERT): Likewise.
95137         * tests/test-array_oset.c (ASSERT): Likewise.
95138         * tests/test-avltree_list.c (ASSERT): Likewise.
95139         * tests/test-avltree_oset.c (ASSERT): Likewise.
95140         * tests/test-avltreehash_list.c (ASSERT): Likewise.
95141         * tests/test-binary-io.c (ASSERT): Likewise.
95142         * tests/test-byteswap.c (ASSERT): Likewise.
95143         * tests/test-c-ctype.c (ASSERT): Likewise.
95144         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
95145         * tests/test-c-strcasestr.c (ASSERT): Likewise.
95146         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
95147         * tests/test-c-strstr.c (ASSERT): Likewise.
95148         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
95149         * tests/test-canonicalize.c (ASSERT): Likewise.
95150         * tests/test-carray_list.c (ASSERT): Likewise.
95151         * tests/test-ceilf1.c (ASSERT): Likewise.
95152         * tests/test-ceilf2.c (ASSERT): Likewise.
95153         * tests/test-ceill.c (ASSERT): Likewise.
95154         * tests/test-count-one-bits.c (ASSERT): Likewise.
95155         * tests/test-fbufmode.c (ASSERT): Likewise.
95156         * tests/test-fflush2.c (ASSERT): Likewise.
95157         * tests/test-floorf1.c (ASSERT): Likewise.
95158         * tests/test-floorf2.c (ASSERT): Likewise.
95159         * tests/test-floorl.c (ASSERT): Likewise.
95160         * tests/test-fopen.c (ASSERT): Likewise.
95161         * tests/test-fpending.c (ASSERT): Likewise.
95162         * tests/test-fprintf-posix.c (ASSERT): Likewise.
95163         * tests/test-fpurge.c (ASSERT): Likewise.
95164         * tests/test-freadable.c (ASSERT): Likewise.
95165         * tests/test-freadahead.c (ASSERT): Likewise.
95166         * tests/test-freading.c (ASSERT): Likewise.
95167         * tests/test-freadptr.c (ASSERT): Likewise.
95168         * tests/test-freadptr2.c (ASSERT): Likewise.
95169         * tests/test-freadseek.c (ASSERT): Likewise.
95170         * tests/test-freopen.c (ASSERT): Likewise.
95171         * tests/test-frexp.c (ASSERT): Likewise.
95172         * tests/test-frexpl.c (ASSERT): Likewise.
95173         * tests/test-fseek.c (ASSERT): Likewise.
95174         * tests/test-fseeko.c (ASSERT): Likewise.
95175         * tests/test-fstrcmp.c (ASSERT): Likewise.
95176         * tests/test-ftell.c (ASSERT): Likewise.
95177         * tests/test-ftello.c (ASSERT): Likewise.
95178         * tests/test-func.c (ASSERT): Likewise.
95179         * tests/test-fwritable.c (ASSERT): Likewise.
95180         * tests/test-fwriting.c (ASSERT): Likewise.
95181         * tests/test-getdelim.c (ASSERT): Likewise.
95182         * tests/test-getline.c (ASSERT): Likewise.
95183         * tests/test-i-ring.c (ASSERT): Likewise.
95184         * tests/test-iconv-utf.c (ASSERT): Likewise.
95185         * tests/test-iconv.c (ASSERT): Likewise.
95186         * tests/test-isfinite.c (ASSERT): Likewise.
95187         * tests/test-isnand.c (ASSERT): Likewise.
95188         * tests/test-isnanf.c (ASSERT): Likewise.
95189         * tests/test-isnanl.h (ASSERT): Likewise.
95190         * tests/test-ldexpl.c (ASSERT): Likewise.
95191         * tests/test-linked_list.c (ASSERT): Likewise.
95192         * tests/test-linkedhash_list.c (ASSERT): Likewise.
95193         * tests/test-localename.c (ASSERT): Likewise.
95194         * tests/test-lseek.c (ASSERT): Likewise.
95195         * tests/test-mbscasecmp.c (ASSERT): Likewise.
95196         * tests/test-mbscasestr1.c (ASSERT): Likewise.
95197         * tests/test-mbscasestr2.c (ASSERT): Likewise.
95198         * tests/test-mbscasestr3.c (ASSERT): Likewise.
95199         * tests/test-mbscasestr4.c (ASSERT): Likewise.
95200         * tests/test-mbschr.c (ASSERT): Likewise.
95201         * tests/test-mbscspn.c (ASSERT): Likewise.
95202         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
95203         * tests/test-mbspbrk.c (ASSERT): Likewise.
95204         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
95205         * tests/test-mbsrchr.c (ASSERT): Likewise.
95206         * tests/test-mbsspn.c (ASSERT): Likewise.
95207         * tests/test-mbsstr1.c (ASSERT): Likewise.
95208         * tests/test-mbsstr2.c (ASSERT): Likewise.
95209         * tests/test-mbsstr3.c (ASSERT): Likewise.
95210         * tests/test-memchr2.c (ASSERT): Likewise.
95211         * tests/test-memmem.c (ASSERT): Likewise.
95212         * tests/test-open.c (ASSERT): Likewise.
95213         * tests/test-printf-frexp.c (ASSERT): Likewise.
95214         * tests/test-printf-frexpl.c (ASSERT): Likewise.
95215         * tests/test-printf-posix.c (ASSERT): Likewise.
95216         * tests/test-quotearg.c (ASSERT): Likewise.
95217         * tests/test-rbtree_list.c (ASSERT): Likewise.
95218         * tests/test-rbtree_oset.c (ASSERT): Likewise.
95219         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
95220         * tests/test-round1.c (ASSERT): Likewise.
95221         * tests/test-roundf1.c (ASSERT): Likewise.
95222         * tests/test-roundl.c (ASSERT): Likewise.
95223         * tests/test-signbit.c (ASSERT): Likewise.
95224         * tests/test-sleep.c (ASSERT): Likewise.
95225         * tests/test-snprintf-posix.c (ASSERT): Likewise.
95226         * tests/test-snprintf.c (ASSERT): Likewise.
95227         * tests/test-sprintf-posix.c (ASSERT): Likewise.
95228         * tests/test-stat-time.c (ASSERT): Likewise.
95229         * tests/test-strcasestr.c (ASSERT): Likewise.
95230         * tests/test-strerror.c (ASSERT): Likewise.
95231         * tests/test-striconv.c (ASSERT): Likewise.
95232         * tests/test-striconveh.c (ASSERT): Likewise.
95233         * tests/test-striconveha.c (ASSERT): Likewise.
95234         * tests/test-strsignal.c (ASSERT): Likewise.
95235         * tests/test-strstr.c (ASSERT): Likewise.
95236         * tests/test-strtod.c (ASSERT): Likewise.
95237         * tests/test-trunc1.c (ASSERT): Likewise.
95238         * tests/test-trunc2.c (ASSERT): Likewise.
95239         * tests/test-truncf1.c (ASSERT): Likewise.
95240         * tests/test-truncf2.c (ASSERT): Likewise.
95241         * tests/test-truncl.c (ASSERT): Likewise.
95242         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
95243         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
95244         * tests/test-vasnprintf.c (ASSERT): Likewise.
95245         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
95246         * tests/test-vasprintf.c (ASSERT): Likewise.
95247         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
95248         * tests/test-vprintf-posix.c (ASSERT): Likewise.
95249         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
95250         * tests/test-vsnprintf.c (ASSERT): Likewise.
95251         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
95252         * tests/test-wcwidth.c (ASSERT): Likewise.
95253         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
95254         * tests/test-xprintf-posix.c (ASSERT): Likewise.
95255         * tests/test-xvasprintf.c (ASSERT): Likewise.
95256         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
95257         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
95258         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
95259         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
95260         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
95261         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
95262         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
95263         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
95264         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
95265         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
95266         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
95267         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
95268         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
95269         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
95270         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
95271         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
95272         * tests/unictype/test-block_list.c (ASSERT): Likewise.
95273         * tests/unictype/test-block_of.c (ASSERT): Likewise.
95274         * tests/unictype/test-block_test.c (ASSERT): Likewise.
95275         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
95276         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
95277         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
95278         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
95279         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
95280         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
95281         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
95282         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
95283         * tests/unictype/test-combining.c (ASSERT): Likewise.
95284         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
95285         * tests/unictype/test-digit.c (ASSERT): Likewise.
95286         * tests/unictype/test-mirror.c (ASSERT): Likewise.
95287         * tests/unictype/test-numeric.c (ASSERT): Likewise.
95288         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
95289         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
95290         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
95291         * tests/unictype/test-scripts.c (ASSERT): Likewise.
95292         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
95293         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
95294         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
95295         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
95296         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
95297         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
95298         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
95299         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
95300         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
95301         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
95302         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
95303         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
95304         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
95305         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
95306         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
95307         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
95308         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
95309         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
95310         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
95311         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
95312         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
95313         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
95314         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
95315         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
95316         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
95317         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
95318         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
95319         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
95320         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
95321         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
95322         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
95323         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
95324         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
95325         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
95326         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
95327         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
95328         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
95329         Reported by Eric Blake.
95331 2008-04-11  Bruno Haible  <bruno@clisp.org>
95333         * lib/wchar.in.h: Tweak comment.
95335 2008-04-11  Bruno Haible  <bruno@clisp.org>
95337         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
95338         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
95339         gl_COMMON.
95340         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95342 2008-04-11  Bruno Haible  <bruno@clisp.org>
95344         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95346 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95348         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95349         of attempting to use non-existing /dev/*random.  Based on patch
95350         from Adam Strzelecki <ono@java.pl> in
95351         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95353 2008-04-08  Bruno Haible  <bruno@clisp.org>
95355         Add tentative support for emx+gcc.
95356         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95357         * lib/fpurge.c (fpurge): Likewise.
95358         * lib/freadable.c (freadable): Likewise.
95359         * lib/freadahead.c (freadahead): Likewise.
95360         * lib/freading.c (freading): Likewise.
95361         * lib/freadptr.c (freadptr): Likewise.
95362         * lib/freadseek.c (freadptrinc): Likewise.
95363         * lib/fseeko.c (rpl_fseeko): Likewise.
95364         * lib/fseterr.c (fseterr): Likewise.
95365         * lib/fwritable.c (fwritable): Likewise.
95366         * lib/fwriting.c (fwriting): Likewise.
95367         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95369 2008-04-09  Eric Blake  <ebb9@byu.net>
95371         Avoid some autoconf warnings.
95372         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95373         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95374         * m4/afs.m4 (gl_AFS): Likewise.
95375         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95376         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95377         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95378         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95379         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95380         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95381         (AC_CHECK_DECLS_ONCE): Likewise.
95382         Rename file...
95383         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95384         gnulib-tool requires autoconf 2.59 or better.
95385         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95387 2008-04-08  Eric Blake  <ebb9@byu.net>
95389         Use 'git describe --match' if present (added in git 1.5.5).
95390         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95391         if possible.
95393 2008-04-08  Bruno Haible  <bruno@clisp.org>
95395         Add tentative support for OpenServer.
95396         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95397         _ptr, _cnt.
95398         * lib/fpurge.c (fpurge): Likewise.
95399         * lib/freadable.c (freadable): Likewise.
95400         * lib/freadahead.c (freadahead): Likewise.
95401         * lib/freading.c (freading): Likewise.
95402         * lib/freadptr.c (freadptr): Likewise.
95403         * lib/freadseek.c (freadptrinc): Likewise.
95404         * lib/fseeko.c (rpl_fseeko): Likewise.
95405         * lib/fseterr.c (fseterr): Likewise.
95406         * lib/fwritable.c (fwritable): Likewise.
95407         * lib/fwriting.c (fwriting): Likewise.
95408         Reported by Roger Cornelius <rac@tenzing.org> and
95409         Brian K. White <brian@aljex.com>.
95411 2008-04-06  Jim Meyering  <meyering@redhat.com>
95413         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95415 2008-04-06  Bruno Haible  <bruno@clisp.org>
95417         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95418         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95419         * tests/test-printf-posix.sh: Likewise.
95420         * tests/test-vfprintf-posix.sh: Likewise.
95421         * tests/test-vprintf-posix.sh: Likewise.
95422         * tests/test-xprintf-posix.sh: Likewise.
95424 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95426         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95427         hide error from 'ls', needed on OS/2.
95428         Report by Elbert Pol <elbert.pol@gmail.com>.
95430 2008-04-04  Eric Blake  <ebb9@byu.net>
95432         Make test-fseeko.c failures meaningful.
95433         * tests/test-fseeko.c: Print line number on failure.
95434         * tests/test-fseek.c: Likewise.
95435         Reported by Nelson H. F. Beebe.
95437         Improve strtod bug detection check.
95438         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95439         required for Solaris 10.
95440         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95442 2008-04-04  Bruno Haible  <bruno@clisp.org>
95444         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95445         by m4/setenv.m4.
95447 2008-04-03  Eric Blake  <ebb9@byu.net>
95449         Ensure sane .version contents.
95450         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95451         version string.
95452         * build-aux/git-version-gen: Improve documentation.
95454         Make GNU make output nicer.
95455         * top/GNUmakefile [!_have-Makefile]: Add dependency on
95456         MAKECMDGOALS to enforce message for all command line targets.  Set
95457         srcdir for use in maint.mk.
95459         Another maintainer tweak.
95460         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
95461         a target that regenerates version.
95463 2008-04-03  Jim Meyering  <meyering@redhat.com>
95465         vc-list-files: don't cause coreutils "make po-check" failure
95466         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
95468 2008-04-03  Eric Blake  <ebb9@byu.net>
95470         Allow VPATH usage of vc-list-files.
95471         * build-aux/vc-list-files (scriptversion): Add timestamp.
95472         (options): Add --help, --version, -C.
95473         (CVS): Support installed cvsu.
95475 2008-04-02  Bruno Haible  <bruno@clisp.org>
95477         Avoid some "statement with no effect" warnings from gcc.
95478         * tests/test-wctype.c (main): Explicitly ignore unused values.
95479         Reported by Jim Meyering.
95481 2008-04-02  Jim Meyering  <meyering@redhat.com>
95483         Avoid some warnings from "gcc -Wshadow".
95484         * tests/test-frexp.c (exp): Define to a different identifier.
95485         * tests/test-frexpl.c (exp): Likewise.
95487 2008-04-03  Jim Meyering  <meyering@redhat.com>
95489         bootstrap: remove dangling *.[ch] symlinks from lib
95490         * build-aux/bootstrap [dangling symlink removal]: Move find's
95491         -depth option to precede all others, to avoid a warning.
95492         Remove *.[ch] files too, and from "$source_base" (usually lib/).
95494 2008-04-02  Bruno Haible  <bruno@clisp.org>
95496         Avoid some warnings from "gcc -Wshadow".
95497         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
95498         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
95499         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
95500         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
95501         Reported by Jim Meyering.
95503 2008-04-01  Bruno Haible  <bruno@clisp.org>
95505         Fix test to work on IRIX 6.5 with cc.
95506         * tests/test-math.c (numeric_equal): New function.
95507         (main): Use it.
95509 2008-04-01  Bruno Haible  <bruno@clisp.org>
95511         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
95513 2008-04-01  Bruno Haible  <bruno@clisp.org>
95515         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
95516         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95517         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
95518         (Depends-on): Remove math.
95520         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
95521         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95522         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
95523         (Depends-on): Remove math.
95525         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
95526         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95527         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
95528         (Depends-on): Remove math.
95529         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
95530         (Depends-on): Remove math.
95532         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
95533         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95534         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
95535         (Depends-on): Remove math.
95536         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
95537         (Depends-on): Remove math.
95539         * tests/test-round1.c: Include nan.h.
95540         (main): Use NaNd instead of NAN.
95541         * modules/round-tests (Files): Add tests/nan.h.
95543         * tests/test-trunc1.c: Include nan.h.
95544         (main): Use NaNd instead of NAN.
95545         * modules/trunc-tests (Files): Add tests/nan.h.
95547         * tests/test-roundf1.c: Include nan.h.
95548         (main): Use NaNf instead of NAN.
95549         * modules/roundf-tests (Files): Add tests/nan.h.
95551         * tests/test-truncf1.c: Include nan.h.
95552         (main): Use NaNf instead of NAN.
95553         * modules/truncf-tests (Files): Add tests/nan.h.
95555         * tests/test-ceilf1.c: Include nan.h.
95556         (main): Use NaNf instead of NAN.
95557         * modules/ceilf-tests (Files): Add tests/nan.h.
95559         * tests/test-floorf1.c: Include nan.h.
95560         (main): Use NaNf instead of NAN.
95561         * modules/floorf-tests (Files): Add tests/nan.h.
95563         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
95564         (main): Use NaNf instead of NAN.
95565         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
95567         * tests/test-isnand.c: Include nan.h instead of <math.h>.
95568         (main): Use NaNd instead of NAN.
95569         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
95571         * tests/test-frexp.c: Include nan.h.
95572         (main): Use NaNd instead of NAN.
95573         * modules/frexp-tests (Files): Add tests/nan.h.
95575         * lib/isnan.c: Don't include <math.h>.
95576         (FUNC): Don't use NAN macro.
95577         * modules/isnand-nolibm (Depends-on): Remove math.
95578         * modules/isnanf-nolibm (Depends-on): Remove math.
95579         * modules/isnanl (Depends-on): Remove math.
95580         * modules/isnanl-nolibm (Depends-on): Remove math.
95582         * tests/nan.h: New file.
95584 2008-04-01  Eric Blake  <ebb9@byu.net>
95586         Fix typos.
95587         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
95588         values to be the right type.
95590         For now, cater to gnulib strtod inaccuracies.
95591         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95592         fractional results.  While not as nice from a QoI perspective, it
95593         is a quicker patch than correctly implementing decimal to binary
95594         rounding.
95596 2008-03-31  Eric Blake  <ebb9@byu.net>
95598         Guarantee a definition of NAN.
95599         * lib/math.in.h (NAN): Define if missing.
95600         * tests/test-math.c (main): Test it.
95601         * doc/posix-headers/math.texi (math.h): Document this.
95602         * lib/isnan.c (rpl_isnand): Use it.
95603         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
95604         * tests/test-floorf1.c (NaN): Likewise.
95605         * tests/test-frexp.c (NaN): Likewise.
95606         * tests/test-isnand.c (NaN): Likewise.
95607         * tests/test-isnanf.c (NaN): Likewise.
95608         * tests/test-round1.c (NaN): Likewise.
95609         * tests/test-roundf1.c (NaN): Likewise.
95610         * tests/test-snprintf-posix.h (NaN): Likewise.
95611         * tests/test-sprintf-posix.h (NaN): Likewise.
95612         * tests/test-trunc1.c (NaN): Likewise.
95613         * tests/test-truncf1.c (NaN): Likewise.
95614         * tests/test-vasnprintf-posix.c (NaN): Likewise.
95615         * tests/test-vasprintf-posix.c (NaN): Likewise.
95616         * modules/isnand-nolibm (Depends-on): Add math.
95617         * modules/isnanf-nolibm (Depends-on): Likewise.
95618         * modules/isnanl (Depends-on): Likewise.
95619         * modules/isnanl-nolibm (Depends-on): Likewise.
95620         * modules/snprintf-posix-tests (Depends-on): Likewise.
95621         * modules/sprintf-posix-tests (Depends-on): Likewise.
95622         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
95623         * modules/vsprintf-posix-tests (Depends-on): Likewise.
95624         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
95625         * modules/vasprintf-posix-tests (Depends-on): Likewise.
95627 2008-03-31  Bruno Haible  <bruno@clisp.org>
95629         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
95630         * doc/posix-functions/strtod.texi: Likewise.
95632 2008-03-31  Bruno Haible  <bruno@clisp.org>
95634         * tests/test-strtod.c (main): Don't use C99 syntax.
95636 2008-03-31  Bruno Haible  <bruno@clisp.org>
95638         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
95639         Reported by Eric Blake.
95641 2008-03-31  Jim Meyering  <meyering@redhat.com>
95643         Don't compare actual signbit return values.
95644         * tests/test-strtod.c (main): Rather, compare only their
95645         zero/non-zero nature.
95647 2008-03-31  Eric Blake  <ebb9@byu.net>
95649         More strtod documentation.
95650         * doc/posix-functions/strtod.texi (strtod): Interpret more test
95651         failures as distinct bugs.
95653 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95655         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
95656         Problem reported by Erik Benada in
95657         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
95659 2008-03-30  Bruno Haible  <bruno@clisp.org>
95661         * tests/test-strtod.c: Add comments about which assertion fails on which
95662         platform.
95663         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95665 2008-03-30  Eric Blake  <ebb9@byu.net>
95667         Test signbit behavior on zeros.
95668         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95669         (test_signbitd, test_signbitl): Likewise.
95671         More strtod touchups.
95672         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95673         sign of negative underflow, for now.  Use .5, not .1.
95674         * doc/posix-functions/strtod.texi (strtod): Mention these
95675         limitations.
95676         Reported by Jim Meyering.
95678 2008-03-30  Bruno Haible  <bruno@clisp.org>
95680         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95681         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95683 2008-03-30  Bruno Haible  <bruno@clisp.org>
95685         Avoid failure when attempting to return empty iconv results on some
95686         platforms.
95687         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95688         allocation, don't report ENOMEM when the resulting string is empty.
95690 2008-03-30  Bruno Haible  <bruno@clisp.org>
95692         Fix buffer overrun.
95693         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95694         Don't consider the width for tmp_length. Check count against tmp_length
95695         before doing the padding. Ensure enough allocation during padding.
95697 2008-03-30  Eric Blake  <ebb9@byu.net>
95699         strtod touchups.
95700         * lib/strtod.c (strtod): Avoid compiler warnings.
95701         Reported by Jim Meyering.
95703 2008-03-30  Bruno Haible  <bruno@clisp.org>
95705         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95706         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95707         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95708         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95709         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95710         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95711         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95712         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95714         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95715         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95716         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95717         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95718         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95719         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95720         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95721         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95723         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95724         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95725         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95726         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95727         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95728         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95729         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95730         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95732         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95733         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95735         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95736         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95738         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95739         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95741         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95742         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95743         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95745         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95747         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95749         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95751         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95753         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95754         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95755         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95757         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95758         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95759         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95760         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95761         (Depends-on): Add EOVERFLOW.
95762         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95763         (Depends-on): Add EOVERFLOW.
95764         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95765         (Depends-on): Add EOVERFLOW.
95766         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95767         (Depends-on): Add EOVERFLOW.
95768         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95769         (Depends-on): Add EOVERFLOW.
95770         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95771         (Depends-on): Add EOVERFLOW.
95772         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95773         (Depends-on): Add EOVERFLOW.
95774         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95775         (Depends-on): Add EOVERFLOW.
95777         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95778         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95779         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95781         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95783         * modules/snprintf (Depends-on): Add EOVERFLOW.
95785         * lib/poll.c (EOVERFLOW): Remove fallback.
95786         * modules/poll (Depends-on): Add EOVERFLOW.
95788         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95789         * modules/getugroups (Depends-on): Add EOVERFLOW.
95791         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95792         * modules/getdelim (Depends-on): Add EOVERFLOW.
95794         * lib/ftell.c (EOVERFLOW): Remove fallback.
95795         * modules/ftell (Depends-on): Add EOVERFLOW.
95797         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95798         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95799         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95801         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95803         * modules/EOVERFLOW-tests: New file.
95804         * tests/test-EOVERFLOW.c: New file.
95806         * modules/EOVERFLOW: New file.
95807         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95809 2008-03-30  Bruno Haible  <bruno@clisp.org>
95811         Fix bug introduced on 2007-06-10.
95812         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95813         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95815 2008-03-30  Bruno Haible  <bruno@clisp.org>
95817         Improve freadseek's efficiency after ungetc.
95818         * lib/freadseek.c: Include freadahead.h.
95819         (freadptrinc): New function, extracted from freadseek.
95820         (freadseek): Use it in a loop. Use freadahead to determine the number
95821         of loop iterations.
95822         * modules/freadseek (Depends-on): Add freadahead.
95823         (configure.ac): Require AC_C_INLINE.
95825 2008-03-30  Bruno Haible  <bruno@clisp.org>
95827         * lib/freadseek.c (freadseek): Don't ignore the return value of
95828         freadptr.
95830 2008-03-29  Eric Blake  <ebb9@byu.net>
95832         Add hex float support.
95833         * modules/strtod (Depends-on): Add c-ctype.
95834         (Link): Mention POW_LIB.
95835         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95836         whitespace between 'e' and exponent.
95837         * tests/test-strtod.c (main): Enable hex float tests.
95838         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95839         now provides.
95841         Document various strtod bugs, with some fixes.
95842         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95843         "-0x", "inf", "nan", and hex constants.
95844         * doc/posix-functions/atof.texi (atof): Likewise.
95845         * modules/stdlib (Makefile.am): Support strtod.
95846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95847         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95848         detect additional strtod bugs.
95849         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95850         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95851         bool where appropriate.  Parse 'inf' and 'nan'.
95852         * tests/test-strtod.c: New file.
95853         * modules/strtod (Depends-on): Add stdbool, stdlib.
95854         (configure.ac): Turn on module indicator.
95855         * modules/strtod-tests: New module.
95857 2008-03-29  Eric Blake  <ebb9@byu.net>
95859         Fix ftell on mingw.
95860         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95861         * modules/ftell-tests (Depends-on): Add binary-io.
95862         * modules/ftello-tests (Depends-on): Likewise.
95863         * tests/test-ftell.c (main): Enhance test to cover behavior after
95864         ungetc.  Enforce binary mode.
95865         * tests/test-ftello.c (main): Likewise.
95867         Pass test-freadseek on cygwin.
95868         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95869         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95870         ungetc buffer.
95872         * tests/test-fflush2.c (main): Fix typo.
95874 2008-03-29  Bruno Haible  <bruno@clisp.org>
95876         * tests/test-fflush2.c (main): Temporarily disable the contents of
95877         this test.
95878         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95879         Reported by Eric Blake.
95881 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95883         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95884         (GC_SHA224_DIGEST_SIZE): Add.
95886         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95887         (gc_hash_digest_length): Likewise.
95888         (gc_hash_buffer): Likewise.
95890 2008-03-25  Bruno Haible  <bruno@clisp.org>
95892         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95893         detail which gettext release to use.
95894         Reported by Simon Josefsson.
95896 2008-03-26  Jim Meyering  <meyering@redhat.com>
95898         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95899         * modules/gnumakefile (clean-GNUmakefile): Also, use
95900         test ... && ... || : syntax rather than if-then ... fi.
95902         gnumakefile: Don't double-quote-expand $(VPATH) value.
95903         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95905 2008-03-24  Eric Blake  <ebb9@byu.net>
95907         Alter GNUmakefile to install into top directory.
95908         * modules/maintainer-makefile: Split, and add dependency...
95909         * modules/gnumakefile: to this new module.
95910         * build-aux/GNUmakefile: Move...
95911         * top/GNUmakefile: ...here.
95912         * build-aux/maint.mk: Move...
95913         * top/maint.mk: ...here.
95914         * MODULES.html.sh (Support for maintaining...): Document new
95915         module.
95917 2008-03-23  Bruno Haible  <bruno@clisp.org>
95919         * gnulib-tool: New options --vc-files, --no-vc-files.
95920         (func_usage): Document them.
95921         (vc_files): New variable.
95922         (func_import): Consider vc_files.
95923         (func_create_testdir): Set vc_files to empty.
95924         Suggested by Jim Meyering and Karl Berry.
95926 2008-03-23  Bruno Haible  <bruno@clisp.org>
95928         Fix regex compilation error on HP-UX 11.
95929         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95930         * modules/regex (Files): Add m4/mbstate_t.m4.
95931         Reported by Ton Voon <ton.voon@altinity.com>.
95933 2008-03-23  Bruno Haible  <bruno@clisp.org>
95935         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95937 2008-03-23  Eric Blake  <ebb9@byu.net>
95938             Bruno Haible  <bruno@clisp.org>
95940         Install files from top/ in the destination directory.
95941         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95942         augmentation also for the files from top/.
95943         (func_import, func_create_testdir): Rewrite file names:
95944         top/filename -> filename.
95946 2008-03-23  Bruno Haible  <bruno@clisp.org>
95948         Tweak "gnulib --version" output.
95949         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95951 2008-03-23  Bruno Haible  <bruno@clisp.org>
95953         Tweak "gnulib --version" output.
95954         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95955         rather than contents of ChangeLog, when possible.
95957 2008-03-21  Eric Blake  <ebb9@byu.net>
95959         More --version tweaks.
95960         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95961         date of last ChangeLog entry.
95963 2008-03-21  Jim Meyering  <meyering@redhat.com>
95965         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95967 2008-03-20  Eric Blake  <ebb9@byu.net>
95969         VPATH fix.
95970         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95972 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95974         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95975         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95977 2008-03-20  Eric Blake  <ebb9@byu.net>
95979         Sync GNUmakefile with coreutils.
95980         * build-aux/GNUmakefile (have-Makefile): Rename...
95981         (_have-Makefile): ...to this, for namespace consideration.
95982         (GNUmakefile.cfg): Include, if present.
95983         (_autoreconf): Define a default.
95984         (_is-dist-target): New rule for rebuilds to pick up intra-release
95985         version.
95986         (maint-cfg.mk): Rename...
95987         (cfg.mk): ...to this.
95989 2008-03-18  Jim Meyering  <meyering@redhat.com>
95991         New script and module: mktempd
95992         * MODULES.html.sh (maint+release support): Add mktempd.
95993         * build-aux/mktempd: New file.
95994         * modules/mktempd: New file.
95996 2008-03-15  Jim Meyering  <meyering@redhat.com>
95998         Undo last change.
95999         * lib/sha1.c, lib/md5.c: 63 != ~63.
96000         Reported by Andreas Schwab.
96002         sha1.c, md5.c: Hoist a redundant expression.
96003         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
96004         "ctx->buflen" only once, before calling *_process_block.
96005         * lib/md5.c (md5_process_bytes): Likewise.
96007 2008-03-14  Eric Blake  <ebb9@byu.net>
96009         Bump copyright year in files generated by gnulib-tool.
96010         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
96011         gnulib-tool, rather than hard-coding it.
96013         Fix 'gnulib-tool --version' output to work with git.
96014         * gnulib-tool (func_gnulib_dir): New function, extracted from...
96015         (startup): ...here.
96016         (func_version): Use it to invoke git-version-gen, rather than
96017         relying on CVS keyword expansion.  Modernize wording.
96018         (cvsdatestamp, last_checkin_date, version): Kill unused
96019         variables.
96021 2008-03-12  Jim Meyering  <meyering@redhat.com>
96023         Recognize optional cast of the argument to free.
96024         * build-aux/useless-if-before-free: Update regexps.
96026         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
96028 2008-03-11  Bruno Haible  <bruno@clisp.org>
96030         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
96031         by a single package.
96032         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
96033         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
96034         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
96035         Reported by Sam Steingold <sds@gnu.org>.
96037 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96039         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
96040         repositories.
96042 2008-03-11  Bruno Haible  <bruno@clisp.org>
96044         Avoid conflicts between local macro definitions.
96045         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
96046         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
96048 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
96049             Bruno Haible  <bruno@clisp.org>
96051         Make va_copy work with some version of xlc on AIX 5.1.
96052         * lib/stdarg.in.h: New file.
96053         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
96054         On AIX, use a <stdarg.h> file substitute.
96055         * modules/stdarg (Files): Add lib/stdarg.in.h.
96056         (Depends-on): Add include_next.
96057         (Makefile.am): Build a stdarg.h substitute if requested.
96058         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
96060 2008-03-10  Bruno Haible  <bruno@clisp.org>
96062         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
96063         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96064         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96066 2008-03-10  Bruno Haible  <bruno@clisp.org>
96068         * modules/stdlib (Depends-on): Add include_next, remove
96069         absolute-header.
96071 2008-03-09  Bruno Haible  <bruno@clisp.org>
96073         * lib/freadahead.h (freadahead): Document more precisely.
96074         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
96075         the sum of both buffer sizes.
96076         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
96077         * NEWS: Document the change.
96079 2008-03-09  Bruno Haible  <bruno@clisp.org>
96081         Extend freadptr to return also the buffer size.
96082         * lib/freadptr.h (freadptr): Add sizep argument.
96083         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
96084         (freadptr): Add sizep argument. Determine buffer size like freadahead
96085         does.
96086         * tests/test-freadptr.c: Don't include freadahead.h.
96087         (main): Adapt for new calling convention of freadptr.
96088         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
96089         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
96090         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
96091         tests/test-freadptr2.sh.
96092         (Depends): Remove freadahead.
96093         (TESTS): Add test-freadptr2.sh.
96094         (check_PROGRAMS): Add test-freadptr2.
96096 2008-03-09  Bruno Haible  <bruno@clisp.org>
96098         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
96099         Report and solution by Simon Josefsson.
96101 2008-03-06  Bruno Haible  <bruno@clisp.org>
96103         Make fflush after ungetc work on BSD platforms.
96104         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
96105         * tests/test-fflush2.c: New file.
96106         * tests/test-fflush2.sh: New file.
96107         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
96108         tests/test-fflush2.c.
96109         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
96110         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
96112 2008-03-06  Eric Blake  <ebb9@byu.net>
96114         Likewise for ftello.
96115         * modules/ftello (Dependencies): Add extensions.
96116         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
96118 2008-03-06  Bruno Haible  <bruno@clisp.org>
96120         * modules/fseeko (Dependencies): Add extensions.
96121         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
96122         Needed on glibc systems.
96124 2008-03-06  Bruno Haible  <bruno@clisp.org>
96126         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
96127         email address.
96128         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96130 2008-03-06  Bruno Haible  <bruno@clisp.org>
96132         * users.txt: Add libgnupdf.
96134 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96136         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
96137         (Header File Substitutes, Function Substitutes,
96138         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
96139         (Build robot for gnulib): Fix typo.
96141 2008-03-06  Bruno Haible  <bruno@clisp.org>
96143         * doc/gnulib-tool.texi (VCS Issues): Small updates.
96144         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96146 2008-03-06  Bruno Haible  <bruno@clisp.org>
96148         * doc/func.texi: New file, extracted from doc/gnulib.texi.
96149         * doc/gnulib.texi: Include it.
96151 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96153         * modules/func (License): Change license to unlimited; there was
96154         no LGPL parts in the module anyway.
96156 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96158         * modules/__func__: Renamed to modules/func.
96159         * modules/__func__-tests: Renamed to modules/func-tests.
96160         * tests/test-__func__.c: Renamed to tests/test-func.c.
96161         * m4/__func__.m4: Renamed to m4/func.m4.
96162         * doc/gnulib.texi (__func__): Section renamed to func.
96163         Suggested by Eric Blake <ebb9@byu.net>.
96165 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96167         * doc/gnulib.texi (__func__): Use C99 terminology when talking
96168         about __func__.  Make example self-contained.  Suggested by Eric
96169         Blake <ebb9@byu.net>.
96171         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96172         Suggested by Eric Blake <ebb9@byu.net>.
96174 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96176         * modules/__func__: New file.
96177         * modules/__func__-tests: New file.
96178         * tests/test-__func__.c: New file.
96179         * m4/__func__.m4: New file.
96180         * doc/gnulib.texi (__func__): Document __func__ module.
96182 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96184         * modules/byteswap (License): Re-license as LGPLv2+.
96186 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96188         * doc/Makefile: Add pdf target.
96190 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96192         * modules/inline (License): Use 'unlimited', since there are only
96193         *.m4 files in this module.
96195 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96196             Bruno Haible  <bruno@clisp.org>
96198         Add support for HP C 7.1 on OpenVMS 8.3.
96199         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
96201 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96203         Update VMS specifics.
96204         * lib/getopt.c [VMS]: Remove include of unixlib.h.
96206 2008-03-02  Jim Meyering  <meyering@redhat.com>
96208         Remove the last dependency on the "free" module.
96209         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
96210         Reported by Bob Proulx.
96212         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
96214         Remove useless "if" tests before free.  Deprecate "free" module.
96215         * doc/posix-functions/free.texi: Mention that this
96216         module is no longer useful.
96217         * modules/free (Notice): Say this module is obsolete.
96218         * modules/readutmp (Depends-on): Remove free.
96219         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
96220         * lib/putenv.c (putenv): Likewise.
96221         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
96222         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
96223         * tests/test-c-strcasestr.c (main): Likewise.
96224         * tests/test-c-strstr.c (main): Likewise.
96225         * tests/test-mbscasestr1.c (main): Likewise.
96226         * tests/test-mbscasestr2.c (main): Likewise.
96227         * tests/test-mbsstr1.c (main): Likewise.
96228         * tests/test-mbsstr2.c (main): Likewise.
96229         * tests/test-memmem.c (main): Likewise.
96230         * tests/test-strcasestr.c (main): Likewise.
96231         * tests/test-striconv.c (main): Likewise.
96232         * tests/test-striconveh.c (main): Likewise.
96233         * tests/test-striconveha.c (main): Likewise.
96234         * tests/test-strstr.c (main): Likewise.
96236         * build-aux/git-version-gen: Adjust a comment and the Usage string.
96238         bootstrap: sync from coreutils again
96239         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
96241 2008-03-01  Jim Meyering  <meyering@redhat.com>
96243         bootstrap: sync from coreutils
96244         * build-aux/bootstrap (update_po_files): Copy a .po file into place
96245         also when the target doesn't exist.
96247 2008-03-01  Eric Blake  <ebb9@byu.net>
96249         Fix bugs in last patch.
96250         * lib/memchr2.c (memchr2): Fix typo.
96251         * tests/test-memchr2.c: Test previous bug, and don't use GNU
96252         extension.
96253         Reported by Bruce Korb.
96255         New module 'memchr2'.
96256         * modules/memchr2: New file.
96257         * modules/memchr2-tests: Likewise.
96258         * lib/memchr2.h: Likewise.
96259         * lib/memchr2.c: Likewise, based on memchr.c.
96260         * tests/test-memchr2.c: New test.
96261         * MODULES.html.sh (String handling): Add memchr2.
96263 2008-02-29  Bruno Haible  <bruno@clisp.org>
96265         * modules/freadseek-tests: New file.
96266         * tests/test-freadseek.sh: New file.
96267         * tests/test-freadseek.c: New file.
96269         New module 'freadseek'.
96270         * modules/freadseek: New file.
96271         * lib/freadseek.h: New file.
96272         * lib/freadseek.c: New file.
96273         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
96275 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96277         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
96278         wydawca.
96280         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
96281         program_invocation_name and program_invocation_short_name are
96282         present.
96284 2008-02-28  Bruno Haible  <bruno@clisp.org>
96286         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
96287         * tests/test-freadptr.sh: Also test non-seekable stdin.
96289 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
96291         * build-aux/bootstrap (source_base, m4_base)
96292         (doc_base, tests_base): New variables.
96293         (gnulib_tool_options): Do not hardcode base directories, use
96294         the above variables instead.
96296 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
96298         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
96300 2008-02-28  Bruno Haible  <bruno@clisp.org>
96302         * modules/freadptr-tests: New file.
96303         * tests/test-freadptr.sh: New file.
96304         * tests/test-freadptr.c: New file.
96306         New module 'freadptr'.
96307         * modules/freadptr: New file.
96308         * lib/freadptr.h: New file.
96309         * lib/freadptr.c: New file.
96310         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
96312 2008-02-26  Karl Berry  <karl@freefriends.org>
96314         Sync from Libtool:
96315         * libltdl/argz.c (argz_add, argz_count): New functions.
96316         * libltdl/argz.in.h: Declare them.
96317         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
96319 2008-02-22  Bruno Haible  <bruno@clisp.org>
96321         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
96322         is a pointer type.  Needed for HP-UX 10.
96323         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
96324         * doc/posix-functions/gmtime_r.texi: Likewise.
96325         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96327 2008-02-24  Bruno Haible  <bruno@clisp.org>
96329         * modules/environ-tests: New file.
96330         * tests/test-environ.c: New file.
96332         New module 'environ'.
96333         * modules/environ: New file.
96334         * lib/unistd.in.h (environ): New declaration.
96335         * m4/environ.m4: New file.
96336         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
96337         after use.
96338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
96339         HAVE_DECL_ENVIRON.
96340         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
96341         HAVE_DECL_ENVIRON.
96342         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96343         wrong claim that 'environ' is missing on some systems.
96344         * modules/execute (Depends-on): Add environ.
96345         * lib/execute.c (environ): Remove fallback declaration.
96346         * modules/pipe (Depends-on): Add environ.
96347         * lib/pipe.c (environ): Remove fallback declaration.
96348         * modules/setenv (Depends-on): Add environ.
96349         * lib/setenv.c (environ): Remove fallback declaration.
96350         * modules/unsetenv (Depends-on): Add environ.
96351         * lib/unsetenv.c (environ): Remove fallback declaration.
96352         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96353         m4/environ.m4.
96354         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96355         (gl_PREREQ_UNSETENV): Likewise.
96357 2008-02-24  Bruno Haible  <bruno@clisp.org>
96359         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96361 2008-02-20  Bob Proulx  <bob@proulx.com>
96363         Enable use of older two part flavor 'git describe'.
96364         * build-aux/git-version-gen: If using the older two part flavor of
96365         git version then recreate the third part now present in the
96366         newer three part flavor of git describe.
96368 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96370         * lib/fts.c (fts_build): Typo correction to comment.
96372 2008-02-17  Bruno Haible  <bruno@clisp.org>
96374         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96375         generating no-op conflicts.
96377 2008-02-17  Bruno Haible  <bruno@clisp.org>
96379         Speed up by 10%.
96380         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96381         result_entries, rather than an index-based loop.
96383 2008-02-17  Bruno Haible  <bruno@clisp.org>
96385         Speed up by 25%.
96386         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96387         'hashcode_cached'.
96388         (entry_create): New function.
96389         (entry_hashcode): Use the cached hashcode if possible.
96390         (read_changelog_file, try_split_merged_entry): Use entry_create.
96392 2008-02-17  Bruno Haible  <bruno@clisp.org>
96394         Speed up from O(n^2) to O(n) for long ChangeLog files.
96395         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96396         (read_changelog_file): Change implementation of entries_reversed list
96397         to rbtreehash.
96398         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96400 2008-02-17  Bruno Haible  <bruno@clisp.org>
96402         New option --split-merged-entry.
96403         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96404         (find_paragraph_end, try_split_merged_entry): New functions.
96405         (long_options): Add option --split-merged-entry.
96406         (usage): Document option --split-merged-entry.
96407         (main): Implement option --split-merged-entry.
96408         Reported by Eric Blake.
96410 2008-02-17  Bruno Haible  <bruno@clisp.org>
96412         * lib/git-merge-changelog.c: Include c-strstr.h.
96413         (main): Support the "git pull --rebase" situation.
96414         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96415         Reported by Eric Blake.
96417 2008-02-16  Eric Blake  <ebb9@byu.net>
96419         Avoid doubling \ in common case of "c-maybe" quoting style.
96420         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96421         eliding outer quotes.
96422         * lib/quotearg.h: Document this.
96423         * tests/test-quotearg.c (result_strings, inputs, results_g)
96424         (flag_results, locale_results): Test it by adding a new string to
96425         each test group.
96426         (compare_strings): Test new string.
96428 2008-02-13  Eric Blake  <ebb9@byu.net>
96430         Avoid trigraph quoting in default output.
96431         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96432         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96433         unless explicitly requested.
96434         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96436 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96438         Don't rely on signed integer overflowing to negative value.
96439         * lib/getugroups.c (getugroups): Include <limits.h>.
96440         Instead, compare against INT_MAX, and increment only if the test passes.
96442 2008-02-13  Jim Meyering  <meyering@redhat.com>
96443         and Eric Blake  <ebb9@byu.net>
96445         Avoid shadowing warning and compile errors on Linux.
96446         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96447         forwarding macros on Linux.
96448         (dcgettext): Define a stub, for Linux.
96449         (results_g, main): Avoid warnings.
96451 2008-02-12  Eric Blake  <ebb9@byu.net>
96453         Silence warning in last patch.
96454         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
96456         Quotearg part 4: add tests, fix c-maybe colon quoting.
96457         * lib/quotearg.h: Improve documentation.
96458         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
96459         escapes when adding outer quotes.  When quoting trigraphs, use
96460         valid C notation.  When quoting NUL, omit extra characters if next
96461         character is not digit.  Alter prototype.
96462         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
96463         callers.
96464         * modules/quotearg-tests: New module.
96465         * tests/test-quotearg.c: New test.
96467 2008-02-07  Eric Blake  <ebb9@byu.net>
96469         Quotearg part 3: add flag to control outer quote elision.
96470         * lib/quotearg.h (c_maybe_quoting_style): New style.
96471         (enum quoting_flags): Better documentation of flags.
96472         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
96473         c-maybe style.
96474         (quotearg_buffer_restyled): Handle new flag to elide outer
96475         quotes.
96477         Quotearg part 2: add flag that can control NUL elision.
96478         * lib/quotearg.h (set_quoting_flags): New prototype.
96479         * lib/quotearg.c (struct quoting_options): Add flag field.
96480         (set_quoting_flags): New function.
96481         (quotearg_buffer_restyled): Add flags parameter.
96482         (quotearg_alloc_mem): Set the flag if length cannot be returned.
96483         (quotearg_n_options): Set the flag, since length cannot be
96484         returned.
96485         (quoting_options_from_style): Default flags correctly.
96487         Quotearg part 1: more wrappers, restore quotearg_char state.
96488         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
96489         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
96490         (quotearg_colon_mem): New wrappers.
96491         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
96492         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
96493         functions.
96494         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
96495         (quotearg_colon_mem): New functions.
96497 2008-02-11  Bruno Haible  <bruno@clisp.org>
96499         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
96500         library in the current directory: it does not work with parallel make.
96501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96503 2008-02-11  Bruno Haible  <bruno@clisp.org>
96505         * .gitattributes: New file.
96507 2008-02-11  Jim Meyering  <meyering@redhat.com>
96509         useless-if-before-free: Fix reversed exit values.
96510         * build-aux/useless-if-before-free: Use correct values
96511         for EXIT_MATCH and EXIT_NO_MATCH.
96513         * build-aux/useless-if-before-free: Close stdout carefully.
96515 2008-02-10  Bruno Haible  <bruno@clisp.org>
96517         New module 'git-merge-changelog'.
96518         * modules/git-merge-changelog: New file.
96519         * lib/git-merge-changelog.c: New file.
96521 2008-02-10  Jim Meyering  <meyering@redhat.com>
96523         useless-if-before-free: New option: --list (-l).
96525         useless-if-before-free: Don't exit immediately upon open failure.
96526         * build-aux/useless-if-before-free: Exit 2 for errors.
96527         Upon failure to open a file, don't exit immediately.
96528         Rather, just warn and continue with any remaining files.
96530 2008-02-10  Bruno Haible  <bruno@clisp.org>
96532         New abstract list operation 'node_set_value'.
96533         * lib/gl_list.h (gl_list_node_set_value): New function.
96534         (struct gl_list_implementation): New field node_set_value.
96535         * lib/gl_list.c (gl_list_node_set_value): New function.
96536         * lib/gl_array_list.c (gl_array_node_set_value): New function.
96537         (gl_array_list_implementation): Update.
96538         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
96539         (gl_carray_list_implementation): Update.
96540         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
96541         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96542         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96543         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
96544         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96545         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96546         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96547         Update.
96548         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96549         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
96550         (gl_sublist_list_implementation): Update.
96552 2008-02-10  Bruno Haible  <bruno@clisp.org>
96554         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
96555         Needed when ELEMENT is #defined to 'some_type *'.
96557 2008-02-10  Jim Meyering  <meyering@redhat.com>
96559         New script and module: useless-if-before-free
96560         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
96561         * build-aux/useless-if-before-free: New file.
96562         * modules/useless-if-before-free: New file.
96564         * build-aux/gitlog-to-changelog: Use committer date, not author date.
96566         xstrtol_error: Fix typo.
96567         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
96568         s/exit_failure/exit_status/.
96570 2008-02-09  Jim Meyering  <meyering@redhat.com>
96572         New script and module: gitlog-to-changelog
96573         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
96574         * modules/gitlog-to-changelog: New file.
96575         * build-aux/gitlog-to-changelog: New file.
96577 2008-02-08  Jim Meyering  <meyering@redhat.com>
96579         Avoid two "parameter unused" warnings.
96580         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
96581         Mark "st" as used.
96583         Use "git COMMAND", not "git-COMMAND".
96584         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
96585         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
96586         * build-aux/git-version-gen: Use "git status", not "git-status".
96588 2008-02-07  Bruno Haible  <bruno@clisp.org>
96590         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96591         Avoids a crash on Windows Vista.
96592         Reported by Adam Strzelecki <ono@java.pl> via
96593         Simon Josefsson <simon@josefsson.org>.
96595 2008-02-06  Bruno Haible  <bruno@clisp.org>
96597         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
96598         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
96599         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
96600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
96601         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96602         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96603         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
96604         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
96605         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96606         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96607         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96608         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96609         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96610         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96611         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96612         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
96613         left-adjust flag.
96614         * tests/test-snprintf-posix.h (test_function): Likewise.
96615         * tests/test-sprintf-posix.h (test_function): Likewise.
96616         * tests/test-vasprintf-posix.c (test_function): Likewise.
96617         * doc/posix-functions/fprintf.texi: Update.
96618         * doc/posix-functions/printf.texi: Update.
96619         * doc/posix-functions/snprintf.texi: Update.
96620         * doc/posix-functions/sprintf.texi: Update.
96621         * doc/posix-functions/vfprintf.texi: Update.
96622         * doc/posix-functions/vprintf.texi: Update.
96623         * doc/posix-functions/vsnprintf.texi: Update.
96624         * doc/posix-functions/vsprintf.texi: Update.
96625         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96627 2008-02-06  Bruno Haible  <bruno@clisp.org>
96629         Fix bug introduced on 2008-01-26.
96630         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
96632 2008-02-06  Bruno Haible  <bruno@clisp.org>
96634         Fix bug introduced on 2007-06-10.
96635         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
96636         !NEED_PRINTF_FLAG_ZERO.
96638 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
96640         getloadavg: use libperfstat on AIX5
96641         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
96643 2008-02-03  Bruno Haible  <bruno@clisp.org>
96645         * lib/diffseq.h: Add comments about required #includes.
96646         Reported by Michael Biggs <gnulib@doubleplum.net>.
96648 2008-02-01  Bruno Haible  <bruno@clisp.org>
96650         * users.txt: Add gnuit.
96652 2008-01-31  Bruno Haible  <bruno@clisp.org>
96654         * lib/md4.c (set_uint32): Mark as inline.
96655         * lib/md5.c (set_uint32): Likewise.
96656         * lib/sha1.c (set_uint32): Likewise.
96657         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
96658         * m4/md5.m4 (gl_MD5): Likewise.
96659         * m4/sha1.m4 (gl_SHA1): Likewise.
96661 2008-01-31  Jim Meyering  <meyering@redhat.com>
96663         Use "sizeof VAR", rather than a literal "4".
96664         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96665         * lib/md4.c (md4_read_ctx): Likewise.
96666         * lib/sha1.c (sha1_read_ctx): Likewise.
96668 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96670         * tests/test-sha1.c: New file, based on test-md5.c.
96672         * modules/crypto/sha1-tests: New file.
96674 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96676         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96678 2008-01-31  Jim Meyering  <meyering@redhat.com>
96680         Prefer "sizeof v" over the equivalent "4".
96681         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96682         * lib/md5.c (set_uint32): Likewise.
96683         * lib/sha1.c (set_uint32): Likewise.
96685 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96687         * lib/sha1.c (set_uint32): Mark function as static.
96689 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96691         md2: clarify comments to say that alignment is not required.
96692         * lib/md2.h: Remove warning about alignment in comment.
96693         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96694         never been required.
96696 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96698         md4: adapt alignment constraint fix from sha1.
96699         * lib/md4.c (set_uint32): New function, from sha1.c
96700         (md4_read_ctx): Use it.
96701         (md4_finish_ctx): Doc fix.
96702         * lib/md4.h: Doc fix.
96704 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96706         md5: adapt alignment constraint fix from sha1.
96707         * lib/md5.c (set_uint32): New function, from sha1.c
96708         (md5_read_ctx): Use it.
96709         (md5_finish_ctx): Doc fix.
96710         * lib/md5.h: Doc fix.
96712 2008-01-30  Peter Palfrader  <weasel@debian.org>
96714         sha1: remove the result buffer alignment constraint
96715         * lib/sha1.c (set_uint32): New function.
96716         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96717         constraint.
96718         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96719         * lib/sha1.h: Likewise.
96721 2008-01-30  Andreas Schwab  <schwab@suse.de>
96722             Bruno Haible  <bruno@clisp.org>
96724         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96725         correct definition of LDBL_MIN_EXP.
96727 2008-01-30  Karl Berry  <karl@gnu.org>
96729         * config/srclist-update: try to preserve x bit on updates.
96730         * config/srclistvars.sh: update for karl.
96732 2008-01-29  Jim Meyering  <meyering@redhat.com>
96734         vasnprintf.c: Avoid warning about unused label
96735         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96736         "overflow" label definition and associated code with the
96737         same cpp condition that guards the sole use of that label.
96739 2008-01-26  Bruno Haible  <bruno@clisp.org>
96741         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96742         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96743         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96744         * lib/isnanl-nolibm.h (isnanl): Likewise.
96745         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96747 2008-01-26  Bruno Haible  <bruno@clisp.org>
96749         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96750         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96752 2008-01-26  Bruno Haible  <bruno@clisp.org>
96754         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96755         GCC >= 4.0 built-in.
96756         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96758 2008-01-26  Bruno Haible  <bruno@clisp.org>
96760         Rename isnan, applicable to 'double' only, to isnand.
96761         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96762         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96763         (configure.ac): Update.
96764         (Include): Replace "isnan.h" with "isnand.h".
96765         * m4/isnand.m4: Renamed from m4/isnan.m4.
96766         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96767         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96768         instead of isnan.c.
96769         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96770         instead of HAVE_ISNAN_IN_LIBC.
96771         (isnand): Renamed from isnan.
96772         * lib/isnand.c: New file.
96773         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96774         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96775         (Makefile.am): Update.
96776         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96777         Include isnand.h instead of isnan.h.
96778         (main): Test isnand instead of isnan.
96779         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96780         isnan-nolibm.
96781         * modules/frexp (Depends-on): Likewise.
96782         * modules/frexp-tests (Depends-on): Likewise.
96783         * modules/frexp-nolibm (Depends-on): Likewise.
96784         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96785         * modules/isfinite (Depends-on): Likewise.
96786         * modules/round-tests (Depends-on): Likewise.
96787         * modules/signbit (Depends-on): Likewise.
96788         * modules/signbit-tests (Depends-on): Likewise.
96789         * modules/snprintf-posix (Depends-on): Likewise.
96790         * modules/sprintf-posix (Depends-on): Likewise.
96791         * modules/trunc-tests (Depends-on): Likewise.
96792         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96793         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96794         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96795         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96796         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96797         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96798         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96799         * modules/vasnprintf-posix (Depends-on): Likewise.
96800         * modules/vasprintf-posix (Depends-on): Likewise.
96801         * modules/vfprintf-posix (Depends-on): Likewise.
96802         * modules/vsnprintf-posix (Depends-on): Likewise.
96803         * modules/vsprintf-posix (Depends-on): Likewise.
96804         * lib/frexp.c: Include isnand.h instead of isnan.h.
96805         (ISNAN): Set to isnand instead of isnan.
96806         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96807         (gl_isfinited): Use isnand instead of isnan.
96808         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96809         (gl_signbitd): Use isnand instead of isnan.
96810         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96811         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96812         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96813         (main): Use isnand instead of isnan.
96814         * tests/test-round1.c: Include isnand.h.
96815         (main): Use isnand instead of isnan.
96816         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96817         (ISNAN): Set to isnand instead of isnan.
96818         * tests/test-trunc1.c: Include isnand.h.
96819         (main): Use isnand instead of isnan.
96820         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96821         (equal): Use isnand instead of isnan.
96822         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96823         isnand-nolibm.
96824         * NEWS: Mention the change.
96826 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96827             Bruno Haible  <bruno@clisp.org>
96829         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96830         the GCC builtins for signbits are present and set
96831         REPLACE_SIGNBIT_USING_GCC if so.
96832         * lib/math.in.h (signbit): Define using GCC builtins if
96833         REPLACE_SIGNBIT_USING_GCC is set.
96834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96835         REPLACE_SIGNBIT_USING_GCC.
96836         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96838 2008-01-25  Jim Meyering  <meyering@redhat.com>
96840         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96841         * lib/poll.c: Include <config.h>, not "config.h".
96842         * tests/test-getaddrinfo.c: Likewise.
96844 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96846         * modules/sockets-tests: New file.
96848 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96850         * modules/sockets: New module, can be used to call WSA_Startup and
96851         WSA_Cleanup when needed.
96853         * lib/sockets.h, lib/sockets.c: New files.
96855         * m4/sockets.m4: New file.
96857         * tests/test-sockets.c: New file.
96859 2008-01-19  Bruno Haible  <bruno@clisp.org>
96861         * doc/posix-headers: Renamed from doc/headers.
96862         * doc/posix-functions: Renamed from doc/functions.
96863         * doc/gnulib.texi: Update.
96865 2008-01-19  Bruno Haible  <bruno@clisp.org>
96867         * doc/glibc-functions/strcasestr.texi: Include contents of
96868         doc/functions/strcasestr.texi, fixing the list of platforms.
96869         * doc/functions/strcasestr.texi: Remove file.
96871 2008-01-19  Bruno Haible  <bruno@clisp.org>
96873         * doc/glibc-functions/memmem.texi: Include contents of
96874         doc/functions/memmem.texi.
96875         * doc/functions/memmem.texi: Remove file.
96877 2008-01-18  Bruno Haible  <bruno@clisp.org>
96879         * doc/glibc-functions/*.texi: New files.
96880         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96881         to use the new files.
96883 2008-01-17  Bruno Haible  <bruno@clisp.org>
96885         * tests/test-gethostname.c (main): Fix printf statement.
96887 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96889         * modules/gethostname-tests: New file.
96891         * tests/test-gethostname.c: New file.
96893 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96895         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96896         used by the UNAME case.  Reported by Bruno Haible
96897         <bruno@clisp.org>.
96899 2008-01-17  Eric Blake  <ebb9@byu.net>
96901         Convert c-strcasestr to be more efficient.
96902         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96903         (Depends-on): Add c-strcase, remove malloca, strnlen.
96904         * tests/test-c-strcasestr.c (main): Enhance test.
96905         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96907 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96909         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96910         Use it in creating po/Makevars.
96912 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96914         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96915         Applications that requires it should initialize libgcrypt
96916         manually.
96918 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96920         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96922 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96924         Fix problem with getdate on mingw32 reported by Simon Josefsson
96925         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96926         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96927         tzname", when deciding whether to declare tzname.
96928         * lib/strftime.c (tzname): Likewise.
96930 2008-01-15  Bruno Haible  <bruno@clisp.org>
96932         Work around a MacOS X 10.5 bug in frexpl().
96933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96934         * doc/functions/frexpl.texi: Document the bug.
96935         Reported by Elias Pipping <pipping@gentoo.org>.
96937 2008-01-14  Eric Blake  <ebb9@byu.net>
96939         Touch up previous patch.
96940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96941         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96943         Convert strcasestr module to use Two-Way algorithm.
96944         * modules/strcasestr-simple: New module, based on the old
96945         strcasestr, but with Two-Way rather than KMP.
96946         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96947         * lib/string.in.h (rpl_strcasestr): Declare.
96948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96949         performance.
96950         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96951         * modules/string (Makefile.am): Support strcasestr.
96952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96953         * modules/strcasestr-tests (Depends-on): Check for alarm.
96954         * tests/test-strcasestr.c: Augment test.
96955         * lib/str-two-way.h: Clean up stray macro.
96956         * NEWS: Document new module.
96957         * MODULES.html.sh (string handling): Likewise.
96958         * doc/functions/strcasestr.texi: New file.
96959         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96960         here, since it is not a POSIX function.
96962 2008-01-14  Colin Watson  <cjwatson@debian.org>
96963             Bruno Haible  <bruno@clisp.org>
96965         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96966         works fine; if not, set REPLACE_STRSIGNAL.
96967         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96969         REPLACE_STRSIGNAL.
96970         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96971         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96972         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96974 2008-01-14  Bruno Haible  <bruno@clisp.org>
96976         * modules/strsignal (Include): Change to <string.h>.
96978 2008-01-14  Colin Watson  <cjwatson@debian.org>
96980         * modules/argp (Notice): Add a notice recommending to change
96981         XGETTEXT_OPTIONS.
96982         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96984 2008-01-13  Colin Watson  <cjwatson@debian.org>
96986         * modules/strsignal-tests: New file.
96987         * tests/test-strsignal.c: New file.
96989         * lib/strsignal.c: New file, from glibc with modifications.
96990         * lib/siglist.h: New file, from glibc with modifications.
96991         * lib/string.in.h (strsignal): New declaration.
96992         * m4/strsignal.m4: New file.
96993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96994         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96995         * modules/strsignal: New file.
96996         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96997         HAVE_DECL_STRSIGNAL.
96999 2008-01-13  Bruno Haible  <bruno@clisp.org>
97001         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
97002         locale encoding is not ASCII. Needed for OpenBSD 4.0.
97003         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97004         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97006 2008-01-13  Bruno Haible  <bruno@clisp.org>
97008         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
97009         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
97010         * lib/argp.h (__attribute__): Likewise.
97011         * lib/c-stack.c (__attribute__): Likewise.
97012         * lib/error.h (__attribute__): Likewise.
97013         * lib/fts.c (__attribute__): Likewise.
97014         * lib/openat.h (__attribute__): Likewise.
97015         * lib/stdio.in.h (__attribute__): Likewise.
97016         * lib/string.in.h (__attribute__): Likewise.
97017         * lib/utimens.c (__attribute__): Likewise.
97018         * lib/vasnprintf.h (__attribute__): Likewise.
97019         * lib/xalloc.h (__attribute__): Likewise.
97020         * lib/xprintf.h (__attribute__): Likewise.
97021         * lib/xstrtol.h (__attribute__): Likewise.
97022         * lib/xvasprintf.h (__attribute__): Likewise.
97024 2008-01-12  Bruno Haible  <bruno@clisp.org>
97026         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
97027         * doc/glibc-headers/a.out.texi: New file.
97028         * doc/glibc-headers/aliases.texi: New file.
97029         * doc/glibc-headers/alloca.texi: New file.
97030         * doc/glibc-headers/ar.texi: New file.
97031         * doc/glibc-headers/argp.texi: New file.
97032         * doc/glibc-headers/argz.texi: New file.
97033         * doc/glibc-headers/byteswap.texi: New file.
97034         * doc/glibc-headers/crypt.texi: New file.
97035         * doc/glibc-headers/endian.texi: New file.
97036         * doc/glibc-headers/envz.texi: New file.
97037         * doc/glibc-headers/err.texi: New file.
97038         * doc/glibc-headers/error.texi: New file.
97039         * doc/glibc-headers/execinfo.texi: New file.
97040         * doc/glibc-headers/fpu_control.texi: New file.
97041         * doc/glibc-headers/fstab.texi: New file.
97042         * doc/glibc-headers/fts.texi: New file.
97043         * doc/glibc-headers/getopt.texi: New file.
97044         * doc/glibc-headers/ieee754.texi: New file.
97045         * doc/glibc-headers/ifaddrs.texi: New file.
97046         * doc/glibc-headers/libintl.texi: New file.
97047         * doc/glibc-headers/mcheck.texi: New file.
97048         * doc/glibc-headers/mntent.texi: New file.
97049         * doc/glibc-headers/obstack.texi: New file.
97050         * doc/glibc-headers/paths.texi: New file.
97051         * doc/glibc-headers/printf.texi: New file.
97052         * doc/glibc-headers/pty.texi: New file.
97053         * doc/glibc-headers/resolv.texi: New file.
97054         * doc/glibc-headers/shadow.texi: New file.
97055         * doc/glibc-headers/sysexits.texi: New file.
97056         * doc/glibc-headers/ttyent.texi: New file.
97058 2008-01-12  Jim Meyering  <meyering@redhat.com>
97060         announce-gen: emit Gnulib's git-based version string.
97061         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
97062         New option --gnulib-version=V, where V is expected to be
97063         the output of running git describe in the gnulib directory.
97064         (get_tool_versions): Request feedback on xdelta.  I suspect it's
97065         not useful, and plan to stop publishing an xdelta file with each
97066         coreutils release.
97068         * build-aux/announce-gen: Also check for lzma-compressed files.
97070 2008-01-11  Bruno Haible  <bruno@clisp.org>
97072         * tests/test-memmem.c (main): Increase maximum allowed time.
97073         * tests/test-strstr.c (main): Likewise.
97075 2008-01-11  Bruno Haible  <bruno@clisp.org>
97077         * doc/functions/memmem.texi: Add more precisions about platforms.
97078         * doc/functions/strstr.texi: Likewise.
97080 2008-01-10  Eric Blake  <ebb9@byu.net>
97082         * m4/strstr.m4: Delete cruft from copy-n-paste.
97083         Reported by Bruno Haible.
97085 2008-01-10  Bruno Haible  <bruno@clisp.org>
97087         Make c-strstr rely on strstr.
97088         * lib/c-strstr.c: Don't include str-kmp.h.
97089         (c_strstr): Define in terms of strstr.
97090         * modules/c-strstr (Files): Remove lib/str-kmp.h.
97091         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
97093 2008-01-10  Bruno Haible  <bruno@clisp.org>
97095         * doc/gnulib.texi (String Functions in C Locale): New section.
97096         * doc/c-ctype.texi: New file.
97097         * doc/c-strcase.texi: New file.
97098         * doc/c-strcaseeq.texi: New file.
97099         * doc/c-strcasestr.texi: New file.
97100         * doc/c-strstr.texi: New file.
97101         * doc/c-strtod.texi: New file.
97102         * doc/c-strtold.texi: New file.
97104 2008-01-10  Eric Blake  <ebb9@byu.net>
97106         * lib/relocatable.h: Fix a comment.
97108 2008-01-10  Eric Blake  <ebb9@byu.net>
97110         Share two-way algorithm.
97111         * lib/str-two-way.h: New file, merged from...
97112         * lib/memmem.c: ...here...
97113         * lib/strstr.c: ...and here.
97114         * modules/memmem (Files): Use it.
97115         * modules/strstr (Files): Likewise.
97117         Avoid quadratic strstr implementations.
97118         * lib/strstr.c: New file.
97119         * m4/strstr.m4: Likewise.
97120         * modules/strstr: Likewise.
97121         * modules/strstr-tests: Likewise.
97122         * tests/test-strstr.c: Likewise.
97123         * lib/string.in.h (rpl_strstr): Declare.
97124         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
97125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
97126         * modules/string (Makefile.am): Likewise.
97127         * MODULES.html.sh (string handling): Mention new module.
97128         * doc/functions/strstr.texi (strstr): Document the bug.
97130 2008-01-10  Bruno Haible  <bruno@clisp.org>
97132         * lib/relocatable.h (relocate): State whether result is freshly
97133         allocated or not.
97134         * lib/relocatable.c (relocate): Return a freshly allocated string
97135         instead of a pointer to a privately held string.
97136         Reported by Sylvain Beucler <beuc@gnu.org>.
97138 2008-01-10  Colin Watson  <cjwatson@debian.org>
97140         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
97141         s/S_ISNLK/S_ISLNK/.
97143 2008-01-09  Bruno Haible  <bruno@clisp.org>
97145         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
97146         and other files.
97147         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
97148         if it's only a guess.
97149         * modules/memmem: Simplify by depending on memmem-simple.
97151 2008-01-09  Bruno Haible  <bruno@clisp.org>
97153         Work around OpenBSD 4.0 tdelete() bug.
97154         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
97155         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
97156         macros and don't redefine the enum values.
97157         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
97158         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
97159         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
97161 2008-01-09  Bruno Haible  <bruno@clisp.org>
97163         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
97164         (main): Don't perform the tests if setlocale did not install a UTF-8
97165         locale. Needed on OpenBSD 4.0.
97166         * modules/wcwidth-tests (Depends-on): Add localcharset.
97168 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97170         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
97171         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97172         * NEWS: announce this.
97173         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97175 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97176         and Eric Blake  <ebb9@byu.net>
97178         Add memmem-simple module.
97179         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
97180         (gl_FUNC_MEMMEM): Separate performance from presence checks.
97181         * modules/memmem-simple: New file.
97182         * modules/memmem (Description): Tweak.
97183         * MODULES.html.sh (string handling): Mention new module.
97184         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
97185         addressed by memmem-simple.
97186         * NEWS: Document the difference.
97188 2008-01-09  Eric Blake  <ebb9@byu.net>
97190         Give gcc some memmem optimization hints.
97191         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
97192         (strcasestr): Declare as pure.
97193         * modules/memmem (Maintainer): Claim my implementation.
97195 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97197         Support AIX 6.1 and higher.
97198         * build-aux/config.libpath: Likewise.
97199         * build-aux/config.rpath: Likewise.
97201 2008-01-08  Jim Meyering  <meyering@redhat.com>
97202             Bruno Haible  <bruno@clisp.org>
97204         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
97205         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
97206         Reported by Peter Fales in
97207         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
97209 2008-01-08  Bruno Haible  <bruno@clisp.org>
97211         * modules/unictype/category-of (Depends-on): Add
97212         unictype/category-none.
97213         * modules/unictype/category-and-tests (Depends-on): Add
97214         unictype/category-{L,N,Lu,Nd}.
97215         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
97216         * modules/unictype/category-or-tests (Depends-on): Add
97217         unictype/category-{L,N}.
97218         * modules/unictype/category-name-tests (Depends-on): Add
97219         unictype/category-{Z,Nl}.
97220         Reported by Simon Josefsson.
97222 2008-01-08  Bruno Haible  <bruno@clisp.org>
97224         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
97225         convention better.
97226         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
97227         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
97228         Reported by Peter Miller <millerp@canb.auug.org.au>.
97230 2008-01-08  Eric Blake  <ebb9@byu.net>
97232         Rewrite memmem to guarantee linear complexity without malloc.
97233         * lib/memmem.c (memmem): Use Two-Way rather than
97234         Knuth-Morris-Pratt, to allow O(1) space usage.
97235         (critical_factorization, two_way_short_needle)
97236         (two_way_long_needle): New functions.
97237         (knuth_morris_pratt): Delete.
97238         * modules/memmem (Depends-on): No longer need malloca or stdbool.
97239         Add stdint.
97240         * tests/test-memmem.c (main): Add tests for periodic needle and
97241         sublinear performance.
97242         * doc/functions/memmem.texi (memmem): Document other deficiencies
97243         in cygwin and older glibc.
97245 2008-01-08  Bruno Haible  <bruno@clisp.org>
97247         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
97248         augmentation.
97250 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
97252         Add a configure time option: --disable-acl.
97253         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
97254         AC_ARG_ENABLE(acl).
97256 2008-01-06  Simon Josefsson  <simon@josefsson.org>
97258         * tests/test-localename.c: Don't include obsolete "setenv.h".
97260         * modules/localename-tests (Depends-on): Need unsetenv.
97262 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97264         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
97266 2008-01-06  Colin Watson  <cjwatson@debian.org>
97268         * users.txt: Add man-db.
97270 2008-01-07  Bruno Haible  <bruno@clisp.org>
97272         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
97273         previous section name.
97275 2008-01-07  Bruno Haible  <bruno@clisp.org>
97277         * lib/progname.c (set_program_name): Don't strip off a leading
97278         "lt-" prefix outside a .libs directory.
97279         Suggested by Paul Eggert.
97281 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
97282             Bruno Haible  <bruno@clisp.org>
97284         Improve memory cleanup in 'relocatable' module.
97285         * lib/relocatable.h (compute_curr_prefix): Change return type to
97286         'char *'.
97287         * lib/relocatable.c (compute_curr_prefix): Change return type to
97288         'char *'. Free curr_installdir after use.
97289         (relocate): Free curr_prefix_better after use.
97290         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
97292 2008-01-01  Bruno Haible  <bruno@clisp.org>
97294         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
97295         failure on older glibc systems.
97296         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97298 2008-01-05  Eric Blake  <ebb9@byu.net>
97300         Avoid quadratic system memmem.
97301         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
97302         Reported by Ralf Wildenhues.
97304         Fix memmem test for mingw.
97305         * modules/memmem-tests (configure.ac): Check for alarm.
97306         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
97307         it.
97308         * doc/functions/memmem.texi: New file.
97309         * doc/gnulib.texi (Function Substitutes): Add memmem.
97310         Reported by Bruno Haible.
97312 2008-01-04  Bruno Haible  <bruno@clisp.org>
97314         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
97315         Require gl_HEADER_STRINGS_H_DEFAULTS, not
97316         gl_HEADER_STRING_H_DEFAULTS.
97318 2008-01-04  Eric Blake  <ebb9@byu.net>
97320         Shorten duration of memmem test.
97321         * tests/test-memmem.c (main): Use alarm to declare failure if test
97322         is taking too long.
97323         Reported by Ralf Wildenhues.
97325 2007-12-21  Simon Josefsson  <simon@josefsson.org>
97327         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
97328         string, needed by strerror.
97330 2008-01-03  Colin Watson  <cjwatson@debian.org>
97331             Bruno Haible  <bruno@clisp.org>
97333         * doc/gnulib-tool.texi (Localization): New section.
97335 2008-01-02  Bruno Haible  <bruno@clisp.org>
97337         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
97338         variables to 'unsigned char *' type.
97339         Reported by Paul Eggert.
97341 2008-01-02  Jim Meyering  <jim@meyering.net>
97343         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97345 2007-12-31  Jim Meyering  <jim@meyering.net>
97347         Avoid use of private FTS type name.
97348         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97350 2007-12-30  Karl Berry  <karl@gnu.org>
97352         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97353         work around defect in Texinfo and/or the standalone Info browser.
97355 2007-12-30  Bruno Haible  <bruno@clisp.org>
97357         Unify 5 copies of the KMP code.
97358         * lib/str-kmp.h: New file.
97359         * lib/c-strcasestr.c: Include str-kmp.h.
97360         (knuth_morris_pratt): Remove function.
97361         (c_strcasestr): Update.
97362         * lib/c-strstr.c: Include str-kmp.h.
97363         (knuth_morris_pratt): Remove function.
97364         (c_strcasestr): Update.
97365         * lib/mbscasestr.c: Include str-kmp.h.
97366         (knuth_morris_pratt_unibyte): Remove function.
97367         * lib/mbsstr.c: Include str-kmp.h.
97368         (knuth_morris_pratt_unibyte): Remove function.
97369         * lib/strcasestr.c: Include str-kmp.h.
97370         (knuth_morris_pratt): Remove function.
97371         (strcasestr): Update.
97372         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97373         * modules/c-strstr (Files): Likewise.
97374         * modules/mbscasestr (Files): Likewise.
97375         * modules/mbsstr (Files): Likewise.
97376         * modules/strcasestr (Files): Likewise.
97377         Suggested by Paul Eggert.
97379 2007-12-30  Bruno Haible  <bruno@clisp.org>
97381         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97382         defined.
97384 2007-12-30  Bruno Haible  <bruno@clisp.org>
97386         * lib/xmalloca.h: Include xalloc.h.
97387         (xnmalloca): New macro.
97389 2007-12-30  Bruno Haible  <bruno@clisp.org>
97391         * lib/malloca.h (nmalloca): New macro.
97392         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97393         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97394         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97395         knuth_morris_pratt_multibyte): Likewise.
97396         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97397         knuth_morris_pratt_multibyte): Likewise.
97398         * lib/memmem.c (knuth_morris_pratt): Likewise.
97399         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97401 2007-12-25  Bruno Haible  <bruno@clisp.org>
97403         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97404         * lib/glob.c: Don't include openat.h.
97405         (link_exists2_p): Add back the code that deals with the
97406         !GLOB_ALTDIRFUNC case.
97407         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97408         let it do the filename concatenation.
97409         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97410         * modules/glob (Depends-on): Remove openat.
97412 2007-12-31  Bruno Haible  <bruno@clisp.org>
97414         * modules/dirfd (License): Change to LGPLv2+.
97415         Approved by Jim Meyering.
97417 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97419         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97420         when multiplying M by sizeof (size_t).
97422 2007-12-10  Martin Lambers  <marlam@marlam.de>
97424         Override getpagesize on mingw.
97425         * lib/getpagesize.c: New file.
97426         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97427         * modules/getpagesize (Files): Add lib/getpagesize.c.
97428         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97430         REPLACE_GETPAGESIZE.
97431         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97433 2007-12-25  Bruno Haible  <bruno@clisp.org>
97435         * modules/localcharset (Notice): New field.
97436         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97437         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97439 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97440             Bruno Haible  <bruno@clisp.org>
97442         Avoid using the syntax symbol() in formatted documentation.
97443         * MODULES.html.sh (func_module): When replacing symbol() with a
97444         hyperlink, remove the parentheses. Show an error if some remain.
97445         Recognize and render the '...' syntax.
97446         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97447         Rework. Add paragraph about GCC's inlining.
97448         * doc/alloca.texi: Likewise.
97449         * doc/error.texi: Remove parentheses from symbol reference.
97450         * doc/gnulib-intro.texi: Likewise.
97451         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97452         * modules/fnmatch (Description): Reword to say "the ... function".
97453         * modules/full-read (Description): Likewise.
97454         * modules/full-write (Description): Likewise.
97455         * modules/safe-read (Description): Likewise.
97456         * modules/safe-write (Description): Likewise.
97457         * modules/strchrnul (Description): Likewise.
97458         * modules/trim (Description): Likewise.
97459         * modules/error (Description): Remove parentheses from symbol
97460         references.
97461         * modules/verror (Description): Likewise.
97462         Reported by Karl Berry.
97464 2007-12-25  Bruno Haible  <bruno@clisp.org>
97466         Fixup after 2007-10-16 commit.
97467         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
97469 2007-12-24  Bruno Haible  <bruno@clisp.org>
97471         Make --enable-relocatable work with DESTDIR.
97472         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
97473         to compute installdir from destprog.
97474         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
97475         also set the RELOC_DESTDIR variable.
97476         Reported by Левашев Иван <octagram@bluebottle.com>.
97478 2007-12-24  Bruno Haible  <bruno@clisp.org>
97480         Fix link error due to xalloc_die().
97481         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
97482         of xreadlink.
97483         * lib/relocwrapper.c: Update comments.
97484         * build-aux/install-reloc: Remove xreadlink.c from file list.
97485         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
97486         xreadlink.c.
97487         Reported by Левашев Иван <octagram@bluebottle.com>.
97489 2007-12-24  Bruno Haible  <bruno@clisp.org>
97491         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
97492         * lib/setenv.h: Remove file.
97493         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
97494         lib/setenv.h.
97495         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
97496         (Depends-on): Add stdlib.
97497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
97498         gl_FUNC_UNSETENV.
97499         (Include): Replace setenv.h with <stdlib.h>.
97500         * modules/unsetenv: New file.
97501         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
97502         * lib/unsetenv.c: Include <stdlib.h> first.
97503         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
97504         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
97505         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
97506         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
97507         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
97508         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
97510         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97511         * doc/functions/unsetenv.texi: Update.
97512         * modules/xsetenv (Depends-on): Add unsetenv.
97513         * modules/getdate (Depends-on): Likewise.
97514         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
97515         * lib/xsetenv.c: Don't include setenv.h.
97516         * lib/getdate.y: Likewise.
97517         * lib/relocwrapper.c: Likewise.
97518         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
97519         (Depends-on): Add stdlib.
97520         * NEWS: Mention the changes.
97521         Reported by Левашев Иван <octagram@bluebottle.com>.
97523 2007-12-23  Bruno Haible  <bruno@clisp.org>
97525         * lib/memmem.c (memmem): Use lowercase variable names. Tab
97526         indentation.
97528 2007-12-23  Bruno Haible  <bruno@clisp.org>
97530         * lib/c-strcasestr.c: Add more comments.
97531         * lib/c-strstr.c: Likewise.
97532         * lib/mbscasestr.c: Likewise.
97533         * lib/mbsstr.c: Likewise.
97534         * lib/strcasestr.c: Likewise.
97535         * lib/memmem.c: Likewise.
97537 2007-12-23  Bruno Haible  <bruno@clisp.org>
97539         * tests/test-memmem.c: Include <string.h> first.
97541 2007-12-22  Bruno Haible  <bruno@clisp.org>
97543         * gnulib-tool (func_create_testdir): Change $auxdir while generating
97544         the contents of $testsbase.
97545         Reported by Ralf Wildenhues.
97547 2007-12-22  Bruno Haible  <bruno@clisp.org>
97549         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
97550         two variables local_ldadd_before, local_ldadd_last.
97552 2007-12-20  Eric Blake  <ebb9@byu.net>
97554         Work around circular library issue when cross-compiling.
97555         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
97556         that progname.o does not need to pull in rpl_memcmp.
97558 2007-12-19  Eric Blake  <ebb9@byu.net>
97560         Fix memmem to avoid O(n^2) worst-case complexity.
97561         * lib/memmem.c (knuth_morris_pratt): New function.
97562         (memmem): Use it if first few naive iterations fail.
97563         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
97564         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
97565         * modules/memchr (License): Likewise.
97566         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
97567         malloca.
97568         * tests/test-memmem.c: Rewrite, borrowing ideas from
97569         test-mbsstr1.c; the old version wouldn't even compile!
97570         * modules/memmem-tests: New file.
97571         * lib/string.in.h (rpl_memmem): Add declaration.
97572         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
97573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97574         REPLACE_MEMMEM.
97576 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
97578         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
97579         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
97580         before any system include files, and undef after them all.  This
97581         should fix a problem on VMS reported by John E. Malmberg in
97582         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
97584 2007-12-17  Eric Blake  <ebb9@byu.net>
97586         Revert addition of verify, for BSD/OS.
97587         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
97588         can't handle large files, for the sake of obsolete platforms.
97589         * modules/fseeko (Depends-on): Remove verify.
97590         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97591         * doc/functions/ftello.texi (ftello): Likewise.
97592         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97593         Reported by Larry Jones.
97595 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
97597         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
97598         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
97600 2007-12-17  Jim Meyering  <meyering@redhat.com>
97602         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
97603         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
97604         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
97605         * modules/getcwd (Depends-on): Add openat.
97606         Reported by Petr Salinger.
97608 2007-12-17  Bruno Haible  <bruno@clisp.org>
97610         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
97611         avoid a segmentation fault of the configure test on x86_64 systems.
97613 2007-12-15  Jim Meyering  <meyering@redhat.com>
97615         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
97617 2007-12-13  Eric Blake  <ebb9@byu.net>
97619         Another fseek test.
97620         * tests/test-fseek.c (main): Also test ungetc handling.
97621         * tests/test-fseeko.c (main): Likewise.
97622         * modules/fseeko (Depends-on): Add verify.
97623         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
97624         large.
97625         Reported by Larry Jones.
97627         Fix fseeko on mingw.
97628         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
97629         seek.
97631         Beef up fseek tests.
97632         * tests/test-fseek.c (main): Also test eof handling.
97633         * tests/test-fseeko.c (main): Likewise.
97634         Reported by Larry Jones.
97636 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
97638         Fix fseeko on BSD-based platforms.
97639         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
97640         successful seek.
97642 2007-12-12  Eric Blake  <ebb9@byu.net>
97644         Allow circular dependency of separate libtests.a
97645         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
97646         when use_libtests.
97648 2007-12-11  Eric Blake  <ebb9@byu.net>
97650         Fix bug with -0.0L in previous patch.
97651         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
97652         * tests/test-isnan.c (main): Also test on zeroes.
97653         * tests/test-isnanf.c (main): Likewise.
97654         * tests/test-isnanl.h (main): Likewise.
97656         Detect pseudo-denormals on x86 even when cross-compiling.
97657         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
97658         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
97659         invalid bit patterns that happen to satisfy ==.
97661         Avoid link failures with separate libtests.a.
97662         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97663         last, to satisfy circular dependencies.
97665 2007-12-11  Eric Blake  <ebb9@byu.net>
97666         and Bruno Haible  <bruno@clisp.org>
97668         Fix OpenBSD 4.0 <float.h> handling of long double.
97669         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97670         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97671         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97673 2007-12-11  Jim Meyering  <meyering@redhat.com>
97675         * users.txt: Add libvirt.
97677         Support versions of autoconf prior to 2.59c.
97678         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97679         if it is not already defined.
97681 2007-12-09  Bruno Haible  <bruno@clisp.org>
97683         Let 'gnulib-tool --import' collect sources needed for the tests in
97684         tests/ rather than in lib/.
97685         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97686         argument. If true, add rules to generate libtests.a, and put libtests.a
97687         into $(LDADD). Consider source files in subdirectories and set
97688         uses_subdirs.
97689         (func_emit_initmacro_start, func_emit_initmacro_end,
97690         func_emit_initmacro_done): Pass all arguments explicitly.
97691         (func_import): Determine two module lists main_modules,
97692         testsrelated_modules. Determine use_libtests. Determine two variables
97693         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97694         instead of just sed_transform_lib_file. Determine two variables
97695         main_files and testsrelated_files. Compute 'files' as the union of
97696         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97697         func_add_or_update. In the generated gnulib-comp.m4, collect the
97698         object files for tests/ in different variables than those for lib/.
97699         Substitute LIBTESTS_LIBDEPS.
97700         (func_create_testdir): Combine the uses_subdirs results from
97701         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97703 2007-12-09  Bruno Haible  <bruno@clisp.org>
97705         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97706         the build-aux directory.
97708 2007-12-09  Bruno Haible  <bruno@clisp.org>
97710         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97711         introduced on 2006-09-09.
97713 2007-12-07  Jim Meyering  <meyering@redhat.com>
97715         Let these macros work also with autoconf-2.59.
97716         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97717         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97720 2007-12-06  Jim Meyering  <meyering@redhat.com>
97722         Avoid a configure-time syntax error in gl_FUNC_ACL.
97723         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97724         function in each branch, before testing the cache variable.
97726 2007-12-04  Eric Blake  <ebb9@byu.net>
97728         Make scripts executable.
97729         * build-aux/config.guess: Add execute permissions.
97730         * build-aux/config.sub: Likewise.
97731         * build-aux/gendocs.sh: Likewise.
97733         Fix frexp on mingw.
97734         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97735         cross-compiling.
97736         * doc/functions/frexp.texi (frexp): Document the bug.
97738         Make cygwin fseeko check more reliable.
97739         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97740         version numbers, rather than unrelated feature check.
97741         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97742         * doc/functions/ftello.texi (ftello): Likewise.
97743         Reported by Bruno Haible.
97745         * m4/strerror.m4: Bump version number.
97747 2007-12-03  Bruno Haible  <bruno@clisp.org>
97749         * doc/functions/mprotect.texi: Mention the mingw problem.
97751 2007-12-03  Eric Blake  <ebb9@byu.net>
97753         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97754         REPLACE_STRERROR is initialized before this macro.
97756 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97758         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97759         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97760         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97761         put -lsec in even for programs other than 'ls'.  This fixes a problem
97762         for gettext reported by Bruno Haible in
97763         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97764         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97765         Add support for Solaris 10.  This isn't efficient, but should get the
97766         job done for now.
97768 2007-12-03  James Youngman  <jay@gnu.org>
97770         * doc/regexprops-generic.texi: change "an close-group" to "a
97771         close-group" and "illegal" to "not allowed".
97773 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97775         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97776         pr_byname.h. Needed for the rare case when the maintainer has done
97777         "make maintainer-clean" in the source directory and then attempts a
97778         build outside the source directory.
97779         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97780         scripts_byname.h.
97782 2007-12-02  Martin Lambers  <marlam@marlam.de>
97783             Bruno Haible  <bruno@clisp.org>
97785         * lib/getpagesize.h: Remove file.
97786         * lib/unistd.in.h: Include declaration of getpagesize here.
97787         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97788         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97789         HAVE_SYS_PARAM_H.
97790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97791         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97792         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97793         (Depends-on): Add unistd.
97794         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97795         (Include): Use <unistd.h> instead of getpagesize.h.
97796         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97797         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97798         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97799         gl_GETPAGESIZE invocation, already handled by module dependency.
97800         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97802 2007-12-02  Bruno Haible  <bruno@clisp.org>
97804         * modules/strings-tests: New file.
97805         * tests/test-strings.c: New file.
97807         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97808         * lib/strings.in.h: New file.
97809         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97810         * m4/strings_h.m4: New file.
97811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97812         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97813         * modules/strings: New file.
97814         * modules/string (Makefile.am): Update.
97815         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97816         Reported by Karl Berry.
97818 2007-12-01  Eric Blake  <ebb9@byu.net>
97820         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97821         accommodate fix in cygwin 1.5.25.
97823 2007-12-01  Jim Meyering  <meyering@redhat.com>
97825         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97826         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97827         that would inhibit utf8-optimization of a regexp containing line-
97828         or buffer-anchors, e.g., `^', `$'.
97830 2007-11-30  Bruno Haible  <bruno@clisp.org>
97832         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97833         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97834         glthread_recursive_lock_init.
97835         * lib/lock.c (glthread_recursive_lock_init)
97836         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97837         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97839 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97841         New function qset_acl, like set_acl but with syscall semantics.
97842         * lib/acl.h (qset_acl): New decl.
97843         * lib/acl.c (qset_acl): New function.
97844         (set_acl): Use new function.  Use more-consistent diagnostics.
97846 2007-11-28  Jim Meyering  <meyering@redhat.com>
97848         * modules/physmem (License): Change from GPL to LGPLv2+.
97850 2007-11-26  Bruno Haible  <bruno@clisp.org>
97852         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97853         'long double' type has excess precision.
97854         Reported by Jim Meyering in
97855         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97857 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97859         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97860         Sync from <http://gnu.org/licenses>.
97861         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97862         with license text from same location.
97863         * doc/maintain.texi, doc/standards.texi:  Sync from
97864         <http://savannah.gnu.org/projects/gnustandards>.
97866 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97867         and Jim Meyering  <meyering@redhat.com>
97869         Adjust getdate' grammar to accept a slightly more regular language.
97870         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97871         Before, the former was rejected.
97872         * lib/getdate.y (digits_to_date_time): New function, factored
97873         out of ...
97874         (number): ...here.  Just call digits_to_date_time.
97875         (hybrid): New non-terminal to handle an <unsigned number,
97876         signed relative offset> sequence consistently.
97878 2007-11-18  Jim Meyering  <meyering@redhat.com>
97880         Pull my changes from coreutils:
97881         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97882         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97883         use of $gnulib_tool_option_extras, so that it's separated from the
97884         preceding argument.
97886         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97887         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97888         parent destination directories before copying a file into place.
97890 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97892         bootstrap: work also with 4-argument variant of AC_INIT
97893         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97895 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97897         Port test-getaddrinfo to Solaris.
97898         Problem reported by Bruno Haible in
97899         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97900         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97901         explanation of setting 'hints'.
97902         Don't reject an implementation merely because it returns EAI_SERVICE.
97903         (EAI_SERVICE): Define to 0 if not defined.
97905 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97907         The license of gnu-make and posix-shell is now "GPLed build tool".
97908         * modules/gnu-make (License): Likewise.
97909         * modules/posix-shell (License): Likewise.
97911         New module posix-shell, for determining a POSIX shell
97912         or perhaps something that is close enough to a POSIX shell.
97913         * m4/posix-shell.m4: New file.
97914         * modules/posix-shell: New file.
97916         * MODULES.html.sh: Mention new module.
97918         New module gnu-make, for determining whether we're using GNU Make.
97919         * m4/gnu-make.m4: New file.
97920         * modules/gnu-make: New file.
97921         * MODULES.html.sh: Mention new module.
97923 2007-11-14  Jim Meyering  <meyering@redhat.com>
97925         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97926         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97927         use this macro to create a function _definition_.
97928         Remove useless "#undef ARGMATCH_DIE".
97930 2007-11-14  Bruno Haible  <bruno@clisp.org>
97932         * lib/config.charset: Update for OpenBSD 4.1.
97933         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97935 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97937         Document 64-bit #if problems in stdint.texi.
97938         * doc/headers/stdint.texi (stdint.h): Mention problems with
97939         64-bit-#if, and how to work around them.
97941         Don't insist on 'long long int' support in the preprocessor.  It
97942         breaks too many things.  For example, PRIdMAX still uses a 'long
97943         long int' format with the latest Sun compiler, even though
97944         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97945         preprocessor problem.  This causes the latest coreutils to dump
97946         core on Solaris 10 sparc with the Sun C compiler.
97947         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97948         the troublesome expressions at configure-time, not at #if-time.
97949         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97950         preprocessor.
97951         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97952         compile-time C checks, done at 'configure'-time.
97953         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97954         * modules/inttypes (Makefile): Substitute the new symbols that
97955         gl_INTTYPES_H now generates.
97956         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97958 2007-11-12  Bruno Haible  <bruno@clisp.org>
97960         Tests for Unicode character classification functions.
97962         * modules/unictype/bidicategory-byname-tests: New file.
97963         * modules/unictype/bidicategory-name-tests: New file.
97964         * modules/unictype/bidicategory-of-tests: New file.
97965         * modules/unictype/bidicategory-test-tests: New file.
97966         * modules/unictype/block-list-tests: New file.
97967         * modules/unictype/block-of-tests: New file.
97968         * modules/unictype/block-test-tests: New file.
97969         * modules/unictype/category-C-tests: New file.
97970         * modules/unictype/category-Cc-tests: New file.
97971         * modules/unictype/category-Cf-tests: New file.
97972         * modules/unictype/category-Cn-tests: New file.
97973         * modules/unictype/category-Co-tests: New file.
97974         * modules/unictype/category-Cs-tests: New file.
97975         * modules/unictype/category-L-tests: New file.
97976         * modules/unictype/category-Ll-tests: New file.
97977         * modules/unictype/category-Lm-tests: New file.
97978         * modules/unictype/category-Lo-tests: New file.
97979         * modules/unictype/category-Lt-tests: New file.
97980         * modules/unictype/category-Lu-tests: New file.
97981         * modules/unictype/category-M-tests: New file.
97982         * modules/unictype/category-Mc-tests: New file.
97983         * modules/unictype/category-Me-tests: New file.
97984         * modules/unictype/category-Mn-tests: New file.
97985         * modules/unictype/category-N-tests: New file.
97986         * modules/unictype/category-Nd-tests: New file.
97987         * modules/unictype/category-Nl-tests: New file.
97988         * modules/unictype/category-No-tests: New file.
97989         * modules/unictype/category-P-tests: New file.
97990         * modules/unictype/category-Pc-tests: New file.
97991         * modules/unictype/category-Pd-tests: New file.
97992         * modules/unictype/category-Pe-tests: New file.
97993         * modules/unictype/category-Pf-tests: New file.
97994         * modules/unictype/category-Pi-tests: New file.
97995         * modules/unictype/category-Po-tests: New file.
97996         * modules/unictype/category-Ps-tests: New file.
97997         * modules/unictype/category-S-tests: New file.
97998         * modules/unictype/category-Sc-tests: New file.
97999         * modules/unictype/category-Sk-tests: New file.
98000         * modules/unictype/category-Sm-tests: New file.
98001         * modules/unictype/category-So-tests: New file.
98002         * modules/unictype/category-Z-tests: New file.
98003         * modules/unictype/category-Zl-tests: New file.
98004         * modules/unictype/category-Zp-tests: New file.
98005         * modules/unictype/category-Zs-tests: New file.
98006         * modules/unictype/category-and-not-tests: New file.
98007         * modules/unictype/category-and-tests: New file.
98008         * modules/unictype/category-byname-tests: New file.
98009         * modules/unictype/category-name-tests: New file.
98010         * modules/unictype/category-none-tests: New file.
98011         * modules/unictype/category-of-tests: New file.
98012         * modules/unictype/category-or-tests: New file.
98013         * modules/unictype/category-test-withtable-tests: New file.
98014         * modules/unictype/combining-class-tests: New file.
98015         * modules/unictype/ctype-alnum-tests: New file.
98016         * modules/unictype/ctype-alpha-tests: New file.
98017         * modules/unictype/ctype-blank-tests: New file.
98018         * modules/unictype/ctype-cntrl-tests: New file.
98019         * modules/unictype/ctype-digit-tests: New file.
98020         * modules/unictype/ctype-graph-tests: New file.
98021         * modules/unictype/ctype-lower-tests: New file.
98022         * modules/unictype/ctype-print-tests: New file.
98023         * modules/unictype/ctype-punct-tests: New file.
98024         * modules/unictype/ctype-space-tests: New file.
98025         * modules/unictype/ctype-upper-tests: New file.
98026         * modules/unictype/ctype-xdigit-tests: New file.
98027         * modules/unictype/decimal-digit-tests: New file.
98028         * modules/unictype/digit-tests: New file.
98029         * modules/unictype/mirror-tests: New file.
98030         * modules/unictype/numeric-tests: New file.
98031         * modules/unictype/property-alphabetic-tests: New file.
98032         * modules/unictype/property-ascii-hex-digit-tests: New file.
98033         * modules/unictype/property-bidi-arabic-digit-tests: New file.
98034         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
98035         * modules/unictype/property-bidi-block-separator-tests: New file.
98036         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
98037         * modules/unictype/property-bidi-common-separator-tests: New file.
98038         * modules/unictype/property-bidi-control-tests: New file.
98039         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
98040         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
98041         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
98042         * modules/unictype/property-bidi-european-digit-tests: New file.
98043         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
98044         * modules/unictype/property-bidi-left-to-right-tests: New file.
98045         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
98046         * modules/unictype/property-bidi-other-neutral-tests: New file.
98047         * modules/unictype/property-bidi-pdf-tests: New file.
98048         * modules/unictype/property-bidi-segment-separator-tests: New file.
98049         * modules/unictype/property-bidi-whitespace-tests: New file.
98050         * modules/unictype/property-byname-tests: New file.
98051         * modules/unictype/property-combining-tests: New file.
98052         * modules/unictype/property-composite-tests: New file.
98053         * modules/unictype/property-currency-symbol-tests: New file.
98054         * modules/unictype/property-dash-tests: New file.
98055         * modules/unictype/property-decimal-digit-tests: New file.
98056         * modules/unictype/property-default-ignorable-code-point-tests: New file.
98057         * modules/unictype/property-deprecated-tests: New file.
98058         * modules/unictype/property-diacritic-tests: New file.
98059         * modules/unictype/property-extender-tests: New file.
98060         * modules/unictype/property-format-control-tests: New file.
98061         * modules/unictype/property-grapheme-base-tests: New file.
98062         * modules/unictype/property-grapheme-extend-tests: New file.
98063         * modules/unictype/property-grapheme-link-tests: New file.
98064         * modules/unictype/property-hex-digit-tests: New file.
98065         * modules/unictype/property-hyphen-tests: New file.
98066         * modules/unictype/property-id-continue-tests: New file.
98067         * modules/unictype/property-id-start-tests: New file.
98068         * modules/unictype/property-ideographic-tests: New file.
98069         * modules/unictype/property-ids-binary-operator-tests: New file.
98070         * modules/unictype/property-ids-trinary-operator-tests: New file.
98071         * modules/unictype/property-ignorable-control-tests: New file.
98072         * modules/unictype/property-iso-control-tests: New file.
98073         * modules/unictype/property-join-control-tests: New file.
98074         * modules/unictype/property-left-of-pair-tests: New file.
98075         * modules/unictype/property-line-separator-tests: New file.
98076         * modules/unictype/property-logical-order-exception-tests: New file.
98077         * modules/unictype/property-lowercase-tests: New file.
98078         * modules/unictype/property-math-tests: New file.
98079         * modules/unictype/property-non-break-tests: New file.
98080         * modules/unictype/property-not-a-character-tests: New file.
98081         * modules/unictype/property-numeric-tests: New file.
98082         * modules/unictype/property-other-alphabetic-tests: New file.
98083         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
98084         * modules/unictype/property-other-grapheme-extend-tests: New file.
98085         * modules/unictype/property-other-id-continue-tests: New file.
98086         * modules/unictype/property-other-id-start-tests: New file.
98087         * modules/unictype/property-other-lowercase-tests: New file.
98088         * modules/unictype/property-other-math-tests: New file.
98089         * modules/unictype/property-other-uppercase-tests: New file.
98090         * modules/unictype/property-paired-punctuation-tests: New file.
98091         * modules/unictype/property-paragraph-separator-tests: New file.
98092         * modules/unictype/property-pattern-syntax-tests: New file.
98093         * modules/unictype/property-pattern-white-space-tests: New file.
98094         * modules/unictype/property-private-use-tests: New file.
98095         * modules/unictype/property-punctuation-tests: New file.
98096         * modules/unictype/property-quotation-mark-tests: New file.
98097         * modules/unictype/property-radical-tests: New file.
98098         * modules/unictype/property-sentence-terminal-tests: New file.
98099         * modules/unictype/property-soft-dotted-tests: New file.
98100         * modules/unictype/property-space-tests: New file.
98101         * modules/unictype/property-terminal-punctuation-tests: New file.
98102         * modules/unictype/property-test-tests: New file.
98103         * modules/unictype/property-titlecase-tests: New file.
98104         * modules/unictype/property-unassigned-code-value-tests: New file.
98105         * modules/unictype/property-unified-ideograph-tests: New file.
98106         * modules/unictype/property-uppercase-tests: New file.
98107         * modules/unictype/property-variation-selector-tests: New file.
98108         * modules/unictype/property-white-space-tests: New file.
98109         * modules/unictype/property-xid-continue-tests: New file.
98110         * modules/unictype/property-xid-start-tests: New file.
98111         * modules/unictype/property-zero-width-tests: New file.
98112         * modules/unictype/scripts-tests: New file.
98113         * modules/unictype/syntax-c-ident-tests: New file.
98114         * modules/unictype/syntax-c-whitespace-tests: New file.
98115         * modules/unictype/syntax-java-ident-tests: New file.
98116         * modules/unictype/syntax-java-whitespace-tests: New file.
98117         * tests/unictype/test-bidi_byname.c: New file.
98118         * tests/unictype/test-bidi_name.c: New file.
98119         * tests/unictype/test-bidi_of.c: New file.
98120         * tests/unictype/test-bidi_test.c: New file.
98121         * tests/unictype/test-block_list.c: New file.
98122         * tests/unictype/test-block_of.c: New file.
98123         * tests/unictype/test-block_test.c: New file.
98124         * tests/unictype/test-categ_and.c: New file.
98125         * tests/unictype/test-categ_and_not.c: New file.
98126         * tests/unictype/test-categ_byname.c: New file.
98127         * tests/unictype/test-categ_name.c: New file.
98128         * tests/unictype/test-categ_none.c: New file.
98129         * tests/unictype/test-categ_of.c: New file.
98130         * tests/unictype/test-categ_or.c: New file.
98131         * tests/unictype/test-categ_test_withtable.c: New file.
98132         * tests/unictype/test-combining.c: New file.
98133         * tests/unictype/test-decdigit.c: New file.
98134         * tests/unictype/test-digit.c: New file.
98135         * tests/unictype/test-mirror.c: New file.
98136         * tests/unictype/test-numeric.c: New file.
98137         * tests/unictype/test-pr_byname.c: New file.
98138         * tests/unictype/test-pr_test.c: New file.
98139         * tests/unictype/test-predicate-part1.h: New file.
98140         * tests/unictype/test-predicate-part2.h: New file.
98141         * tests/unictype/test-scripts.c: New file.
98142         * tests/unictype/test-sy_c_ident.c: New file.
98143         * tests/unictype/test-sy_java_ident.c: New file.
98145         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
98146         for Unicode 5.0.0.
98147         * tests/unictype/test-categ_Cc.c: Likewise.
98148         * tests/unictype/test-categ_Cf.c: Likewise.
98149         * tests/unictype/test-categ_Cn.c: Likewise.
98150         * tests/unictype/test-categ_Co.c: Likewise.
98151         * tests/unictype/test-categ_Cs.c: Likewise.
98152         * tests/unictype/test-categ_L.c: Likewise.
98153         * tests/unictype/test-categ_Ll.c: Likewise.
98154         * tests/unictype/test-categ_Lm.c: Likewise.
98155         * tests/unictype/test-categ_Lo.c: Likewise.
98156         * tests/unictype/test-categ_Lt.c: Likewise.
98157         * tests/unictype/test-categ_Lu.c: Likewise.
98158         * tests/unictype/test-categ_M.c: Likewise.
98159         * tests/unictype/test-categ_Mc.c: Likewise.
98160         * tests/unictype/test-categ_Me.c: Likewise.
98161         * tests/unictype/test-categ_Mn.c: Likewise.
98162         * tests/unictype/test-categ_N.c: Likewise.
98163         * tests/unictype/test-categ_Nd.c: Likewise.
98164         * tests/unictype/test-categ_Nl.c: Likewise.
98165         * tests/unictype/test-categ_No.c: Likewise.
98166         * tests/unictype/test-categ_P.c: Likewise.
98167         * tests/unictype/test-categ_Pc.c: Likewise.
98168         * tests/unictype/test-categ_Pd.c: Likewise.
98169         * tests/unictype/test-categ_Pe.c: Likewise.
98170         * tests/unictype/test-categ_Pf.c: Likewise.
98171         * tests/unictype/test-categ_Pi.c: Likewise.
98172         * tests/unictype/test-categ_Po.c: Likewise.
98173         * tests/unictype/test-categ_Ps.c: Likewise.
98174         * tests/unictype/test-categ_S.c: Likewise.
98175         * tests/unictype/test-categ_Sc.c: Likewise.
98176         * tests/unictype/test-categ_Sk.c: Likewise.
98177         * tests/unictype/test-categ_Sm.c: Likewise.
98178         * tests/unictype/test-categ_So.c: Likewise.
98179         * tests/unictype/test-categ_Z.c: Likewise.
98180         * tests/unictype/test-categ_Zl.c: Likewise.
98181         * tests/unictype/test-categ_Zp.c: Likewise.
98182         * tests/unictype/test-categ_Zs.c: Likewise.
98183         * tests/unictype/test-ctype_alnum.c: Likewise.
98184         * tests/unictype/test-ctype_alpha.c: Likewise.
98185         * tests/unictype/test-ctype_blank.c: Likewise.
98186         * tests/unictype/test-ctype_cntrl.c: Likewise.
98187         * tests/unictype/test-ctype_digit.c: Likewise.
98188         * tests/unictype/test-ctype_graph.c: Likewise.
98189         * tests/unictype/test-ctype_lower.c: Likewise.
98190         * tests/unictype/test-ctype_print.c: Likewise.
98191         * tests/unictype/test-ctype_punct.c: Likewise.
98192         * tests/unictype/test-ctype_space.c: Likewise.
98193         * tests/unictype/test-ctype_upper.c: Likewise.
98194         * tests/unictype/test-ctype_xdigit.c: Likewise.
98195         * tests/unictype/test-decdigit.h: Likewise.
98196         * tests/unictype/test-digit.h: Likewise.
98197         * tests/unictype/test-numeric.h: Likewise.
98198         * tests/unictype/test-pr_alphabetic.c: Likewise.
98199         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
98200         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
98201         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
98202         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
98203         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
98204         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
98205         * tests/unictype/test-pr_bidi_control.c: Likewise.
98206         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
98207         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
98208         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
98209         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
98210         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
98211         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
98212         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
98213         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
98214         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
98215         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
98216         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
98217         * tests/unictype/test-pr_combining.c: Likewise.
98218         * tests/unictype/test-pr_composite.c: Likewise.
98219         * tests/unictype/test-pr_currency_symbol.c: Likewise.
98220         * tests/unictype/test-pr_dash.c: Likewise.
98221         * tests/unictype/test-pr_decimal_digit.c: Likewise.
98222         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
98223         * tests/unictype/test-pr_deprecated.c: Likewise.
98224         * tests/unictype/test-pr_diacritic.c: Likewise.
98225         * tests/unictype/test-pr_extender.c: Likewise.
98226         * tests/unictype/test-pr_format_control.c: Likewise.
98227         * tests/unictype/test-pr_grapheme_base.c: Likewise.
98228         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
98229         * tests/unictype/test-pr_grapheme_link.c: Likewise.
98230         * tests/unictype/test-pr_hex_digit.c: Likewise.
98231         * tests/unictype/test-pr_hyphen.c: Likewise.
98232         * tests/unictype/test-pr_id_continue.c: Likewise.
98233         * tests/unictype/test-pr_id_start.c: Likewise.
98234         * tests/unictype/test-pr_ideographic.c: Likewise.
98235         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
98236         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
98237         * tests/unictype/test-pr_ignorable_control.c: Likewise.
98238         * tests/unictype/test-pr_iso_control.c: Likewise.
98239         * tests/unictype/test-pr_join_control.c: Likewise.
98240         * tests/unictype/test-pr_left_of_pair.c: Likewise.
98241         * tests/unictype/test-pr_line_separator.c: Likewise.
98242         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
98243         * tests/unictype/test-pr_lowercase.c: Likewise.
98244         * tests/unictype/test-pr_math.c: Likewise.
98245         * tests/unictype/test-pr_non_break.c: Likewise.
98246         * tests/unictype/test-pr_not_a_character.c: Likewise.
98247         * tests/unictype/test-pr_numeric.c: Likewise.
98248         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
98249         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
98250         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
98251         * tests/unictype/test-pr_other_id_continue.c: Likewise.
98252         * tests/unictype/test-pr_other_id_start.c: Likewise.
98253         * tests/unictype/test-pr_other_lowercase.c: Likewise.
98254         * tests/unictype/test-pr_other_math.c: Likewise.
98255         * tests/unictype/test-pr_other_uppercase.c: Likewise.
98256         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
98257         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
98258         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
98259         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
98260         * tests/unictype/test-pr_private_use.c: Likewise.
98261         * tests/unictype/test-pr_punctuation.c: Likewise.
98262         * tests/unictype/test-pr_quotation_mark.c: Likewise.
98263         * tests/unictype/test-pr_radical.c: Likewise.
98264         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
98265         * tests/unictype/test-pr_soft_dotted.c: Likewise.
98266         * tests/unictype/test-pr_space.c: Likewise.
98267         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
98268         * tests/unictype/test-pr_titlecase.c: Likewise.
98269         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
98270         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
98271         * tests/unictype/test-pr_uppercase.c: Likewise.
98272         * tests/unictype/test-pr_variation_selector.c: Likewise.
98273         * tests/unictype/test-pr_white_space.c: Likewise.
98274         * tests/unictype/test-pr_xid_continue.c: Likewise.
98275         * tests/unictype/test-pr_xid_start.c: Likewise.
98276         * tests/unictype/test-pr_zero_width.c: Likewise.
98277         * tests/unictype/test-sy_c_whitespace.c: Likewise.
98278         * tests/unictype/test-sy_java_whitespace.c: Likewise.
98280 2007-11-12  Bruno Haible  <bruno@clisp.org>
98282         Unicode character classification functions.
98283         * lib/unictype.h: New file.
98284         * modules/unictype/base: New file.
98285         * modules/unictype/category-L: New file.
98286         * modules/unictype/category-Lu: New file.
98287         * modules/unictype/category-Ll: New file.
98288         * modules/unictype/category-Lt: New file.
98289         * modules/unictype/category-Lm: New file.
98290         * modules/unictype/category-Lo: New file.
98291         * modules/unictype/category-M: New file.
98292         * modules/unictype/category-Mn: New file.
98293         * modules/unictype/category-Mc: New file.
98294         * modules/unictype/category-Me: New file.
98295         * modules/unictype/category-N: New file.
98296         * modules/unictype/category-Nd: New file.
98297         * modules/unictype/category-Nl: New file.
98298         * modules/unictype/category-No: New file.
98299         * modules/unictype/category-P: New file.
98300         * modules/unictype/category-Pc: New file.
98301         * modules/unictype/category-Pd: New file.
98302         * modules/unictype/category-Ps: New file.
98303         * modules/unictype/category-Pe: New file.
98304         * modules/unictype/category-Pi: New file.
98305         * modules/unictype/category-Pf: New file.
98306         * modules/unictype/category-Po: New file.
98307         * modules/unictype/category-S: New file.
98308         * modules/unictype/category-Sm: New file.
98309         * modules/unictype/category-Sc: New file.
98310         * modules/unictype/category-Sk: New file.
98311         * modules/unictype/category-So: New file.
98312         * modules/unictype/category-Z: New file.
98313         * modules/unictype/category-Zs: New file.
98314         * modules/unictype/category-Zl: New file.
98315         * modules/unictype/category-Zp: New file.
98316         * modules/unictype/category-C: New file.
98317         * modules/unictype/category-Cc: New file.
98318         * modules/unictype/category-Cf: New file.
98319         * modules/unictype/category-Cs: New file.
98320         * modules/unictype/category-Co: New file.
98321         * modules/unictype/category-Cn: New file.
98322         * modules/unictype/category-or: New file.
98323         * modules/unictype/category-of: New file.
98324         * modules/unictype/category-test: New file.
98325         * modules/unictype/category-test-withtable: New file.
98326         * modules/unictype/category-byname: New file.
98327         * modules/unictype/category-none: New file.
98328         * modules/unictype/category-and: New file.
98329         * modules/unictype/category-and-not: New file.
98330         * modules/unictype/category-name: New file.
98331         * modules/unictype/combining-class: New file.
98332         * modules/unictype/category-all: New file.
98333         * modules/unictype/bidicategory-all: New file.
98334         * modules/unictype/bidicategory-byname: New file.
98335         * modules/unictype/bidicategory-name: New file.
98336         * modules/unictype/bidicategory-of: New file.
98337         * modules/unictype/bidicategory-test: New file.
98338         * modules/unictype/decimal-digit: New file.
98339         * modules/unictype/digit: New file.
98340         * modules/unictype/numeric: New file.
98341         * modules/unictype/mirror: New file.
98342         * modules/unictype/property-white-space: New file.
98343         * modules/unictype/property-alphabetic: New file.
98344         * modules/unictype/property-other-alphabetic: New file.
98345         * modules/unictype/property-not-a-character: New file.
98346         * modules/unictype/property-default-ignorable-code-point: New file.
98347         * modules/unictype/property-other-default-ignorable-code-point: New
98348         file.
98349         * modules/unictype/property-deprecated: New file.
98350         * modules/unictype/property-logical-order-exception: New file.
98351         * modules/unictype/property-variation-selector: New file.
98352         * modules/unictype/property-private-use: New file.
98353         * modules/unictype/property-unassigned-code-value: New file.
98354         * modules/unictype/property-uppercase: New file.
98355         * modules/unictype/property-other-uppercase: New file.
98356         * modules/unictype/property-lowercase: New file.
98357         * modules/unictype/property-other-lowercase: New file.
98358         * modules/unictype/property-titlecase: New file.
98359         * modules/unictype/property-soft-dotted: New file.
98360         * modules/unictype/property-id-start: New file.
98361         * modules/unictype/property-other-id-start: New file.
98362         * modules/unictype/property-id-continue: New file.
98363         * modules/unictype/property-other-id-continue: New file.
98364         * modules/unictype/property-xid-start: New file.
98365         * modules/unictype/property-xid-continue: New file.
98366         * modules/unictype/property-pattern-white-space: New file.
98367         * modules/unictype/property-pattern-syntax: New file.
98368         * modules/unictype/property-join-control: New file.
98369         * modules/unictype/property-grapheme-base: New file.
98370         * modules/unictype/property-grapheme-extend: New file.
98371         * modules/unictype/property-other-grapheme-extend: New file.
98372         * modules/unictype/property-grapheme-link: New file.
98373         * modules/unictype/property-bidi-control: New file.
98374         * modules/unictype/property-bidi-left-to-right: New file.
98375         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98376         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98377         * modules/unictype/property-bidi-european-digit: New file.
98378         * modules/unictype/property-bidi-eur-num-separator: New file.
98379         * modules/unictype/property-bidi-eur-num-terminator: New file.
98380         * modules/unictype/property-bidi-arabic-digit: New file.
98381         * modules/unictype/property-bidi-common-separator: New file.
98382         * modules/unictype/property-bidi-block-separator: New file.
98383         * modules/unictype/property-bidi-segment-separator: New file.
98384         * modules/unictype/property-bidi-whitespace: New file.
98385         * modules/unictype/property-bidi-non-spacing-mark: New file.
98386         * modules/unictype/property-bidi-boundary-neutral: New file.
98387         * modules/unictype/property-bidi-pdf: New file.
98388         * modules/unictype/property-bidi-embedding-or-override: New file.
98389         * modules/unictype/property-bidi-other-neutral: New file.
98390         * modules/unictype/property-hex-digit: New file.
98391         * modules/unictype/property-ascii-hex-digit: New file.
98392         * modules/unictype/property-ideographic: New file.
98393         * modules/unictype/property-unified-ideograph: New file.
98394         * modules/unictype/property-radical: New file.
98395         * modules/unictype/property-ids-binary-operator: New file.
98396         * modules/unictype/property-ids-trinary-operator: New file.
98397         * modules/unictype/property-zero-width: New file.
98398         * modules/unictype/property-space: New file.
98399         * modules/unictype/property-non-break: New file.
98400         * modules/unictype/property-iso-control: New file.
98401         * modules/unictype/property-format-control: New file.
98402         * modules/unictype/property-dash: New file.
98403         * modules/unictype/property-hyphen: New file.
98404         * modules/unictype/property-punctuation: New file.
98405         * modules/unictype/property-line-separator: New file.
98406         * modules/unictype/property-paragraph-separator: New file.
98407         * modules/unictype/property-quotation-mark: New file.
98408         * modules/unictype/property-sentence-terminal: New file.
98409         * modules/unictype/property-terminal-punctuation: New file.
98410         * modules/unictype/property-currency-symbol: New file.
98411         * modules/unictype/property-math: New file.
98412         * modules/unictype/property-other-math: New file.
98413         * modules/unictype/property-paired-punctuation: New file.
98414         * modules/unictype/property-left-of-pair: New file.
98415         * modules/unictype/property-combining: New file.
98416         * modules/unictype/property-composite: New file.
98417         * modules/unictype/property-decimal-digit: New file.
98418         * modules/unictype/property-numeric: New file.
98419         * modules/unictype/property-diacritic: New file.
98420         * modules/unictype/property-extender: New file.
98421         * modules/unictype/property-ignorable-control: New file.
98422         * modules/unictype/property-test: New file.
98423         * modules/unictype/property-byname: New file.
98424         * modules/unictype/property-all: New file.
98425         * modules/unictype/scripts: New file.
98426         * modules/unictype/scripts-all: New file.
98427         * modules/unictype/block-of: New file.
98428         * modules/unictype/block-test: New file.
98429         * modules/unictype/block-list: New file.
98430         * modules/unictype/block-all: New file.
98431         * modules/unictype/syntax-c-whitespace: New file.
98432         * modules/unictype/syntax-java-whitespace: New file.
98433         * modules/unictype/syntax-c-ident: New file.
98434         * modules/unictype/syntax-java-ident: New file.
98435         * modules/unictype/ctype-alnum: New file.
98436         * modules/unictype/ctype-alpha: New file.
98437         * modules/unictype/ctype-cntrl: New file.
98438         * modules/unictype/ctype-digit: New file.
98439         * modules/unictype/ctype-graph: New file.
98440         * modules/unictype/ctype-lower: New file.
98441         * modules/unictype/ctype-print: New file.
98442         * modules/unictype/ctype-punct: New file.
98443         * modules/unictype/ctype-space: New file.
98444         * modules/unictype/ctype-upper: New file.
98445         * modules/unictype/ctype-xdigit: New file.
98446         * modules/unictype/ctype-blank: New file.
98447         * lib/unictype/bidi_byname.c: New file.
98448         * lib/unictype/bidi_name.c: New file.
98449         * lib/unictype/bidi_of.c: New file.
98450         * lib/unictype/bidi_test.c: New file.
98451         * lib/unictype/bitmap.h: New file.
98452         * lib/unictype/block_test.c: New file.
98453         * lib/unictype/blocks.c: New file.
98454         * lib/unictype/categ_C.c: New file.
98455         * lib/unictype/categ_Cc.c: New file.
98456         * lib/unictype/categ_Cf.c: New file.
98457         * lib/unictype/categ_Cn.c: New file.
98458         * lib/unictype/categ_Co.c: New file.
98459         * lib/unictype/categ_Cs.c: New file.
98460         * lib/unictype/categ_L.c: New file.
98461         * lib/unictype/categ_Ll.c: New file.
98462         * lib/unictype/categ_Lm.c: New file.
98463         * lib/unictype/categ_Lo.c: New file.
98464         * lib/unictype/categ_Lt.c: New file.
98465         * lib/unictype/categ_Lu.c: New file.
98466         * lib/unictype/categ_M.c: New file.
98467         * lib/unictype/categ_Mc.c: New file.
98468         * lib/unictype/categ_Me.c: New file.
98469         * lib/unictype/categ_Mn.c: New file.
98470         * lib/unictype/categ_N.c: New file.
98471         * lib/unictype/categ_Nd.c: New file.
98472         * lib/unictype/categ_Nl.c: New file.
98473         * lib/unictype/categ_No.c: New file.
98474         * lib/unictype/categ_P.c: New file.
98475         * lib/unictype/categ_Pc.c: New file.
98476         * lib/unictype/categ_Pd.c: New file.
98477         * lib/unictype/categ_Pe.c: New file.
98478         * lib/unictype/categ_Pf.c: New file.
98479         * lib/unictype/categ_Pi.c: New file.
98480         * lib/unictype/categ_Po.c: New file.
98481         * lib/unictype/categ_Ps.c: New file.
98482         * lib/unictype/categ_S.c: New file.
98483         * lib/unictype/categ_Sc.c: New file.
98484         * lib/unictype/categ_Sk.c: New file.
98485         * lib/unictype/categ_Sm.c: New file.
98486         * lib/unictype/categ_So.c: New file.
98487         * lib/unictype/categ_Z.c: New file.
98488         * lib/unictype/categ_Zl.c: New file.
98489         * lib/unictype/categ_Zp.c: New file.
98490         * lib/unictype/categ_Zs.c: New file.
98491         * lib/unictype/categ_and.c: New file.
98492         * lib/unictype/categ_and_not.c: New file.
98493         * lib/unictype/categ_byname.c: New file.
98494         * lib/unictype/categ_name.c: New file.
98495         * lib/unictype/categ_none.c: New file.
98496         * lib/unictype/categ_of.c: New file.
98497         * lib/unictype/categ_or.c: New file.
98498         * lib/unictype/categ_test.c: New file.
98499         * lib/unictype/combining.c: New file.
98500         * lib/unictype/ctype_alnum.c: New file.
98501         * lib/unictype/ctype_alpha.c: New file.
98502         * lib/unictype/ctype_blank.c: New file.
98503         * lib/unictype/ctype_cntrl.c: New file.
98504         * lib/unictype/ctype_digit.c: New file.
98505         * lib/unictype/ctype_graph.c: New file.
98506         * lib/unictype/ctype_lower.c: New file.
98507         * lib/unictype/ctype_print.c: New file.
98508         * lib/unictype/ctype_punct.c: New file.
98509         * lib/unictype/ctype_space.c: New file.
98510         * lib/unictype/ctype_upper.c: New file.
98511         * lib/unictype/ctype_xdigit.c: New file.
98512         * lib/unictype/decdigit.c: New file.
98513         * lib/unictype/digit.c: New file.
98514         * lib/unictype/identsyntaxmap.h: New file.
98515         * lib/unictype/mirror.c: New file.
98516         * lib/unictype/numeric.c: New file.
98517         * lib/unictype/pr_alphabetic.c: New file.
98518         * lib/unictype/pr_ascii_hex_digit.c: New file.
98519         * lib/unictype/pr_bidi_arabic_digit.c: New file.
98520         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
98521         * lib/unictype/pr_bidi_block_separator.c: New file.
98522         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
98523         * lib/unictype/pr_bidi_common_separator.c: New file.
98524         * lib/unictype/pr_bidi_control.c: New file.
98525         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
98526         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
98527         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
98528         * lib/unictype/pr_bidi_european_digit.c: New file.
98529         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
98530         * lib/unictype/pr_bidi_left_to_right.c: New file.
98531         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
98532         * lib/unictype/pr_bidi_other_neutral.c: New file.
98533         * lib/unictype/pr_bidi_pdf.c: New file.
98534         * lib/unictype/pr_bidi_segment_separator.c: New file.
98535         * lib/unictype/pr_bidi_whitespace.c: New file.
98536         * lib/unictype/pr_byname.c: New file.
98537         * lib/unictype/pr_byname.gperf: New file.
98538         * lib/unictype/pr_combining.c: New file.
98539         * lib/unictype/pr_composite.c: New file.
98540         * lib/unictype/pr_currency_symbol.c: New file.
98541         * lib/unictype/pr_dash.c: New file.
98542         * lib/unictype/pr_decimal_digit.c: New file.
98543         * lib/unictype/pr_default_ignorable_code_point.c: New file.
98544         * lib/unictype/pr_deprecated.c: New file.
98545         * lib/unictype/pr_diacritic.c: New file.
98546         * lib/unictype/pr_extender.c: New file.
98547         * lib/unictype/pr_format_control.c: New file.
98548         * lib/unictype/pr_grapheme_base.c: New file.
98549         * lib/unictype/pr_grapheme_extend.c: New file.
98550         * lib/unictype/pr_grapheme_link.c: New file.
98551         * lib/unictype/pr_hex_digit.c: New file.
98552         * lib/unictype/pr_hyphen.c: New file.
98553         * lib/unictype/pr_id_continue.c: New file.
98554         * lib/unictype/pr_id_start.c: New file.
98555         * lib/unictype/pr_ideographic.c: New file.
98556         * lib/unictype/pr_ids_binary_operator.c: New file.
98557         * lib/unictype/pr_ids_trinary_operator.c: New file.
98558         * lib/unictype/pr_ignorable_control.c: New file.
98559         * lib/unictype/pr_iso_control.c: New file.
98560         * lib/unictype/pr_join_control.c: New file.
98561         * lib/unictype/pr_left_of_pair.c: New file.
98562         * lib/unictype/pr_line_separator.c: New file.
98563         * lib/unictype/pr_logical_order_exception.c: New file.
98564         * lib/unictype/pr_lowercase.c: New file.
98565         * lib/unictype/pr_math.c: New file.
98566         * lib/unictype/pr_non_break.c: New file.
98567         * lib/unictype/pr_not_a_character.c: New file.
98568         * lib/unictype/pr_numeric.c: New file.
98569         * lib/unictype/pr_other_alphabetic.c: New file.
98570         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
98571         * lib/unictype/pr_other_grapheme_extend.c: New file.
98572         * lib/unictype/pr_other_id_continue.c: New file.
98573         * lib/unictype/pr_other_id_start.c: New file.
98574         * lib/unictype/pr_other_lowercase.c: New file.
98575         * lib/unictype/pr_other_math.c: New file.
98576         * lib/unictype/pr_other_uppercase.c: New file.
98577         * lib/unictype/pr_paired_punctuation.c: New file.
98578         * lib/unictype/pr_paragraph_separator.c: New file.
98579         * lib/unictype/pr_pattern_syntax.c: New file.
98580         * lib/unictype/pr_pattern_white_space.c: New file.
98581         * lib/unictype/pr_private_use.c: New file.
98582         * lib/unictype/pr_punctuation.c: New file.
98583         * lib/unictype/pr_quotation_mark.c: New file.
98584         * lib/unictype/pr_radical.c: New file.
98585         * lib/unictype/pr_sentence_terminal.c: New file.
98586         * lib/unictype/pr_soft_dotted.c: New file.
98587         * lib/unictype/pr_space.c: New file.
98588         * lib/unictype/pr_terminal_punctuation.c: New file.
98589         * lib/unictype/pr_test.c: New file.
98590         * lib/unictype/pr_titlecase.c: New file.
98591         * lib/unictype/pr_unassigned_code_value.c: New file.
98592         * lib/unictype/pr_unified_ideograph.c: New file.
98593         * lib/unictype/pr_uppercase.c: New file.
98594         * lib/unictype/pr_variation_selector.c: New file.
98595         * lib/unictype/pr_white_space.c: New file.
98596         * lib/unictype/pr_xid_continue.c: New file.
98597         * lib/unictype/pr_xid_start.c: New file.
98598         * lib/unictype/pr_zero_width.c: New file.
98599         * lib/unictype/scripts.c: New file.
98600         * lib/unictype/sy_c_ident.c: New file.
98601         * lib/unictype/sy_c_whitespace.c: New file.
98602         * lib/unictype/sy_java_ident.c: New file.
98603         * lib/unictype/sy_java_whitespace.c: New file.
98605         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
98606         Unicode 5.0.0.
98607         * lib/unictype/blocks.h: Likewise.
98608         * lib/unictype/categ_C.h: Likewise.
98609         * lib/unictype/categ_Cc.h: Likewise.
98610         * lib/unictype/categ_Cf.h: Likewise.
98611         * lib/unictype/categ_Cn.h: Likewise.
98612         * lib/unictype/categ_Co.h: Likewise.
98613         * lib/unictype/categ_Cs.h: Likewise.
98614         * lib/unictype/categ_L.h: Likewise.
98615         * lib/unictype/categ_Ll.h: Likewise.
98616         * lib/unictype/categ_Lm.h: Likewise.
98617         * lib/unictype/categ_Lo.h: Likewise.
98618         * lib/unictype/categ_Lt.h: Likewise.
98619         * lib/unictype/categ_Lu.h: Likewise.
98620         * lib/unictype/categ_M.h: Likewise.
98621         * lib/unictype/categ_Mc.h: Likewise.
98622         * lib/unictype/categ_Me.h: Likewise.
98623         * lib/unictype/categ_Mn.h: Likewise.
98624         * lib/unictype/categ_N.h: Likewise.
98625         * lib/unictype/categ_Nd.h: Likewise.
98626         * lib/unictype/categ_Nl.h: Likewise.
98627         * lib/unictype/categ_No.h: Likewise.
98628         * lib/unictype/categ_P.h: Likewise.
98629         * lib/unictype/categ_Pc.h: Likewise.
98630         * lib/unictype/categ_Pd.h: Likewise.
98631         * lib/unictype/categ_Pe.h: Likewise.
98632         * lib/unictype/categ_Pf.h: Likewise.
98633         * lib/unictype/categ_Pi.h: Likewise.
98634         * lib/unictype/categ_Po.h: Likewise.
98635         * lib/unictype/categ_Ps.h: Likewise.
98636         * lib/unictype/categ_S.h: Likewise.
98637         * lib/unictype/categ_Sc.h: Likewise.
98638         * lib/unictype/categ_Sk.h: Likewise.
98639         * lib/unictype/categ_Sm.h: Likewise.
98640         * lib/unictype/categ_So.h: Likewise.
98641         * lib/unictype/categ_Z.h: Likewise.
98642         * lib/unictype/categ_Zl.h: Likewise.
98643         * lib/unictype/categ_Zp.h: Likewise.
98644         * lib/unictype/categ_Zs.h: Likewise.
98645         * lib/unictype/categ_of.h: Likewise.
98646         * lib/unictype/combining.h: Likewise.
98647         * lib/unictype/ctype_alnum.h: Likewise.
98648         * lib/unictype/ctype_alpha.h: Likewise.
98649         * lib/unictype/ctype_blank.h: Likewise.
98650         * lib/unictype/ctype_cntrl.h: Likewise.
98651         * lib/unictype/ctype_digit.h: Likewise.
98652         * lib/unictype/ctype_graph.h: Likewise.
98653         * lib/unictype/ctype_lower.h: Likewise.
98654         * lib/unictype/ctype_print.h: Likewise.
98655         * lib/unictype/ctype_punct.h: Likewise.
98656         * lib/unictype/ctype_space.h: Likewise.
98657         * lib/unictype/ctype_upper.h: Likewise.
98658         * lib/unictype/ctype_xdigit.h: Likewise.
98659         * lib/unictype/decdigit.h: Likewise.
98660         * lib/unictype/digit.h: Likewise.
98661         * lib/unictype/mirror.h: Likewise.
98662         * lib/unictype/numeric.h: Likewise.
98663         * lib/unictype/pr_alphabetic.h: Likewise.
98664         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98665         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98666         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98667         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98668         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98669         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98670         * lib/unictype/pr_bidi_control.h: Likewise.
98671         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98672         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98673         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98674         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98675         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98676         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98677         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98678         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98679         * lib/unictype/pr_bidi_pdf.h: Likewise.
98680         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98681         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98682         * lib/unictype/pr_combining.h: Likewise.
98683         * lib/unictype/pr_composite.h: Likewise.
98684         * lib/unictype/pr_currency_symbol.h: Likewise.
98685         * lib/unictype/pr_dash.h: Likewise.
98686         * lib/unictype/pr_decimal_digit.h: Likewise.
98687         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98688         * lib/unictype/pr_deprecated.h: Likewise.
98689         * lib/unictype/pr_diacritic.h: Likewise.
98690         * lib/unictype/pr_extender.h: Likewise.
98691         * lib/unictype/pr_format_control.h: Likewise.
98692         * lib/unictype/pr_grapheme_base.h: Likewise.
98693         * lib/unictype/pr_grapheme_extend.h: Likewise.
98694         * lib/unictype/pr_grapheme_link.h: Likewise.
98695         * lib/unictype/pr_hex_digit.h: Likewise.
98696         * lib/unictype/pr_hyphen.h: Likewise.
98697         * lib/unictype/pr_id_continue.h: Likewise.
98698         * lib/unictype/pr_id_start.h: Likewise.
98699         * lib/unictype/pr_ideographic.h: Likewise.
98700         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98701         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98702         * lib/unictype/pr_ignorable_control.h: Likewise.
98703         * lib/unictype/pr_iso_control.h: Likewise.
98704         * lib/unictype/pr_join_control.h: Likewise.
98705         * lib/unictype/pr_left_of_pair.h: Likewise.
98706         * lib/unictype/pr_line_separator.h: Likewise.
98707         * lib/unictype/pr_logical_order_exception.h: Likewise.
98708         * lib/unictype/pr_lowercase.h: Likewise.
98709         * lib/unictype/pr_math.h: Likewise.
98710         * lib/unictype/pr_non_break.h: Likewise.
98711         * lib/unictype/pr_not_a_character.h: Likewise.
98712         * lib/unictype/pr_numeric.h: Likewise.
98713         * lib/unictype/pr_other_alphabetic.h: Likewise.
98714         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98715         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98716         * lib/unictype/pr_other_id_continue.h: Likewise.
98717         * lib/unictype/pr_other_id_start.h: Likewise.
98718         * lib/unictype/pr_other_lowercase.h: Likewise.
98719         * lib/unictype/pr_other_math.h: Likewise.
98720         * lib/unictype/pr_other_uppercase.h: Likewise.
98721         * lib/unictype/pr_paired_punctuation.h: Likewise.
98722         * lib/unictype/pr_paragraph_separator.h: Likewise.
98723         * lib/unictype/pr_pattern_syntax.h: Likewise.
98724         * lib/unictype/pr_pattern_white_space.h: Likewise.
98725         * lib/unictype/pr_private_use.h: Likewise.
98726         * lib/unictype/pr_punctuation.h: Likewise.
98727         * lib/unictype/pr_quotation_mark.h: Likewise.
98728         * lib/unictype/pr_radical.h: Likewise.
98729         * lib/unictype/pr_sentence_terminal.h: Likewise.
98730         * lib/unictype/pr_soft_dotted.h: Likewise.
98731         * lib/unictype/pr_space.h: Likewise.
98732         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98733         * lib/unictype/pr_titlecase.h: Likewise.
98734         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98735         * lib/unictype/pr_unified_ideograph.h: Likewise.
98736         * lib/unictype/pr_uppercase.h: Likewise.
98737         * lib/unictype/pr_variation_selector.h: Likewise.
98738         * lib/unictype/pr_white_space.h: Likewise.
98739         * lib/unictype/pr_xid_continue.h: Likewise.
98740         * lib/unictype/pr_xid_start.h: Likewise.
98741         * lib/unictype/pr_zero_width.h: Likewise.
98742         * lib/unictype/scripts.h: Likewise.
98743         * lib/unictype/scripts_byname.gperf: Likewise.
98744         * lib/unictype/sy_c_ident.h: Likewise.
98745         * lib/unictype/sy_c_whitespace.h: Likewise.
98746         * lib/unictype/sy_java_ident.h: Likewise.
98747         * lib/unictype/sy_java_whitespace.h: Likewise.
98749         * lib/unictype/Makefile: New file.
98750         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98751         glibc.
98752         * lib/unictype/3level.h: New file, copied from glibc.
98753         * lib/unictype/3levelbit.h: New file.
98755 2007-11-11  Bruno Haible  <bruno@clisp.org>
98757         * modules/gperf: New file.
98758         * modules/iconv_open (Depends-on): Add it.
98759         (Makefile.am): Remove the GPERF definition.
98761 2007-11-11  Bruno Haible  <bruno@clisp.org>
98763         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98764         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98766 2007-11-11  Bruno Haible  <bruno@clisp.org>
98768         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98769         (usage): Remove function.
98771 2007-11-11  Bruno Haible  <bruno@clisp.org>
98773         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98774         gl_FUNC_CEILF_LIBS.
98775         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98776         gl_FUNC_CEIL_LIBS.
98777         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98778         gl_FUNC_CEILL_LIBS.
98779         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98780         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98781         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98783 2007-11-11  Bruno Haible  <bruno@clisp.org>
98785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98786         roundf were declared but do not exist on functions.
98787         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98788         roundl were declared but do not exist on functions.
98789         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98790         HAVE_FLOORL_AND_CEILL, respectively.
98791         Needed for Sun C on Solaris 10.
98793 2007-11-11  Bruno Haible  <bruno@clisp.org>
98795         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98796         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98797         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98798         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98799         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98800         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98801         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98802         HAVE_DECL_ROUNDF.
98803         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98804         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98806         of HAVE_DECL_ROUND*.
98807         * modules/math (Makefile.am): Update.
98809 2007-11-10  Bruno Haible  <bruno@clisp.org>
98811         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98812         ptrdiff_t as m4/intl.m4.
98814 2007-11-10  Jim Meyering  <meyering@redhat.com>
98816         Avoid link failure for the argmatch test.
98817         * tests/test-argmatch.c (usage): Define function to avoid a link
98818         failure: argmatch_die requires a usage function.
98820 2007-11-09  Bruno Haible  <bruno@clisp.org>
98822         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98823         * doc/functions/vsnprintf.texi: Likewise.
98824         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98825         with a size argument < 2.
98827 2007-11-09  Bruno Haible  <bruno@clisp.org>
98829         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98830         buffer. Fixes an inefficiency introduced on 2007-11-03.
98832 2007-11-09  Bruno Haible  <bruno@clisp.org>
98834         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98835         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98837 2007-11-08  Jim Meyering  <meyering@redhat.com>
98839         Change cache variable name prefix "jm_" to "gl_" everywhere.
98840         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98841         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98842         * m4/uptime.m4: s/gl_/jm_/
98844 2007-11-07  Bruno Haible  <bruno@clisp.org>
98846         Update to GNU gettext 0.17.
98847         * m4/intl.m4: Update to GNU gettext 0.17.
98848         * m4/po.m4: Likewise.
98849         * modules/gettext (Files): Remove m4/ulonglong.m4.
98850         (configure.ac): Require gettext infrastructure from version 0.17.
98852 2007-11-06  Bruno Haible  <bruno@clisp.org>
98854         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98855         symbolic values are not defined in a public header.
98856         * lib/freadable.c (freadable) [QNX]: Likewise.
98857         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98858         * lib/freading.c (freading) [QNX]: Likewise.
98859         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98860         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98861         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98862         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98863         Reported by Alain Magloire.
98865         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98867 2007-11-05  Bruno Haible  <bruno@clisp.org>
98869         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98870         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98871         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98872         Reported by Eric Blake.
98874 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98875             Bruno Haible  <bruno@clisp.org>
98877         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98878         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98879         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98880         (malloc): Undefine also before including <stdlib.h>.
98881         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98882         Needed on OSF/1 4.0.
98884 2007-11-05  Jim Meyering  <meyering@redhat.com>
98886         git-version-gen: sync from coreutils.
98887         * build-aux/git-version-gen: Add comments.
98888         Change the first '-' to '.' in the snapshot version string,
98889         e.g., 6.9-377-08144 -> 6.9.377-08144
98890         Remove first parameter.
98891         Don't declare a version "-dirty" merely because a time
98892         stamp has changed.
98894 2007-11-04  Bruno Haible  <bruno@clisp.org>
98896         * lib/lock.h: Protect all macro definitions containing an 'if'
98897         statement through a "do { ... } while (0)".
98898         * lib/tls.h: Likewise.
98900 2007-11-04  Bruno Haible  <bruno@clisp.org>
98902         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98904 2007-11-04  Bruno Haible  <bruno@clisp.org>
98906         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98907         * modules/fprintf-posix (Depends-on): Add nocrash.
98908         * modules/snprintf-posix (Depends-on): Likewise.
98909         * modules/sprintf-posix (Depends-on): Likewise.
98910         * modules/vasnprintf-posix (Depends-on): Likewise.
98911         * modules/vasprintf-posix (Depends-on): Likewise.
98912         * modules/vfprintf-posix (Depends-on): Likewise.
98913         * modules/vsnprintf-posix (Depends-on): Likewise.
98914         * modules/vsprintf-posix (Depends-on): Likewise.
98915         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98916         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98917         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98918         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98919         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98920         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98921         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98923 2007-11-04  Bruno Haible  <bruno@clisp.org>
98925         * modules/nocrash: New file.
98926         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98927         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98929 2007-11-04  Bruno Haible  <bruno@clisp.org>
98931         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98932         precision handling.
98933         * tests/test-vasprintf-posix.c (test_function): Likewise.
98934         * tests/test-snprintf-posix.h (test_function): Likewise.
98935         * tests/test-sprintf-posix.h (test_function): Likewise.
98937         Fix *printf behaviour for large precisions on mingw and BeOS.
98938         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98939         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98941         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98942         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98943         gl_PRINTF_PRECISION and test its result. Invoke
98944         gl_PREREQ_VASNPRINTF_PRECISION.
98945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98949         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98952         * doc/functions/fprintf.texi: Update.
98953         * doc/functions/printf.texi: Update.
98954         * doc/functions/snprintf.texi: Update.
98955         * doc/functions/sprintf.texi: Update.
98956         * doc/functions/vfprintf.texi: Update.
98957         * doc/functions/vprintf.texi: Update.
98958         * doc/functions/vsnprintf.texi: Update.
98959         * doc/functions/vsprintf.texi: Update.
98961 2007-11-04  Bruno Haible  <bruno@clisp.org>
98963         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98965 2007-11-04  Bruno Haible  <bruno@clisp.org>
98967         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98968         Reported by Sylvain Beucler <beuc@gnu.org>.
98970 2007-11-03  Bruno Haible  <bruno@clisp.org>
98972         * tests/test-fprintf-posix2.sh: New file.
98973         * tests/test-fprintf-posix2.c: New file.
98974         * modules/fprintf-posix-tests (Files): Add them.
98975         (TESTS): Add test-fprintf-posix2.sh.
98976         (configure.ac): Check for getrlimit and setrlimit.
98977         (check_PROGRAMS): Add test-fprintf-posix2.
98979         * tests/test-printf-posix2.sh: New file.
98980         * tests/test-printf-posix2.c: New file.
98981         * modules/printf-posix-tests (Files): Add them.
98982         (TESTS): Add test-printf-posix2.sh.
98983         (configure.ac): Check for getrlimit and setrlimit.
98984         (check_PROGRAMS): Add test-printf-posix2.
98986         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98987         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98988         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98989         (decode_double): New function, copied from decode_long_double.
98990         (scale10_round_decimal_decoded): New function, extracted from
98991         scale10_round_decimal_long_double.
98992         (scale10_round_decimal_long_double): Use it.
98993         (scale10_round_decimal_double): New function.
98994         (floorlog10): New function.
98995         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98997         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98998         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98999         gl_PRINTF_ENOMEM and test its result. Invoke
99000         gl_PREREQ_VASNPRINTF_ENOMEM.
99001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99008         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
99009         * modules/snprintf-posix (Depends-on): Likewise.
99010         * modules/sprintf-posix (Depends-on): Likewise.
99011         * modules/vasnprintf-posix (Depends-on): Likewise.
99012         * modules/vasprintf-posix (Depends-on): Likewise.
99013         * modules/vfprintf-posix (Depends-on): Likewise.
99014         * modules/vsnprintf-posix (Depends-on): Likewise.
99015         * modules/vsprintf-posix (Depends-on): Likewise.
99016         * doc/functions/fprintf.texi: Update.
99017         * doc/functions/printf.texi: Update.
99018         * doc/functions/snprintf.texi: Update.
99019         * doc/functions/sprintf.texi: Update.
99020         * doc/functions/vfprintf.texi: Update.
99021         * doc/functions/vprintf.texi: Update.
99022         * doc/functions/vsnprintf.texi: Update.
99023         * doc/functions/vsprintf.texi: Update.
99025 2007-11-03  Bruno Haible  <bruno@clisp.org>
99027         * modules/frexp-nolibm-tests: New file.
99029         * modules/frexp-nolibm: New file.
99030         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
99032 2007-11-03  Bruno Haible  <bruno@clisp.org>
99034         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
99035         value is C99 compliant.
99036         Needed for OSF/1 5.1.
99038 2007-11-03  Bruno Haible  <bruno@clisp.org>
99040         Fix out-of-memory handling of vasnprintf.
99041         * lib/printf-parse.c: Include <errno.h>.
99042         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
99043         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
99044         is already set.
99046 2007-11-02  Eric Blake  <ebb9@byu.net>
99048         Fix tests on cygwin.
99049         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
99051 2007-11-01  Bruno Haible  <bruno@clisp.org>
99053         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
99054         warning.
99055         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
99056         needed for POSIX compatibility.
99058 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99060         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
99061         for compatibility with GNU.
99063 2007-11-01  Bruno Haible  <bruno@clisp.org>
99065         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
99066         (putenv): Renamed from rpl_putenv. Change argument type from
99067         'const char *' to 'char *'.
99068         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
99069         of defining putenv in config.h, just set REPLACE_PUTENV.
99070         * modules/putenv (Depends-on): Add stdlib.
99071         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99072         (Include): Use <stdlib.h>.
99073         * lib/stdlib.in.h (putenv): New declaration.
99074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
99075         REPLACE_PUTENV.
99076         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
99077         REPLACE_PUTENV.
99078         Needed for MacOS X 10.5.0.
99079         Reported by Peter O'Gorman <peter@pogma.com>.
99081 2007-11-01  Jim Meyering  <meyering@redhat.com>
99083         Treat an empty date string exactly like "0".
99084         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
99085         if the remaining date string (to be parsed) is empty, use "0".
99086         Reported by Mischa Molhoek and discussed in this thread:
99087         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
99089 2007-10-31  Bruno Haible  <bruno@clisp.org>
99091         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
99092         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
99093         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
99094         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
99095         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
99096         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
99098 2007-10-31  Bruno Haible  <bruno@clisp.org>
99100         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
99101         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
99102         (AC_TYPE_LONG_LONG_INT): Use it.
99103         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
99104         it as well.
99105         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
99106         to m4/longlong.m4.
99107         * modules/stdint (Files): Remove m4/ulonglong.m4.
99108         * modules/strtoull (Files): Use m4/longlong.m4 instead of
99109         m4/ulonglong.m4.
99110         * modules/strtoumax (Files): Likewise.
99112 2007-10-30  Bruno Haible  <bruno@clisp.org>
99114         * modules/xvasprintf-posix: New file.
99115         Suggested by Eric Blake.
99117 2007-10-30  Bruno Haible  <bruno@clisp.org>
99119         * modules/xprintf-posix-tests: New file.
99120         * tests/test-xprintf-posix.sh: New file.
99121         * tests/test-xprintf-posix.c: New file.
99122         * tests/test-xfprintf-posix.c: New file.
99124         * modules/xprintf-posix: New file.
99126 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99128         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
99129         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
99130         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
99132 2007-10-29  Bruno Haible  <bruno@clisp.org>
99134         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
99135         contain the special marker '_cv_'.
99136         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
99137         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
99138         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
99139         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
99140         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
99141         Reported by Ralf Wildenhues.
99143 2007-10-29  Bruno Haible  <bruno@clisp.org>
99145         * gnulib-tool (func_import): When --lgpl is not specified, set
99146         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
99147         GPLv3.
99148         Reported by Simon Josefsson.
99150 2007-10-28  Bruno Haible  <bruno@clisp.org>
99152         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
99153         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
99154         HAVE_DECL_ISFINITE.
99155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99156         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
99157         HAVE_DECL_ISFINITE.
99159 2007-10-28  Bruno Haible  <bruno@clisp.org>
99161         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
99162         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
99164 2007-10-28  Bruno Haible  <bruno@clisp.org>
99166         Fix link errors with Sun C 5.0 on Solaris 10.
99167         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
99168         function is declared but not present in the compiler's libm.
99169         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
99170         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
99171         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99172         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99173         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99174         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99175         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99177         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
99178         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
99179         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
99180         HAVE_DECL_FLOORL.
99182 2007-10-28  Bruno Haible  <bruno@clisp.org>
99184         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
99185         gl_FUNC_FLOORL. Cache the result.
99186         (gl_FUNC_FLOORL): Use it.
99187         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
99188         gl_FUNC_CEILL. Cache the result.
99189         (gl_FUNC_CEILL): Use it.
99191         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
99192         gl_FUNC_FLOOR. Cache the result.
99193         (gl_FUNC_FLOOR): Use it.
99194         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
99195         gl_FUNC_CEIL. Cache the result.
99196         (gl_FUNC_CEIL): Use it.
99198         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
99199         gl_FUNC_FLOORF. Cache the result.
99200         (gl_FUNC_FLOORF): Use it.
99201         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
99202         gl_FUNC_CEILF. Cache the result.
99203         (gl_FUNC_CEILF): Use it.
99205 2007-10-28  Bruno Haible  <bruno@clisp.org>
99207         * gnulib-tool: Allow specifying the LGPL version number through
99208         --lgpl=2 or --lgpl=3.
99209         (func_usage): Document --lgpl with argument.
99210         Handle --lgpl=... arguments.
99211         (func_import): Recognize also gl_LGPL calls with an argument. When
99212         --lgpl=2 is used and the module's license is just LGPL, report an
99213         error. Set sed_transform_lib_file according to the lgpl variable. In
99214         the generated files, use --lgpl or gl_LGPL invocations with argument,
99215         if necessary.
99216         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
99217         an LGPv2+ license.
99218         * doc/gnulib-tool.texi (Modified imports): Update explanation of
99219         gl_LGPL macro.
99221 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99222             Bruno Haible  <bruno@clisp.org>
99224         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
99225         (u16_uctomb_aux): Likewise.
99226         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
99227         !HAVE_INLINE.
99228         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
99230 2007-10-28  Bruno Haible  <bruno@clisp.org>
99232         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
99233         Invoke AM_GETTEXT_OPTION if it exists.
99234         * modules/vasprintf: Likewise.
99235         * modules/verror: Likewise.
99236         * modules/xprintf: Likewise.
99237         * modules/xvasprintf: Likewise.
99239 2007-10-27  Ben Pfaff  <blp@gnu.org>
99241         * lib/math.in.h: Define isfinite macro and prototypes for
99242         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
99243         implementations.
99244         * m4/math_h.m4: New substitutions for isfinite module.
99245         * lib/isfinite.c: New file.
99246         * m4/isfinite.m4: New file.
99247         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
99248         * modules/isfinite: New file.
99249         * modules/isfinite-tests: New file.
99250         * tests/tests-isfinite.c: New file.
99251         * doc/functions/isfinite.texi: Mention isfinite module.
99252         * MODULES.html.sh: Mention new module.
99254 2007-10-27  Ben Pfaff  <blp@gnu.org>
99256         Ralf Wildenhues reported that Tru64 4.0D declares the round
99257         functions but does not have definitions.
99258         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
99259         cannot be found in any library, set the output variable to
99260         "missing" instead of "".
99261         * m4/round.m4: Also use our substitute if we cannot find round in
99262         any library, even if it is declared.
99263         * m4/roundf.m4: Likewise for roundf.
99264         * m4/roundl.m4: Likewise for roundl.
99265         * lib/math.in.h: Undefine roundf, round, roundl before defining
99266         their replacements, to allow for hypothetical systems where these
99267         may be defined as macros but not available in libraries.
99269 2007-10-27  Bruno Haible  <bruno@clisp.org>
99271         * doc/gnulib.texi: Invoke @firstparagraphindent.
99272         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
99273         changes in gnulib.
99274         (Source changes): New section.
99276 2007-10-26  Bruno Haible  <bruno@clisp.org>
99278         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
99279         borrowed from autoconf.
99281 2007-10-26  Bruno Haible  <bruno@clisp.org>
99283         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
99284         strerror returned the empty string. Needed on HP-UX 11.00.
99286 2007-10-24  Micah Cowan  <micah@cowan.name>
99288         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
99289         * build-aux/bootstrap: Remove support for now-unnecessary option,
99290         --cvs-user, and envvars CVS_USER, CVS_RSH.
99292 2007-10-24  Jim Meyering  <meyering@redhat.com>
99294         Avoid diagnostics from sha1sum when there is no cached checksum.
99295         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
99296         if the po.s1 file hasn't been created yet.
99298         * build-aux/bootstrap: Sync from coreutils:
99299         2007-10-24  Jim Meyering  <meyering@redhat.com>
99300         Get gnulib from the git repository, not from an obsolete cvs one.
99301         * build-aux/bootstrap: Suggestion from Micah Cowan.
99302         2007-10-04  Jim Meyering  <jim@meyering.net>
99303         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
99304         (update_po_files): Work also when there are no .po files in po/.
99306 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99308         * README: Append ".git" to git and cg examples.
99309         Problem reported by Benoit Sigoure.
99311 2007-10-23  Micah Cowan  <micah@cowan.name>
99313         * users.txt: Add wget.
99315 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99317         Fix linking of some unistdio tests on FreeBSD.
99318         * modules/unistdio/u16-vsnprintf-tests
99319         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
99320         * modules/unistdio/u16-vsprintf-tests
99321         (test_u16_vsnprintf1_LDADD): Likewise.
99322         * modules/unistdio/u32-vsnprintf-tests
99323         (test_u32_vsnprintf1_LDADD): Likewise.
99324         * modules/unistdio/u32-vsprintf-tests
99325         (test_u32_vsprintf1_LDADD): Likewise.
99326         * modules/unistdio/u8-vsnprintf-tests
99327         (test_u8_vsnprintf1_LDADD): Likewise.
99328         * modules/unistdio/u8-vsprintf-tests
99329         (test_u8_vsprintf1_LDADD): Likewise.
99330         * modules/unistdio/ulc-vsnprintf-tests
99331         (test_ulc_vsnprintf1_LDADD): Likewise.
99332         * modules/unistdio/ulc-vsprintf-tests
99333         (test_ulc_vsprintf1_LDADD): Likewise.
99335         Fix linking of some uniconv tests on FreeBSD.
99336         * modules/uniconv/u16-conv-from-enc-tests
99337         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
99338         * modules/uniconv/u16-conv-to-enc-tests
99339         (test_u16_conv_to_enc_LDADD): Likewise.
99340         * modules/uniconv/u16-strconv-from-enc-tests
99341         (test_u16_strconv_from_enc_LDADD): Likewise.
99342         * modules/uniconv/u16-strconv-to-enc-tests
99343         (test_u16_strconv_to_enc_LDADD): Likewise.
99344         * modules/uniconv/u32-conv-from-enc-tests
99345         (test_u32_conv_from_enc_LDADD): Likewise.
99346         * modules/uniconv/u32-conv-to-enc-tests
99347         (test_u32_conv_to_enc_LDADD): Likewise.
99348         * modules/uniconv/u32-strconv-from-enc-tests
99349         (test_u32_strconv_from_enc_LDADD): Likewise.
99350         * modules/uniconv/u32-strconv-to-enc-tests
99351         (test_u32_strconv_to_enc_LDADD): Likewise.
99352         * modules/uniconv/u8-conv-from-enc-tests
99353         (test_u8_conv_from_enc_LDADD): Likewise.
99354         * modules/uniconv/u8-conv-to-enc-tests
99355         (test_u8_conv_to_enc_LDADD): Likewise.
99356         * modules/uniconv/u8-strconv-from-enc-tests
99357         (test_u8_strconv_from_enc_LDADD): Likewise.
99358         * modules/uniconv/u8-strconv-to-enc-tests
99359         (test_u8_strconv_to_enc_LDADD): Likewise.
99361 2007-10-22  Bruno Haible  <bruno@clisp.org>
99363         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99364         size.
99366 2007-10-22  Eric Blake  <ebb9@byu.net>
99368         Tweak x*printf documentation.
99369         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99370         variable name and comments.
99371         Suggested by Bruno Haible.
99373 2007-10-22  Bruno Haible  <bruno@clisp.org>
99375         * lib/acl.c (copy_acl): Fix file name in comment.
99377 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99379         Fix Tru64 problem with stdbool.h.
99380         * lib/stdbool.in.h (false, true):
99381         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99382         Don't declare as an enum in this situation; it runs afoul of Tru64.
99383         Problem reported by Steven M. Schweda in
99384         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99386 2007-10-22  Eric Blake  <ebb9@byu.net>
99388         Also wrap vf?printf.
99389         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99390         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99391         (xvprintf, xvfprintf): New functions.
99393 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99395         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99396         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99398         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99399         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99401 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99403         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99404         by Bruno Haible.
99406 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99408         * lib/getloadavg.c
99409         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99410         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99412         * tests/test-i-ring.c: Work for C89.
99414 2007-10-22  Bruno Haible  <bruno@clisp.org>
99416         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99417         -1u, in preprocessor expression, so that we don't test for the bug
99418         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99419         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99421 2007-10-22  Eric Blake  <ebb9@byu.net>
99423         * tests/test-yesno.sh: Silence stderr during test.
99425 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99427         * modules/crypto/gc-camellia: New file.
99429         * m4/gc-camellia.m4: New file.
99431         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99433         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99435 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99437         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99438         --help to stdout.  Reported by sms@antinode.org (Steven
99439         M. Schweda).
99441 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99443         * users.txt: Fix link to libksba.
99445 2007-10-21  Ben Pfaff  <blp@gnu.org>
99447         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99448         round.c roundf implementation that depends on floorf and ceilf to
99449         be tested unconditionally.
99451 2007-10-21  Ben Pfaff  <blp@gnu.org>
99453         * m4/check-libm-func.m4: Removed.
99454         * m4/check-math-lib.m4: New file.
99455         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
99456         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
99457         definition and lack of AC_LIBOBJ([roundf]).
99458         * m4/roundl.m4: Ditto, and similarly for roundl.
99459         * modules/round: Reference new m4 file.
99460         * modules/roundf: Ditto.
99461         * modules/roundl: Ditto.
99462         * tests/test-round2.c (main): Use ROUND instead of round.
99463         Bug report from Bruno Haible.
99465 2007-10-21  Bruno Haible  <bruno@clisp.org>
99467         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
99468         context.
99470 2007-10-21  Bruno Haible  <bruno@clisp.org>
99472         * tests/test-wcwidth.c (main): Allow negative result for some control
99473         characters.
99475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
99476         Needed on OSF/1 5.1.
99478 2007-10-21  Bruno Haible  <bruno@clisp.org>
99480         * tests/test-floorf1.c: Include isnanf.h.
99481         (main): Use isnanf() instead of isnan().
99482         * tests/test-ceilf1.c: Include isnanf.h.
99483         (main): Use isnanf() instead of isnan().
99484         * tests/test-truncf1.c: Include isnanf.h.
99485         (main): Use isnanf() instead of isnan().
99486         * tests/test-roundf1.c: Include isnanf.h.
99487         (main): Use isnanf() instead of isnan().
99489 2007-10-21  Eric Blake  <ebb9@byu.net>
99491         * users.txt: Update URL for m4.
99493 2007-10-21  Bruno Haible  <bruno@clisp.org>
99495         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
99497 2007-10-21  Bruno Haible  <bruno@clisp.org>
99499         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
99500         Git's management files if the CVS files are not present.
99502 2007-10-20  Bruno Haible  <bruno@clisp.org>
99504         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
99505         gcc-3.4.x.
99507 2007-10-20  Ben Pfaff  <blp@gnu.org>
99509         * lib/math.in.h: Declare round, roundf, roundl if we are providing
99510         implementations.
99511         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
99512         * lib/round.c: New file.
99513         * lib/roundf.c: New file.
99514         * lib/roundl.c: New file.
99515         * m4/round.m4: New file.
99516         * m4/roundf.m4: New file.
99517         * m4/roundl.m4: New file.
99518         * m4/check-libm-func-m4: New file.
99519         * modules/math: Replace round, roundf, roundl related @VARS@ in
99520         math.in.h.
99521         * modules/round: New file.
99522         * modules/round-tests: New file.
99523         * modules/roundf: New file.
99524         * modules/roundf-tests: New file.
99525         * modules/roundl: New file.
99526         * modules/roundl-tests: New file.
99527         * tests/test-round1.c: New file.
99528         * tests/test-round2.c: New file.
99529         * tests/test-roundf1.c: New file.
99530         * tests/test-roundf2.c: New file.
99531         * tests/test-roundl.c: New file.
99532         * doc/functions/round.texi: Mention round module.
99533         * doc/functions/roundf.texi: Mention roundf module.
99534         * doc/functions/roundl.texi: Mention roundl module.
99535         * MODULES.html.sh: Mention new modules.
99536         Thanks to Bruno Haible for suggestions.
99538 2007-10-20  Jim Meyering  <meyering@redhat.com>
99540         * lib/xprintf.c: Include <config.h> unconditionally.
99542         Change xprintf's license to GPL.
99543         * modules/xprintf (License): s/LGPL/GPL/, since this module
99544         depends on modules (exit and exitfail) which are GPL.
99545         Suggestion from Bruno Haible.
99547         xprintf fixes.
99548         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
99549         Use a clearer diagnostic.
99550         Patch from Bruno Haible.
99552 2007-10-20  Bruno Haible  <bruno@clisp.org>
99554         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
99555         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
99556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99558 2007-10-20  Bruno Haible  <bruno@clisp.org>
99560         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
99561         precision in the comparison result > x - 1 or similar.
99562         * tests/test-ceilf2.c (correct_result_p): Likewise.
99563         * tests/test-truncf2.c (correct_result_p): Likewise.
99564         * tests/test-trunc2.c (correct_result_p): Likewise.
99565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99567 2007-10-20  Bruno Haible  <bruno@clisp.org>
99569         * modules/ceil: New file.
99570         * m4/ceil.m4: New file.
99571         * doc/functions/ceil.texi: Mention the 'ceil' module.
99573 2007-10-20  Bruno Haible  <bruno@clisp.org>
99575         * modules/floor: New file.
99576         * m4/floor.m4: New file.
99577         * doc/functions/floor.texi: Mention the 'floor' module.
99579 2007-10-20  Bruno Haible  <bruno@clisp.org>
99581         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
99582         of %a.
99583         * modules/floorf-tests (Depends-on): Likewise.
99584         * modules/truncf-tests (Depends-on): Likewise.
99585         * modules/trunc-tests (Depends-on): Likewise.
99586         Reported by Ben Pfaff.
99588 2007-10-19  Jim Meyering  <meyering@redhat.com>
99590         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99591         Don't bother testing specific errno values.  Just test ferror.
99593         New module: xprintf
99594         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99596 2007-10-19  Bruno Haible  <bruno@clisp.org>
99598         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
99599         syntax.
99600         * modules/javaexec (Makefile.am): Likewise.
99601         * modules/relocatable-prog (Makefile.am): Likewise.
99602         Suggested by Jim Meyering.
99604 2007-10-18  Bruno Haible  <bruno@clisp.org>
99606         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
99607         Reported by Jim Meyering.
99609 2007-10-18  Eric Blake  <ebb9@byu.net>
99611         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
99613 2007-10-18  Bruno Haible  <bruno@clisp.org>
99615         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
99616         the format string into writable memory. Needed in Fortify conditions.
99618 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
99619             Bruno Haible  <bruno@clisp.org>
99621         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
99622         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
99623         * modules/trim (Depends-on): Add mbchar.
99624         (configure.ac): Add gl_FUNC_MBRTOWC.
99625         (Makefile.am): Augment lib_SOURCES.
99627 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99629         Modify glob.c to use fstatat and dirfd, to simplify it.
99630         Suggested by Eric Blake.
99631         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
99632         Don't include <stdbool.h>; not used.
99633         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
99634         (link_exists_p): Simplify implementation, since we can now assume
99635         dirfd and fstatat.
99636         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
99638 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99640         * gnulib-tool (func_get_dependencies): Fix sed script to
99641         match only tests.
99643 2007-10-17  Bruno Haible  <bruno@clisp.org>
99645         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
99646         allow locale names without encoding suffix.
99647         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
99648         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99650 2007-10-16  Bruno Haible  <bruno@clisp.org>
99652         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
99653         * lib/getgroups.c (getgroups): Likewise.
99654         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
99656 2007-10-16  Bruno Haible  <bruno@clisp.org>
99658         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
99659         * modules/malloc-posix (License): Likewise.
99660         * modules/realloc-posix (License): Likewise.
99661         * modules/calloc-posix (License): Likewise.
99662         * modules/intprops (License): Change from GPL to LGPL, with
99663         Paul Eggert's approval.
99665 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99667         Merge glibc changes into lib/glob.c.
99669         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99670         2007-10-15 04:59:03 UTC.  Here are the changes:
99672         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99674         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99676         * lib/glob.c: Add some branch prediction throughout.
99678         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99680         [BZ #5103]
99681         * lib/glob.c (glob): Recognize patterns starting \/.
99683         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99685         [BZ #3996]
99686         * lib/glob.c (attribute_hidden): Define if not defined.
99687         (glob): Unescape dirname, filename or username when needed and not
99688         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99689         is NULL.  Handle unescaped [ in pattern without closing ].
99690         Don't pass GLOB_CHECK down to recursive glob for directories.
99691         (__glob_pattern_type): New function.
99692         (__glob_pattern_p): Implement using __glob_pattern_type.
99693         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99694         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99695         Remove unreachable code.
99697         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99699         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99700         explain why there are no leaks.
99702         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99704         [BZ #3253]
99705         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99706         time, rather allocate increasingly bigger arrays of pointers, if
99707         possible with alloca, if too large with malloc.
99709 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99711         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99712         Problem reported by H.Merijn Brand in
99713         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99714         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99715         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99717 2007-10-15  Bruno Haible  <bruno@clisp.org>
99719         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99720         with explicit rpl_ prefix.
99721         * lib/fopen.c (fopen): Likewise.
99722         * lib/freopen.c (freopen): Likewise.
99723         * lib/iconv.c (iconv): Likewise.
99724         * lib/iconv_close.c (iconv_close): Likewise.
99726 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99728         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99730 2007-10-15  Bruno Haible  <bruno@clisp.org>
99732         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99733         <stddef.h> instead of <stdlib.h> since we only need NULL.
99734         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99736 2007-10-15  Bruno Haible  <bruno@clisp.org>
99738         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99739         Replace paragraph talking about LIBOBJS.
99740         Reported by Colin Watson <cjwatson@debian.org>.
99742 2007-10-15  Bruno Haible  <bruno@clisp.org>
99744         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99745         <stdlib.h> before using NULL.
99747 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99749         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99750         Reported by Albert Chin <china@thewrittenword.com>.
99752 2007-10-14  Bruno Haible  <bruno@clisp.org>
99754         * modules/iconv_open-utf-tests: New file.
99755         * tests/test-iconv-utf.c: New file.
99757         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99758         * modules/iconv_open-utf: New file.
99759         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99760         (iconv, iconv_close): New declarations.
99761         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99762         be defined.
99763         (iconv_open): Add special handling of conversion between UTF-8 and
99764         UTF-{16,32}{BE,LE}.
99765         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99766         * lib/iconv_close.c: New file.
99767         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99768         gl_FUNC_ICONV_OPEN.
99769         (gl_FUNC_ICONV_OPEN): Use it.
99770         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99771         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99772         and REPLACE_ICONV_UTF.
99773         * modules/iconv_open (Depends-on): Add c-strcase.
99774         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99775         ICONV_CONST.
99776         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99778 2007-10-13  Albert Chin  <china@thewrittenword.com>
99779             Bruno Haible  <bruno@clisp.org>
99781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99782         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99784 2007-10-13  Bruno Haible  <bruno@clisp.org>
99786         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99787         defined, use the ISO C99 inline semantics.
99788         * lib/argp.h (ARGP_EI): Likewise.
99790 2007-10-13  Bruno Haible  <bruno@clisp.org>
99792         Handle 'inline' change in gcc 4.3.0.
99793         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99794         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99795         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99796         argp_fmtstream_point): Disable 'extern' declaration if the function
99797         definition is going to be provided inline.
99798         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99799         semantics, not the ISO C99 inline semantics.
99800         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99801         'extern' declaration if the function definition is going to be provided
99802         inline.
99803         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99804         the GNU C inline semantics, not the ISO C99 inline semantics. With
99805         GCC 4.2, avoid a warning.
99807 2007-10-13  Bruno Haible  <bruno@clisp.org>
99809         * lib/freading.h (freading): Enable the use of __freading for
99810         glibc >= 2.7.
99811         * lib/freading.c (freading): Likewise.
99813 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99815         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99816         "warning: C99 inline functions are not supported; using GNU89".
99818 2007-10-12  Bruno Haible  <bruno@clisp.org>
99820         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99821         of 2.
99822         * tests/test-ceilf2.c: New file.
99823         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99825         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99826         * modules/ceilf-tests: Update.
99828 2007-10-12  Bruno Haible  <bruno@clisp.org>
99830         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99831         of 2.
99832         * tests/test-floorf2.c: New file.
99833         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99835         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99836         * modules/floorf-tests: Update.
99838 2007-10-12  Bruno Haible  <bruno@clisp.org>
99840         * tests/test-trunc2.c: New file.
99841         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99843         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99844         * modules/trunc-tests: Update.
99846 2007-10-12  Bruno Haible  <bruno@clisp.org>
99848         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99849         of 2.
99850         * tests/test-truncf2.c: New file.
99851         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99853         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99854         * modules/truncf-tests: Update.
99856 2007-10-11  Eric Blake  <ebb9@byu.net>
99858         Don't claim strerror is broken on Interix.
99859         * doc/functions/strerror.texi (strerror): Known broken systems are
99860         now Solaris 8, and not Interix.
99861         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99862         Interix on cross-compile.
99863         Reported by Martin Koeppe in
99864         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99866 2007-10-11  Bruno Haible  <bruno@clisp.org>
99868         * modules/i-ring-tests: New file.
99869         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99870         instead of assert.
99872 2007-10-11  Bruno Haible  <bruno@clisp.org>
99874         * modules/filenamecat-tests: New file.
99875         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99876         * lib/filenamecat.c: Remove test code.
99878 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99880         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99882         * lib/strerror.c: Include <string.h> always, to test interface,
99883         and to remove the need for the dummy.
99884         Include intprops.h to compute width instead of doing it ourselves
99885         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99886         (strerror): Define it to return NULL if there's no system strerror.
99887         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99888         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99889         ancient pre-strerror Unix systems well any more.  Saying "unknown
99890         system error" is enough.
99891         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99892         simpler strerror.c implementation.
99893         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99894         Simplify the tests to reflect the simpler strerror implementation.
99895         * modules/strerror (Depends-on): Add intprops.
99897 2007-10-09  Eric Blake  <ebb9@byu.net>
99899         Silence test-fpending.
99900         * modules/fpending-tests (Files): Add wrapper script.
99901         * tests/test-fpending.sh: New file.
99903 2007-10-09  Bruno Haible  <bruno@clisp.org>
99905         * MODULES.html.sh (func_module): Don't create a hyperlink for
99906         function names like 'printf_frexp'.
99907         (Misc): Add crc, memxor.
99908         (Characteristics of floating types): New section.
99909         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99910         isnanf-nolibm, signbit, trunc, truncf, truncl.
99911         (Enhancements for ISO C 99 functions): New subsection Input/output.
99912         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99913         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99914         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99915         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99916         (Enhancements for POSIX:2001 functions): Add chdir-long.
99917         (File system functions): Add areadlink, chdir-safer, read-file.
99918         Remove cycle-check.
99919         (File system as inode set): New section.
99920         (Date and time): Add gethrxtime.
99921         (Multithreading): Add openmp.
99922         (Internationalization functions): Add localename.
99923         (Unicode string functions): Add unistr/u*-mbsnlen.
99924         (Support for maintaining and releasing projects): Add git-version-gen.
99925         (Lone files): Remove directories.
99927 2007-10-08  Ben Pfaff  <blp@gnu.org>
99929         * lib/xmalloca.h: Fix typo in comment.
99931 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99933         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99934         when avoiding problems with integer overflow.  Use a portable test
99935         instead.
99937 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99939         * modules/dummy (License): Change to LGPLv2+.
99940         * modules/float (License): Likewise
99941         * modules/realloc (License): Likewise
99942         * modules/stdlib (License): Likewise
99944 2007-10-07  Bruno Haible  <bruno@clisp.org>
99946         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99947         * floor.c (TWO_MANT_DIG): Likewise.
99948         * ceil.c (TWO_MANT_DIG): Likewise.
99949         Reported by Ben Pfaff.
99951 2007-10-07  Bruno Haible  <bruno@clisp.org>
99953         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99954         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99955         * lib/frexp.c (FUNC): Likewise.
99956         * lib/printf-frexp.h (printf_frexp): Likewise.
99957         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99958         * lib/printf-frexp.c (FUNC): Likewise.
99959         Suggested by Jim Meyering.
99961 2007-10-07  Jim Meyering  <meyering@redhat.com>
99963         Make xnanosleep's integer overflow test more robust.
99964         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99965         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99967 2007-10-07  Bruno Haible  <bruno@clisp.org>
99969         * NEWS: Mention the license change.
99971         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99972         abbreviations in the modules files.
99974         Change copyright notice from GPLv2+ to GPLv3+.
99975         * README: Change copyright notice.
99976         * MODULES.html.sh: Likewise.
99977         * build-aux/bootstrap.conf: Likewise.
99978         * build-aux/config.libpath: Likewise.
99979         * build-aux/csharpcomp.sh.in: Likewise.
99980         * build-aux/csharpexec.sh.in: Likewise.
99981         * build-aux/install-reloc: Likewise.
99982         * build-aux/javacomp.sh.in: Likewise.
99983         * build-aux/javaexec.sh.in: Likewise.
99984         * build-aux/ldd.sh.in: Likewise.
99985         * build-aux/reloc-ldflags: Likewise.
99986         * build-aux/relocatable.sh.in: Likewise.
99987         * build-aux/x-to-1.in: Likewise.
99988         * check-module: Likewise.
99989         * config/srclistvars.sh: Likewise.
99990         * gnulib-tool: Likewise.
99991         * lib/acl-internal.h: Likewise.
99992         * lib/acl.c: Likewise.
99993         * lib/acl.h: Likewise.
99994         * lib/acl_entries.c: Likewise.
99995         * lib/areadlink-with-size.c: Likewise.
99996         * lib/areadlink.c: Likewise.
99997         * lib/areadlink.h: Likewise.
99998         * lib/argmatch.c: Likewise.
99999         * lib/argmatch.h: Likewise.
100000         * lib/argp-ba.c: Likewise.
100001         * lib/argp-eexst.c: Likewise.
100002         * lib/argp-fmtstream.c: Likewise.
100003         * lib/argp-fmtstream.h: Likewise.
100004         * lib/argp-fs-xinl.c: Likewise.
100005         * lib/argp-help.c: Likewise.
100006         * lib/argp-namefrob.h: Likewise.
100007         * lib/argp-parse.c: Likewise.
100008         * lib/argp-pin.c: Likewise.
100009         * lib/argp-pv.c: Likewise.
100010         * lib/argp-pvh.c: Likewise.
100011         * lib/argp-xinl.c: Likewise.
100012         * lib/argp.h: Likewise.
100013         * lib/at-func.c: Likewise.
100014         * lib/atanl.c: Likewise.
100015         * lib/backupfile.c: Likewise.
100016         * lib/backupfile.h: Likewise.
100017         * lib/basename.c: Likewise.
100018         * lib/binary-io.h: Likewise.
100019         * lib/byteswap.in.h: Likewise.
100020         * lib/c-stack.c: Likewise.
100021         * lib/c-stack.h: Likewise.
100022         * lib/c-strcasestr.c: Likewise.
100023         * lib/c-strcasestr.h: Likewise.
100024         * lib/c-strstr.c: Likewise.
100025         * lib/c-strstr.h: Likewise.
100026         * lib/c-strtod.c: Likewise.
100027         * lib/calloc.c: Likewise.
100028         * lib/canon-host.c: Likewise.
100029         * lib/canon-host.h: Likewise.
100030         * lib/canonicalize-lgpl.c: Likewise.
100031         * lib/canonicalize.c: Likewise.
100032         * lib/canonicalize.h: Likewise.
100033         * lib/ceil.c: Likewise.
100034         * lib/ceilf.c: Likewise.
100035         * lib/ceill.c: Likewise.
100036         * lib/chdir-long.c: Likewise.
100037         * lib/chdir-long.h: Likewise.
100038         * lib/chdir-safer.c: Likewise.
100039         * lib/chdir-safer.h: Likewise.
100040         * lib/chown.c: Likewise.
100041         * lib/classpath.c: Likewise.
100042         * lib/classpath.h: Likewise.
100043         * lib/clean-temp.c: Likewise.
100044         * lib/clean-temp.h: Likewise.
100045         * lib/cloexec.c: Likewise.
100046         * lib/close-stream.c: Likewise.
100047         * lib/closein.c: Likewise.
100048         * lib/closein.h: Likewise.
100049         * lib/closeout.c: Likewise.
100050         * lib/closeout.h: Likewise.
100051         * lib/concat-filename.c: Likewise.
100052         * lib/copy-file.c: Likewise.
100053         * lib/copy-file.h: Likewise.
100054         * lib/count-one-bits.h: Likewise.
100055         * lib/crc.c: Likewise.
100056         * lib/crc.h: Likewise.
100057         * lib/creat-safer.c: Likewise.
100058         * lib/csharpcomp.c: Likewise.
100059         * lib/csharpcomp.h: Likewise.
100060         * lib/csharpexec.c: Likewise.
100061         * lib/csharpexec.h: Likewise.
100062         * lib/cycle-check.c: Likewise.
100063         * lib/cycle-check.h: Likewise.
100064         * lib/diacrit.c: Likewise.
100065         * lib/diacrit.h: Likewise.
100066         * lib/diffseq.h: Likewise.
100067         * lib/dirchownmod.c: Likewise.
100068         * lib/dirent.in.h: Likewise.
100069         * lib/dirfd.c: Likewise.
100070         * lib/dirfd.h: Likewise.
100071         * lib/dirname.c: Likewise.
100072         * lib/dirname.h: Likewise.
100073         * lib/dummy.c: Likewise.
100074         * lib/dup-safer.c: Likewise.
100075         * lib/dup2.c: Likewise.
100076         * lib/eealloc.h: Likewise.
100077         * lib/error.c: Likewise.
100078         * lib/error.h: Likewise.
100079         * lib/euidaccess.c: Likewise.
100080         * lib/exclude.c: Likewise.
100081         * lib/exclude.h: Likewise.
100082         * lib/execute.c: Likewise.
100083         * lib/execute.h: Likewise.
100084         * lib/exitfail.c: Likewise.
100085         * lib/exitfail.h: Likewise.
100086         * lib/expl.c: Likewise.
100087         * lib/fatal-signal.c: Likewise.
100088         * lib/fatal-signal.h: Likewise.
100089         * lib/fbufmode.c: Likewise.
100090         * lib/fbufmode.h: Likewise.
100091         * lib/fchdir.c: Likewise.
100092         * lib/fchmodat.c: Likewise.
100093         * lib/fchownat.c: Likewise.
100094         * lib/fcntl--.h: Likewise.
100095         * lib/fcntl-safer.h: Likewise.
100096         * lib/fcntl.in.h: Likewise.
100097         * lib/fd-safer.c: Likewise.
100098         * lib/fflush.c: Likewise.
100099         * lib/file-has-acl.c: Likewise.
100100         * lib/file-set.c: Likewise.
100101         * lib/file-type.c: Likewise.
100102         * lib/file-type.h: Likewise.
100103         * lib/fileblocks.c: Likewise.
100104         * lib/filemode.c: Likewise.
100105         * lib/filemode.h: Likewise.
100106         * lib/filename.h: Likewise.
100107         * lib/filenamecat.c: Likewise.
100108         * lib/filenamecat.h: Likewise.
100109         * lib/findprog.c: Likewise.
100110         * lib/findprog.h: Likewise.
100111         * lib/float.in.h: Likewise.
100112         * lib/floor.c: Likewise.
100113         * lib/floorf.c: Likewise.
100114         * lib/floorl.c: Likewise.
100115         * lib/fopen-safer.c: Likewise.
100116         * lib/fopen.c: Likewise.
100117         * lib/fpending.c: Likewise.
100118         * lib/fpending.h: Likewise.
100119         * lib/fprintf.c: Likewise.
100120         * lib/fprintftime.h: Likewise.
100121         * lib/fpucw.h: Likewise.
100122         * lib/fpurge.c: Likewise.
100123         * lib/fpurge.h: Likewise.
100124         * lib/freadable.c: Likewise.
100125         * lib/freadable.h: Likewise.
100126         * lib/freadahead.c: Likewise.
100127         * lib/freadahead.h: Likewise.
100128         * lib/freading.c: Likewise.
100129         * lib/freading.h: Likewise.
100130         * lib/free.c: Likewise.
100131         * lib/freopen.c: Likewise.
100132         * lib/frexp.c: Likewise.
100133         * lib/frexpl.c: Likewise.
100134         * lib/fseek.c: Likewise.
100135         * lib/fseterr.c: Likewise.
100136         * lib/fseterr.h: Likewise.
100137         * lib/fstatat.c: Likewise.
100138         * lib/fstrcmp.c: Likewise.
100139         * lib/fstrcmp.h: Likewise.
100140         * lib/fsusage.c: Likewise.
100141         * lib/fsusage.h: Likewise.
100142         * lib/ftell.c: Likewise.
100143         * lib/ftello.c: Likewise.
100144         * lib/fts-cycle.c: Likewise.
100145         * lib/fts.c: Likewise.
100146         * lib/fts_.h: Likewise.
100147         * lib/full-read.c: Likewise.
100148         * lib/full-read.h: Likewise.
100149         * lib/full-write.c: Likewise.
100150         * lib/full-write.h: Likewise.
100151         * lib/fwritable.c: Likewise.
100152         * lib/fwritable.h: Likewise.
100153         * lib/fwriteerror.c: Likewise.
100154         * lib/fwriteerror.h: Likewise.
100155         * lib/fwriting.c: Likewise.
100156         * lib/fwriting.h: Likewise.
100157         * lib/gcd.c: Likewise.
100158         * lib/gcd.h: Likewise.
100159         * lib/getcwd.c: Likewise.
100160         * lib/getdate.h: Likewise.
100161         * lib/getdate.y: Likewise.
100162         * lib/getdomainname.c: Likewise.
100163         * lib/getdomainname.h: Likewise.
100164         * lib/getgroups.c: Likewise.
100165         * lib/gethostname.c: Likewise.
100166         * lib/gethrxtime.c: Likewise.
100167         * lib/gethrxtime.h: Likewise.
100168         * lib/getloadavg.c: Likewise.
100169         * lib/getndelim2.c: Likewise.
100170         * lib/getndelim2.h: Likewise.
100171         * lib/getnline.c: Likewise.
100172         * lib/getnline.h: Likewise.
100173         * lib/getopt.c: Likewise.
100174         * lib/getopt.in.h: Likewise.
100175         * lib/getopt1.c: Likewise.
100176         * lib/getopt_int.h: Likewise.
100177         * lib/getpagesize.h: Likewise.
100178         * lib/getsubopt.c: Likewise.
100179         * lib/gettime.c: Likewise.
100180         * lib/getugroups.c: Likewise.
100181         * lib/getugroups.h: Likewise.
100182         * lib/getusershell.c: Likewise.
100183         * lib/gl_anyavltree_list1.h: Likewise.
100184         * lib/gl_anyavltree_list2.h: Likewise.
100185         * lib/gl_anyhash_list1.h: Likewise.
100186         * lib/gl_anyhash_list2.h: Likewise.
100187         * lib/gl_anylinked_list1.h: Likewise.
100188         * lib/gl_anylinked_list2.h: Likewise.
100189         * lib/gl_anyrbtree_list1.h: Likewise.
100190         * lib/gl_anyrbtree_list2.h: Likewise.
100191         * lib/gl_anytree_list1.h: Likewise.
100192         * lib/gl_anytree_list2.h: Likewise.
100193         * lib/gl_anytree_oset.h: Likewise.
100194         * lib/gl_anytreehash_list1.h: Likewise.
100195         * lib/gl_anytreehash_list2.h: Likewise.
100196         * lib/gl_array_list.c: Likewise.
100197         * lib/gl_array_list.h: Likewise.
100198         * lib/gl_array_oset.c: Likewise.
100199         * lib/gl_array_oset.h: Likewise.
100200         * lib/gl_avltree_list.c: Likewise.
100201         * lib/gl_avltree_list.h: Likewise.
100202         * lib/gl_avltree_oset.c: Likewise.
100203         * lib/gl_avltree_oset.h: Likewise.
100204         * lib/gl_avltreehash_list.c: Likewise.
100205         * lib/gl_avltreehash_list.h: Likewise.
100206         * lib/gl_carray_list.c: Likewise.
100207         * lib/gl_carray_list.h: Likewise.
100208         * lib/gl_linked_list.c: Likewise.
100209         * lib/gl_linked_list.h: Likewise.
100210         * lib/gl_linkedhash_list.c: Likewise.
100211         * lib/gl_linkedhash_list.h: Likewise.
100212         * lib/gl_list.c: Likewise.
100213         * lib/gl_list.h: Likewise.
100214         * lib/gl_oset.c: Likewise.
100215         * lib/gl_oset.h: Likewise.
100216         * lib/gl_rbtree_list.c: Likewise.
100217         * lib/gl_rbtree_list.h: Likewise.
100218         * lib/gl_rbtree_oset.c: Likewise.
100219         * lib/gl_rbtree_oset.h: Likewise.
100220         * lib/gl_rbtreehash_list.c: Likewise.
100221         * lib/gl_rbtreehash_list.h: Likewise.
100222         * lib/gl_sublist.c: Likewise.
100223         * lib/gl_sublist.h: Likewise.
100224         * lib/group-member.c: Likewise.
100225         * lib/group-member.h: Likewise.
100226         * lib/hard-locale.c: Likewise.
100227         * lib/hard-locale.h: Likewise.
100228         * lib/hash-pjw.c: Likewise.
100229         * lib/hash-pjw.h: Likewise.
100230         * lib/hash-triple.c: Likewise.
100231         * lib/hash.c: Likewise.
100232         * lib/hash.h: Likewise.
100233         * lib/human.c: Likewise.
100234         * lib/human.h: Likewise.
100235         * lib/i-ring.c: Likewise.
100236         * lib/i-ring.h: Likewise.
100237         * lib/idcache.c: Likewise.
100238         * lib/imaxabs.c: Likewise.
100239         * lib/imaxdiv.c: Likewise.
100240         * lib/inet_pton.c: Likewise.
100241         * lib/inet_pton.h: Likewise.
100242         * lib/intprops.h: Likewise.
100243         * lib/inttostr.c: Likewise.
100244         * lib/inttostr.h: Likewise.
100245         * lib/inttypes.in.h: Likewise.
100246         * lib/isapipe.c: Likewise.
100247         * lib/isdir.c: Likewise.
100248         * lib/isnan.c: Likewise.
100249         * lib/isnan.h: Likewise.
100250         * lib/isnanf.c: Likewise.
100251         * lib/isnanf.h: Likewise.
100252         * lib/isnanl-nolibm.h: Likewise.
100253         * lib/isnanl.c: Likewise.
100254         * lib/isnanl.h: Likewise.
100255         * lib/javacomp.c: Likewise.
100256         * lib/javacomp.h: Likewise.
100257         * lib/javaexec.c: Likewise.
100258         * lib/javaexec.h: Likewise.
100259         * lib/javaversion.c: Likewise.
100260         * lib/javaversion.h: Likewise.
100261         * lib/javaversion.java: Likewise.
100262         * lib/lbrkprop.h: Likewise.
100263         * lib/lchmod.h: Likewise.
100264         * lib/lchown.c: Likewise.
100265         * lib/ldexpl.c: Likewise.
100266         * lib/linebreak.c: Likewise.
100267         * lib/linebreak.h: Likewise.
100268         * lib/linebuffer.c: Likewise.
100269         * lib/linebuffer.h: Likewise.
100270         * lib/locale.in.h: Likewise.
100271         * lib/logl.c: Likewise.
100272         * lib/long-options.c: Likewise.
100273         * lib/long-options.h: Likewise.
100274         * lib/lstat.c: Likewise.
100275         * lib/lstat.h: Likewise.
100276         * lib/math.in.h: Likewise.
100277         * lib/mbchar.c: Likewise.
100278         * lib/mbchar.h: Likewise.
100279         * lib/mbfile.h: Likewise.
100280         * lib/mbiter.h: Likewise.
100281         * lib/mbscasecmp.c: Likewise.
100282         * lib/mbscasestr.c: Likewise.
100283         * lib/mbschr.c: Likewise.
100284         * lib/mbscspn.c: Likewise.
100285         * lib/mbslen.c: Likewise.
100286         * lib/mbsncasecmp.c: Likewise.
100287         * lib/mbsnlen.c: Likewise.
100288         * lib/mbspbrk.c: Likewise.
100289         * lib/mbspcasecmp.c: Likewise.
100290         * lib/mbsrchr.c: Likewise.
100291         * lib/mbssep.c: Likewise.
100292         * lib/mbsspn.c: Likewise.
100293         * lib/mbsstr.c: Likewise.
100294         * lib/mbstok_r.c: Likewise.
100295         * lib/mbswidth.c: Likewise.
100296         * lib/mbswidth.h: Likewise.
100297         * lib/mbuiter.h: Likewise.
100298         * lib/memcasecmp.c: Likewise.
100299         * lib/memcasecmp.h: Likewise.
100300         * lib/memchr.c: Likewise.
100301         * lib/memcmp.c: Likewise.
100302         * lib/memcoll.c: Likewise.
100303         * lib/memcoll.h: Likewise.
100304         * lib/memcpy.c: Likewise.
100305         * lib/memrchr.c: Likewise.
100306         * lib/mkancesdirs.c: Likewise.
100307         * lib/mkdir-p.c: Likewise.
100308         * lib/mkdir-p.h: Likewise.
100309         * lib/mkdir.c: Likewise.
100310         * lib/mkdirat.c: Likewise.
100311         * lib/mkdtemp.c: Likewise.
100312         * lib/mkstemp-safer.c: Likewise.
100313         * lib/mkstemp.c: Likewise.
100314         * lib/modechange.c: Likewise.
100315         * lib/modechange.h: Likewise.
100316         * lib/mountlist.c: Likewise.
100317         * lib/mountlist.h: Likewise.
100318         * lib/mpsort.c: Likewise.
100319         * lib/nanosleep.c: Likewise.
100320         * lib/obstack.c: Likewise.
100321         * lib/obstack.h: Likewise.
100322         * lib/open-safer.c: Likewise.
100323         * lib/open.c: Likewise.
100324         * lib/openat-die.c: Likewise.
100325         * lib/openat-priv.h: Likewise.
100326         * lib/openat-proc.c: Likewise.
100327         * lib/openat.c: Likewise.
100328         * lib/openat.h: Likewise.
100329         * lib/pagealign_alloc.c: Likewise.
100330         * lib/pagealign_alloc.h: Likewise.
100331         * lib/physmem.c: Likewise.
100332         * lib/physmem.h: Likewise.
100333         * lib/pipe-safer.c: Likewise.
100334         * lib/pipe.c: Likewise.
100335         * lib/pipe.h: Likewise.
100336         * lib/posixtm.c: Likewise.
100337         * lib/posixtm.h: Likewise.
100338         * lib/posixver.c: Likewise.
100339         * lib/printf-frexp.c: Likewise.
100340         * lib/printf-frexp.h: Likewise.
100341         * lib/printf-frexpl.c: Likewise.
100342         * lib/printf-frexpl.h: Likewise.
100343         * lib/printf.c: Likewise.
100344         * lib/progname.c: Likewise.
100345         * lib/progname.h: Likewise.
100346         * lib/progreloc.c: Likewise.
100347         * lib/putenv.c: Likewise.
100348         * lib/quote.c: Likewise.
100349         * lib/quote.h: Likewise.
100350         * lib/quotearg.c: Likewise.
100351         * lib/quotearg.h: Likewise.
100352         * lib/raise.c: Likewise.
100353         * lib/readline.c: Likewise.
100354         * lib/readline.h: Likewise.
100355         * lib/readlink.c: Likewise.
100356         * lib/readtokens.c: Likewise.
100357         * lib/readtokens.h: Likewise.
100358         * lib/readtokens0.c: Likewise.
100359         * lib/readtokens0.h: Likewise.
100360         * lib/readutmp.c: Likewise.
100361         * lib/readutmp.h: Likewise.
100362         * lib/realloc.c: Likewise.
100363         * lib/relocwrapper.c: Likewise.
100364         * lib/rename-dest-slash.c: Likewise.
100365         * lib/rename.c: Likewise.
100366         * lib/rmdir.c: Likewise.
100367         * lib/rpmatch.c: Likewise.
100368         * lib/safe-read.c: Likewise.
100369         * lib/safe-read.h: Likewise.
100370         * lib/safe-write.c: Likewise.
100371         * lib/safe-write.h: Likewise.
100372         * lib/same-inode.h: Likewise.
100373         * lib/same.c: Likewise.
100374         * lib/same.h: Likewise.
100375         * lib/save-cwd.c: Likewise.
100376         * lib/save-cwd.h: Likewise.
100377         * lib/savedir.c: Likewise.
100378         * lib/savedir.h: Likewise.
100379         * lib/savewd.c: Likewise.
100380         * lib/savewd.h: Likewise.
100381         * lib/search.in.h: Likewise.
100382         * lib/setenv.c: Likewise.
100383         * lib/setenv.h: Likewise.
100384         * lib/settime.c: Likewise.
100385         * lib/sh-quote.c: Likewise.
100386         * lib/sh-quote.h: Likewise.
100387         * lib/sig2str.c: Likewise.
100388         * lib/sig2str.h: Likewise.
100389         * lib/signal.in.h: Likewise.
100390         * lib/signbitd.c: Likewise.
100391         * lib/signbitf.c: Likewise.
100392         * lib/signbitl.c: Likewise.
100393         * lib/sigprocmask.c: Likewise.
100394         * lib/sincosl.c: Likewise.
100395         * lib/sleep.c: Likewise.
100396         * lib/sprintf.c: Likewise.
100397         * lib/sqrtl.c: Likewise.
100398         * lib/stat-time.h: Likewise.
100399         * lib/stdio--.h: Likewise.
100400         * lib/stdio-safer.h: Likewise.
100401         * lib/stdlib--.h: Likewise.
100402         * lib/stdlib-safer.h: Likewise.
100403         * lib/stdlib.in.h: Likewise.
100404         * lib/stpcpy.c: Likewise.
100405         * lib/stpncpy.c: Likewise.
100406         * lib/strchrnul.c: Likewise.
100407         * lib/strcspn.c: Likewise.
100408         * lib/strerror.c: Likewise.
100409         * lib/strftime.c: Likewise.
100410         * lib/strftime.h: Likewise.
100411         * lib/striconveh.c: Likewise.
100412         * lib/striconveh.h: Likewise.
100413         * lib/striconveha.c: Likewise.
100414         * lib/striconveha.h: Likewise.
100415         * lib/stripslash.c: Likewise.
100416         * lib/strnlen1.c: Likewise.
100417         * lib/strnlen1.h: Likewise.
100418         * lib/strtod.c: Likewise.
100419         * lib/strtoimax.c: Likewise.
100420         * lib/strtok_r.c: Likewise.
100421         * lib/strtol.c: Likewise.
100422         * lib/strtoll.c: Likewise.
100423         * lib/strtoul.c: Likewise.
100424         * lib/strtoull.c: Likewise.
100425         * lib/sysexits.in.h: Likewise.
100426         * lib/tempname.c: Likewise.
100427         * lib/tempname.h: Likewise.
100428         * lib/timespec.h: Likewise.
100429         * lib/tls.c: Likewise.
100430         * lib/tls.h: Likewise.
100431         * lib/tmpdir.c: Likewise.
100432         * lib/tmpdir.h: Likewise.
100433         * lib/tmpfile-safer.c: Likewise.
100434         * lib/tmpfile.c: Likewise.
100435         * lib/trigl.c: Likewise.
100436         * lib/trigl.h: Likewise.
100437         * lib/trim.c: Likewise.
100438         * lib/trim.h: Likewise.
100439         * lib/trunc.c: Likewise.
100440         * lib/truncf.c: Likewise.
100441         * lib/truncl.c: Likewise.
100442         * lib/tsearch.c: Likewise.
100443         * lib/unicodeio.c: Likewise.
100444         * lib/unicodeio.h: Likewise.
100445         * lib/unistd--.h: Likewise.
100446         * lib/unistd-safer.h: Likewise.
100447         * lib/unistdio/ulc-fprintf.c: Likewise.
100448         * lib/unistdio/ulc-vfprintf.c: Likewise.
100449         * lib/unlinkdir.c: Likewise.
100450         * lib/unlinkdir.h: Likewise.
100451         * lib/unlocked-io.h: Likewise.
100452         * lib/unsetenv.c: Likewise.
100453         * lib/userspec.c: Likewise.
100454         * lib/utime.c: Likewise.
100455         * lib/utimecmp.c: Likewise.
100456         * lib/utimecmp.h: Likewise.
100457         * lib/utimens.c: Likewise.
100458         * lib/verify.h: Likewise.
100459         * lib/verror.c: Likewise.
100460         * lib/verror.h: Likewise.
100461         * lib/version-etc-fsf.c: Likewise.
100462         * lib/version-etc.c: Likewise.
100463         * lib/version-etc.h: Likewise.
100464         * lib/vfprintf.c: Likewise.
100465         * lib/vprintf.c: Likewise.
100466         * lib/vsprintf.c: Likewise.
100467         * lib/w32spawn.h: Likewise.
100468         * lib/wait-process.c: Likewise.
100469         * lib/wait-process.h: Likewise.
100470         * lib/wcwidth.c: Likewise.
100471         * lib/write-any-file.c: Likewise.
100472         * lib/xalloc-die.c: Likewise.
100473         * lib/xalloc.h: Likewise.
100474         * lib/xasprintf.c: Likewise.
100475         * lib/xgetcwd.c: Likewise.
100476         * lib/xgetcwd.h: Likewise.
100477         * lib/xgetdomainname.c: Likewise.
100478         * lib/xgetdomainname.h: Likewise.
100479         * lib/xgethostname.c: Likewise.
100480         * lib/xmalloc.c: Likewise.
100481         * lib/xmalloca.c: Likewise.
100482         * lib/xmalloca.h: Likewise.
100483         * lib/xmemcoll.c: Likewise.
100484         * lib/xnanosleep.c: Likewise.
100485         * lib/xreadlink.c: Likewise.
100486         * lib/xreadlink.h: Likewise.
100487         * lib/xsetenv.c: Likewise.
100488         * lib/xsetenv.h: Likewise.
100489         * lib/xstriconv.c: Likewise.
100490         * lib/xstriconv.h: Likewise.
100491         * lib/xstrndup.c: Likewise.
100492         * lib/xstrndup.h: Likewise.
100493         * lib/xstrtod.c: Likewise.
100494         * lib/xstrtod.h: Likewise.
100495         * lib/xstrtol-error.c: Likewise.
100496         * lib/xstrtol.c: Likewise.
100497         * lib/xstrtol.h: Likewise.
100498         * lib/xtime.h: Likewise.
100499         * lib/xvasprintf.c: Likewise.
100500         * lib/xvasprintf.h: Likewise.
100501         * lib/yesno.c: Likewise.
100502         * lib/yesno.h: Likewise.
100503         * posix-modules: Likewise.
100504         * tests/test-alloca-opt.c: Likewise.
100505         * tests/test-arcfour.c: Likewise.
100506         * tests/test-arctwo.c: Likewise.
100507         * tests/test-argmatch.c: Likewise.
100508         * tests/test-argp-2.sh: Likewise.
100509         * tests/test-argp.c: Likewise.
100510         * tests/test-arpa_inet.c: Likewise.
100511         * tests/test-array_list.c: Likewise.
100512         * tests/test-array_oset.c: Likewise.
100513         * tests/test-atexit.c: Likewise.
100514         * tests/test-avltree_list.c: Likewise.
100515         * tests/test-avltree_oset.c: Likewise.
100516         * tests/test-avltreehash_list.c: Likewise.
100517         * tests/test-base64.c: Likewise.
100518         * tests/test-binary-io.c: Likewise.
100519         * tests/test-byteswap.c: Likewise.
100520         * tests/test-c-ctype.c: Likewise.
100521         * tests/test-c-strcasecmp.c: Likewise.
100522         * tests/test-c-strcasestr.c: Likewise.
100523         * tests/test-c-strncasecmp.c: Likewise.
100524         * tests/test-c-strstr.c: Likewise.
100525         * tests/test-canonicalize-lgpl.c: Likewise.
100526         * tests/test-canonicalize.c: Likewise.
100527         * tests/test-carray_list.c: Likewise.
100528         * tests/test-ceilf.c: Likewise.
100529         * tests/test-ceill.c: Likewise.
100530         * tests/test-count-one-bits.c: Likewise.
100531         * tests/test-crc.c: Likewise.
100532         * tests/test-dirname.c: Likewise.
100533         * tests/test-fbufmode.c: Likewise.
100534         * tests/test-fcntl.c: Likewise.
100535         * tests/test-fflush.c: Likewise.
100536         * tests/test-floorf.c: Likewise.
100537         * tests/test-floorl.c: Likewise.
100538         * tests/test-fopen.c: Likewise.
100539         * tests/test-fprintf-posix.c: Likewise.
100540         * tests/test-fprintf-posix.h: Likewise.
100541         * tests/test-fpurge.c: Likewise.
100542         * tests/test-freadable.c: Likewise.
100543         * tests/test-freadahead.c: Likewise.
100544         * tests/test-freading.c: Likewise.
100545         * tests/test-freopen.c: Likewise.
100546         * tests/test-frexp.c: Likewise.
100547         * tests/test-frexpl.c: Likewise.
100548         * tests/test-fseek.c: Likewise.
100549         * tests/test-fseeko.c: Likewise.
100550         * tests/test-fseterr.c: Likewise.
100551         * tests/test-fstrcmp.c: Likewise.
100552         * tests/test-ftell.c: Likewise.
100553         * tests/test-ftello.c: Likewise.
100554         * tests/test-fwritable.c: Likewise.
100555         * tests/test-fwriting.c: Likewise.
100556         * tests/test-getaddrinfo.c: Likewise.
100557         * tests/test-getpass.c: Likewise.
100558         * tests/test-gettimeofday.c: Likewise.
100559         * tests/test-hmac-md5.c: Likewise.
100560         * tests/test-hmac-sha1.c: Likewise.
100561         * tests/test-iconv.c: Likewise.
100562         * tests/test-iconvme.c: Likewise.
100563         * tests/test-inttypes.c: Likewise.
100564         * tests/test-isnan.c: Likewise.
100565         * tests/test-isnanf.c: Likewise.
100566         * tests/test-isnanl-nolibm.c: Likewise.
100567         * tests/test-isnanl.c: Likewise.
100568         * tests/test-isnanl.h: Likewise.
100569         * tests/test-ldexpl.c: Likewise.
100570         * tests/test-linked_list.c: Likewise.
100571         * tests/test-linkedhash_list.c: Likewise.
100572         * tests/test-locale.c: Likewise.
100573         * tests/test-localename.c: Likewise.
100574         * tests/test-lock.c: Likewise.
100575         * tests/test-lseek.c: Likewise.
100576         * tests/test-malloca.c: Likewise.
100577         * tests/test-math.c: Likewise.
100578         * tests/test-mbscasecmp.c: Likewise.
100579         * tests/test-mbscasestr1.c: Likewise.
100580         * tests/test-mbscasestr2.c: Likewise.
100581         * tests/test-mbscasestr3.c: Likewise.
100582         * tests/test-mbscasestr4.c: Likewise.
100583         * tests/test-mbschr.c: Likewise.
100584         * tests/test-mbscspn.c: Likewise.
100585         * tests/test-mbsncasecmp.c: Likewise.
100586         * tests/test-mbspbrk.c: Likewise.
100587         * tests/test-mbspcasecmp.c: Likewise.
100588         * tests/test-mbsrchr.c: Likewise.
100589         * tests/test-mbsspn.c: Likewise.
100590         * tests/test-mbsstr1.c: Likewise.
100591         * tests/test-mbsstr2.c: Likewise.
100592         * tests/test-mbsstr3.c: Likewise.
100593         * tests/test-md5.c: Likewise.
100594         * tests/test-memmem.c: Likewise.
100595         * tests/test-netinet_in.c: Likewise.
100596         * tests/test-open.c: Likewise.
100597         * tests/test-printf-frexp.c: Likewise.
100598         * tests/test-printf-frexpl.c: Likewise.
100599         * tests/test-printf-posix.c: Likewise.
100600         * tests/test-printf-posix.h: Likewise.
100601         * tests/test-rbtree_list.c: Likewise.
100602         * tests/test-rbtree_oset.c: Likewise.
100603         * tests/test-rbtreehash_list.c: Likewise.
100604         * tests/test-read-file.c: Likewise.
100605         * tests/test-rijndael.c: Likewise.
100606         * tests/test-search.c: Likewise.
100607         * tests/test-signbit.c: Likewise.
100608         * tests/test-sleep.c: Likewise.
100609         * tests/test-snprintf-posix.c: Likewise.
100610         * tests/test-snprintf-posix.h: Likewise.
100611         * tests/test-snprintf.c: Likewise.
100612         * tests/test-sprintf-posix.c: Likewise.
100613         * tests/test-sprintf-posix.h: Likewise.
100614         * tests/test-stat-time.c: Likewise.
100615         * tests/test-stdbool.c: Likewise.
100616         * tests/test-stdint.c: Likewise.
100617         * tests/test-stdio.c: Likewise.
100618         * tests/test-stdlib.c: Likewise.
100619         * tests/test-stpncpy.c: Likewise.
100620         * tests/test-strcasestr.c: Likewise.
100621         * tests/test-striconv.c: Likewise.
100622         * tests/test-striconveh.c: Likewise.
100623         * tests/test-striconveha.c: Likewise.
100624         * tests/test-string.c: Likewise.
100625         * tests/test-sys_select.c: Likewise.
100626         * tests/test-sys_socket.c: Likewise.
100627         * tests/test-sys_stat.c: Likewise.
100628         * tests/test-sys_time.c: Likewise.
100629         * tests/test-sysexits.c: Likewise.
100630         * tests/test-time.c: Likewise.
100631         * tests/test-tls.c: Likewise.
100632         * tests/test-trunc.c: Likewise.
100633         * tests/test-truncf.c: Likewise.
100634         * tests/test-truncl.c: Likewise.
100635         * tests/test-unistd.c: Likewise.
100636         * tests/test-vasnprintf-posix.c: Likewise.
100637         * tests/test-vasnprintf-posix2.c: Likewise.
100638         * tests/test-vasnprintf.c: Likewise.
100639         * tests/test-vasprintf-posix.c: Likewise.
100640         * tests/test-vasprintf.c: Likewise.
100641         * tests/test-verify.c: Likewise.
100642         * tests/test-vfprintf-posix.c: Likewise.
100643         * tests/test-vprintf-posix.c: Likewise.
100644         * tests/test-vsnprintf-posix.c: Likewise.
100645         * tests/test-vsnprintf.c: Likewise.
100646         * tests/test-vsprintf-posix.c: Likewise.
100647         * tests/test-wchar.c: Likewise.
100648         * tests/test-wctype.c: Likewise.
100649         * tests/test-wcwidth.c: Likewise.
100650         * tests/test-xstrtol.c: Likewise.
100651         * tests/test-xvasprintf.c: Likewise.
100652         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
100653         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
100654         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100655         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100656         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100657         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
100658         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100659         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100660         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100661         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100662         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100663         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100664         * tests/uniname/test-uninames.c: Likewise.
100665         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100666         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100667         * tests/unistdio/test-u16-printf1.h: Likewise.
100668         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100669         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100670         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100671         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100672         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100673         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100674         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100675         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100676         * tests/unistdio/test-u32-printf1.h: Likewise.
100677         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100678         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100679         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100680         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100681         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100682         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100683         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100684         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100685         * tests/unistdio/test-u8-printf1.h: Likewise.
100686         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100687         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100688         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100689         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100690         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100691         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100692         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100693         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100694         * tests/unistdio/test-ulc-printf1.h: Likewise.
100695         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100696         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100697         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100698         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100699         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100700         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100701         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100702         * tests/uniwidth/test-u16-width.c: Likewise.
100703         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100704         * tests/uniwidth/test-u32-width.c: Likewise.
100705         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100706         * tests/uniwidth/test-u8-width.c: Likewise.
100707         * tests/uniwidth/test-uc_width.c: Likewise.
100708         * config/srclist-update: Likewise.
100709         (fixlicense): Update to GPLv3+.
100711         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100712         * tests/test-tsearch.c: Change copyright notice.
100714         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100715         * lib/c-strcaseeq.h: Change copyright notice.
100716         * lib/streq.h: Likewise.
100717         * lib/uniconv.h: Likewise.
100718         * lib/uniconv/u-conv-from-enc.h: Likewise.
100719         * lib/uniconv/u-conv-to-enc.h: Likewise.
100720         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100721         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100722         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100723         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100724         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100725         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100726         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100727         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100728         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100729         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100730         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100731         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100732         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100733         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100734         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100735         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100736         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100737         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100738         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100739         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100740         * lib/uniname.h: Likewise.
100741         * lib/uniname/uniname.c: Likewise.
100742         * lib/unistdio.h: Likewise.
100743         * lib/unistdio/u-asnprintf.h: Likewise.
100744         * lib/unistdio/u-asprintf.h: Likewise.
100745         * lib/unistdio/u-printf-args.c: Likewise.
100746         * lib/unistdio/u-printf-args.h: Likewise.
100747         * lib/unistdio/u-printf-parse.h: Likewise.
100748         * lib/unistdio/u-snprintf.h: Likewise.
100749         * lib/unistdio/u-sprintf.h: Likewise.
100750         * lib/unistdio/u-vasprintf.h: Likewise.
100751         * lib/unistdio/u-vsnprintf.h: Likewise.
100752         * lib/unistdio/u-vsprintf.h: Likewise.
100753         * lib/unistdio/u16-asnprintf.c: Likewise.
100754         * lib/unistdio/u16-asprintf.c: Likewise.
100755         * lib/unistdio/u16-printf-parse.c: Likewise.
100756         * lib/unistdio/u16-snprintf.c: Likewise.
100757         * lib/unistdio/u16-sprintf.c: Likewise.
100758         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100759         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100760         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100761         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100762         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100763         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100764         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100765         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100766         * lib/unistdio/u16-vasnprintf.c: Likewise.
100767         * lib/unistdio/u16-vasprintf.c: Likewise.
100768         * lib/unistdio/u16-vsnprintf.c: Likewise.
100769         * lib/unistdio/u16-vsprintf.c: Likewise.
100770         * lib/unistdio/u32-asnprintf.c: Likewise.
100771         * lib/unistdio/u32-asprintf.c: Likewise.
100772         * lib/unistdio/u32-printf-parse.c: Likewise.
100773         * lib/unistdio/u32-snprintf.c: Likewise.
100774         * lib/unistdio/u32-sprintf.c: Likewise.
100775         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100776         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100777         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100778         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100779         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100780         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100781         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100782         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100783         * lib/unistdio/u32-vasnprintf.c: Likewise.
100784         * lib/unistdio/u32-vasprintf.c: Likewise.
100785         * lib/unistdio/u32-vsnprintf.c: Likewise.
100786         * lib/unistdio/u32-vsprintf.c: Likewise.
100787         * lib/unistdio/u8-asnprintf.c: Likewise.
100788         * lib/unistdio/u8-asprintf.c: Likewise.
100789         * lib/unistdio/u8-printf-parse.c: Likewise.
100790         * lib/unistdio/u8-snprintf.c: Likewise.
100791         * lib/unistdio/u8-sprintf.c: Likewise.
100792         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100793         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100794         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100795         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100796         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100797         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100798         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100799         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100800         * lib/unistdio/u8-vasnprintf.c: Likewise.
100801         * lib/unistdio/u8-vasprintf.c: Likewise.
100802         * lib/unistdio/u8-vsnprintf.c: Likewise.
100803         * lib/unistdio/u8-vsprintf.c: Likewise.
100804         * lib/unistdio/ulc-asnprintf.c: Likewise.
100805         * lib/unistdio/ulc-asprintf.c: Likewise.
100806         * lib/unistdio/ulc-printf-parse.c: Likewise.
100807         * lib/unistdio/ulc-snprintf.c: Likewise.
100808         * lib/unistdio/ulc-sprintf.c: Likewise.
100809         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100810         * lib/unistdio/ulc-vasprintf.c: Likewise.
100811         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100812         * lib/unistdio/ulc-vsprintf.c: Likewise.
100813         * lib/unistr.h: Likewise.
100814         * lib/unistr/u-cpy-alloc.h: Likewise.
100815         * lib/unistr/u-cpy.h: Likewise.
100816         * lib/unistr/u-endswith.h: Likewise.
100817         * lib/unistr/u-move.h: Likewise.
100818         * lib/unistr/u-set.h: Likewise.
100819         * lib/unistr/u-startswith.h: Likewise.
100820         * lib/unistr/u-stpcpy.h: Likewise.
100821         * lib/unistr/u-stpncpy.h: Likewise.
100822         * lib/unistr/u-strcat.h: Likewise.
100823         * lib/unistr/u-strcpy.h: Likewise.
100824         * lib/unistr/u-strcspn.h: Likewise.
100825         * lib/unistr/u-strdup.h: Likewise.
100826         * lib/unistr/u-strlen.h: Likewise.
100827         * lib/unistr/u-strncat.h: Likewise.
100828         * lib/unistr/u-strncpy.h: Likewise.
100829         * lib/unistr/u-strnlen.h: Likewise.
100830         * lib/unistr/u-strpbrk.h: Likewise.
100831         * lib/unistr/u-strspn.h: Likewise.
100832         * lib/unistr/u-strstr.h: Likewise.
100833         * lib/unistr/u-strtok.h: Likewise.
100834         * lib/unistr/u16-check.c: Likewise.
100835         * lib/unistr/u16-chr.c: Likewise.
100836         * lib/unistr/u16-cmp.c: Likewise.
100837         * lib/unistr/u16-cpy-alloc.c: Likewise.
100838         * lib/unistr/u16-cpy.c: Likewise.
100839         * lib/unistr/u16-endswith.c: Likewise.
100840         * lib/unistr/u16-mblen.c: Likewise.
100841         * lib/unistr/u16-mbsnlen.c: Likewise.
100842         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100843         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100844         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100845         * lib/unistr/u16-mbtouc.c: Likewise.
100846         * lib/unistr/u16-mbtoucr.c: Likewise.
100847         * lib/unistr/u16-move.c: Likewise.
100848         * lib/unistr/u16-next.c: Likewise.
100849         * lib/unistr/u16-prev.c: Likewise.
100850         * lib/unistr/u16-set.c: Likewise.
100851         * lib/unistr/u16-startswith.c: Likewise.
100852         * lib/unistr/u16-stpcpy.c: Likewise.
100853         * lib/unistr/u16-stpncpy.c: Likewise.
100854         * lib/unistr/u16-strcat.c: Likewise.
100855         * lib/unistr/u16-strchr.c: Likewise.
100856         * lib/unistr/u16-strcmp.c: Likewise.
100857         * lib/unistr/u16-strcpy.c: Likewise.
100858         * lib/unistr/u16-strcspn.c: Likewise.
100859         * lib/unistr/u16-strdup.c: Likewise.
100860         * lib/unistr/u16-strlen.c: Likewise.
100861         * lib/unistr/u16-strmblen.c: Likewise.
100862         * lib/unistr/u16-strmbtouc.c: Likewise.
100863         * lib/unistr/u16-strncat.c: Likewise.
100864         * lib/unistr/u16-strncmp.c: Likewise.
100865         * lib/unistr/u16-strncpy.c: Likewise.
100866         * lib/unistr/u16-strnlen.c: Likewise.
100867         * lib/unistr/u16-strpbrk.c: Likewise.
100868         * lib/unistr/u16-strrchr.c: Likewise.
100869         * lib/unistr/u16-strspn.c: Likewise.
100870         * lib/unistr/u16-strstr.c: Likewise.
100871         * lib/unistr/u16-strtok.c: Likewise.
100872         * lib/unistr/u16-to-u32.c: Likewise.
100873         * lib/unistr/u16-to-u8.c: Likewise.
100874         * lib/unistr/u16-uctomb-aux.c: Likewise.
100875         * lib/unistr/u16-uctomb.c: Likewise.
100876         * lib/unistr/u32-check.c: Likewise.
100877         * lib/unistr/u32-chr.c: Likewise.
100878         * lib/unistr/u32-cmp.c: Likewise.
100879         * lib/unistr/u32-cpy-alloc.c: Likewise.
100880         * lib/unistr/u32-cpy.c: Likewise.
100881         * lib/unistr/u32-endswith.c: Likewise.
100882         * lib/unistr/u32-mblen.c: Likewise.
100883         * lib/unistr/u32-mbsnlen.c: Likewise.
100884         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100885         * lib/unistr/u32-mbtouc.c: Likewise.
100886         * lib/unistr/u32-mbtoucr.c: Likewise.
100887         * lib/unistr/u32-move.c: Likewise.
100888         * lib/unistr/u32-next.c: Likewise.
100889         * lib/unistr/u32-prev.c: Likewise.
100890         * lib/unistr/u32-set.c: Likewise.
100891         * lib/unistr/u32-startswith.c: Likewise.
100892         * lib/unistr/u32-stpcpy.c: Likewise.
100893         * lib/unistr/u32-stpncpy.c: Likewise.
100894         * lib/unistr/u32-strcat.c: Likewise.
100895         * lib/unistr/u32-strchr.c: Likewise.
100896         * lib/unistr/u32-strcmp.c: Likewise.
100897         * lib/unistr/u32-strcpy.c: Likewise.
100898         * lib/unistr/u32-strcspn.c: Likewise.
100899         * lib/unistr/u32-strdup.c: Likewise.
100900         * lib/unistr/u32-strlen.c: Likewise.
100901         * lib/unistr/u32-strmblen.c: Likewise.
100902         * lib/unistr/u32-strmbtouc.c: Likewise.
100903         * lib/unistr/u32-strncat.c: Likewise.
100904         * lib/unistr/u32-strncmp.c: Likewise.
100905         * lib/unistr/u32-strncpy.c: Likewise.
100906         * lib/unistr/u32-strnlen.c: Likewise.
100907         * lib/unistr/u32-strpbrk.c: Likewise.
100908         * lib/unistr/u32-strrchr.c: Likewise.
100909         * lib/unistr/u32-strspn.c: Likewise.
100910         * lib/unistr/u32-strstr.c: Likewise.
100911         * lib/unistr/u32-strtok.c: Likewise.
100912         * lib/unistr/u32-to-u16.c: Likewise.
100913         * lib/unistr/u32-to-u8.c: Likewise.
100914         * lib/unistr/u32-uctomb.c: Likewise.
100915         * lib/unistr/u8-check.c: Likewise.
100916         * lib/unistr/u8-chr.c: Likewise.
100917         * lib/unistr/u8-cmp.c: Likewise.
100918         * lib/unistr/u8-cpy-alloc.c: Likewise.
100919         * lib/unistr/u8-cpy.c: Likewise.
100920         * lib/unistr/u8-endswith.c: Likewise.
100921         * lib/unistr/u8-mblen.c: Likewise.
100922         * lib/unistr/u8-mbsnlen.c: Likewise.
100923         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100924         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100925         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100926         * lib/unistr/u8-mbtouc.c: Likewise.
100927         * lib/unistr/u8-mbtoucr.c: Likewise.
100928         * lib/unistr/u8-move.c: Likewise.
100929         * lib/unistr/u8-next.c: Likewise.
100930         * lib/unistr/u8-prev.c: Likewise.
100931         * lib/unistr/u8-set.c: Likewise.
100932         * lib/unistr/u8-startswith.c: Likewise.
100933         * lib/unistr/u8-stpcpy.c: Likewise.
100934         * lib/unistr/u8-stpncpy.c: Likewise.
100935         * lib/unistr/u8-strcat.c: Likewise.
100936         * lib/unistr/u8-strchr.c: Likewise.
100937         * lib/unistr/u8-strcmp.c: Likewise.
100938         * lib/unistr/u8-strcpy.c: Likewise.
100939         * lib/unistr/u8-strcspn.c: Likewise.
100940         * lib/unistr/u8-strdup.c: Likewise.
100941         * lib/unistr/u8-strlen.c: Likewise.
100942         * lib/unistr/u8-strmblen.c: Likewise.
100943         * lib/unistr/u8-strmbtouc.c: Likewise.
100944         * lib/unistr/u8-strncat.c: Likewise.
100945         * lib/unistr/u8-strncmp.c: Likewise.
100946         * lib/unistr/u8-strncpy.c: Likewise.
100947         * lib/unistr/u8-strnlen.c: Likewise.
100948         * lib/unistr/u8-strpbrk.c: Likewise.
100949         * lib/unistr/u8-strrchr.c: Likewise.
100950         * lib/unistr/u8-strspn.c: Likewise.
100951         * lib/unistr/u8-strstr.c: Likewise.
100952         * lib/unistr/u8-strtok.c: Likewise.
100953         * lib/unistr/u8-to-u16.c: Likewise.
100954         * lib/unistr/u8-to-u32.c: Likewise.
100955         * lib/unistr/u8-uctomb-aux.c: Likewise.
100956         * lib/unistr/u8-uctomb.c: Likewise.
100957         * lib/unitypes.h: Likewise.
100958         * lib/uniwidth.h: Likewise.
100959         * lib/uniwidth/cjk.h: Likewise.
100960         * lib/uniwidth/u16-strwidth.c: Likewise.
100961         * lib/uniwidth/u16-width.c: Likewise.
100962         * lib/uniwidth/u32-strwidth.c: Likewise.
100963         * lib/uniwidth/u32-width.c: Likewise.
100964         * lib/uniwidth/u8-strwidth.c: Likewise.
100965         * lib/uniwidth/u8-width.c: Likewise.
100966         * lib/uniwidth/width.c: Likewise.
100968 2007-10-07  Bruno Haible  <bruno@clisp.org>
100970         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100971         The file is still under LGPL (see modules/inttypes).
100973 2007-10-06  Bruno Haible  <bruno@clisp.org>
100975         * modules/trunc (Dependencies): Add 'extensions'.
100976         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100977         Reported by Ben Pfaff <blp@gnu.org>.
100979 2007-10-06  Bruno Haible  <bruno@clisp.org>
100981         * modules/freopen-tests: New file.
100982         * tests/test-freopen.c: New file.
100984         * modules/fopen-tests: New file.
100985         * tests/test-fopen.c: New file.
100987         * modules/fopen: New file.
100988         * lib/fopen.c: New file.
100989         * m4/fopen.m4: New file.
100990         * modules/freopen: New file.
100991         * lib/freopen.c: New file.
100992         * m4/freopen.m4: New file.
100993         * lib/stdio.in.h (fopen, freopen): New declarations.
100994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100995         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100996         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100997         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100998         * doc/functions/fopen.texi: Mention the 'fopen' module.
100999         * doc/functions/freopen.texi: Mention the 'freopen' module.
101001 2007-10-06  Bruno Haible  <bruno@clisp.org>
101003         * modules/open-tests: New file.
101004         * tests/test-open.c: New file.
101006         * modules/open: New file.
101007         * lib/open.c: New file.
101008         * m4/open.m4: New file.
101009         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
101010         lib/open.c does.
101011         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
101012         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
101013         macros.
101014         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
101015         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
101016         REPLACE_OPEN.
101017         * doc/functions/open.texi: Mention the 'open' module.
101019 2007-10-04  Bruno Haible  <bruno@clisp.org>
101021         * modules/ceill-tests: New file.
101022         * tests/test-ceill.c: New file.
101024         * modules/ceill: New file.
101025         * lib/ceill.c: Replace entire file.
101026         * m4/ceill.m4: New file.
101027         * lib/math.in.h (ceill): Replace declaration.
101028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
101029         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
101030         * doc/functions/ceill.texi: Mention the 'ceill' module.
101031         * modules/mathl (Files): Remove lib/ceill.c.
101032         (Depends-on): Add ceill.
101034 2007-10-04  Bruno Haible  <bruno@clisp.org>
101036         * modules/ceilf-tests: New file.
101037         * tests/test-ceilf.c: New file.
101039         * modules/ceilf: New file.
101040         * lib/ceil.c: New file.
101041         * lib/ceilf.c: New file.
101042         * m4/ceilf.m4: New file.
101043         * lib/math.in.h (ceilf): New declaration.
101044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
101045         HAVE_DECL_CEILF.
101046         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
101047         HAVE_DECL_CEILF.
101048         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
101050 2007-10-04  Bruno Haible  <bruno@clisp.org>
101052         * modules/floorl-tests: New file.
101053         * tests/test-floorl.c: New file.
101055         * modules/floorl: New file.
101056         * lib/floorl.c: Replace entire file.
101057         * m4/floorl.m4: New file.
101058         * lib/math.in.h (floorl): Replace declaration.
101059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
101060         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
101061         * doc/functions/floorl.texi: Mention the 'floorl' module.
101062         * modules/mathl (Files): Remove lib/floorl.c.
101063         (Depends-on): Add floorl.
101065 2007-10-04  Bruno Haible  <bruno@clisp.org>
101067         * modules/floorf-tests: New file.
101068         * tests/test-floorf.c: New file.
101070         * modules/floorf: New file.
101071         * lib/floor.c: New file.
101072         * lib/floorf.c: New file.
101073         * m4/floorf.m4: New file.
101074         * lib/math.in.h (floorf): New declaration.
101075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
101076         HAVE_DECL_FLOORF.
101077         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
101078         HAVE_DECL_FLOORF.
101079         * doc/functions/floorf.texi: Mention the 'floorf' module.
101081 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
101082             Bruno Haible  <bruno@clisp.org>
101084         Advertise for the Git server instead of the CVS server.
101085         * doc/gnulib-intro.texi (Steady Development): Mention the Git
101086         repository instead of the CVS one.
101087         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
101088         about all VCS systems generically.
101089         * doc/gnulib.texi (Introduction): Capitalize `Git'.
101091 2007-10-04  Bruno Haible  <bruno@clisp.org>
101093         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
101094         means.
101095         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
101097 2007-10-04  Bruno Haible  <bruno@clisp.org>
101099         * modules/truncl-tests: New file.
101100         * tests/test-truncl.c: New file.
101102         * modules/truncl: New file.
101103         * lib/truncl.c: New file.
101104         * m4/truncl.m4: New file.
101105         * lib/math.in.h (truncl): New declaration.
101106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
101107         HAVE_DECL_TRUNCL.
101108         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
101109         HAVE_DECL_TRUNCL.
101110         * doc/functions/truncl.texi: Mention the 'truncl' module.
101112 2007-10-04  Bruno Haible  <bruno@clisp.org>
101114         * modules/truncf-tests: New file.
101115         * tests/test-truncf.c: New file.
101117         * modules/truncf: New file.
101118         * lib/trunc.c: Make paramerizable through USE_* macros.
101119         * lib/truncf.c: New file.
101120         * m4/truncf.m4: New file.
101121         * lib/math.in.h (truncf): New declaration.
101122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
101123         HAVE_DECL_TRUNCF.
101124         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
101125         HAVE_DECL_TRUNCF.
101126         * doc/functions/truncf.texi: Mention the 'truncf' module.
101128 2007-10-03  Bruno Haible  <bruno@clisp.org>
101130         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
101131         augmentation also for tests modules.
101132         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
101133         * modules/atexit-tests (Makefile.am): Likewise.
101134         * modules/binary-io-tests (Makefile.am): Likewise.
101135         * modules/c-strcase-tests (Makefile.am): Likewise.
101136         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
101137         * modules/canonicalize-tests (Makefile.am): Likewise.
101138         * modules/closein-tests (Makefile.am): Likewise.
101139         * modules/fprintf-posix-tests (Makefile.am): Likewise.
101140         * modules/freadahead-tests (Makefile.am): Likewise.
101141         * modules/fseek-tests (Makefile.am): Likewise.
101142         * modules/fseeko-tests (Makefile.am): Likewise.
101143         * modules/ftell-tests (Makefile.am): Likewise.
101144         * modules/ftello-tests (Makefile.am): Likewise.
101145         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
101146         * modules/isnanl-tests (Makefile.am): Likewise.
101147         * modules/lseek-tests (Makefile.am): Likewise.
101148         * modules/mbscasecmp-tests (Makefile.am): Likewise.
101149         * modules/mbscasestr-tests (Makefile.am): Likewise.
101150         * modules/mbschr-tests (Makefile.am): Likewise.
101151         * modules/mbscspn-tests (Makefile.am): Likewise.
101152         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
101153         * modules/mbspbrk-tests (Makefile.am): Likewise.
101154         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101155         * modules/mbsrchr-tests (Makefile.am): Likewise.
101156         * modules/mbsspn-tests (Makefile.am): Likewise.
101157         * modules/mbsstr-tests (Makefile.am): Likewise.
101158         * modules/printf-posix-tests (Makefile.am): Likewise.
101159         * modules/snprintf-posix-tests (Makefile.am): Likewise.
101160         * modules/sprintf-posix-tests (Makefile.am): Likewise.
101161         * modules/tsearch-tests (Makefile.am): Likewise.
101162         * modules/uniname/uniname-tests (Makefile.am): Likewise.
101163         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
101164         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
101165         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
101166         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
101167         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
101168         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
101169         * modules/vprintf-posix-tests (Makefile.am): Likewise.
101170         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
101171         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101172         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101173         * modules/xstrtol-tests (Makefile.am): Likewise.
101174         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101175         * modules/yesno-tests (Makefile.am): Likewise.
101177 2007-10-03  Bruno Haible  <bruno@clisp.org>
101179         * modules/trunc-tests: New file.
101180         * tests/test-trunc.c: New file.
101182         * modules/trunc: New file.
101183         * lib/trunc.c: New file.
101184         * m4/trunc.m4: New file.
101185         * lib/math.in.h (trunc): New declaration.
101186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
101187         HAVE_DECL_TRUNC.
101188         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
101189         HAVE_DECL_TRUNC.
101190         * doc/functions/trunc.texi: Mention the 'trunc' module.
101192 2007-10-03  Bruno Haible  <bruno@clisp.org>
101194         * tests/test-fpending.c: New file, mostly copied
101195         from coreutils/lib/t-fpending.c.
101196         * modules/fpending-tests: New file.
101198 2007-10-03  Bruno Haible  <bruno@clisp.org>
101200         Port the stdio extensions to QNX (untested).
101201         * lib/fseterr.c (fseterr): Add support for QNX.
101202         * lib/fbufmode.c (fbufmode): Likewise.
101203         * lib/freadable.c (freadable): Likewise.
101204         * lib/fwritable.c (fwritable): Likewise.
101205         * lib/freading.c (freading): Likewise.
101206         * lib/fwriting.c (fwriting): Likewise.
101207         * lib/freadahead.c (freadahed): Likewise.
101208         * lib/fpurge.c (fpurge): Likewise.
101209         * lib/fseeko.c (rpl_fseeko): Likewise.
101211 2007-10-03  Bruno Haible  <bruno@clisp.org>
101212             Jim Meyering  <jim@meyering.net>
101213             Eric Blake  <ebb9@byu.net>
101215         * doc/relocatable.texi: Use @command instead of @program.
101217 2007-10-02  Jim Meyering  <jim@meyering.net>
101219         Perform one more "_.h" -> ".in.h" substitution.
101220         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
101221         instead of unistd_.h here, too.
101223 2007-10-01  Bruno Haible  <bruno@clisp.org>
101225         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
101226         Needed for the alloca-opt module.
101228 2007-09-30  Bruno Haible  <bruno@clisp.org>
101230         * lib/alloca.in.h: Renamed from lib/alloca_.h.
101231         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
101232         alloca_.h.
101233         * lib/argz.in.h: Renamed from lib/argz_.h.
101234         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
101235         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
101236         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
101237         byteswap_.h.
101238         * lib/dirent.in.h: Renamed from lib/dirent_.h.
101239         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
101240         dirent_.h.
101241         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
101242         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
101243         fcntl_.h.
101244         * lib/float.in.h: Renamed from lib/float_.h.
101245         * modules/float (Files, Makefile.am): Use float.in.h instead of
101246         float_.h.
101247         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
101248         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
101249         fnmatch_.h.
101250         * lib/getopt.in.h: Renamed from lib/getopt_.h.
101251         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
101252         getopt_.h.
101253         * lib/glob.in.h: Renamed from lib/glob_.h.
101254         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
101255         * lib/iconv.in.h: Renamed from lib/iconv_.h.
101256         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
101257         iconv_.h.
101258         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
101259         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
101260         inttypes_.h.
101261         * lib/locale.in.h: Renamed from lib/locale_.h.
101262         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
101263         locale_.h.
101264         * lib/math.in.h: Renamed from lib/math_.h.
101265         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
101266         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
101267         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
101268         of netinet_in_.h. Add dependency.
101269         * lib/poll.in.h: Renamed from lib/poll_.h.
101270         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
101271         * lib/search.in.h: Renamed from lib/search_.h.
101272         * modules/search (Files, Makefile.am): Use search.in.h instead of
101273         search_.h.
101274         * lib/signal.in.h: Renamed from lib/signal_.h.
101275         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
101276         _signal.h.
101277         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
101278         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
101279         stdbool_.h.
101280         * lib/stdint.in.h: Renamed from lib/stdint_.h.
101281         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
101282         stdint_.h.
101283         * lib/stdio.in.h: Renamed from lib/stdio_.h.
101284         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
101285         stdio_.h.
101286         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
101287         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
101288         stdlib_.h.
101289         * lib/string.in.h: Renamed from lib/string_.h.
101290         * modules/string (Files, Makefile.am): Use string.in.h instead of
101291         string_.h.
101292         * doc/gnulib-tool.texi (Initial import): Update.
101293         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
101294         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
101295         of sys_select_.h. Add dependency.
101296         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
101297         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
101298         of sys_socket_.h.
101299         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
101300         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
101301         sys_stat_.h.
101302         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
101303         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
101304         sys_time_.h.
101305         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
101306         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
101307         sysexits_.h.
101308         * lib/time.in.h: Renamed from lib/time_.h.
101309         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
101310         * lib/unistd.in.h: Renamed from lib/unistd_.h.
101311         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
101312         unistd_.h.
101313         * lib/wchar.in.h: Renamed from lib/wchar_.h.
101314         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
101315         wchar_.h.
101316         * lib/wctype.in.h: Renamed from lib/wctype_.h.
101317         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
101318         wctype_.h.
101319         * build-aux/bootstrap (slurp): Update.
101320         * lib/.cppi-disable: Update.
101322 2007-09-30  Bruno Haible  <bruno@clisp.org>
101324         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
101325         Needed on BeOS.
101327 2007-09-30  Bruno Haible  <bruno@clisp.org>
101329         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
101331 2007-09-29  Bruno Haible  <bruno@clisp.org>
101333         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
101335 2007-09-29  Bruno Haible  <bruno@clisp.org>
101337         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
101338         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
101339         * build-aux/install-reloc: Compile also areadlink.c.
101340         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101342 2007-09-29  Bruno Haible  <bruno@clisp.org>
101344         * gnulib-tool (func_emit_initmacro_done): Indentation.
101346 2007-09-29  Bruno Haible  <bruno@clisp.org>
101348         * README: Add CVS checkout update instructions.
101349         Info from Bob Proulx <bob@proulx.com>.
101351 2007-09-28  Eric Blake  <ebb9@byu.net>
101353         Provide move-if-change.
101354         * build-aux/move-if-change: New file, based on best practice
101355         rather than any canonical upstream location.
101357 2007-09-28  Jim Meyering  <jim@meyering.net>
101359         Fix canonicalize loop-detection corner case.
101360         Do not attempt to stat the symlink values stored via seen_triple.
101361         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101362         on linux-2.6.18, (but not 2.6.22).
101363         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101364         triple_compare.  The former compares dev,ino,filename, while the latter
101365         would actually stat dirname(filename) when dev and ino were equal.
101366         * lib/hash-triple.c: Install <string.h>.
101367         (STREQ): Define.
101368         (triple_compare_ino_str): New function.
101369         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101371 2007-09-28  Eric Blake  <ebb9@byu.net>
101373         Enforce that AC_REPLACE_FUNCS files exist.
101374         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101375         override check for typos.
101377         Fix test-closein on Solaris 10.
101378         * tests/test-closein.c (main): Don't assume stdin can be inherited
101379         closed on all systems.
101380         * tests/test-closein.sh: Likewise.
101381         Reported by Piotr Tarnowski.
101383 2007-09-28  Jim Meyering  <jim@meyering.net>
101385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101387 2007-09-27  Jim Meyering  <jim@meyering.net>
101389         canonicalize: Avoid a false-positive cycle failure.
101390         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101391         Sort.  Remove cycle-check.
101392         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101393         not cycle-check.h.
101394         (seen_triple): New function.
101395         (canonicalize_filename_mode): Use it instead of cycle-check.
101396         * tests/test-canonicalize.c: Add a test for this bug.
101397         * tests/test-canonicalize.sh: Set up and run the test.
101399         New module, file-set, from coreutils.
101400         * modules/file-set: Define it.
101401         * lib/file-set.c, lib/file-set.h: Implement.
101403         New module, hash-triple, from coreutils.
101404         * modules/hash-triple: Define it.
101405         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101407 2007-09-25  Eric Blake  <ebb9@byu.net>
101409         Fix strerror on Interix.
101410         * lib/string_.h (strerror): Declare replacement.
101411         * doc/functions/strerror.texi (strerror): Document the Interix
101412         shortcoming.
101413         * modules/string (Makefile.am): Support new hooks.
101414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101415         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101416         gl_FUNC_STRERROR_SEPARATE.
101417         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101418         * lib/strerror.c (rpl_strerror): Provide replacement.
101419         * modules/strerror (Depends-on): Add string.
101420         (configure.ac): Detect use of module.
101421         * tests/test-strerror.c: New file.
101422         * modules/strerror-tests: New test module.
101423         * modules/argp (Depends-on): Add strerror.
101424         * modules/error (Depends-on): Likewise.
101425         Reported by Martin Koeppe.
101427 2007-09-24  Bruno Haible  <bruno@clisp.org>
101429         * README: Update git instructions.
101431 2007-09-24  Eric Blake  <ebb9@byu.net>
101433         Revert fpending breakage from 2007-09-08.
101434         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101435         __fpending.c.
101437 2007-09-24  Jim Meyering  <jim@meyering.net>
101439         filenamecat.c: Add a test.
101440         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101441         showing how the function works when DIR is the empty string.
101443 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101445         * tests/test-canonicalize.sh: Turn on executable bit.
101447 2007-09-19  Eric Blake  <ebb9@byu.net>
101449         * README: Update CVS instructions.
101451 2007-09-18  Bruno Haible  <bruno@clisp.org>
101453         * modules/areadlink: New file.
101454         * lib/areadlink.h (areadlink): New declaration.
101455         * lib/areadlink.c: New file, based on lib/xreadlink.c.
101457 2007-09-17  Jim Meyering  <jim@meyering.net>
101459         * lib/savewd.c (ESTALE) [!defined]: Define.
101460         Reported to be required on Interix by Martin Koeppe.
101462 2007-09-17  Bruno Haible  <bruno@clisp.org>
101464         * gnulib-tool (func_version): Use $version.
101466 2007-09-16  Bruno Haible  <bruno@clisp.org>
101468         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
101469         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
101470         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
101471         Reported by Greg Schafer <gschafer@zip.com.au>.
101473 2007-09-15  Bruno Haible  <bruno@clisp.org>
101475         * gnulib-tool (sed): Try a little harder to make bash understand the
101476         alias.
101477         Reported by Bruce Korb <bruce.korb@gmail.com>.
101479 2007-09-13  Eric Blake  <ebb9@byu.net>
101481         * ChangeLog: Remove conflict markers.
101483 2007-09-13  Simon Josefsson  <simon@josefsson.org>
101485         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
101486         Reported by Bruno Haible <bruno@clisp.org>.
101488 2007-09-12  Bruno Haible  <bruno@clisp.org>
101490         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
101491         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
101492         is not defined.
101494 2007-09-12  Eric Blake  <ebb9@byu.net>
101496         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
101497         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
101498         Autoconf definition.
101499         * modules/euidaccess (Depends-on): Add extensions, for
101500         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
101501         * modules/fnmatch (Depends-on): Likewise.
101502         * modules/getaddrinfo (Depends-on): Likewise.
101503         * modules/getdelim (Depends-on): Likewise.
101504         * modules/getline (Depends-on): Likewise.
101505         * modules/getsubopt (Depends-on): Likewise.
101506         * modules/gettext (Depends-on): Likewise.
101507         * modules/group-member (Depends-on): Likewise.
101508         * modules/mbchar (Depends-on): Likewise.
101509         * modules/memmem (Depends-on): Likewise.
101510         * modules/mempcpy (Depends-on): Likewise.
101511         * modules/memrchr (Depends-on): Likewise.
101512         * modules/pagealign_alloc (Depends-on): Likewise.
101513         * modules/readutmp (Depends-on): Likewise.
101514         * modules/stpcpy (Depends-on): Likewise.
101515         * modules/stpncpy (Depends-on): Likewise.
101516         * modules/strchrnul (Depends-on): Likewise.
101517         * modules/strndup (Depends-on): Likewise.
101518         * modules/strsep (Depends-on): Likewise.
101519         * modules/strverscmp (Depends-on): Likewise.
101520         * modules/vasprintf (Depends-on): Likewise.
101521         * modules/wcwidth (Depends-on): Likewise.
101522         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
101523         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
101524         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
101525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
101526         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
101527         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101528         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
101529         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
101530         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
101531         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
101532         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
101533         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
101534         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
101535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
101536         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
101537         * m4/readutmp.m4 (gl_READUTMP): Likewise.
101538         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101539         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
101540         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101541         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
101542         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
101543         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
101544         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
101545         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
101546         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
101547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101548         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
101549         so that lock.m4 can be used in gettext without extensions module.
101551 2007-09-11  Bruno Haible  <bruno@clisp.org>
101553         * m4/isc-posix.m4: Remove file.
101554         Suggested by Eric Blake.
101556 2007-09-11  Eric Blake  <ebb9@byu.net>
101558         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
101560 2007-09-10  Bruno Haible  <bruno@clisp.org>
101562         * posix-modules: Fix typo in error message.
101563         Reported by Matt <mkraai@beckman.com>.
101565 2007-09-09  Bruno Haible  <bruno@clisp.org>
101567         * doc/functions/getdelim.texi: Update list of platforms lacking the
101568         function.
101569         * doc/functions/getline.texi: Likewise.
101571 2007-09-09  Jim Meyering  <jim@meyering.net>
101573         * lib/hash.c (hash_initialize): Detect calloc failure.
101574         Reported by Bruno Haible.
101576 2007-09-09  Bruno Haible  <bruno@clisp.org>
101578         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
101579         malloc or realloc fails.
101581 2007-09-09  Bruno Haible  <bruno@clisp.org>
101583         * modules/getcwd (Depends-on): Add malloc-posix.
101584         * modules/glob (Depends-on): Likewise.
101585         * modules/putenv (Depends-on): Likewise.
101586         * modules/strdup (Depends-on): Likewise.
101587         * modules/getdelim (Depends-on): Add realloc-posix.
101588         * modules/read-file (Depends-on): Likewise.
101590 2007-09-09  Bruno Haible  <bruno@clisp.org>
101592         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101593         (gl_FUNC_MALLOC_POSIX): Require it.
101594         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101595         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101596         * modules/realloc (Files): Add m4/malloc.m4.
101597         * modules/calloc (Files): Likewise.
101599 2007-09-09  Bruno Haible  <bruno@clisp.org>
101601         * modules/malloc-posix: New file.
101602         * modules/malloc (Depends-on): Add malloc-posix.
101603         * lib/malloc.c: Include errno.h.
101604         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
101605         and a POSIX-compatible malloc into a single function. Set ENOMEM
101606         when returning NULL.
101607         * m4/malloc.m4: New file.
101608         * doc/functions/malloc.texi: Mention the malloc-posix module.
101609         * lib/stdlib_.h (malloc): New declaration.
101610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101611         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
101612         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
101613         and HAVE_MALLOC_POSIX.
101615 2007-09-09  Bruno Haible  <bruno@clisp.org>
101617         * modules/realloc-posix: New file.
101618         * modules/realloc (Depends-on): Add realloc-posix.
101619         * lib/realloc.c: Include errno.h.
101620         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
101621         and a POSIX-compatible realloc into a single function. Set ENOMEM
101622         when returning NULL.
101623         * m4/realloc.m4: New file.
101624         * doc/functions/realloc.texi: Mention the realloc-posix module.
101625         * lib/stdlib_.h (realloc): New declaration.
101626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101627         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
101628         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
101629         and HAVE_REALLOC_POSIX.
101631 2007-09-09  Bruno Haible  <bruno@clisp.org>
101633         * modules/calloc-posix: New file.
101634         * modules/calloc (Depends-on): Add calloc-posix.
101635         * lib/calloc.c: Include errno.h.
101636         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
101637         and a POSIX-compatible calloc into a single function. Set ENOMEM
101638         when returning NULL.
101639         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
101640         * doc/functions/calloc.texi: Mention the calloc-posix module.
101641         * lib/stdlib_.h (calloc): New declaration.
101642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101643         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
101644         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
101645         and HAVE_CALLOC_POSIX.
101647 2007-09-09  Bruno Haible  <bruno@clisp.org>
101649         Allow for modules to show an arbitrary notice.
101650         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
101651         * gnulib-tool: New option --extract-notice.
101652         (func_usage): Document it.
101653         (sed_extract_prog): Update.
101654         (func_get_notice): New function.
101655         (func_modules_notice): New function.
101656         (func_import, func_create_testdir): Invoke it.
101657         Suggested by Jim Meyering.
101659 2007-09-09  Bruno Haible  <bruno@clisp.org>
101661         * gnulib-tool: New options --verbose, --quiet.
101662         (func_usage): Document them.
101663         (verbose): New variable.
101664         (func_execute_command): New function.
101665         (func_import): Don't show the module list and the file list if
101666         $verbose < 0.
101667         (func_create_testdir): Likewise. Use func_execute_command.
101668         (func_create_megatestdir): Use func_execute_command.
101670 2007-09-08  Bruno Haible  <bruno@clisp.org>
101672         * gnulib-tool (func_import): Prefer rsync over wget when available,
101673         for fetching the PO files.
101675 2007-09-08  Bruno Haible  <bruno@clisp.org>
101677         * posix-modules: New file. Portions copied from gnulib-tool.
101678         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101680 2007-09-08  Jim Meyering  <jim@meyering.net>
101682         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101683         * lib/fpending.h: Rename from __fpending.h.
101684         * lib/fpending.c: Rename from __fpending.c.
101685         Include "fpending.h", not "__fpending.h".
101686         * lib/__fpending.h, lib/__fpending.c: Remove files.
101687         * modules/fpending (Files): Reflect new file names.
101688         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101690 2007-09-08  Bruno Haible  <bruno@clisp.org>
101692         * m4/inttypes-h.m4: Remove stub file.
101694 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101696         * doc/headers/stdint.texi: Discuss #include_next issue.
101698 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101700         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101702 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101704         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101705         in variable name.
101707 2007-09-03  Jim Meyering  <jim@meyering.net>
101709         New module: git-version-gen.
101710         * modules/git-version-gen: New file.
101712         Import changes from coreutils for bootstrap script.
101714         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101716         bootstrap: uses rsync to download the .po files
101717         * build-aux/bootstrap (po_download_command_format): New global.
101718         (download_po_files): Use rsync.
101719         (update_po_files): Don't remove .po files after download,
101720         so future rsync runs can take advantage of the copies.
101722         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101724         Solve the unnecessary-.po-file-regeneration problem once and for all.
101725         * build-aux/bootstrap (download_po_files): New function, renamed from
101726         get_translations.  Now, downloads, but doesn't update LINGUAS.
101727         (update_po_files): New function.
101729         bootstrap: Ignore more.
101730         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101731         uniwidth to e.g., lib/.gitignore.
101732         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101734         * build-aux/bootstrap: New setting: vc_ignore.
101735         (insert_sorted_if_absent): Create $file if absent.
101736         Adapt to new, possibly empty, list: $vc_ignore.
101738         bootstrap: generate more ignorable names
101739         * build-aux/bootstrap (slurp): When generating ignorable names,
101740         also map .sin to .sed, .gperf to .c, and .y to .c.
101742 2007-09-03  Jim Meyering  <jim@meyering.net>
101744         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101745         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101747 2007-09-02  Bruno Haible  <bruno@clisp.org>
101749         Fix mis-recognition of 'mcs' on QNX 6.
101750         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101751         output contains the string "Mono".
101752         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101753         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101755 2007-09-01  Bruno Haible  <bruno@clisp.org>
101757         Fix collision between uniwidth/* and linebreak modules.
101758         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101759         u32_width): Remove declarations.
101760         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101761         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101762         streq3, streq2, streq1, streq0): Remove functions.
101763         (STREQ): Remove macro.
101764         (is_cjk_encoding): Remove function.
101765         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101766         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101767         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101768         * NEWS: Document the change.
101770 2007-09-01  Bruno Haible  <bruno@clisp.org>
101772         * lib/streq.h: Add double-inclusion guard.
101774 2007-09-01  Karl Berry  <karl@gnu.org>
101776         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101778 2007-08-28  Jim Meyering  <jim@meyering.net>
101780         Rename mreadlink_with_size to areadlink_with_size.
101781         * NEWS: Document the change.
101782         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101783         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101784         * lib/mreadlink.h: Rename this to...
101785         * lib/areadlink.h: ...this.
101786         * modules/mreadlink-with-size: Rename this to...
101787         * modules/areadlink-with-size: ...this.
101788         * lib/canonicalize.c: Reflect the renaming.
101789         * modules/canonicalize: Likewise.
101791 2007-08-26  Bruno Haible  <bruno@clisp.org>
101793         * gnulib-tool (func_import): When deciding which files to remove,
101794         consider also dangling symbolic links.
101795         Reported by Eric Blake.
101797 2007-08-26  Bruno Haible  <bruno@clisp.org>
101799         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101801 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101803         * lib/readline.c: Don't include getline.h, the prototype is now
101804         found in stdio.h.
101806 2007-08-23  Jim Meyering  <jim@meyering.net>
101808         Getdelim touchup.
101809         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101810         around the funlockfile call, since funlockfile never sets errno.
101811         Don't set errno upon failed realloc.
101813 2007-08-22  Eric Blake  <ebb9@byu.net>
101815         Getline touchups.
101816         * lib/getdelim.c (getdelim): Revert regression that required *n to
101817         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101818         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101819         getdelim, rather than whether implementation is missing.
101820         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101821         * lib/stdio_.h (getline): Also declare if replacement is
101822         required.
101823         * doc/functions/getdelim.texi: New file.
101824         * doc/functions/getline.texi: Likewise.
101825         * doc/gnulib.texi (Function Substitutes): Add new files.
101826         Reported by Bruno Haible.
101828 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101830         * users.txt: Add Guile.
101832 2007-08-22  Eric Blake  <ebb9@byu.net>
101834         * tests/test-getdelim.c (main): Use remove, not unlink.
101835         * tests/test-getline.c (main): Likewise.
101837         Move getline and getdelim into stdio.h, per POSIX 200x.
101838         * modules/getline (Files): Remove getline.h.
101839         (Depends-on): Add stdio.
101840         (configure.ac): Add module indicator.
101841         * modules/getdelim (Files): Remove getdelim.h.
101842         (Depends-on): Add stdio.
101843         (configure.ac): Add module indicator.
101844         * modules/stdio (Makefile.am): Work with new indicators.
101845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101846         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101848         * lib/getdelim.h: Delete.
101849         * lib/getline.h: Delete.
101850         * lib/stdio_.h (getdelim, getline): Declare.
101851         * modules/getdelim-tests: New module.
101852         * modules/getline-tests: Likewise.
101853         * tests/test-getdelim.c: New file.
101854         * tests/test-getline.c: Likewise.
101855         * NEWS: Document the change.
101856         * lib/getline.c: Update choice of header.
101857         * lib/csharpcomp.c: Likewise.
101858         * lib/getpass.c: Likewise.
101859         * lib/javacomp.c: Likewise.
101860         * lib/javaversion.c: Likewise.
101861         * lib/yesno.c: Likewise.
101862         * lib/getdelim.c: Likewise.
101863         (getdelim): Set errno on failure, and avoid memory leak.
101865 2007-08-19  Bruno Haible  <bruno@clisp.org>
101867         * modules/closein (Depends-on): Add freadahead.
101868         * lib/closein.c: Include freadahead.h.
101869         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101870         is zero.
101872 2007-08-19  Bruno Haible  <bruno@clisp.org>
101874         * modules/freadahead-tests: New file.
101875         * tests/test-freadahead.sh: New file.
101876         * tests/test-freadahead.c: New file.
101878         * modules/freadahead: New file.
101879         * lib/freadahead.h: New file.
101880         * lib/freadahead.c: New file.
101881         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101882         fbufmode, fpurge, freadable, fwritable.
101884 2007-08-19  Eric Blake  <ebb9@byu.net>
101886         Test yesno in combination with closein.
101887         * lib/yesno.c (yesno): Document use of stdin.
101888         * modules/yesno-tests (Files): New module.
101889         * tests/test-yesno.c (main): New file.
101890         * tests/test-yesno.sh: Likewise.
101892 2007-08-19  Bruno Haible  <bruno@clisp.org>
101894         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101895         * lib/fseeko.c (rpl_fseeko): Likewise.
101896         * lib/fseterr.c (fseterr): Likewise.
101898 2007-08-19  Bruno Haible  <bruno@clisp.org>
101900         * tests/test-lseek.c (main): Disable a test for BeOS.
101901         * doc/functions/lseek.texi: Document the BeOS bug.
101903 2007-08-19  Bruno Haible  <bruno@clisp.org>
101904             Eric Blake  <ebb9@byu.net>
101906         * lib/lseek.c: Include <sys/stat.h>.
101907         (rpl_lseek): Add workaround code also for Unix platforms.
101908         Needed for BeOS.
101909         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101910         * doc/functions/lseek.texi: Document BeOS definiency.
101912 2007-08-18  Bruno Haible  <bruno@clisp.org>
101914         * modules/fstrcmp-tests: New file.
101915         * tests/test-fstrcmp.c: New file.
101917 2007-08-18  Bruno Haible  <bruno@clisp.org>
101919         * modules/fstrcmp: New file, from GNU gettext with modifications.
101920         * lib/fstrcmp.h: New file, from GNU gettext.
101921         * lib/fstrcmp.c: New file, from GNU gettext.
101922         * MODULES.html.sh (String handling): Add fstrcmp.
101924 2007-08-18  Bruno Haible  <bruno@clisp.org>
101926         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101927         'bool'.
101928         (diag, compareseq): Remove const from the ctxt argument.
101929         (USE_HEURISTIC): Undefine at the end.
101931 2007-08-18  Jim Meyering  <jim@meyering.net>
101933         New file: lib/idcache.h
101934         * NEWS: Mention the addition.
101935         * modules/idcache (Files): Add lib/idcache.h
101936         * lib/idcache.c: Include "idcache.h".
101937         Don't include <sys/types.h>.
101938         Add a FIXME comment.
101939         Move file-scoped "static" declarations to the top.
101940         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101942 2007-08-17  Bruno Haible  <bruno@clisp.org>
101943         and Paul Eggert  <eggert@cs.ucla.edu>
101945         * MODULES.html.sh: Add diffseq.
101946         * modules/diffseq: New file.
101947         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101948         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101950 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101952         Import changes from coreutils for bootstrap script.
101954         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101956         * build-aux/bootstrap (slurp): Work even in environments where
101957         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101958         current code does not slurp files whose names start with ".", and
101959         this looks like it might be a troublesome area.
101961         2007-07-11  Jim Meyering  <jim@meyering.net>
101963         If there's a GPL vN copyright comment, require that N == 3.
101965         2007-07-08  Jim Meyering  <jim@meyering.net>
101967         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101968         * build-aux/bootstrap (mam_template): Move definition out of loop.
101970         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101972         * build-aux/bootstrap (symlink_to_dir): Rename function from
101973         symlink_to_gnulib.  Add a directory parameter.  Update all
101974         callers.
101975         (cp_mark_as_generated): Also check for -- and link to -- files in
101976         gl/.
101978         2007-07-08  Jim Meyering  <jim@meyering.net>
101980         Adapt to deeper hierarchy in gnulib.
101981         * build-aux/bootstrap (symlink_to_dir): If the destination
101982         directory doesn't exist, create it. This is required at least for
101983         "lib/uniwidth/cjk.h".
101985         2007-05-15  Jim Meyering  <jim@meyering.net>
101987         * build-aux/bootstrap: Now that generated Makefile.am files
101988         are no longer under version control, they must be created at
101989         bootstrap time.
101991 2007-08-14  Ben Pfaff  <blp@gnu.org>
101993         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101995 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101997         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101998         given the changes below.
101999         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
102000         even on hosts that have padding bits beyond the supported 64.
102002 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102004         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
102005         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
102006         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
102007         depends on it.
102008         (xstrtol_error): Remove.
102009         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
102010         but with a different signature.
102011         (ATTRIBUTE_NORETURN, __attribute__): New macros.
102012         * lib/xstrtol-error.c: Include exitfail.h.
102013         (xstrtol_fatal): New function, with a different signature from the
102014         old xstrtol_error, so that the caller need not worry about passing
102015         in an exit status, or about storage management of the option argument.
102016         (xstrtol_error): Now a static function.  Redo signature to
102017         implement xstrtol_fatal.  Output the correct number of hyphens in
102018         front of the option so that the caller need not worry about
102019         storage management.
102020         (N_): New macro.
102021         (_): Remove; not used now.
102022         * modules/xstrtol: Depend on getopt.
102023         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
102024         of old STRTOL_FATAL_ERROR macro.
102025         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
102026         of test program.
102027         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
102028         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
102030 2007-08-08  Eric Blake  <ebb9@byu.net>
102032         * lib/xstrtol-error.c: Add missing include.
102034         Move xstrtol messages into gnulib domain, when --pobase is used.
102035         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
102036         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
102037         * modules/xstrtol (Files): Distribute new file.
102038         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
102039         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
102040         * tests/test-xstrtol.c: ...into new file.
102041         * tests/test-xstrtoul.c: Also test xstrtoul.
102042         * tests/test-xstrtoimax.c: Also test xstrtoimax.
102043         * tests/test-xstrtoumax.c: Also test xstrtoumax.
102044         * tests/test-xstrtol.sh: Drive the tests.
102045         * tests/test-xstrtoimax.sh: Likewise.
102046         * tests/test-xstrtoumax.sh: Likewise.
102047         * modules/xstrtol-tests: New module.
102048         * modules/xstrtoimax-tests: Likewise.
102049         * modules/xstrtoumax-tests: Likewise.
102051 2007-08-08  Jim Meyering  <jim@meyering.net>
102053         New function: mfile_name_concat.
102054         * lib/filenamecat.c (mfile_name_concat): New function, just like
102055         file_name_concat, but return NULL upon failure rather than exiting
102056         with a diagnostic.
102057         * lib/filenamecat.h: Declare it.
102059 2007-08-07  Bruno Haible  <bruno@clisp.org>
102061         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
102062         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
102063         warning from gcc.
102064         Reported by Eric Blake.
102066 2007-08-07  Simon Josefsson  <simon@josefsson.org>
102068         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
102069         * modules/crypto/arcfour (License): Likewise.
102070         * modules/crypto/des-tests (License): Likewise.
102071         * modules/crypto/gc-arctwo-tests (License): Likewise.
102072         * modules/crypto/gc-des-tests (License): Likewise.
102073         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
102074         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
102075         * modules/crypto/gc-md2-tests (License): Likewise.
102076         * modules/crypto/gc-md4-tests (License): Likewise.
102077         * modules/crypto/gc-md5-tests (License): Likewise.
102078         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
102079         * modules/crypto/gc-rijndael-tests (License): Likewise.
102080         * modules/crypto/gc-sha1-tests (License): Likewise.
102081         * modules/crypto/gc-tests (License): Likewise.
102082         * modules/crypto/hmac-md5 (License): Likewise.
102083         * modules/crypto/hmac-sha1 (License): Likewise.
102084         * modules/crypto/md2-tests (License): Likewise.
102085         * modules/crypto/md4-tests (License): Likewise.
102086         * modules/crypto/md5 (License): Likewise.
102087         * modules/crypto/rijndael (License): Likewise.
102088         * modules/crypto/sha1 (License): Likewise.
102089         * modules/memxor (License): Likewise.
102091 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102092         and Bruno Haible  <bruno@clisp.org>
102094         * NEWS: Describe interface changes to human, xstrtol.
102095         * lib/human.h: Include <xstrtol.h>.
102096         (human_options): Return enum strtol_error, not int.  Remove
102097         bool arg; take int * instead.
102098         * lib/human.c: Don't include "gettext.h".
102099         (_): Remove; no longer used.
102100         Don't include <xstrtol.h>, since human.h does it.
102101         (human_options): Adjust to abovementioned interface changes.
102102         Do not report error to stderr; that's now the caller's
102103         responsibility.
102104         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
102105         interface change.
102106         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
102107         Str, Argument_type_string.  All uses changed.  Put " argument"
102108         in diagnostics to make them clearer.  Change wording of suffix
102109         message for clarity.
102110         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
102111         Argument_type_string.
102112         (STRTOL_FATAL_WARN): Remove; no longer used.
102113         * modules/human (Depends-on): Remove gettext-h.
102115 2007-08-06  Simon Josefsson  <simon@josefsson.org>
102117         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
102119 2007-07-31  Bruno Haible  <bruno@clisp.org>
102121         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
102122         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
102123         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
102125 2007-07-31  Bruno Haible  <bruno@clisp.org>
102127         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
102128         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
102130 2007-07-30  Bruno Haible  <bruno@clisp.org>
102132         * modules/base64 (License): Use the synonymous term "LGPLv2+".
102133         * modules/c-ctype (License): Likewise.
102134         * modules/c-strcase (License): Likewise.
102135         * modules/check-version (License): Likewise.
102136         * modules/iconv (License): Likewise.
102137         * modules/iconv_open (License): Likewise.
102138         * modules/read-file (License): Likewise.
102139         * modules/striconv (License): Likewise.
102140         * modules/strverscmp (License): Likewise.
102141         * modules/vasprintf (License): Likewise.
102142         * modules/crypto/des (License): Likewise.
102143         * modules/crypto/gc (License): Likewise.
102144         * modules/crypto/gc-arcfour (License): Likewise.
102145         * modules/crypto/gc-arctwo (License): Likewise.
102146         * modules/crypto/gc-des (License): Likewise.
102147         * modules/crypto/gc-hmac-md5 (License): Likewise.
102148         * modules/crypto/gc-hmac-sha1 (License): Likewise.
102149         * modules/crypto/gc-md2 (License): Likewise.
102150         * modules/crypto/gc-md4 (License): Likewise.
102151         * modules/crypto/gc-md5 (License): Likewise.
102152         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
102153         * modules/crypto/gc-random (License): Likewise.
102154         * modules/crypto/gc-rijndael (License): Likewise.
102155         * modules/crypto/gc-sha1 (License): Likewise.
102156         * modules/crypto/md2 (License): Likewise.
102157         * modules/crypto/md4 (License): Likewise.
102159 2007-07-30  Jim Meyering  <jim@meyering.net>
102161         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
102162         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
102163         it has valid stat data.  This bug would cause du not to count the
102164         sizes of inaccessible directories.
102165         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
102166         in <http://bugzilla.redhat.com/250077>.
102168 2007-07-25  Peter O'Gorman  <peter@pogma.com>
102169             Bruno Haible  <bruno@clisp.org>
102171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102172         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102173         #include_next, gives a diagnostic about it, but reports no error in
102174         the exit code.
102175         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
102177 2007-07-24  Ben Pfaff  <blp@gnu.org>
102179         Improve name: "count-one-bits" is better than "popcount".
102180         * MODULES.html.sh: Update name.
102181         * lib/popcount.h: Renamed lib/count-one-bits.h.
102182         (popcount): Renamed count_one_bits.
102183         (popcountl): Renamed count_one_bits_l.
102184         (popcountll): Renamed count_one_bits_ll.
102185         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
102186         * modules/popcount: Renamed module/count-one-bits.
102187         * modules/popcount-tests: Renamed module/count-one-bits-tests.
102188         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
102190 2007-07-23  Ben Pfaff  <blp@gnu.org>
102192         * lib/popcount.h (popcount32): Reduce size of constants, to allow
102193         better code generation, and add U to large constants to avoid
102194         warnings, in non-GCC case.
102195         Suggested by Bruno Haible.
102197 2007-07-23  Ben Pfaff  <blp@gnu.org>
102199         * lib/popcount.h: Use verify_true instead of if...abort.
102200         * modules/popcount: Depend on verify module.
102201         Suggested by Jim Meyering.
102203 2007-07-23  Bruno Haible  <bruno@clisp.org>
102205         * gnulib-tool (func_import): Create a .cvsignore file also when the
102206         directory is not yet in CVS but the toplevel directory is. When
102207         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
102208         Reported by Karl Berry.
102210 2007-07-22  Ben Pfaff  <blp@gnu.org>
102212         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
102213         case.
102214         Suggested by Eric Blake.
102216 2007-07-22  Ben Pfaff  <blp@gnu.org>
102218         New module: popcount.
102219         * MODULES.html.sh: Add popcount.
102220         * modules/popcount: New file.
102221         * modules/popcount-tests: New file.
102222         * tests/test-popcount.c: New file.
102223         * lib/popcount.h: New file.
102224         * m4/popcount.m4: New file.
102226 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
102228         * build-aux/announce-gen: Update to GPLv3.
102230         * build-aux/config.guess: Update from config.
102232 2007-07-21  Bruno Haible  <bruno@clisp.org>
102234         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
102235         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
102237 2007-07-20  Jim Meyering  <jim@meyering.net>
102239         * check-module: Diagnose a self-dependency.
102241 2007-07-19  Bruno Haible  <bruno@clisp.org>
102243         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
102244         empty.
102245         Reported by Eric Blake.
102247 2007-07-18  Bruno Haible  <bruno@clisp.org>
102249         * gnulib-tool: New options --po-base, --po-domain.
102250         (func_usage): Document them.
102251         (pobase, po_domain): New variables.
102252         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
102253         DEFAULT_TEXT_DOMAIN.
102254         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
102255         (func_import): Consider pobase and po_domain. Create a po/ directory.
102256         (func_create_testdir): Set pobase and po_domain to empty.
102257         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
102258         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
102260 2007-07-18  Bruno Haible  <bruno@clisp.org>
102262         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102263         EXTRA_DIST augmentation for files in build-aux/.
102265 2007-07-16  Bruno Haible  <bruno@clisp.org>
102267         * modules/lseek (License): Use the synonymous term "LGPLv2+".
102268         * modules/getdelim (License): Likewise.
102270 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102272         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
102273         * modules/d-type (License): Likewise.
102274         * modules/extensions (License): Likewise.
102275         * modules/fnmatch (License): Likewise.
102276         * modules/fseeko (License): Likewise.
102277         * modules/getaddrinfo (License): Likewise.
102278         * modules/getline (License): Likewise.
102279         * modules/getlogin_r (License): Likewise.
102280         * modules/getpass (License): Likewise.
102281         * modules/gettimeofday (License): Likewise.
102282         * modules/glob (License): Likewise.
102283         * modules/inet_ntop (License): Likewise.
102284         * modules/malloc (License): Likewise.
102285         * modules/malloca (License): Likewise.
102286         * modules/memmem (License): Likewise.
102287         * modules/mempcpy (License): Likewise.
102288         * modules/memset (License): Likewise.
102289         * modules/minmax (License): Likewise.
102290         * modules/mktime (License): Likewise.
102291         * modules/netinet_in (License): Likewise.
102292         * modules/pathmax (License): Likewise.
102293         * modules/poll (License): Likewise.
102294         * modules/regex (License): Likewise.
102295         * modules/snprintf (License): Likewise.
102296         * modules/stdbool (License): Likewise.
102297         * modules/stdint (License): Likewise.
102298         * modules/stdio (License): Likewise.
102299         * modules/strcase (License): Likewise.
102300         * modules/strcasestr (License): Likewise.
102301         * modules/strdup (License): Likewise.
102302         * modules/string (License): Likewise.
102303         * modules/strndup (License): Likewise.
102304         * modules/strnlen (License): Likewise.
102305         * modules/strpbrk (License): Likewise.
102306         * modules/strptime (License): Likewise.
102307         * modules/strsep (License): Likewise.
102308         * modules/sys_select (License): Likewise.
102309         * modules/sys_socket (License): Likewise.
102310         * modules/sys_stat (License): Likewise.
102311         * modules/sys_time (License): Likewise.
102312         * modules/time (License): Likewise.
102313         * modules/time_r (License): Likewise.
102314         * modules/timegm (License): Likewise.
102315         * modules/unistd (License): Likewise.
102316         * modules/vsnprintf (License): Likewise.
102317         * modules/wctype (License): Likewise.
102319 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102321         * modules/argz (License): LGPLv2+.
102323 2007-07-15  Karl Berry  <karl@gnu.org>
102325         * doc/gnulib.texi: revise node structure per new fdl.texi.
102327 2007-07-14  Bruno Haible  <bruno@clisp.org>
102329         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
102330         the output file.
102331         * lib/uniname/uninames.h: Regenerated.
102333 2007-07-14  Karl Berry  <karl@gnu.org>
102335         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
102336         omitting sectioning and index commands.
102338 2007-07-13  Bruno Haible  <bruno@clisp.org>
102340         New gnulib-tool option --more-symlinks.
102341         * gnulib-tool (func_usage): Document --more-symlinks.
102342         (do_copyrights): New variable.
102343         Recognize option --more-symlinks.
102344         (func_import): Don't add a copyright notice transform to
102345         sed_transform_lib_file if do_copyrights is empty.
102347 2007-07-13  Bruno Haible  <bruno@clisp.org>
102349         * lib/vasnprintf.c (decimal_point_char): Define also if
102350         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102351         && !NEED_PRINTF_DIRECTIVE_A.
102352         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102353         Gary V. Vaughan <gary@gnu.org>.
102355 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102357         * lib/inttypes_.h: Undo previous change, since it was fixed
102358         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102360 2007-07-13  Bruno Haible  <bruno@clisp.org>
102362         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102363         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102365 2007-07-13  Jim Meyering  <jim@meyering.net>
102367         df: Don't fail for Tru64's "file-on-file mount".
102368         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102369         so we fall through and use statfs instead.  Details here:
102370         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102371         Reported by Albert Chin.
102373 2007-07-13  Bruno Haible  <bruno@clisp.org>
102375         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102376         * modules/configmake (License): Likewise.
102377         * modules/gettext (License): Likewise.
102378         * modules/gettext-h (License): Likewise.
102379         * modules/include_next (License): Likewise.
102380         * modules/link-warning (License): Likewise.
102381         * modules/localcharset (License): Likewise.
102382         * modules/localename (License): Likewise.
102383         * modules/lock (License): Likewise.
102384         * modules/relocatable-lib-lgpl (License): Likewise.
102385         * modules/size_max (License): Likewise.
102386         * modules/vasnprintf (License): Likewise.
102387         * modules/wchar (License): Likewise.
102388         * modules/xsize (License): Likewise.
102390 2007-07-13  Bruno Haible  <bruno@clisp.org>
102392         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102393         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102395 2007-07-12  Bruno Haible  <bruno@clisp.org>
102397         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102398         in the modules files.
102400 2007-07-11  Karl Berry  <karl@gnu.org>
102402         * MODULES.html.sh (func_module): use
102403          sed -e '\|^'"${includefile}"'$|d'
102404          instead of /.../d, to avoid errors on $includefile's containing /.
102406 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102408         * gnulib-tool (func_import): Avoid duplication of --avoid
102409         statements
102410         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102411         names to `_' in variable names.
102413 2007-07-10  Eric Blake  <ebb9@byu.net>
102415         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102416         * NEWS: Document this change.
102418 2007-07-08  Bruno Haible  <bruno@clisp.org>
102420         Update to Unicode 5.0.
102421         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102422         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102423         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102424         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102425         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102426         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102427         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102428         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102429         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102430         U+10A3F, U+1D242..U+1D244.
102431         (nonspacing_table_ind): Update.
102432         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102433         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102435 2007-07-08  Bruno Haible  <bruno@clisp.org>
102437         Update to Unicode 5.0.
102438         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102439         code transform. Extend the name index field of unicode_name_to_code and
102440         unicode_code_to_name from 16 to 24 bits.
102441         * lib/uniname/uniname.c (unicode_character_name,
102442         unicode_name_character): Add the range 0x12xxx to the code transform.
102443         * lib/uniname/uninames.h: Regenerated.
102444         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102446 2007-07-07  Bruno Haible  <bruno@clisp.org>
102448         * modules/wcwidth-tests: New file.
102449         * tests/test-wcwidth.c: New file.
102451         Work around MacOS X wcwidth() bug.
102452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
102453         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
102454         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
102455         original wcwidth in non-UTF-8 locales.
102456         * modules/wcwidth (Depends-on): Add localcharset, streq,
102457         uniwidth/width.
102458         * doc/functions/wcwidth.texi: Update.
102460 2007-07-07  Bruno Haible  <bruno@clisp.org>
102462         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
102463         (wcwidth): New declaration.
102464         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
102465         macros.
102466         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
102467         here. Prepare for creating <wchar.h> unconditionally.
102468         * modules/wchar (Depends-on): Add link-warning.
102469         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
102470         REPLACE_WCWIDTH, and GL_LINK_WARNING.
102471         * lib/wcwidth.h: Remove file.
102472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
102473         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
102474         * modules/wcwidth (Files): Remove lib/wcwidth.h.
102475         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
102476         (Include): Replace wcwidth.h with <wchar.h>.
102477         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
102478         * lib/mbchar.h: Don't include wcwidth.h.
102479         * lib/mbswidth.c: Likewise.
102480         * NEWS: Mention the change.
102482 2007-07-07  Bruno Haible  <bruno@clisp.org>
102484         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
102485         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
102486         definition with an external declaration.
102487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
102488         defined as a function. Remove AC_C_INLINE requirement.
102489         * modules/wcwidth (Files): Add lib/wcwidth.c.
102490         (Makefile.am): Remove redundant statement.
102492 2007-07-07  Bruno Haible  <bruno@clisp.org>
102494         * MODULES.html.sh (Unicode string functions): Add the new modules.
102496         * tests/uniwidth/test-u32-strwidth.c: New file.
102497         * modules/uniwidth/u32-strwidth-tests: New file.
102499         * lib/uniwidth/u32-strwidth.c: New file.
102500         * modules/uniwidth/u32-strwidth: New file.
102502         * tests/uniwidth/test-u16-strwidth.c: New file.
102503         * modules/uniwidth/u16-strwidth-tests: New file.
102505         * lib/uniwidth/u16-strwidth.c: New file.
102506         * modules/uniwidth/u16-strwidth: New file.
102508         * tests/uniwidth/test-u8-strwidth.c: New file.
102509         * modules/uniwidth/u8-strwidth-tests: New file.
102511         * lib/uniwidth/u8-strwidth.c: New file.
102512         * modules/uniwidth/u8-strwidth: New file.
102514         * tests/uniwidth/test-u32-width.c: New file.
102515         * modules/uniwidth/u32-width-tests: New file.
102517         * lib/uniwidth/u32-width.c: New file.
102518         * modules/uniwidth/u32-width: New file.
102520         * tests/uniwidth/test-u16-width.c: New file.
102521         * modules/uniwidth/u16-width-tests: New file.
102523         * lib/uniwidth/u16-width.c: New file.
102524         * modules/uniwidth/u16-width: New file.
102526         * tests/uniwidth/test-u8-width.c: New file.
102527         * modules/uniwidth/u8-width-tests: New file.
102529         * lib/uniwidth/u8-width.c: New file.
102530         * modules/uniwidth/u8-width: New file.
102532         * tests/uniwidth/test-uc_width.c: New file.
102533         * modules/uniwidth/width-tests: New file.
102535         * lib/uniwidth/width.c: New file, from GNU libiconv.
102536         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
102537         * modules/uniwidth/width: New file.
102539         * lib/uniwidth.h: New file, from GNU libiconv.
102540         * modules/uniwidth/base: New file.
102542 2007-07-07  Bruno Haible  <bruno@clisp.org>
102544         * lib/uniname.h: New file, from GNU gettext.
102545         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
102546         * lib/uniname/uninames.h: New file, from GNU gettext.
102547         * lib/uniname/uniname.c: New file, from GNU gettext.
102548         * tests/uniname/test-uninames.sh: New file.
102549         * tests/uniname/test-uninames.c: New file, from GNU gettext.
102550         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
102551         * modules/uniname/base: New file.
102552         * modules/uniname/uniname: New file.
102553         * modules/uniname/uniname-tests: New file.
102554         * MODULES.html.sh (Unicode string functions): Add the new modules.
102556 2007-07-06  Bruno Haible  <bruno@clisp.org>
102558         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
102560 2007-07-06  Bruno Haible  <bruno@clisp.org>
102562         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
102563         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
102564         includes <cygwin/sys_time.h> which includes <sys/select.h> which
102565         include <sys/time.h>.
102566         Reported by Eric Blake.
102568 2007-07-06  Eric Blake  <ebb9@byu.net>
102570         Fix testing canonicalize on cygwin.
102571         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102572         Revert patch from 2007-06-19.
102573         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
102574         canonicalize module is also in use.
102575         * tests/test-canonicalize.c: New file.
102576         * tests/test-canonicalize.sh: Likewise.
102577         * modules/canonicalize-tests: Likewise.
102579 2007-07-06  Jim Meyering  <jim@meyering.net>
102581         * lib/getugroups.c (getugroups): Detect getgrent failure.
102582         Adjust comment to reflect reality: this function may return -1.
102584 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
102586         * build-aux/bootstrap (TP_URL,get_translations): Update to use
102587         the new TP address.
102588         (usage): Fix typo
102589         (gnulib_mk): New variable.
102591 2007-07-05  Jim Meyering  <jim@meyering.net>
102593         Don't let endgrent clobber errno, no matter how improbable.
102594         * lib/getugroups.c (getugroups): Save and restore errno around
102595         endgrent call.
102597         Close the group DB even when failing with 2^31 or more members.
102598         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
102600 2007-07-04  Jim Meyering  <jim@meyering.net>
102602         * lib/getugroups.h: New file.
102603         * lib/getugroups.c: Include "getugroups.h".
102604         Remove uses of "register" keyword.
102605         Move local variable, "cp", down into scope where used.
102606         Give "username" parameter the "const" attribute.
102607         * modules/getugroups (Files): Add lib/getugroups.h
102609 2007-07-04  Karl Berry  <karl@gnu.org>
102611         * MODULES.html.sh (func_all_modules): Complete rename of
102612         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
102614 2007-07-02  Bruno Haible  <bruno@clisp.org>
102616         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
102617         mode, when inttypes.h comes from gnulib.
102618         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102620 2007-07-02  Simon Josefsson  <simon@josefsson.org>
102622         * NEWS: Mention lgpl module name change.
102624         * modules/lgpl-2.1: Renamed from lgpl.
102626         * NEWS: Mention gpl module name change.
102628         * modules/gpl-3.0: New file, based on gpl-2.0.
102630         * modules/gpl-2.0: Renamed from gpl.
102632         * modules/gpl: Fix filename, doc/gpl.texi is now found at
102633         doc/gpl-2.0.texi.
102635 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
102637         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
102638         #define __STDC_LIMIT_MACROS temporarily while including
102639         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
102640         Problem reported by Joel E. Denny in
102641         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
102643 2007-07-01  Bruno Haible  <bruno@clisp.org>
102645         * lib/unistdio.h: New file.
102646         * lib/unistdio/u-asnprintf.h: New file.
102647         * lib/unistdio/u-asprintf.h: New file.
102648         * lib/unistdio/u-printf-args.c: New file.
102649         * lib/unistdio/u-printf-args.h: New file.
102650         * lib/unistdio/u-printf-parse.h: New file.
102651         * lib/unistdio/u-snprintf.h: New file.
102652         * lib/unistdio/u-sprintf.h: New file.
102653         * lib/unistdio/u-vasprintf.h: New file.
102654         * lib/unistdio/u-vsnprintf.h: New file.
102655         * lib/unistdio/u-vsprintf.h: New file.
102656         * lib/unistdio/ulc-asnprintf.c: New file.
102657         * lib/unistdio/ulc-asprintf.c: New file.
102658         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
102659         * lib/unistdio/ulc-printf-parse.c: New file.
102660         * lib/unistdio/ulc-snprintf.c: New file.
102661         * lib/unistdio/ulc-sprintf.c: New file.
102662         * lib/unistdio/ulc-vasnprintf.c: New file.
102663         * lib/unistdio/ulc-vasprintf.c: New file.
102664         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102665         * lib/unistdio/ulc-vsnprintf.c: New file.
102666         * lib/unistdio/ulc-vsprintf.c: New file.
102667         * lib/unistdio/u8-asnprintf.c: New file.
102668         * lib/unistdio/u8-asprintf.c: New file.
102669         * lib/unistdio/u8-printf-parse.c: New file.
102670         * lib/unistdio/u8-snprintf.c: New file.
102671         * lib/unistdio/u8-sprintf.c: New file.
102672         * lib/unistdio/u8-vasnprintf.c: New file.
102673         * lib/unistdio/u8-vasprintf.c: New file.
102674         * lib/unistdio/u8-vsnprintf.c: New file.
102675         * lib/unistdio/u8-vsprintf.c: New file.
102676         * lib/unistdio/u8-u8-asnprintf.c: New file.
102677         * lib/unistdio/u8-u8-asprintf.c: New file.
102678         * lib/unistdio/u8-u8-snprintf.c: New file.
102679         * lib/unistdio/u8-u8-sprintf.c: New file.
102680         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102681         * lib/unistdio/u8-u8-vasprintf.c: New file.
102682         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102683         * lib/unistdio/u8-u8-vsprintf.c: New file.
102684         * lib/unistdio/u16-asnprintf.c: New file.
102685         * lib/unistdio/u16-asprintf.c: New file.
102686         * lib/unistdio/u16-printf-parse.c: New file.
102687         * lib/unistdio/u16-snprintf.c: New file.
102688         * lib/unistdio/u16-sprintf.c: New file.
102689         * lib/unistdio/u16-vasnprintf.c: New file.
102690         * lib/unistdio/u16-vasprintf.c: New file.
102691         * lib/unistdio/u16-vsnprintf.c: New file.
102692         * lib/unistdio/u16-vsprintf.c: New file.
102693         * lib/unistdio/u16-u16-asnprintf.c: New file.
102694         * lib/unistdio/u16-u16-asprintf.c: New file.
102695         * lib/unistdio/u16-u16-snprintf.c: New file.
102696         * lib/unistdio/u16-u16-sprintf.c: New file.
102697         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102698         * lib/unistdio/u16-u16-vasprintf.c: New file.
102699         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102700         * lib/unistdio/u16-u16-vsprintf.c: New file.
102701         * lib/unistdio/u32-asnprintf.c: New file.
102702         * lib/unistdio/u32-asprintf.c: New file.
102703         * lib/unistdio/u32-printf-parse.c: New file.
102704         * lib/unistdio/u32-snprintf.c: New file.
102705         * lib/unistdio/u32-sprintf.c: New file.
102706         * lib/unistdio/u32-vasnprintf.c: New file.
102707         * lib/unistdio/u32-vasprintf.c: New file.
102708         * lib/unistdio/u32-vsnprintf.c: New file.
102709         * lib/unistdio/u32-vsprintf.c: New file.
102710         * lib/unistdio/u32-u32-asnprintf.c: New file.
102711         * lib/unistdio/u32-u32-asprintf.c: New file.
102712         * lib/unistdio/u32-u32-snprintf.c: New file.
102713         * lib/unistdio/u32-u32-sprintf.c: New file.
102714         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102715         * lib/unistdio/u32-u32-vasprintf.c: New file.
102716         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102717         * lib/unistdio/u32-u32-vsprintf.c: New file.
102718         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102719         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102720         * tests/unistdio/test-ulc-printf1.h: New file.
102721         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102722         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102723         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102724         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102725         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102726         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102727         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102728         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102729         * tests/unistdio/test-u8-asnprintf1.c: New file.
102730         * tests/unistdio/test-u8-asnprintf1.h: New file.
102731         * tests/unistdio/test-u8-printf1.h: New file.
102732         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102733         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102734         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102735         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102736         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102737         * tests/unistdio/test-u8-vasprintf1.c: New file.
102738         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102739         * tests/unistdio/test-u8-vsprintf1.c: New file.
102740         * tests/unistdio/test-u16-asnprintf1.c: New file.
102741         * tests/unistdio/test-u16-asnprintf1.h: New file.
102742         * tests/unistdio/test-u16-printf1.h: New file.
102743         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102744         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102745         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102746         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102747         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102748         * tests/unistdio/test-u16-vasprintf1.c: New file.
102749         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102750         * tests/unistdio/test-u16-vsprintf1.c: New file.
102751         * tests/unistdio/test-u32-asnprintf1.c: New file.
102752         * tests/unistdio/test-u32-asnprintf1.h: New file.
102753         * tests/unistdio/test-u32-printf1.h: New file.
102754         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102755         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102756         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102757         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102758         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102759         * tests/unistdio/test-u32-vasprintf1.c: New file.
102760         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102761         * tests/unistdio/test-u32-vsprintf1.c: New file.
102762         * modules/unistdio/base: New file.
102763         * modules/unistdio/u-printf-args: New file.
102764         * modules/unistdio/ulc-asnprintf: New file.
102765         * modules/unistdio/ulc-asprintf: New file.
102766         * modules/unistdio/ulc-fprintf: New file.
102767         * modules/unistdio/ulc-printf-parse: New file.
102768         * modules/unistdio/ulc-snprintf: New file.
102769         * modules/unistdio/ulc-sprintf: New file.
102770         * modules/unistdio/ulc-vasnprintf: New file.
102771         * modules/unistdio/ulc-vasprintf: New file.
102772         * modules/unistdio/ulc-vfprintf: New file.
102773         * modules/unistdio/ulc-vsnprintf: New file.
102774         * modules/unistdio/ulc-vsprintf: New file.
102775         * modules/unistdio/u8-asnprintf: New file.
102776         * modules/unistdio/u8-asprintf: New file.
102777         * modules/unistdio/u8-printf-parse: New file.
102778         * modules/unistdio/u8-snprintf: New file.
102779         * modules/unistdio/u8-sprintf: New file.
102780         * modules/unistdio/u8-vasnprintf: New file.
102781         * modules/unistdio/u8-vasprintf: New file.
102782         * modules/unistdio/u8-vsnprintf: New file.
102783         * modules/unistdio/u8-vsprintf: New file.
102784         * modules/unistdio/u8-u8-asnprintf: New file.
102785         * modules/unistdio/u8-u8-asprintf: New file.
102786         * modules/unistdio/u8-u8-snprintf: New file.
102787         * modules/unistdio/u8-u8-sprintf: New file.
102788         * modules/unistdio/u8-u8-vasnprintf: New file.
102789         * modules/unistdio/u8-u8-vasprintf: New file.
102790         * modules/unistdio/u8-u8-vsnprintf: New file.
102791         * modules/unistdio/u8-u8-vsprintf: New file.
102792         * modules/unistdio/u16-asnprintf: New file.
102793         * modules/unistdio/u16-asprintf: New file.
102794         * modules/unistdio/u16-printf-parse: New file.
102795         * modules/unistdio/u16-snprintf: New file.
102796         * modules/unistdio/u16-sprintf: New file.
102797         * modules/unistdio/u16-vasnprintf: New file.
102798         * modules/unistdio/u16-vasprintf: New file.
102799         * modules/unistdio/u16-vsnprintf: New file.
102800         * modules/unistdio/u16-vsprintf: New file.
102801         * modules/unistdio/u16-u16-asnprintf: New file.
102802         * modules/unistdio/u16-u16-asprintf: New file.
102803         * modules/unistdio/u16-u16-snprintf: New file.
102804         * modules/unistdio/u16-u16-sprintf: New file.
102805         * modules/unistdio/u16-u16-vasnprintf: New file.
102806         * modules/unistdio/u16-u16-vasprintf: New file.
102807         * modules/unistdio/u16-u16-vsnprintf: New file.
102808         * modules/unistdio/u16-u16-vsprintf: New file.
102809         * modules/unistdio/u32-asnprintf: New file.
102810         * modules/unistdio/u32-asprintf: New file.
102811         * modules/unistdio/u32-printf-parse: New file.
102812         * modules/unistdio/u32-snprintf: New file.
102813         * modules/unistdio/u32-sprintf: New file.
102814         * modules/unistdio/u32-vasnprintf: New file.
102815         * modules/unistdio/u32-vasprintf: New file.
102816         * modules/unistdio/u32-vsnprintf: New file.
102817         * modules/unistdio/u32-vsprintf: New file.
102818         * modules/unistdio/u32-u32-asnprintf: New file.
102819         * modules/unistdio/u32-u32-asprintf: New file.
102820         * modules/unistdio/u32-u32-snprintf: New file.
102821         * modules/unistdio/u32-u32-sprintf: New file.
102822         * modules/unistdio/u32-u32-vasnprintf: New file.
102823         * modules/unistdio/u32-u32-vasprintf: New file.
102824         * modules/unistdio/u32-u32-vsnprintf: New file.
102825         * modules/unistdio/u32-u32-vsprintf: New file.
102826         * modules/unistdio/ulc-asnprintf-tests: New file.
102827         * modules/unistdio/ulc-vasnprintf-tests: New file.
102828         * modules/unistdio/ulc-vasprintf-tests: New file.
102829         * modules/unistdio/ulc-vsnprintf-tests: New file.
102830         * modules/unistdio/ulc-vsprintf-tests: New file.
102831         * modules/unistdio/u8-asnprintf-tests: New file.
102832         * modules/unistdio/u8-vasnprintf-tests: New file.
102833         * modules/unistdio/u8-vasprintf-tests: New file.
102834         * modules/unistdio/u8-vsnprintf-tests: New file.
102835         * modules/unistdio/u8-vsprintf-tests: New file.
102836         * modules/unistdio/u16-asnprintf-tests: New file.
102837         * modules/unistdio/u16-vasnprintf-tests: New file.
102838         * modules/unistdio/u16-vasprintf-tests: New file.
102839         * modules/unistdio/u16-vsnprintf-tests: New file.
102840         * modules/unistdio/u16-vsprintf-tests: New file.
102841         * modules/unistdio/u32-asnprintf-tests: New file.
102842         * modules/unistdio/u32-vasnprintf-tests: New file.
102843         * modules/unistdio/u32-vasprintf-tests: New file.
102844         * modules/unistdio/u32-vsnprintf-tests: New file.
102845         * modules/unistdio/u32-vsprintf-tests: New file.
102846         * MODULES.html.sh (Unicode string functions): Add the new modules.
102848 2007-07-01  Bruno Haible  <bruno@clisp.org>
102850         * lib/sprintf.c (sprintf): Limit the available length estimation,
102851         to avoid address wraparound.
102852         * lib/vsprintf.c (vsprintf): Likewise.
102853         * modules/sprintf-posix (Dependencies): Add stdint.
102854         * modules/vsprintf-posix (Dependencies): Likewise.
102856 2007-07-01  Bruno Haible  <bruno@clisp.org>
102858         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102859         Windows PATH as well. Conservative double-quoting. Comments.
102861 2007-07-01  Bruno Haible  <bruno@clisp.org>
102862             Eric Blake  <ebb9@byu.net>
102863             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102865         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102866         empty components in $PATH, denoting '.'.
102868 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102870         * gnulib-tool: Fix indentation.
102871         (func_create_megatestdir): Likewise.
102872         Report by Bruno Haible.
102874 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102876         Sync from Automake.
102877         * build-aux/gnupload: Fix shell portability issues with for loops.
102878         Report by Karl Berry.
102880 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102882         * build-aux/maint.mk (POURL): Use translationproject.org.
102884 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102885             Bruno Haible  <bruno@clisp.org>
102887         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102888         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102889         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102890         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102891         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102893 2007-06-27  Bruno Haible  <bruno@clisp.org>
102895         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102896         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102898 2007-06-26  Karl Berry  <karl@gnu.org>
102900         * MODULES.html.sh: remove xreadlink-with-size.
102902 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102904         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102905         method that I hope also handles the double-include problem noted
102906         by Bruno Haible in
102907         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102909 2007-06-23  Bruno Haible  <bruno@clisp.org>
102911         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102912         Don't let the 'mostlyclean' target fail if the last subdirectory could
102913         not be removed.
102914         Reported by Karl Berry.
102916 2007-06-23  Bruno Haible  <bruno@clisp.org>
102918         * gnulib-tool (echo): Add a speedier workaround for ksh.
102919         * tests/test-echo.sh: Likewise.
102921 2007-06-23  Bruno Haible  <bruno@clisp.org>
102923         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102924         * tests/test-echo.sh: Likewise.
102926 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102928         * gnulib-tool (IFS): Initialize early, so we don't set it to
102929         empty later.
102930         (self_abspathname): Rewrite algorithm to set it, reindent.
102931         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102932         (func_create_megatestdir): Merge some sed scripts.
102934 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102936         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102937         exposed by Sun Studio 11 cc on Solaris 8.
102939 2007-06-22  Bruno Haible  <bruno@clisp.org>
102941         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102942         backslashes.
102943         * tests/test-echo.sh: New file.
102945 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102947         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102948         simplify `sed_replace_build_aux' scripts, they are portable but
102949         echoing them with `echo' is not.
102950         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102952 2007-06-21  Karl Berry  <karl@gnu.org>
102954         * config/srclist.txt: guess we can't handle the licenses via
102955         srclist at the moment.
102957 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102959         * MODULES.html.sh: Add include_next.
102960         * modules/include_next: New file.
102962 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102964         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102965         INCLUDE_NEXT.
102966         (gl_CHECK_NEXT_HEADERS): New macro.
102967         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102968         the obsolescent gl_ABSOLUTE_HEADER.
102969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102970         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102971         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102972         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102973         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102974         * m4/math_h.m4 (gl_MATH_H): Likewise.
102975         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102976         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102977         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102978         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102979         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102980         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102981         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102983         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102984         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102985         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102986         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102987         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102988         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102989         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102990         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102991         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102992         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102993         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102994         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102995         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102996         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102997         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102998         * lib/float_.h: Likewise.
102999         * lib/inttypes_.h: Likewise.
103000         * lib/math_.h: Likewise.
103001         * lib/search_.h: Likewise.
103002         * lib/signal_.h: Likewise.
103003         * lib/stdint_.h: Likewise.
103004         * lib/stdio_.h: Likewise.
103005         * lib/stdlib_.h: Likewise.
103006         * lib/string_.h: Likewise.
103007         * lib/sys_stat_.h: Likewise.
103008         * lib/sys_time_.h: Likewise.
103009         * lib/time_.h: Likewise.
103010         * lib/unistd_.h: Likewise.
103011         * lib/wchar_.h: Likewise.
103012         * lib/wctype_.h: Likewise.
103013         * lib/dirent_.h: Likewise.
103014         * lib/iconv_.h: Likewise.
103015         * lib/locale_.h: Likewise.
103016         * lib/netinet_in_.h: Likewise.
103017         * lib/sys_select_.h: Likewise.
103018         * lib/sys_socket_.h: Likewise.
103019         * lib/sysexits_.h: Likewise.
103020         * modules/fcntl (Depends-on): Depend on include_next, not
103021         absolute_header.
103022         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
103023         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
103024         * modules/fchdir: Likewise.
103025         * modules/float: Likewise.
103026         * modules/iconv_open: Likewise.
103027         * modules/inttypes: Likewise.
103028         * modules/locale: Likewise.
103029         * modules/math: Likewise.
103030         * modules/netinet_in: Likewise.
103031         * modules/search: Likewise.
103032         * modules/signal: Likewise.
103033         * modules/stdint: Likewise.
103034         * modules/stdio: Likewise.
103035         * modules/stdlib: Likewise.
103036         * modules/string: Likewise.
103037         * modules/sys_select: Likewise.
103038         * modules/sys_socket: Likewise.
103039         * modules/sys_stat: Likewise.
103040         * modules/sys_time: Likewise.
103041         * modules/sysexits: Likewise.
103042         * modules/time: Likewise.
103043         * modules/unistd: Likewise.
103044         * modules/wchar: Likewise.
103045         * modules/wctype: Likewise.
103046         * modules/sys_stat: Change maintainer to "all".
103047         * modules/unistd: Likewise.
103049 2007-06-20  Karl Berry  <karl@gnu.org>
103051         * config/srclist.txt: track www changes in license files.
103053 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
103055         * build-aux/bootstrap: Remove stray dot.
103056         Make sure build_aux settings are honored when linking
103057         gnulib_extra_files.
103059 2007-06-19  Eric Blake  <ebb9@byu.net>
103061         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103062         Allow compilation on cygwin.
103064 2007-06-19  Jim Meyering  <jim@meyering.net>
103066         xreadlink-with-size: Remove module.  No longer used.
103067         Ex-callers now use xreadlink or mreadlink-with-size.
103068         * modules/xreadlink-with-size: Remove module.
103069         * lib/xreadlink-with-size.c: Remove file.
103070         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
103071         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
103072         just before the function definition *is* accurate.
103074         Eliminate one way canonicalize_filename_mode could exit.
103075         * lib/canonicalize.c (canonicalize_filename_mode):
103076         Use mreadlink_with_size, not xreadlink_with_size.
103078 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
103080         Detect porting problems to FreeBSD/arm, which has time_t wider than
103081         long int.  Original problem reported for GNU diff by Xin Li in
103082         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
103083         * modules/getdate (Depends-on): Add intprops, verify.
103084         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
103085         is an integer type no wider than long int.
103087 2007-06-18  Jim Meyering  <jim@meyering.net>
103089         New module: mreadlink-with-size.
103090         * MODULES.html.sh: Add mreadlink-with-size.
103091         * modules/mreadlink-with-size: New module
103092         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
103093         not xreadlink-with-size.
103094         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
103096 2007-06-16  Bruno Haible  <bruno@clisp.org>
103098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
103099         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
103100         Reported by Gary V. Vaughan <gary@gnu.org>.
103102 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
103104         Revamp lchown so that it lives in unistd.h where it belongs.
103105         * lib/lchown.h: Remove.
103106         * lib/dirchownmod.c: Don't include lib/lchown.h.
103107         * lib/fchownat.c: Likewise.
103108         * lib/openat.c: Likewise.
103109         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
103110         does not follow symlinks.
103111         (EOPNOTSUPP): Define if not defined.
103112         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
103113         is defined to 0.
103114         (lchown): New decl.
103115         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
103116         Do not check for lchown decl.
103117         Set REPLACE_LCHOWN.
103118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
103119         REPLACE_LCHOWN.
103120         * modules/chown: Make it clear it follows symlinks.
103121         * modules/lchown: Make it clear it doesn't follow symlinks.
103122         (Files): Remove lib/lchown.h
103123         (Depends-on): Add unistd.
103124         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
103125         (Include): Include <unistd.h>, not "lchown.h".
103126         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
103127         REPLACE_LCHOWN.
103129 2007-06-15  Jim Meyering  <jim@meyering.net>
103131         Change license (GPL to LGPL) of fsusage and dependents.
103132         * modules/fsusage (License): Change to LGPL.
103133         * modules/full-read (License): Likewise.
103134         * modules/full-write (License): Likewise.
103135         * modules/safe-read (License): Likewise.
103136         * modules/safe-write (License): Likewise.
103138 2007-06-14  Ben Pfaff  <blp@gnu.org>
103140         Missing part of allocsa -> malloca transition.
103141         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
103142         gl_MALLOCA.
103144 2007-06-12  Bruno Haible  <bruno@clisp.org>
103146         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
103147         to ia64, x86_64, i386.
103148         Reported by Eric Blake.
103150 2007-06-12  Bruno Haible  <bruno@clisp.org>
103152         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
103153         cross-compiling to x86_64.
103155 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
103157         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
103158         glitch reported by Ralf Wildenhues in
103159         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
103161         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
103162         Vin Shelton.
103164 2007-06-11  Bruno Haible  <bruno@clisp.org>
103166         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
103167         replacement string.
103168         Reported by Eric Blake.
103170 2007-06-10  Bruno Haible  <bruno@clisp.org>
103172         Prepare vasnprintf code for use with Unicode strings.
103173         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103174         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103175         TYPE_U32_STRING.
103176         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
103177         a_u32_string variants.
103178         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103179         * lib/printf-args.c: Don't include config.h and the specification
103180         header if PRINTF_FETCHARGS is already defined.
103181         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103182         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
103183         TYPE_U16_STRING, TYPE_U32_STRING.
103184         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
103185         u16_directive, u16_directives, u32_directive, u32_directives): New
103186         types.
103187         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
103188         New declarations.
103189         * lib/printf-parse.c: Don't include config.h and the specification
103190         header if PRINTF_PARSE is already defined. Eliminate the set of
103191         parameters for WIDE_CHAR_VERSION; the user of this file must provide
103192         them now. Include c-ctype.h.
103193         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
103194         directive and CHAR_T_ONLY_ASCII.
103195         * lib/vasnprintf.c: Don't include config.h and the specification header
103196         if VASNPRINTF is already defined.
103197         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
103198         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
103199         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
103200         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
103201         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
103202         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
103203         code accordingly.
103204         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
103205         pad_ourselves also in this case, with the 'c' and 's' directives, and
103206         with a different notion of "width".
103207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
103209 2007-06-10  Bruno Haible  <bruno@clisp.org>
103211         * modules/unistr/u32-mbsnlen: New file.
103212         * lib/unistr/u32-mbsnlen.c: New file.
103214         * modules/unistr/u16-mbsnlen: New file.
103215         * lib/unistr/u16-mbsnlen.c: New file.
103217         * modules/unistr/u8-mbsnlen: New file.
103218         * lib/unistr/u8-mbsnlen.c: New file.
103220         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
103221         declarations.
103223 2007-06-10  Bruno Haible  <bruno@clisp.org>
103225         * lib/string_.h (mbsnlen): New declaration.
103226         * lib/mbsnlen.c: New file.
103227         * m4/mbsnlen.m4: New file.
103228         * modules/mbsnlen: New file.
103229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
103230         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
103231         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
103233 2007-06-10  Bruno Haible  <bruno@clisp.org>
103235         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
103237 2007-06-10  Bruno Haible  <bruno@clisp.org>
103239         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
103240         * lib/mbuiter.h: Likewise.
103242 2007-06-10  Bruno Haible  <bruno@clisp.org>
103244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
103245         declaration.
103247 2007-06-10  Karl Berry  <karl@gnu.org>
103249         * config/srclist.txt: remove gettext entries, Bruno prefers
103250         to update individually.
103252 2007-06-10  Bruno Haible  <bruno@clisp.org>
103254         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
103255         'maxlen'. Ensure only length + width bytes are allocated, not
103256         length + 1 + width.
103258 2007-06-09  Bruno Haible  <bruno@clisp.org>
103260         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103261         (CHAR_T): Remove macro.
103262         (VASNPRINTF): Update.
103264 2007-06-09  Bruno Haible  <bruno@clisp.org>
103266         * MODULES.html.sh (Unicode string functions): Add the new modules.
103268         * modules/uniconv/u32-conv-to-enc: New file.
103269         * lib/uniconv/u32-conv-to-enc.c: New file.
103270         * modules/uniconv/u32-conv-to-enc-tests: New file.
103271         * tests/uniconv/test-u32-conv-to-enc.c: New file.
103273         * modules/uniconv/u16-conv-to-enc: New file.
103274         * lib/uniconv/u16-conv-to-enc.c: New file.
103275         * lib/uniconv/u-conv-to-enc.h: New file.
103276         * modules/uniconv/u16-conv-to-enc-tests: New file.
103277         * tests/uniconv/test-u16-conv-to-enc.c: New file.
103279         * modules/uniconv/u8-conv-to-enc: New file.
103280         * lib/uniconv/u8-conv-to-enc.c: New file.
103281         * modules/uniconv/u8-conv-to-enc-tests: New file.
103282         * tests/uniconv/test-u8-conv-to-enc.c: New file.
103284         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
103285         u32_conv_to_encoding): New declarations.
103287 2007-06-09  Bruno Haible  <bruno@clisp.org>
103289         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
103291 2007-06-09  Bruno Haible  <bruno@clisp.org>
103293         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
103294         * modules/malloca: Renamed from modules/allocsa, updated.
103295         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
103296         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
103297         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
103298         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
103299         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
103300         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
103301         * modules/xmalloca: Renamed from modules/xallocsa, updated.
103302         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
103303         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
103304         * modules/c-strcasestr (Depends-on): Update.
103305         * lib/c-strcasestr.c: Update.
103306         * modules/c-strstr (Depends-on): Update.
103307         * lib/c-strstr.c: Update.
103308         * modules/canonicalize-lgpl (Depends-on): Update.
103309         * lib/canonicalize-lgpl.c: Update.
103310         * modules/clean-temp (Depends-on): Update.
103311         * lib/clean-temp.c: Update.
103312         * modules/csharpcomp (Depends-on): Update.
103313         * lib/csharpcomp.c: Update.
103314         * modules/csharpexec (Depends-on): Update.
103315         * lib/csharpexec.c: Update.
103316         * modules/javacomp (Depends-on): Update.
103317         * lib/javacomp.c: Update.
103318         * modules/javaexec (Depends-on): Update.
103319         * lib/javaexec.c: Update.
103320         * modules/mbscasestr (Depends-on): Update.
103321         * lib/mbscasestr.c: Update.
103322         * modules/mbsstr (Depends-on): Update.
103323         * lib/mbsstr.c: Update.
103324         * modules/setenv (Depends-on): Update.
103325         * lib/setenv.c: Update.
103326         * modules/strcasestr (Depends-on): Update.
103327         * lib/strcasestr.c: Update.
103328         * modules/striconveha (Depends-on): Update.
103329         * lib/striconveha.c: Update.
103330         * modules/relocatable-prog-wrapper (Files): Update.
103331         * lib/relocwrapper.c: Update.
103332         * build-aux/install-reloc: Update.
103333         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
103335 2007-06-08  Bruno Haible  <bruno@clisp.org>
103337         Port to uClibc.
103338         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
103339         * lib/fpurge.c (fpurge): Likewise.
103340         * lib/freading.c (freading): Likewise.
103341         * lib/fseeko.c (rpl_fseeko): Likewise.
103342         * lib/fseterr.c (fseterr): Likewise.
103343         * lib/fwriting.c (fwriting): Likewise.
103344         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103346 2007-06-08  Bruno Haible  <bruno@clisp.org>
103348         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103349         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103350         * modules/gettext (Files): Add m4/intlmacosx.m4.
103352 2007-06-07  Bruno Haible  <bruno@clisp.org>
103354         * modules/localename-tests: New file.
103355         * tests/test-localename.c: New file.
103357         New module 'localename'.
103358         * lib/localename.h: New file.
103359         * lib/localename.c: New file, from GNU gettext.
103360         * m4/localename.m4: New file.
103361         * modules/localename: New file.
103363 2007-06-07  Bruno Haible  <bruno@clisp.org>
103365         Work around the lack of <wchar.h> on some builds of uClibc.
103366         * doc/headers/wchar.texi: Update.
103367         * lib/wchar_.h: Include <wchar.h> only if it exists.
103368         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103369         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103370         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103371         doesn't exist.
103372         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103373         * modules/mbfile (Depends-on): Add wchar.
103374         * modules/mbiter (Depends-on): Likewise.
103375         * modules/mbuiter (Depends-on): Likewise.
103376         Reported by Simon Josefsson.
103378 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103380         Work around problem reported by Steven M. Schweda in
103381         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103382         Tru64 5.1B with the Compaq compiler environment installed declares
103383         an 'isblank' function but does not define it in the C library.
103384         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103385         * lib/regex_internal.h (isblank): Likewise.
103386         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103387         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103389 2007-06-05  Bruno Haible  <bruno@clisp.org>
103391         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103392         ia64.
103393         * modules/printf-safe: New file.
103394         * modules/fprintf-posix (Depends-on): Add printf-safe.
103395         * modules/printf-posix (Depends-on): Likewise.
103396         * modules/snprintf-posix (Depends-on): Likewise.
103397         * modules/sprintf-posix (Depends-on): Likewise.
103398         * modules/vasnprintf-posix (Depends-on): Likewise.
103399         * modules/vasprintf-posix (Depends-on): Likewise.
103400         * modules/vfprintf-posix (Depends-on): Likewise.
103401         * modules/vprintf-posix (Depends-on): Likewise.
103402         * modules/vsnprintf-posix (Depends-on): Likewise.
103403         * modules/vsprintf-posix (Depends-on): Likewise.
103404         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103405         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103406         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103407         "no" on i386, x86_64, ia64.
103408         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
103409         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103410         on i386, x86_64, ia64.
103411         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
103412         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103413         on i386, x86_64, ia64.
103414         * tests/test-vasnprintf-posix.c: Include float.h.
103415         (LDBL80_WORDS): New macro.
103416         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103417         on i386, x86_64, ia64.
103418         * tests/test-vasprintf-posix.c: Include float.h.
103419         (LDBL80_WORDS): New macro.
103420         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103421         on i386, x86_64, ia64.
103422         * tests/test-snprintf-posix.c: Include float.h.
103423         * tests/test-sprintf-posix.c: Likewise.
103424         * tests/test-vsnprintf-posix.c: Likewise.
103425         * tests/test-vsprintf-posix.c: Likewise.
103427 2007-06-05  Bruno Haible  <bruno@clisp.org>
103429         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103430         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103431         non-IEEE numbers on i386, x86_64, ia64.
103432         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103433         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103434         * tests/test-isnanl.h: Include float.h.
103435         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103437 2007-06-05  Bruno Haible  <bruno@clisp.org>
103439         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103440         also the %a / %A. Handle the %a / %A code before this extra handling.
103442 2007-06-05  Bruno Haible  <bruno@clisp.org>
103444         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103445         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103447 2007-06-05  Bruno Haible  <bruno@clisp.org>
103449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103450         typo in variable name.
103452 2007-06-05  Eric Blake  <ebb9@byu.net>
103454         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
103455         Reported by Simon Josefsson.
103457 2007-06-04  Bruno Haible  <bruno@clisp.org>
103459         Avoid test failures on some PowerPC platforms.
103460         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
103461         Define differently for PowerPC.
103462         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
103463         Reported by Gary V. Vaughan <gary@gnu.org>.
103465 2007-06-02  Bruno Haible  <bruno@clisp.org>
103467         Fix test-stdint failure on FreeBSD/ia64.
103468         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
103469         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
103470         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
103471         * doc/headers/stdint.texi: Update.
103473 2007-06-01  Bruno Haible  <bruno@clisp.org>
103475         * tests/test-binary-io.c (main): Pass a third argument to open().
103476         Reported by Gary V. Vaughan <gary@gnu.org>.
103478 2007-06-01  Bruno Haible  <bruno@clisp.org>
103480         * doc/functions/frexpl.texi: Update for mingw.
103482 2007-06-01  Bruno Haible  <bruno@clisp.org>
103484         * tests/test-lseek.c (main): Disable test of errno for invalid third
103485         argument.
103486         * doc/functions/lseek.texi: Update.
103487         Reported by Gary V. Vaughan <gary@gnu.org>.
103489 2007-05-28  Bruno Haible  <bruno@clisp.org>
103491         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
103493 2007-05-31  Eric Blake  <ebb9@byu.net>
103495         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
103496         cross compiling.
103498 2007-05-30  Eric Blake  <ebb9@byu.net>
103499         and Bruno Haible  <bruno@clisp.org>
103501         Work around mingw test failures exposed by m4-1.4.9b.
103502         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
103503         * tests/test-unistd.c: Disable uid_t and git_t tests for the
103504         moment.
103506 2007-05-30  Bruno Haible  <bruno@clisp.org>
103508         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
103509         assuming that they are closed. Needed on HP-UX 11.
103511 2007-05-29  Bruno Haible  <bruno@clisp.org>
103513         Fix a problem with #include_next.
103514         * lib/dirent_.h: Split the double-inclusion guard.
103515         * lib/fcntl_.h: Likewise.
103516         * lib/float_.h: Likewise.
103517         * lib/iconv_.h: Likewise.
103518         * lib/inttypes_.h: Likewise.
103519         * lib/locale_.h: Likewise.
103520         * lib/math_.h: Likewise.
103521         * lib/netinet_in_.h: Likewise.
103522         * lib/search_.h: Likewise.
103523         * lib/signal_.h: Likewise.
103524         * lib/stdint_.h: Likewise.
103525         * lib/stdio_.h: Likewise.
103526         * lib/stdlib_.h: Likewise.
103527         * lib/string_.h: Likewise.
103528         * lib/sys_select_.h: Likewise.
103529         * lib/sys_socket_.h: Likewise.
103530         * lib/sys_stat_.h: Likewise.
103531         * lib/sys_time_.h: Likewise.
103532         * lib/sysexits_.h: Likewise.
103533         * lib/time_.h: Likewise.
103534         * lib/unistd_.h: Likewise.
103535         * lib/wchar_.h: Likewise.
103536         * lib/wctype_.h: Likewise.
103538 2007-05-29  Bruno Haible  <bruno@clisp.org>
103540         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
103541         for the moment.
103543 2007-05-29  Bruno Haible  <bruno@clisp.org>
103545         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
103546         invocation.
103547         Reported by Eric Blake.
103549 2007-05-29  Bruno Haible  <bruno@clisp.org>
103551         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
103552         compiling case.
103554 2007-05-29  Eric Blake  <ebb9@byu.net>
103555             Bruno Haible  <bruno@clisp.org>
103557         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
103558         cross compiles.
103560 2007-05-28  Eric Blake  <ebb9@byu.net>
103562         * modules/closein-tests (test_closein_LDADD): Support test on
103563         cygwin with libtool.
103565 2007-05-28  Bruno Haible  <bruno@clisp.org>
103567         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
103568         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
103569         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
103570         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
103571         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
103572         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
103573         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
103574         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
103575         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
103577 2007-05-28  Eric Blake  <ebb9@byu.net>
103579         Unconditionally include <config.h> in unit tests.
103580         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
103581         * tests/test-allocsa.c, tests/test-arcfour.c,
103582         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
103583         tests/test-array_list.c, tests/test-array_oset.c,
103584         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
103585         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
103586         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
103587         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
103588         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103589         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103590         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103591         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103592         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103593         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103594         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103595         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103596         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
103597         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
103598         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
103599         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
103600         test-md5.c, test-memmem.c, test-printf-posix.c,
103601         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
103602         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
103603         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
103604         test-strcasestr.c, test-striconv.c, test-striconveh.c,
103605         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
103606         test-vasnprintf-posix2.c, test-vasnprintf.c,
103607         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
103608         test-vfprintf-posix.c, test-vprintf-posix.c,
103609         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
103610         test-xvasprintf.c: Likewise.
103612 2007-05-28  Bruno Haible  <bruno@clisp.org>
103614         * gnulib-tool (func_import): Remember the --with-tests command-line
103615         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
103616         Reported by Eric Blake.
103618 2007-05-28  Bruno Haible  <bruno@clisp.org>
103620         * modules/ftell-tests: New file.
103621         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
103622         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
103624         * lib/ftell.c: New file.
103625         * modules/ftell: New file.
103626         * m4/ftell.m4: New file.
103627         * doc/functions/ftell.texi: Update.
103628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
103629         REPLACE_FTELL.
103630         * lib/stdio_.h (rpl_ftell): New declaration.
103631         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
103632         REPLACE_FTELL.
103634 2007-05-28  Eric Blake  <ebb9@byu.net>
103636         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
103638 2007-05-28  Bruno Haible  <bruno@clisp.org>
103640         * modules/fseek-tests: New file.
103641         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
103642         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
103644         * lib/fseek.c: New file.
103645         * modules/fseek: New file.
103646         * m4/fseek.m4: New file.
103647         * doc/functions/fseek.texi: Update.
103648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
103649         REPLACE_FSEEK.
103650         * lib/stdio_.h (rpl_fseek): New declaration.
103651         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
103652         REPLACE_FSEEK.
103654 2007-05-28  Bruno Haible  <bruno@clisp.org>
103656         * lib/stdio_.h (fflush): More comments.
103658 2007-05-28  Bruno Haible  <bruno@clisp.org>
103660         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103661         runtime test.
103663 2007-05-28  Eric Blake  <ebb9@byu.net>
103665         Improve lseek module.
103666         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103667         * lib/unistd_.h (lseek): Scale back link warning message.
103668         * tests/test-lseek.c: Beef up test.
103669         * tests/test-lseek.sh: Exercise more facets of lseek.
103670         Reported by Bruno Haible.
103672 2007-05-28  Bruno Haible  <bruno@clisp.org>
103674         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103675         to define.
103677 2007-05-27  Bruno Haible  <bruno@clisp.org>
103679         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103681 2007-05-27  Bruno Haible  <bruno@clisp.org>
103683         * modules/openmp: New file.
103684         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103685         Noah Misch.
103687 2007-05-26  Bruno Haible  <bruno@clisp.org>
103689         * modules/chdir-long (Depends-on): Add fchdir.
103690         * modules/chdir-safer (Depends-on): Likewise.
103691         * modules/fts (Depends-on): Likewise.
103692         * modules/fts-lgpl (Depends-on): Likewise.
103693         * modules/openat (Depends-on): Likewise.
103694         * modules/savewd (Depends-on): Likewise.
103696 2007-05-24  Eric Blake  <ebb9@byu.net>
103698         Fix lseek on mingw.
103699         * modules/lseek: New module.
103700         * m4/lseek.m4: New file.
103701         * lib/lseek.c: New file.
103702         * modules/lseek-tests: New file.
103703         * tests/test-lseek.c: New file.
103704         * tests/test-lseek.sh: New file.
103705         * MODULES.html.sh: Document lseek module.
103706         * modules/fflush (Depends-on): Add lseek, fseeko.
103707         * modules/fseeko (Depends-on): Likewise.
103708         * modules/ftello (Depends-on): Likewise.
103709         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103710         broken.
103711         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103712         broken.
103713         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103714         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103715         * lib/ftello.c (rpl_ftello): Likewise.
103716         * tests/test-fseeko.c (main): Test this.
103717         * tests/test-fseeko.sh: Likewise.
103718         * tests/test-ftello.c (main): Likewise.
103719         * tests/test-ftello.sh: Likewise.
103720         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103721         implies replacing fseek.
103722         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103723         HAVE_FTELLO.
103724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103725         * modules/unistd (Makefile.am): Likewise.
103726         * lib/unistd_.h (lseek): Declare a replacement.
103727         * doc/functions/lseek.texi (lseek): Document this fix.
103728         * doc/functions/fseek.texi (fseek): Likewise.
103729         * doc/functions/ftell.texi (ftell): Likewise.
103731 2007-05-24  Bruno Haible  <bruno@clisp.org>
103733         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103734         in the printed representation of a NaN.
103735         * tests/test-vasprintf-posix.c (test_function): Likewise.
103736         * tests/test-snprintf-posix.h (test_function): Likewise.
103737         * tests/test-sprintf-posix.h (test_function): Likewise.
103738         Reported by Eric Blake.
103740 2007-05-23  Eric Blake  <ebb9@byu.net>
103742         Fix fseeko/ftello on cygwin 1.5.24.
103743         * doc/functions/fseeko.texi (fseeko): Document the fix.
103744         * doc/functions/ftello.texi (ftello): Document the fix.
103745         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103746         * doc/functions/stdout.text (stdout): New file.
103747         * doc/functions/stderr.text (stderr): New file.
103748         * doc/gnulib.texi (Function Substitutes): Use new files.
103749         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103750         prior to 1.7.0.
103751         * tests/test-ftello.c (main): Likewise for ftello.
103752         * tests/test-fseeko.sh: New file.
103753         * tests/test-ftello.sh: New file.
103754         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103755         with seekable stdin.
103756         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103757         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103758         (gl_REPLACE_FSEEKO): New macro.
103759         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103760         * modules/fseeko (Files): Distribute fseeko.c.
103761         * modules/ftello (Files): Distribute ftello.c.
103762         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103763         mode.
103764         * lib/ftello.c (rpl_ftello): New file.
103765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103766         fseeko, ftello.
103767         (gl_STDIN_LARGE_OFFSET): New macro.
103768         * modules/stdio (Makefile.am): Perform the replacement.
103769         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103771 2007-05-23  Bruno Haible  <bruno@clisp.org>
103773         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103774         GNULIB_POSIXCHECK is defined.
103776 2007-05-21  Bruno Haible  <bruno@clisp.org>
103778         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103779         Check also the output for NaN arguments. When cross-compiling, guess
103780         no on IRIX.
103781         * lib/vasnprintf.c: Update comments.
103782         * tests/test-vasnprintf-posix.c (strisnan): New function.
103783         (test_function): Use it.
103784         * tests/test-vasprintf-posix.c (strisnan): New function.
103785         (test_function): Use it.
103786         * tests/test-snprintf-posix.h (strisnan): New function.
103787         (test_function): Use it.
103788         * tests/test-sprintf-posix.h (strisnan): New function.
103789         (test_function): Use it.
103790         Reported by Eric Blake.
103792 2007-05-20  Bruno Haible  <bruno@clisp.org>
103794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103795         numbers that fails on BeOS.
103796         * doc/functions/frexpl.texi: Update.
103798 2007-05-20  Jim Meyering  <jim@meyering.net>
103800         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103801         forced upon us by glibc-2.6.
103803 2007-05-20  Bruno Haible  <bruno@clisp.org>
103805         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103806         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103807         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103808         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103809         NEED_PRINTF_INFINITE.
103810         (is_infinitel): New function.
103811         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103813         gl_PREREQ_VASNPRINTF_INFINITE.
103814         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103816         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103817         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103818         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103819         gl_PREREQ_VASNPRINTF_INFINITE.
103820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103821         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103822         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103823         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103824         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103826         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103827         * doc/functions/fprintf.texi: Update.
103828         * doc/functions/printf.texi: Update.
103829         * doc/functions/snprintf.texi: Update.
103830         * doc/functions/sprintf.texi: Update.
103831         * doc/functions/vfprintf.texi: Update.
103832         * doc/functions/vprintf.texi: Update.
103833         * doc/functions/vsnprintf.texi: Update.
103834         * doc/functions/vsprintf.texi: Update.
103836 2007-05-20  Bruno Haible  <bruno@clisp.org>
103838         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103839         was not found in libc.
103840         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103842 2007-05-20  Bruno Haible  <bruno@clisp.org>
103844         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103845         printed as "-nan" instead of "nan".
103846         * tests/test-vasprintf-posix.c (test_function): Likewise.
103847         * tests/test-snprintf-posix.h (test_function): Likewise.
103848         * tests/test-sprintf-posix.h (test_function): Likewise.
103849         Needed for HP-UX 11.
103851 2007-05-20  Jim Meyering  <jim@meyering.net>
103853         Fix buggy test for the fchownat-deref bug.
103854         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103855         symlink required for the run-test.  Without it, this test would
103856         always declare that fchownat doesn't work, and client code would
103857         unnecessarily use the replacement function with fixed libc.
103858         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103859         Reported by Greg Schafer.
103861 2007-05-19  Bruno Haible  <bruno@clisp.org>
103863         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103864         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103865         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103866         Needed for IRIX 6.5 and Solaris 2.5.1.
103868 2007-05-19  Bruno Haible  <bruno@clisp.org>
103870         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103871         (test_function): Skip tests involving -0.0 on platforms where
103872         -0.0 = 0.0.
103873         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103874         (test_function): Skip tests involving -0.0 on platforms where
103875         -0.0 = 0.0.
103876         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103877         (test_function): Skip tests involving -0.0 on platforms where
103878         -0.0 = 0.0.
103879         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103880         (test_function): Skip tests involving -0.0 on platforms where
103881         -0.0 = 0.0.
103882         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103883         tests.
103884         * tests/test-printf-posix.h (test_function): Likewise.
103885         * tests/test-printf-posix.output: Remove all -0.0 related results.
103886         Needed for IRIX 6.5.
103888 2007-05-19  Bruno Haible  <bruno@clisp.org>
103890         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103891         printed as "nan0x7fffffff" instead of "nan".
103892         * tests/test-vasprintf-posix.c (test_function): Likewise.
103893         * tests/test-snprintf-posix.h (test_function): Likewise.
103894         * tests/test-sprintf-posix.h (test_function): Likewise.
103895         * tests/test-fprintf-posix.h (NaN): Remove macro.
103896         (test_function): Remove all NaN related tests.
103897         * tests/test-printf-posix.h (NaN): Remove macro.
103898         (test_function): Remove all NaN related tests.
103899         * tests/test-printf-posix.output: Remove all NaN related results.
103900         Needed for IRIX 6.5.
103902 2007-05-19  Bruno Haible  <bruno@clisp.org>
103904         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103907 2007-05-19  Bruno Haible  <bruno@clisp.org>
103909         * lib/float_.h: New file.
103910         * m4/float_h.m4: New file.
103911         * modules/float: New file.
103912         * modules/isnanl (Dependencies): Add float.
103913         * modules/isnanl-nolibm (Dependencies): Likewise.
103914         * modules/mathl (Dependencies): Likewise.
103915         * modules/printf-frexpl (Dependencies): Likewise.
103916         * modules/signbit (Dependencies): Likewise.
103917         * modules/vasnprintf (Dependencies): Likewise.
103918         * doc/headers/float.texi: Update.
103920 2007-05-19  Jim Meyering  <jim@meyering.net>
103922         * lib/utimens.c (gl_futimens): Rename from futimens,
103923         now that glibc-2.6 declares futimens.
103924         * lib/utimens.h: Likewise.
103926 2007-05-19  Bruno Haible  <bruno@clisp.org>
103928         Avoid test failures on mingw.
103929         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103930         * tests/test-printf-posix.sh: Likewise.
103931         * tests/test-vfprintf-posix.sh: Likewise.
103932         * tests/test-vprintf-posix.sh: Likewise.
103934 2007-05-19  Bruno Haible  <bruno@clisp.org>
103936         Fix *printf result for NaN, Inf, -0.0 on mingw.
103937         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103938         * lib/vasnprintf.c: Include math.h and isnan.h.
103939         (is_infinite_or_zero): New function.
103940         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103941         values in the %f, %F, %e, %E, %g, %G directives.
103942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103944         gl_PRINTF_INFINITE and test its result. Invoke
103945         gl_PREREQ_VASNPRINTF_INFINITE.
103946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103950         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103953         * doc/functions/fprintf.texi: Update.
103954         * doc/functions/printf.texi: Update.
103955         * doc/functions/snprintf.texi: Update.
103956         * doc/functions/sprintf.texi: Update.
103957         * doc/functions/vfprintf.texi: Update.
103958         * doc/functions/vprintf.texi: Update.
103959         * doc/functions/vsnprintf.texi: Update.
103960         * doc/functions/vsprintf.texi: Update.
103962 2007-05-19  Bruno Haible  <bruno@clisp.org>
103964         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103965         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103966         Instead of multiplying with 10^k, set extra_zeroes to k.
103967         (scale10_round_long_double): Remove function.
103969 2007-05-18  Bruno Haible  <bruno@clisp.org>
103971         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103972         introduced on 2007-05-06.
103974 2007-05-18  Bruno Haible  <bruno@clisp.org>
103976         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103977         %g directives.
103978         * tests/test-vasprintf-posix.c (test_function): Likewise.
103979         * tests/test-snprintf-posix.h (test_function): Likewise.
103980         * tests/test-sprintf-posix.h (test_function): Likewise.
103982 2007-05-18  Bruno Haible  <bruno@clisp.org>
103984         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103985         (strmatch): New function.
103986         (test_function): Test the %f directive on numbers of various exponents.
103987         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103988         (strmatch): New function.
103989         (test_function): Test the %f directive on numbers of various exponents.
103990         * tests/test-snprintf-posix.h (strmatch): New function.
103991         (test_function): Test the %f directive on numbers of various exponents.
103992         * tests/test-sprintf-posix.h (strmatch): New function.
103993         (test_function): Test the %f directive on numbers of various exponents.
103994         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103995         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103996         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103997         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103999 2007-05-18  Bruno Haible  <bruno@clisp.org>
104001         Add support for 'long double' number output.
104002         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
104003         * lib/vasnprintf.c: Include math.h and float+.h.
104004         (mp_limb_t): New type.
104005         (GMP_LIMB_BITS): New macro.
104006         (mp_twolimb_t): New type.
104007         (GMP_TWOLIMB_BITS): New macro.
104008         (mpn_t): New type.
104009         (multiply, divide, convert_to_decimal, decode_long_double,
104010         scale10_round_long_double, scale10_round_decimal_long_double,
104011         floorlog10l): New functions.
104012         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
104013         for the %f, %F, %e, %E, %g, %G directives.
104014         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
104015         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104016         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
104017         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
104018         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104023         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104024         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104025         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
104026         * modules/snprintf-posix (Depends-on): Likewise.
104027         * modules/sprintf-posix (Depends-on): Likewise.
104028         * modules/vasnprintf-posix (Depends-on): Likewise.
104029         * modules/vasprintf-posix (Depends-on): Likewise.
104030         * modules/vfprintf-posix (Depends-on): Likewise.
104031         * modules/vsnprintf-posix (Depends-on): Likewise.
104032         * modules/vsprintf-posix (Depends-on): Likewise.
104033         * modules/vasnprintf (Files): Add lib/float+.h.
104034         * doc/functions/fprintf.texi: Update.
104035         * doc/functions/printf.texi: Update.
104036         * doc/functions/snprintf.texi: Update.
104037         * doc/functions/sprintf.texi: Update.
104038         * doc/functions/vfprintf.texi: Update.
104039         * doc/functions/vprintf.texi: Update.
104040         * doc/functions/vsnprintf.texi: Update.
104041         * doc/functions/vsprintf.texi: Update.
104043 2007-05-18  Bruno Haible  <bruno@clisp.org>
104045         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
104047 2007-05-18  Bruno Haible  <bruno@clisp.org>
104049         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
104050         for printing 64-bit integers. Needed for mingw.
104052 2007-05-18  Bruno Haible  <bruno@clisp.org>
104054         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104055         gl_FUNC_FREXPL_WORKS.
104056         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
104058 2007-05-18  Bruno Haible  <bruno@clisp.org>
104060         * modules/frexpl-nolibm-tests: New file.
104062         * modules/frexpl-nolibm: New file.
104063         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
104065 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104067         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
104068         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104069         GCC 4.2, which otherwise issues a lot of warnings.
104070         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
104071         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
104072         Likewise.
104073         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
104074         * modules/iconv_open (iconv.h): Likewise.
104075         * modules/locale (locale.h): Likewise.
104076         * modules/netinet_in (netinet/in.h): Likewise.
104077         * modules/sys_select (sys_select.h): Likewise.
104078         * modules/sys_socket (sys/socket.h): Likewise.
104079         * modules/sys_stat (sys/stat.h): Likewise.
104080         * modules/sysexits (sysexits.h): Likewise.
104081         * modules/unistd (unistd.h): Likewise.
104083 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104085         * modules/closein-tests (Makefile.am): Distribute
104086         `test-closein.sh'.
104088 2007-05-17  Bruno Haible  <bruno@clisp.org>
104090         * tests/test-printf-posix.output: Renamed from
104091         tests/test-fprintf-posix.out.
104092         * modules/fprintf-posix-tests: Update.
104093         * modules/printf-posix-tests: Update.
104094         * modules/vfprintf-posix-tests: Update.
104095         * modules/vprintf-posix-tests: Update.
104096         * tests/test-fprintf-posix.sh: Update.
104097         * tests/test-printf-posix.sh: Update.
104098         * tests/test-vfprintf-posix.sh: Update.
104099         * tests/test-vprintf-posix.sh: Update.
104100         Reported by Ralf Wildenhues.
104102 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104104         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
104105         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104106         GCC 4.2, which otherwise issues a lot of warnings.
104107         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
104108         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
104109         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
104110         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
104111         it should no longer be needed.
104112         * lib/string_.h: Likewise.
104113         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
104114         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
104115         * modules/inttypes (inttypes.h): Likewise.
104116         * modules/math (math.h): Likewise.
104117         * modules/search (search.h): Likewise.
104118         * modules/signal (signal.h): Likewise.
104119         * modules/stdint (stdint.h): Likewise.
104120         * modules/stdio (stdio.h): Likewise.
104121         * modules/stdlib (stdlib.h): Likewise.
104122         * modules/string (string.h): Likewise.
104123         * modules/sys_time (sys/time.h): Likewise.
104124         * modules/time (time.h): Likewise.
104125         * modules/wchar (wchar.h): Likewise.
104126         * modules/wctype (wtype.h): Likewise.
104128 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
104130         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
104132 2007-05-13  Bruno Haible  <bruno@clisp.org>
104134         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
104135         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104136         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
104137         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104138         (gl_PREREQ_STRTOK_R): Don't require it here.
104140 2007-05-13  Bruno Haible  <bruno@clisp.org>
104142         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
104143         when used in C++ mode.
104145 2007-05-12  Bruno Haible  <bruno@clisp.org>
104147         * lib/linebuffer.h: Tweak doc.
104148         * lib/linebuffer.c: Likewise.
104150 2007-05-12  James Youngman  <jay@gnu.org>
104152         * lib/linebuffer.c (readlinebuffer_delim): New function,
104153         like readlinebuffer, but use a caller-specified delimiter.
104154         (readlinebuffer): Just call readlinebuffer_delim with '\n'
104155         as the delimiter.
104156         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
104158 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104160         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
104161         * modules/openat (Files): Remove openat-die.c.
104162         (Depends-on): Add openat-die.
104163         * modules/openat-die: New module.
104165 2007-05-06  Bruno Haible  <bruno@clisp.org>
104167         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
104168         Update with info about Cygwin.
104169         * doc/functions/fprintf.texi: Update.
104170         * doc/functions/printf.texi: Update.
104171         * doc/functions/snprintf.texi: Update.
104172         * doc/functions/sprintf.texi: Update.
104173         * doc/functions/vfprintf.texi: Update.
104174         * doc/functions/vprintf.texi: Update.
104175         * doc/functions/vsnprintf.texi: Update.
104176         * doc/functions/vsprintf.texi: Update.
104177         Reported by Eric Blake.
104179 2007-05-06  Bruno Haible  <bruno@clisp.org>
104181         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
104182         padding ourselves for the floating-point directives.
104183         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
104184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
104185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104186         gl_PRINTF_FLAG_ZERO and test its result. Invoke
104187         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
104188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104195         * tests/test-snprintf-posix.h (test_function): Also check the width
104196         and some flags in the %f directive.
104197         * tests/test-sprintf-posix.h (test_function): Likewise.
104198         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104199         * tests/test-vasprintf-posix.c (test_function): Likewise.
104200         * doc/functions/fprintf.texi: Update.
104201         * doc/functions/printf.texi: Update.
104202         * doc/functions/snprintf.texi: Update.
104203         * doc/functions/sprintf.texi: Update.
104204         * doc/functions/vfprintf.texi: Update.
104205         * doc/functions/vprintf.texi: Update.
104206         * doc/functions/vsnprintf.texi: Update.
104207         * doc/functions/vsprintf.texi: Update.
104209 2007-05-06  Bruno Haible  <bruno@clisp.org>
104211         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
104212         pass the ' flag character to sprintf or snprintf.
104213         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
104214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
104215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104216         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
104217         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
104218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104225         * tests/test-snprintf-posix.h (test_function): Also check the grouping
104226         flag.
104227         * tests/test-sprintf-posix.h (test_function): Likewise.
104228         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104229         * tests/test-vasprintf-posix.c (test_function): Likewise.
104230         * doc/functions/fprintf.texi: Update.
104231         * doc/functions/printf.texi: Update.
104232         * doc/functions/snprintf.texi: Update.
104233         * doc/functions/sprintf.texi: Update.
104234         * doc/functions/vfprintf.texi: Update.
104235         * doc/functions/vprintf.texi: Update.
104236         * doc/functions/vsnprintf.texi: Update.
104237         * doc/functions/vsprintf.texi: Update.
104239 2007-05-01  Bruno Haible  <bruno@clisp.org>
104241         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
104243 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
104245         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
104246         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
104248 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
104250         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
104251         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
104252         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
104254 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
104256         * lib/argp-help.c (struct hol_entry): New member `ord'.
104257         (HOL_ENTRY_PTRCMP): Use ord for comparison
104258         (hol_sort): Initialize ord.
104260 2007-05-01  Bruno Haible  <bruno@clisp.org>
104262         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
104263         Reported by Eric Blake.
104264         * doc/gnulib.texi (Function Substitutes): Update.
104266 2007-05-01  Bruno Haible  <bruno@clisp.org>
104268         * doc/functions.texi: Remove file, now redundant through
104269         doc/functions/*.texi.
104271 2007-05-01  Bruno Haible  <bruno@clisp.org>
104273         * modules/argp (Depends-on): Add sleep.
104275 2007-05-01  Bruno Haible  <bruno@clisp.org>
104277         * modules/sleep-tests: New file.
104278         * tests/test-sleep.c: New file.
104280         * modules/sleep: New file.
104281         * lib/sleep.c: New file.
104282         * m4/sleep.m4: New file.
104283         * lib/unistd_.h (sleep): New declaration.
104284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
104285         HAVE_SLEEP.
104286         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
104287         * doc/functions/sleep.texi: Document the sleep module.
104289 2007-05-01  Bruno Haible  <bruno@clisp.org>
104291         * lib/sigprocmask.h: Remove file.
104292         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
104293         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
104294         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
104295         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
104296         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
104297         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
104298         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
104299         HAVE_SIGSET_T as a shell variable.
104300         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
104301         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
104302         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
104303         (Depends-on): Add signal. Remove verify.
104304         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
104305         (Include): Mention <signal.h> instead of sigprocmask.h.
104306         * NEWS: Mention the change.
104307         * lib/fatal-signal.c: Don't include sigprocmask.h.
104309 2007-05-01  Bruno Haible  <bruno@clisp.org>
104311         * modules/signal: New file.
104312         * lib/signal_.h: New file.
104313         * m4/signal_h.m4: New file.
104315 2007-05-01  Bruno Haible  <bruno@clisp.org>
104317         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
104318         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
104319         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
104320         HAVE_WCTYPE_CTMP_BUG into wctype.h.
104322 2007-05-01  Bruno Haible  <bruno@clisp.org>
104324         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
104325         configure time.
104326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
104327         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
104328         * modules/sys_stat (Makefile.am): Substitute their values into
104329         sys/stat.h.
104331 2007-05-01  Bruno Haible  <bruno@clisp.org>
104333         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
104334         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
104335         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
104337 2007-05-01  Bruno Haible  <bruno@clisp.org>
104339         * doc/header/assert.texi: Undo last change: don't mention the gnulib
104340         'assert' module here.
104342 2007-05-01  Bruno Haible  <bruno@clisp.org>
104344         * doc/functions/*.texi: New files.
104345         * doc/functions/google-ranking.txt: New file.
104346         * doc/gnulib.texi (Function Substitutes): New chapter.
104347         (ctime, inet_ntoa): Remove sections.
104348         * doc/ctime.texi: Remove file.
104349         * doc/inet_ntoa.texi: Remove file.
104350         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104351         dependencies.
104352         (%.info): New rule, specifying a --reference-limit.
104354 2007-05-01  Bruno Haible  <bruno@clisp.org>
104356         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104358 2007-05-01  Bruno Haible  <bruno@clisp.org>
104360         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104361         the portability of 'mkdir' to mingw systems.
104363 2007-05-01  Bruno Haible  <bruno@clisp.org>
104365         * doc/headers/google-ranking.txt: New file.
104367 2007-04-30  Eric Blake  <ebb9@byu.net>
104369         Prefer fseeko to fseek.
104370         * modules/getpass (Depends-on): Add fseeko.
104371         * lib/getpass.c (getpass): Use fseeko, not fseek.
104373 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104375         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104376         assumes the sorting is stable, while most qsort implementations
104377         are not.  Use argument addresses to ensure they never compare as
104378         equal.
104380         * tests/test-argp-2.sh (usage-indent test): Fix output
104381         (func_compare): Restore diff options
104382         * tests/test-argp.c: Restore #include "progname.h"
104384 2007-04-29  Bruno Haible  <bruno@clisp.org>
104386         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104388         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104390         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104391         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104392         (TESTS, check_PROGRAMS): Add test-snprintf.
104393         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104394         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104395         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104396         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104397         assertions that fail on HP-UX, OSF/1, or IRIX.
104398         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104400 2007-04-29  Bruno Haible  <bruno@clisp.org>
104402         * MODULES.html.sh (posix_functions): Remove 'contents'.
104404 2007-04-29  Karl Berry  <karl@gnu.org>
104406         * config/srclist.txt (gendocs_template_min): new entry.
104408 2007-04-29  Bruno Haible  <bruno@clisp.org>
104410         Work around fpurge bug on BSD systems.
104411         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104412         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104413         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104414         fpurge to rpl_fpurge if the system already has this function.
104415         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104416         the case where the system already has this function. Correct invariants
104417         on BSD systems.
104418         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104419         BSD systems.
104421 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104423         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104424         proposed by Sven Verdoolaege.
104426         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104427         options.
104428         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104429         (usage and help tests): Update
104431 2007-04-29  Bruno Haible  <bruno@clisp.org>
104433         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104434         Print more information in case of failure. Disable a test on BeOS.
104436 2007-04-29  Bruno Haible  <bruno@clisp.org>
104438         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104439         This helps debugging on systems on which no gdb is available.
104441 2007-04-29  Bruno Haible  <bruno@clisp.org>
104443         * lib/freading.h: Improve comments.
104444         * lib/fwriting.h: Likewise.
104445         * tests/test-freading.c (main): Don't check freading immediately after
104446         repositioning. Needed for glibc.
104448 2007-04-29  Bruno Haible  <bruno@clisp.org>
104450         * lib/freading.c (freading): Trivial simplification.
104452 2007-04-28  Bruno Haible  <bruno@clisp.org>
104454         * tests/test-fwriting.c (main): Also test the interaction between
104455         fflush and fwriting.
104456         * modules/fwriting-tests (Depends-on): Add fflush.
104458         * tests/test-freading.c (main): Also test the interaction between
104459         fflush and freading.
104460         * modules/freading-tests (Depends-on): Add fflush.
104462 2007-04-28  Bruno Haible  <bruno@clisp.org>
104464         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
104465         fseeko and ftello.
104466         Suggested by Eric Blake.
104468 2007-04-28  Jim Meyering  <jim@meyering.net>
104470         Avoid false-negative in gl_STDINT_H's C99 conformance test.
104471         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
104472         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
104474 2007-04-27  Eric Blake  <ebb9@byu.net>
104476         * doc/headers/assert.texi (assert.h): Document assert module use.
104478 2007-04-27  Bruno Haible  <bruno@clisp.org>
104480         * doc/headers/*.texi: New files.
104481         * doc/gnulib.texi (Header File Substitutes): New chapter.
104482         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
104483         dependencies.
104484         (standards.info ,standards.html, standards.dvi): Update dependencies.
104485         (mostlyclean, clean): New targets.
104487 2007-04-27  Bruno Haible  <bruno@clisp.org>
104489         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
104490         * modules/sysexits (Files, Makefile.am): Update.
104492         * lib/sys_socket_.h: Renamed from lib/socket_.h.
104493         * modules/sys_socket (Files, Makefile.am): Update.
104495         * lib/sys_stat_.h: Renamed from lib/stat_.h.
104496         * modules/sys_stat (Files, Makefile.am): Update.
104498 2007-04-27  Eric Blake  <ebb9@byu.net>
104500         * lib/freading.h: Improve comments.
104501         * lib/fwriting.h: Likewise.
104502         * lib/fflush.c: Likewise.
104504         Fix closein for mingw.
104505         * modules/closein-tests: Add tests for closein.
104506         * tests/test-closein.c: New file.
104507         * tests/test-closein.sh: Likewise.
104508         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
104509         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
104511 2007-04-27  Bruno Haible  <bruno@clisp.org>
104513         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
104514         version is < 6.
104515         * lib/math_.h [__DECC]: Likewise.
104516         * lib/stdio_.h [__DECC]: Likewise.
104517         * lib/stdlib_.h [__DECC]: Likewise.
104518         * lib/string_.h [__DECC]: Likewise.
104519         * lib/time_.h [__DECC]: Likewise.
104520         * lib/wchar_.h [__DECC]: Likewise.
104521         * lib/wctype_.h [__DECC]: Likewise.
104523 2007-04-27  Bruno Haible  <bruno@clisp.org>
104525         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
104527 2007-04-27  Bruno Haible  <bruno@clisp.org>
104529         * lib/fflush.c: Add comments.
104530         * modules/fpurge-tests (Depends-on): Add fflush.
104531         * modules/freadable-tests (Depends-on): Likewise.
104532         * modules/fwritable-tests (Depends-on): Likewise.
104534 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
104536         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
104537         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
104538         Report by Bruno Haible <bruno@clisp.org>.
104540 2007-04-26  Eric Blake  <ebb9@byu.net>
104542         Fix fflush on mingw.
104543         * modules/fflush (Depends-on): Add freading.
104544         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
104545         but unread data.
104547 2007-04-26  Eric Blake  <ebb9@byu.net>
104548         and Bruno Haible  <bruno@clisp.org>
104550         Implement freading and fwriting.
104551         * lib/freading.c: New file.
104552         * lib/freading.h: Likewise.
104553         * m4/freading.m4: Likewise.
104554         * modules/freading: Likewise.
104555         * modules/freading-tests: Likewise.
104556         * tests/test-freading.c: Likewise.
104557         * lib/fwriting.c: New file.
104558         * lib/fwriting.h: Likewise.
104559         * m4/fwriting.m4: Likewise.
104560         * modules/fwriting: Likewise.
104561         * modules/fwriting-tests: Likewise.
104562         * tests/test-fwriting.c: Likewise.
104563         * MODULES.html.sh (File stream based Input/Output): Mention them.
104565 2007-04-26  Bruno Haible  <bruno@clisp.org>
104567         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
104568         'long' when we assume it.
104569         Suggested by Eric Blake.
104571 2007-04-26  Bruno Haible  <bruno@clisp.org>
104573         Ensure fseeko, ftello are declared on glibc systems.
104574         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
104575         * modules/fseeko (configure.ac-early): Likewise.
104576         * modules/ftello (configure.ac-early): Likewise.
104577         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
104578         AC_FUNC_FSEEKO for this.
104579         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
104580         (gl_CHECK_FSEEKO): Remove macro.
104582 2007-04-26  Bruno Haible  <bruno@clisp.org>
104584         * tests/test-fflush.c (main): Also check the ftell result after
104585         fflush and fseek/fseeko.
104586         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
104587         file descriptor position cache in the stream.
104588         * lib/fseeko.c (rpl_fseeko): Likewise.
104590 2007-04-26  Bruno Haible  <bruno@clisp.org>
104592         * modules/fflush-tests (Depends-on): Add fseeko.
104594 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104595             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104597         * lib/argz_.h: ensure error_t definition is obtained in same
104598         mechanism system argz.h would have.
104599         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
104600         argz facilities are known bad.  Err on the side of caution if
104601         cross-compiling.
104603 2007-04-25  Eric Blake  <ebb9@byu.net>
104605         * lib/fpurge.c (includes): Use stdlib.h for free.
104606         * tests/test-fflush.c (main): Also test fflush-fseeko.
104608 2007-04-25  Bruno Haible  <bruno@clisp.org>
104610         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
104611         * lib/fseeko.c: New file.
104612         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
104613         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
104614         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
104615         gl_FUNC_FSEEKO.
104616         (gl_FUNC_FSEEKO): Invoke it.
104617         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
104618         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
104619         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
104621 2007-04-25  Bruno Haible  <bruno@clisp.org>
104623         * modules/fflush (Depends-on): Add ftello.
104625 2007-04-25  Bruno Haible  <bruno@clisp.org>
104627         * modules/ftello-tests: New file.
104628         * tests/test-ftello.c: New file.
104630         * modules/ftello: New file.
104631         * m4/ftello.m4: New file.
104632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
104633         HAVE_FTELLO.
104634         * lib/stdio_.h (ftello): New declaration.
104635         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
104636         HAVE_FTELLO.
104638 2007-04-25  Bruno Haible  <bruno@clisp.org>
104640         * modules/fseeko-tests: New file.
104641         * tests/test-fseeko.c: New file.
104643         * modules/fseeko: New file.
104644         * m4/fseeko.m4: New file.
104645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
104646         HAVE_FSEEKO.
104647         * lib/stdio_.h (fseeko): New declaration.
104648         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
104649         HAVE_FSEEKO.
104651 2007-04-25  Bruno Haible  <bruno@clisp.org>
104653         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
104655 2007-04-25  Bruno Haible  <bruno@clisp.org>
104657         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
104658         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
104659         * tests/test-unistd.c: Likewise.
104660         * tests/test-fcntl.c: Likewise.
104662 2007-04-23  Eric Blake  <ebb9@byu.net>
104664         * lib/fflush.c: Fix missing include.
104665         Reported by Bruno Haible.
104667 2007-04-23  Bruno Haible  <bruno@clisp.org>
104669         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104670         Reported by Eric Blake.
104672 2007-04-23  Bruno Haible  <bruno@clisp.org>
104674         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104676 2007-04-23  Bruno Haible  <bruno@clisp.org>
104678         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104680 2007-04-23  Bruno Haible  <bruno@clisp.org>
104682         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104683         Needed on HP-UX 11.
104685 2007-04-16  Eric Blake  <ebb9@byu.net>
104687         Make fflush rely on fpurge.
104688         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104689         open coding all variants.
104690         * modules/fflush (Depends-on): Add fpurge and unistd.
104691         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104692         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104694         Fix --with-tests compilation on cygwin.
104695         * modules/argmatch-tests (Makefile.am): List gnulib library first
104696         in LDADD.
104697         * modules/argp-tests (Makefile.am): Likewise.
104698         * modules/array-list-tests (Makefile.am): Likewise.
104699         * modules/array-oset-tests (Makefile.am): Likewise.
104700         * modules/avltree-list-tests (Makefile.am): Likewise.
104701         * modules/avltree-oset-tests (Makefile.am): Likewise.
104702         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104703         * modules/carray-list-tests (Makefile.am): Likewise.
104704         * modules/dirname-tests (Makefile.am): Likewise.
104705         * modules/frexp-tests (Makefile.am): Likewise.
104706         * modules/isnanl-tests (Makefile.am): Likewise.
104707         * modules/linked-list-tests (Makefile.am): Likewise.
104708         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104709         * modules/lock-tests (Makefile.am): Likewise.
104710         * modules/rbtree-list-tests (Makefile.am): Likewise.
104711         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104712         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104713         * modules/tls-tests (Makefile.am): Likewise.
104714         * modules/tsearch-tests (Makefile.am): Likewise.
104715         * modules/xvasprintf-tests (Makefile.am): Likewise.
104717         Fix fpurge for cygwin.
104718         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104719         value.
104720         * modules/fpurge-tests (Depends-on): Clean up trash.
104722 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104724         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104726         * m4/autobuild.m4: Re-indent.
104728 2007-04-13  Bruno Haible  <bruno@clisp.org>
104730         * modules/fpurge-tests: New file.
104731         * tests/test-fpurge.c: New file.
104733         * modules/fpurge: New file.
104734         * lib/fpurge.h: New file.
104735         * lib/fpurge.c: New file.
104736         * m4/fpurge.m4: New file.
104738 2007-04-13  Bruno Haible  <bruno@clisp.org>
104740         * modules/fbufmode-tests: New file.
104741         * tests/test-fbufmode.c: New file.
104743         * modules/fbufmode: New file.
104744         * lib/fbufmode.h: New file.
104745         * lib/fbufmode.c: New file.
104746         * m4/fbufmode.m4: New file.
104748 2007-04-13  Bruno Haible  <bruno@clisp.org>
104750         * modules/fwritable-tests: New file.
104751         * tests/test-fwritable.c: New file.
104753         * modules/fwritable: New file.
104754         * lib/fwritable.h: New file.
104755         * lib/fwritable.c: New file.
104756         * m4/fwritable.m4: New file.
104758 2007-04-13  Bruno Haible  <bruno@clisp.org>
104760         * modules/freadable-tests: New file.
104761         * tests/test-freadable.c: New file.
104763         * modules/freadable: New file.
104764         * lib/freadable.h: New file.
104765         * lib/freadable.c: New file.
104766         * m4/freadable.m4: New file.
104768 2007-04-13  Bruno Haible  <bruno@clisp.org>
104770         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104771         MOSTLYCLEANFILES.
104773 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104775         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104776         gzip bootstrap.conf to avoid dragging in i18n machinery.
104777         (gnulib_tool_option): Use it.
104779 2007-04-13  Bruno Haible  <bruno@clisp.org>
104781         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104782         %F directives.
104783         * tests/test-vasprintf-posix.c (test_function): Likewise.
104784         * tests/test-snprintf-posix.h (test_function): Likewise.
104785         * tests/test-sprintf-posix.h (test_function): Likewise.
104786         * tests/test-fprintf-posix.h (test_function): Likewise.
104787         * tests/test-printf-posix.h (test_function): Likewise.
104788         * tests/test-fprintf-posix.out: Likewise.
104790 2007-04-13  Bruno Haible  <bruno@clisp.org>
104792         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104793         * modules/tls-tests (configure.ac): Likewise.
104794         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104796 2007-04-13  Bruno Haible  <bruno@clisp.org>
104798         * lib/tls.c (glthread_tls_get): Fix return type.
104799         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104801 2007-04-12  Eric Blake  <ebb9@byu.net>
104803         * modules/gettime (Depends-on): Remove gettime.
104804         Reported by Dmitry V. Levin.
104806 2007-04-12  Bruno Haible  <bruno@clisp.org>
104808         * modules/fflush (Include): Mention <stdio.h>.
104809         * modules/strtoimax (Include): Mention <inttypes.h>.
104810         * modules/strtoumax (Include): Likewise.
104812 2007-04-12  Eric Blake  <ebb9@byu.net>
104814         * .cvsignore: New file.
104815         * .gitignore: Likewise.
104817 2007-04-12  Bruno Haible  <bruno@clisp.org>
104819         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104820         not before, since $(LDADD) often contains libgnu.a.
104821         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104822         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104823         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104824         Needed on Cygwin.
104826 2007-04-12  Eric Blake  <ebb9@byu.net>
104828         Work around glibc's failure to flush stdin on fclose.
104829         * lib/closein.c (close_stdin): Flush stdin before closing.
104831         Work around glibc's failure to reset seekable stdin on exit.
104832         * modules/closein: New module.
104833         * lib/closein.c: New file.
104834         * lib/closein.h: Likewise.
104835         * m4/closein.m4: Likewise.
104836         * MODULES.html.sh (File stream based Input/Output): Document it.
104838 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104840         * gnulib-tool: Rename generated 'autobuild' script to
104841         'do-autobuild' in --create-megatestdir output.
104843         * doc/gnulib.texi (Build robot for gnulib): Fix.
104845 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104847         * modules/sysexits (Depends-on): Add absolute-header.
104849 2007-04-12  Eric Blake  <ebb9@byu.net>
104851         No need to preserve errno on success.
104852         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104853         Reported by Bruno Haible.
104855 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104857         * MODULES.html.sh (Support for maintaining and releasing
104858         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104860 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104862         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104864 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104866         * modules/autobuild: New module.
104868         * m4/autobuild.m4: New file.
104870 2007-04-11  Bruno Haible  <bruno@clisp.org>
104872         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104873         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104874         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104876         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104877         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104878         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104879         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104880         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104881         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104883         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104884         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104886         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104887         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104889         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104890         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104891         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104892         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104893         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104895         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104896         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104898         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104899         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104900         Reported by Eric Blake.
104902 2007-04-11  Bruno Haible  <bruno@clisp.org>
104904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104906 2007-04-10  Bruno Haible  <bruno@clisp.org>
104908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104909         for NaN and Infinity. Needed on FreeBSD 6.1.
104910         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104911         regarding results for "%010a" of Infinity and NaN.
104912         * tests/test-vasprintf-posix.c (test_function): Likewise.
104913         * tests/test-snprintf-posix.h (test_function): Likewise.
104914         * tests/test-sprintf-posix.h (test_function): Likewise.
104915         * tests/test-fprintf-posix.h (test_function): Likewise.
104916         * tests/test-printf-posix.h (test_function): Likewise.
104917         * tests/test-fprintf-posix.out: Likewise.
104919 2007-04-10  Bruno Haible  <bruno@clisp.org>
104921         * modules/locale-tests: New file.
104922         * tests/test-locale.c: New file.
104924         * modules/locale: New file.
104925         * lib/locale_.h: New file.
104926         * m4/locale_h.m4: New file.
104928 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104929             Bruno Haible  <bruno@clisp.org>
104931         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104932         be determined, test for availability of the copysignf, copysign,
104933         copysignl functions.
104934         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104935         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104936         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104938 2007-04-09  Eric Blake  <ebb9@byu.net>
104940         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104941         * modules/stdio (Makefile.am): Support fflush.
104942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104943         * modules/fflush: New file.
104944         * lib/fflush.c: Likewise.
104945         * m4/fflush.m4: Likewise.
104946         * modules/fflush-tests: New test.
104947         * tests/test-fflush.c: Likewise.
104948         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104950 2007-04-06  Bruno Haible  <bruno@clisp.org>
104952         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104953         (VASNPRINTF): Use signbit for faster determination whether to print a
104954         minus sign.
104955         * modules/vasnprintf (Files): Remove lib/float+.h.
104956         * modules/fprintf-posix (Depends-on): Add signbit.
104957         * modules/snprintf-posix (Depends-on): Likewise.
104958         * modules/sprintf-posix (Depends-on): Likewise.
104959         * modules/vasnprintf-posix (Depends-on): Likewise.
104960         * modules/vasprintf-posix (Depends-on): Likewise.
104961         * modules/vfprintf-posix (Depends-on): Likewise.
104962         * modules/vsnprintf-posix (Depends-on): Likewise.
104963         * modules/vsprintf-posix (Depends-on): Likewise.
104965 2007-04-06  Bruno Haible  <bruno@clisp.org>
104967         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104968         * tests/test-frexpl.c (main): Likewise.
104969         * tests/test-ldexpl.c (main): Likewise.
104970         * modules/frexp-tests (Depends-on): Add signbit.
104971         * modules/frexpl-tests (Depdends-on): Likewise.
104972         * modules/ldexpl-tests (Depdends-on): Likewise.
104974 2007-04-06  Bruno Haible  <bruno@clisp.org>
104976         * modules/signbit-tests: New file.
104977         * tests/test-signbit.c: New file.
104979         * modules/signbit: New file.
104980         * lib/signbitf.c: New file.
104981         * lib/signbitd.c: New file.
104982         * lib/signbitl.c: New file.
104983         * m4/signbit.m4: New file.
104984         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104985         (signbit): New macro.
104986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104987         REPLACE_SIGNBIT.
104988         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104989         REPLACE_FREXPL into math.h.
104991 2007-04-06  Bruno Haible  <bruno@clisp.org>
104993         * modules/isnanf-nolibm-tests: New file.
104994         * tests/test-isnanf.c: New file.
104996         * modules/isnanf-nolibm: New file.
104997         * lib/isnanf.h: New file.
104998         * lib/isnanf.c: New file.
104999         * lib/isnan.c: Consider the USE_FLOAT macro.
105000         * m4/isnanf.m4: New file.
105002 2007-04-06  Bruno Haible  <bruno@clisp.org>
105004         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
105005         (Link): New section.
105007         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
105009 2007-04-06  Bruno Haible  <bruno@clisp.org>
105011         Assume the 'long double' type.
105012         * m4/longdouble.m4: Remove file.
105013         * config/srclist.txt: Don't mention longdouble.m4.
105014         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
105015         * lib/float+.h: Likewise.
105016         * lib/frexp.c: Likewise.
105017         * lib/printf-args.h: Likewise.
105018         * lib/printf-args.c: Likewise.
105019         * lib/printf-frexp.c: Likewise.
105020         * lib/printf-parse.c: Likewise.
105021         * lib/vasnprintf.c: Likewise.
105022         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
105023         * m4/intl.m4: Likewise.
105024         * m4/isnanl.m4: Likewise.
105025         * m4/printf.m4: Likewise.
105026         * m4/printf-frexpl.m4: Likewise.
105027         * m4/vasnprintf.m4: Likewise.
105028         * modules/allocsa (Files): Remove m4/longdouble.m4.
105029         * modules/gettext (Files): Likewise.
105030         * modules/relocatable-prog-wrapper (Files): Likewise.
105031         * modules/vasnprintf (Files): Likewise.
105032         * modules/isnanl (Files): Likewise.
105033         (Include): Simplify.
105034         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
105035         (Include): Simplify.
105036         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
105037         (Include): Simplify.
105038         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
105039         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105040         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
105041         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105042         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105043         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105044         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
105045         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105046         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105047         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105048         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
105049         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105050         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
105051         * tests/test-isnanl.c: Likewise.
105052         * tests/test-snprintf-posix.h: Likewise.
105053         * tests/test-sprintf-posix.h: Likewise.
105054         * tests/test-vasnprintf-posix.c: Likewise.
105055         * tests/test-vasnprintf-posix2.c: Likewise.
105056         * tests/test-vasprintf-posix.c: Likewise.
105058 2007-04-06  Bruno Haible  <bruno@clisp.org>
105060         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
105061         * lib/math_.h [__DECC]: Include the overridden include file through
105062         #include_next, outside the double-inclusion guard.
105063         * lib/stdio_.h [__DECC]: Likewise.
105064         * lib/stdlib_.h [__DECC]: Likewise.
105065         * lib/string_.h [__DECC]: Likewise.
105066         * lib/time_.h [__DECC]: Likewise.
105067         * lib/wchar_.h [__DECC]: Likewise.
105068         * lib/wctype_.h [__DECC]: Likewise.
105069         * lib/inttypes_.h [__DECC]: Likewise.
105070         Reported by Albert Chin <china@thewrittenword.com> in
105071         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
105073 2007-04-04  Eric Blake  <ebb9@byu.net>
105075         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
105076         1.5.x.
105078 2007-04-04  Bruno Haible  <bruno@clisp.org>
105080         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
105081         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
105083 2007-04-04  Bruno Haible  <bruno@clisp.org>
105085         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
105086         results for "%010a" of Infinity and NaN.
105087         * tests/test-vasprintf-posix.c (test_function): Likewise.
105088         * tests/test-snprintf-posix.h (test_function): Likewise.
105089         * tests/test-sprintf-posix.h (test_function): Likewise.
105090         * tests/test-fprintf-posix.h (test_function): Remove these tests.
105091         * tests/test-printf-posix.h (test_function): Likewise.
105092         * tests/test-fprintf-posix.out: Update.
105093         Needed for FreeBSD 6.1.
105095 2007-04-04  Bruno Haible  <bruno@clisp.org>
105097         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
105098         directly used by the gnulib modules nor by gnulib-tool.
105100 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105102         * DEPENDENCIES: Give overall description of version dependency
105103         desirability.  Use more-typical names for apps.
105104         Add shell, coreutils, diffutils, grep, tar, gzip.
105106 2007-04-04  Simon Josefsson  <simon@josefsson.org>
105108         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
105110 2007-04-04  Karl Berry  <karl@gnu.org>
105112         * MODULES.html.sh (func_module): missing '.
105114 2007-04-03  Bruno Haible  <bruno@clisp.org>
105116         * modules/argmatch-tests (Makefile.am): New variable
105117         test_argmatch_LDADD.
105118         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
105119         * modules/array-list-tests (Makefile.am): New variable
105120         test_array_list_LDADD.
105121         * modules/array-oset-tests (Makefile.am): New variable
105122         test_array_oset_LDADD.
105123         * modules/avltree-list-tests (Makefile.am): New variable
105124         test_avltree_list_LDADD.
105125         * modules/avltree-oset-tests (Makefile.am): New variable
105126         test_avltree_oset_LDADD.
105127         * modules/avltreehash-list-tests (Makefile.am): New variable
105128         test_avltreehash_list_LDADD.
105129         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
105130         test_canonicalize_lgpl_LDADD.
105131         * modules/carray-list-tests (Makefile.am): New variable
105132         test_carray_list_LDADD.
105133         * modules/dirname-tests (Makefile.am): New variable
105134         test_dirname_LDADD.
105135         * modules/linked-list-tests (Makefile.am): New variable
105136         test_linked_list_LDADD.
105137         * modules/linkedhash-list-tests (Makefile.am): New variable
105138         test_linkedhash_list_LDADD.
105139         * modules/rbtree-list-tests (Makefile.am): New variable
105140         test_rbtree_list_LDADD.
105141         * modules/rbtree-oset-tests (Makefile.am): New variable
105142         test_rbtree_oset_LDADD.
105143         * modules/rbtreehash-list-tests (Makefile.am): New variable
105144         test_rbtreehash_list_LDADD.
105145         * modules/xvasprintf-tests (Makefile.am): New variable
105146         test_xvasprintf_LDADD.
105147         Reported by Eric Blake.
105149 2007-04-03  Eric Blake  <ebb9@byu.net>
105151         * DEPENDENCIES: Weaken m4 requirements.
105153 2007-04-03  Bruno Haible  <bruno@clisp.org>
105155         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
105156         * modules/isnanl-tests (configure.ac): Likewise.
105158 2007-04-03  Ben Pfaff  <blp@gnu.org>
105160         * modules/iconv_open: Add $(srcdir)/ to source directory
105161         references in Makefile fragments that call gperf, to fix VPATH
105162         builds.
105164 2007-04-03  Bruno Haible  <bruno@clisp.org>
105166         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
105167         * lib/ldexpl.c: Undo last change.
105169 2007-04-03  Bruno Haible  <bruno@clisp.org>
105171         * modules/printf-frexpl (Depends-on): Undo last change.
105172         (Files): Add m4/ldexpl.m4.
105174 2007-04-03  Bruno Haible  <bruno@clisp.org>
105176         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
105177         * modules/isnanl (Link): New section.
105179         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
105180         * modules/frexp (Link): New section.
105182         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
105183         * modules/frexpl (Link): New section.
105185         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
105186         * modules/ldexpl (Link): New section.
105188 2007-04-03  Bruno Haible  <bruno@clisp.org>
105190         * modules/TEMPLATE-EXTENDED: New file.
105191         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
105193 2007-04-03  Bruno Haible  <bruno@clisp.org>
105195         * DEPENDENCIES: New file.
105196         Suggested by Simon Josefsson.
105198 2007-04-03  Bruno Haible  <bruno@clisp.org>
105200         * doc/gnulib.texi: Escape @.
105202 2007-04-03  James Youngman  <jay@gnu.org>
105203         and Paul Eggert  <eggert@cs.ucla.edu>
105205         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
105206         birthtime on all systems that have birthtime, not just those which
105207         use st_birthtimensec rather than st_birthtim.  Putting zero in
105208         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
105209         that the birth time is not available for files on an NFS mount.
105211 2007-04-03  Simon Josefsson  <simon@josefsson.org>
105213         * modules/memxor: Move back from crypto/, suggested by Bruno.
105214         * modules/crypto/hmac-sha1: Fix memxor dependency.
105216         * modules/crypto/gc: Moved from ../.
105218 2007-04-02  Eric Blake  <ebb9@byu.net>
105220         * lib/ldexpl.c (includes): Avoid libm.
105222         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
105224 2007-04-02  Bruno Haible  <bruno@clisp.org>
105226         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
105227         on IRIX.
105229 2007-04-02  Bruno Haible  <bruno@clisp.org>
105231         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
105232         x86 or x86_64 platforms running MacOS X.
105233         Reported by Ryan Schmidt <@ryandesign.com>.
105235 2007-04-02  Bruno Haible  <bruno@clisp.org>
105237         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
105238         i386.
105240 2007-04-01  Simon Josefsson  <simon@josefsson.org>
105242         * modules/crypto/arcfour: Moved from ../.
105243         * modules/crypto/arcfour-tests: Moved from ../.
105244         * modules/crypto/arctwo: Moved from ../.
105245         * modules/crypto/arctwo-tests: Moved from ../.
105246         * modules/crypto/des: Moved from ../.
105247         * modules/crypto/des-tests: Moved from ../.
105248         * modules/crypto/gc-arcfour: Moved from ../.
105249         * modules/crypto/gc-arcfour-tests: Moved from ../.
105250         * modules/crypto/gc-arctwo: Moved from ../.
105251         * modules/crypto/gc-arctwo-tests: Moved from ../.
105252         * modules/crypto/gc-des: Moved from ../.
105253         * modules/crypto/gc-des-tests: Moved from ../.
105254         * modules/crypto/gc-hmac-md5: Moved from ../.
105255         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
105256         * modules/crypto/gc-hmac-sha1: Moved from ../.
105257         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
105258         * modules/crypto/gc-md2: Moved from ../.
105259         * modules/crypto/gc-md2-tests: Moved from ../.
105260         * modules/crypto/gc-md4: Moved from ../.
105261         * modules/crypto/gc-md4-tests: Moved from ../.
105262         * modules/crypto/gc-md5: Moved from ../.
105263         * modules/crypto/gc-md5-tests: Moved from ../.
105264         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
105265         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
105266         * modules/crypto/gc-random: Moved from ../.
105267         * modules/crypto/gc-rijndael: Moved from ../.
105268         * modules/crypto/gc-rijndael-tests: Moved from ../.
105269         * modules/crypto/gc-sha1: Moved from ../.
105270         * modules/crypto/gc-sha1-tests: Moved from ../.
105271         * modules/crypto/gc-tests: Moved from ../.
105272         * modules/crypto/hmac-md5: Moved from ../.
105273         * modules/crypto/hmac-md5-tests: Moved from ../.
105274         * modules/crypto/hmac-sha1: Moved from ../.
105275         * modules/crypto/hmac-sha1-tests: Moved from ../.
105276         * modules/crypto/md2: Moved from ../.
105277         * modules/crypto/md2-tests: Moved from ../.
105278         * modules/crypto/md4: Moved from ../.
105279         * modules/crypto/md4-tests: Moved from ../.
105280         * modules/crypto/md5: Moved from ../.
105281         * modules/crypto/md5-tests: Moved from ../.
105282         * modules/crypto/memxor: Moved from ../.
105283         * modules/crypto/rijndael: Moved from ../.
105284         * modules/crypto/rijndael-tests: Moved from ../.
105285         * modules/crypto/sha1: Moved from ../.
105287 2007-03-30  James Youngman  <jay@gnu.org>
105289         * tests/test-stat-time.c (prepare_test): use chmod() rather than
105290         rename() to change the ctime of a file (because ctime is unaffected
105291         by rename on jfs2 on AIX 5.1).
105292         (main): Start by doing cleanup, in case a previous run failed leaving
105293         test files behind.
105295 2007-03-31  Bruno Haible  <bruno@clisp.org>
105297         Support old proprietary implementations of iconv.
105298         * modules/iconv_open: New file.
105299         * lib/iconv_.h: New file.
105300         * m4/iconv_h.m4: New file.
105301         * lib/iconv_open.c: New file.
105302         * lib/iconv_open-aix.gperf: New file.
105303         * lib/iconv_open-hpux.gperf: New file.
105304         * lib/iconv_open-irix.gperf: New file.
105305         * lib/iconv_open-osf.gperf: New file.
105306         * m4/iconv_open.m4: New file.
105307         * modules/linebreak (Depends-on): Add iconv_open.
105308         * modules/striconv (Depends-on): Likewise.
105309         * modules/striconveh (Depends-on): Likewise.
105310         * modules/unicodeio (Depends-on): Likewise.
105311         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
105312         (iconv_t)(-1).
105313         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
105314         conversion if cd is (iconv_t)(-1).
105315         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
105316         is not possible.
105318 2007-03-31  Bruno Haible  <bruno@clisp.org>
105320         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105321         work on Solaris either. Protect also second use of "autodetect_jp".
105323 2007-03-31  Bruno Haible  <bruno@clisp.org>
105325         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
105326         the function is not present.
105328 2007-03-31  Bruno Haible  <bruno@clisp.org>
105330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
105331         the function is not present.
105333 2007-03-31  Bruno Haible  <bruno@clisp.org>
105335         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
105336         a bug in HP-UX iconv_open().
105338 2007-03-31  Bruno Haible  <bruno@clisp.org>
105340         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
105341         (Mathematics <math.h>): New section, add fpieee.
105342         (Input/output <stdio.h>): Add fseterr.
105343         (Mathematics <math.h>): New section, add printf-frexp.
105344         (Container data structures): Add sublist.
105345         (Core language properties): Add fpucw, inline.
105346         (Functions for greatest-width integer types <inttypes.h>): Add
105347         imaxabs, imaxdiv, inttypes.
105348         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105349         isnanl-nolibm, ldexp.
105350         (Mathematics <math.h>): New section, add printf-frexpl.
105351         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105352         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105353         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105354         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105355         (Unicode string functions): Add unistr/u*-mbtoucr.
105356         (Java): Add javacomp-script, javaexec-script.
105357         (C#): Add csharpcomp-script, csharpexec-script.
105358         (Support for building libraries and executables): Add havelib,
105359         relocatable-*.
105360         (Support for maintaining and releasing projects): Renamed from
105361         'Support for maintaining and release projects'. Add announce-gen.
105363 2007-03-31  Bruno Haible  <bruno@clisp.org>
105365         * README: Talk primarily about git.
105366         (git and CVS): Renamed from CVS.
105367         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105368         gnulib is available through git.
105369         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105371 2007-03-30  Bruno Haible  <bruno@clisp.org>
105373         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105374         * lib/poll_.h: Likewise.
105375         * lib/stat_.h: Likewise.
105376         * lib/sys_time_.h: Likewise.
105377         * lib/sysexit_.h: Likewise.
105378         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105379         * lib/stdbool_.h: Likewise.
105380         * lib/byteswap_.h: Add double-inclusion guard.
105382 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105384         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105386 2007-03-30  Karl Berry  <karl@gnu.org>
105388         * config/srclist-update: double space after USA in the license
105389         substitution, since that's how it's usually (?) written.
105391 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105393         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105394         reported by Bruno Haible.
105396 2007-03-29  Bruno Haible  <bruno@clisp.org>
105398         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105399         a bug in AIX iconv().
105401 2007-03-29  Bruno Haible  <bruno@clisp.org>
105403         * modules/ldexpl-tests: New file.
105404         * tests/test-ldexpl.c: New file.
105406 2007-03-29  Bruno Haible  <bruno@clisp.org>
105408         * lib/ldexpl.c: Include fpucw.h.
105409         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105410         multiplication.
105411         * modules/ldexpl (Depends-on): Add fpucw.
105413 2007-03-29  Bruno Haible  <bruno@clisp.org>
105415         * modules/ldexpl: New file.
105416         * m4/ldexpl.m4: New file.
105417         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105418         set.
105419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105420         REPLACE_LDEXPL.
105421         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105422         REPLACE_LDEXPL.
105423         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105424         gl_FUNC_LDEXPL_WORKS.
105425         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105426         * modules/mathl (Files): Remove lib/ldexpl.c.
105427         (Depends-on): Add ldexpl.
105429 2007-03-29  Bruno Haible  <bruno@clisp.org>
105431         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105433 2007-03-29  Bruno Haible  <bruno@clisp.org>
105435         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105436         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105437         and possibly also HP-UX.
105438         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105439         work on AIX, IRIX, HP-UX, OSF/1.
105440         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105441         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105442         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105443         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105444         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105445         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105447 2007-03-29  Bruno Haible  <bruno@clisp.org>
105449         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105451 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105453         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
105454         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
105456 2007-03-29  Eric Blake  <ebb9@byu.net>
105458         * lib/acl-internal.h: Remove redundant include.
105459         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
105460         Cygwin when a file is locked.
105462 2007-03-29  Bruno Haible  <bruno@clisp.org>
105464         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
105465         file.
105466         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
105468 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105470         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
105471         try to remove a parent directory if the child couldn't be removed
105472         (except for the first rmdir, which could fail because the child
105473         doesn't exist).  Problem reported by Jeff Blaine in
105474         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
105476 2007-03-28  Bruno Haible  <bruno@clisp.org>
105478         * lib/striconveh.c (utf8conv_carefully): New function.
105479         (mem_cd_iconveh_internal): Invoke it.
105481 2007-03-28  Bruno Haible  <bruno@clisp.org>
105483         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
105484         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
105485         input.
105486         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
105487         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
105488         unistr/u8-uctomb.
105490 2007-03-28  Bruno Haible  <bruno@clisp.org>
105492         * modules/unistr/u8-mbtoucr: New file.
105493         * lib/unistr/u8-mbtoucr.c: New file.
105494         * modules/unistr/u16-mbtoucr: New file.
105495         * lib/unistr/u16-mbtoucr.c: New file.
105496         * modules/unistr/u16-mbtoucr: New file.
105497         * lib/unistr/u16-mbtoucr.c: New file.
105498         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
105500 2007-03-27  Simon Josefsson  <simon@josefsson.org>
105501             Bruno Haible  <bruno@clisp.org>
105503         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
105504         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
105505         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
105507         * m4/stdio_h.m4: Add stubs for vasprintf too.
105509         * modules/stdio: Support vasprintf in sed command.
105511         * modules/vasprintf: Depend on stdio for prototypes.  Remove
105512         vasprintf.h.  Add stdio module indicator.
105514         * lib/stdio_.h: Declare asprintf and vasprintf, based on
105515         vasprintf.h.
105517         * lib/vasprintf.h: File removed.
105519         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
105520         * lib/vasprintf.c: Ditto.
105521         * lib/xvasprintf.c: Ditto.
105522         * tests/test-vasprintf-posix.c: Ditto.
105523         * tests/test-vasprintf.c: Ditto.
105525 2007-03-27  Bruno Haible  <bruno@clisp.org>
105527         Make vasnprintf multithread-safe.
105528         * lib/vasnprintf.c (decimal_point_char): New function.
105529         (VASNPRINTF): Use it.
105530         Suggested by Simon Josefsson.
105532 2007-03-27  Eric Blake  <ebb9@byu.net>
105534         Support sub-second birthtime on cygwin.
105535         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
105536         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
105537         (get_stat_birthtime): Also work with st_birthtim.
105539 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
105541         * lib/stat-time.h (USE_BIRTHTIME): Remove.
105542         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
105543         (get_stat_birthtime_ns): Do not try to use "spare" fields.
105544         (get_stat_birthtime_ns): Simplify compile-time tests.
105545         (get_stat_birthtime): Change the API to look like
105546         get_stat_mtime etc., except return a negative tv_nsec on error.
105547         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
105548         Don't check for "spare" fields.
105549         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
105550         or for struct stat.st_birthtime, as these tests aren't used.
105551         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
105553 2007-03-27  Bruno Haible  <bruno@clisp.org>
105555         * lib/stat-time.h: Include <sys/stat.h>.
105557 2007-03-27  James Youngman  <jay@gnu.org>
105559         * lib/stat-time.h (get_stat_birthtime): New function for
105560           retrieving st_birthtime as provided by UFS2 (hence *BSD).
105561         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
105562           and its variants.
105563         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
105564         * modules/stat-time-test: New file.
105565         * tests/test-stat-time.c: New test, devised by Bruno Haible.
105567 2007-03-26  Bruno Haible  <bruno@clisp.org>
105569         Better support of signalling NaNs.
105570         * lib/atanl.c: Include isnanl.h.
105571         (atanl): Perform test for NaN at the beginning of the function and
105572         through a call to isnanl.
105573         * lib/cosl.c: Include isnanl.h.
105574         (cosl): Perform test for NaN at the beginning of the function and
105575         through a call to isnanl.
105576         * lib/ldexpl.c: Include isnanl.h.
105577         (ldexpl): Perform test for NaN through a call to isnanl.
105578         * lib/logl.c: Include isnanl.h.
105579         (logl): Perform test for NaN at the beginning of the function and
105580         through a call to isnanl.
105581         * lib/sinl.c: Include isnanl.h.
105582         (sinl): Perform test for NaN at the beginning of the function and
105583         through a call to isnanl.
105584         * lib/sqrtl.c: Include isnanl.h.
105585         (sqrtl): Perform test for NaN at the beginning of the function and
105586         through a call to isnanl.
105587         * lib/tanl.c: Include isnanl.h.
105588         (tanl): Perform test for NaN at the beginning of the function and
105589         through a call to isnanl.
105590         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105591         * modules/mathl (Depends-on): Add isnanl.
105593 2007-03-26  Eric Blake  <ebb9@byu.net>
105595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105596         regression in logic sense of previous patch.
105598 2007-03-26  Bruno Haible  <bruno@clisp.org>
105600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
105601         unportable shell command "if ! ...".
105602         Reported by Ralf Wildenhues.
105604 2007-03-25  Bruno Haible  <bruno@clisp.org>
105606         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
105607         <sysexits.h> file, and only add EX_CONFIG.
105608         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
105609         absolute file name and whether it is sufficient. Substitute also
105610         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
105611         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
105612         ABSOLUTE_SYSEXITS_H into sysexits.h.
105614 2007-03-25  Bruno Haible  <bruno@clisp.org>
105616         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
105617         hints is NULL.
105619 2007-03-25  Bruno Haible  <bruno@clisp.org>
105621         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
105622         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
105624 2007-03-25  Bruno Haible  <bruno@clisp.org>
105626         * lib/vasnprintf.c: Include langinfo.h.
105627         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
105628         multithread-safe.
105629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
105630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
105631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
105637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105638         Reported by Simon Josefsson.
105640 2007-03-25  Bruno Haible  <bruno@clisp.org>
105642         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
105643         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
105644         * modules/vasnprintf (Depends-on): Add stdint.
105646 2007-03-25  Bruno Haible  <bruno@clisp.org>
105648         * modules/fpieee: New file.
105649         * m4/fpieee.m4: New file.
105650         * modules/isnan-nolibm (Depends-on): Add fpieee.
105651         * modules/isnanl-nolibm (Depends-on): Add fpieee.
105652         * modules/isnanl (Depends-on): Add fpieee.
105654 2007-03-25  Bruno Haible  <bruno@clisp.org>
105656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
105658 2007-03-25  Bruno Haible  <bruno@clisp.org>
105660         Avoid test failures on IRIX 6.5.
105661         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105662         (main): Use it.
105663         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105664         macros.
105665         (main): Use them.
105667 2007-03-25  Bruno Haible  <bruno@clisp.org>
105669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105670         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105671         exists but doesn't work.
105672         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105673         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105675         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105676         math.h.
105678 2007-03-25  Bruno Haible  <bruno@clisp.org>
105680         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105681         returns inf. Needed on IRIX 6.5.
105683 2007-03-25  Bruno Haible  <bruno@clisp.org>
105685         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105686         (main): Use isnanl instead of x != x idiom.
105687         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105689         * tests/test-frexp.c: Include isnan.h.
105690         (main): Use isnan instead of x != x idiom.
105691         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105693 2007-03-25  Bruno Haible  <bruno@clisp.org>
105695         * tests/test-frexp.c (NaN): New function/macro.
105696         (main): Use it instead of 0.0 / 0.0.
105697         * tests/test-isnan.c (NaN): New function/macro.
105698         (main): Use it instead of 0.0 / 0.0.
105699         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105700         (test_function): Use it instead of 0.0 / 0.0.
105701         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105702         (test_function): Use it instead of 0.0 / 0.0.
105703         * tests/test-snprintf-posix.h (NaN): New function/macro.
105704         (test_function): Use it instead of 0.0 / 0.0.
105705         * tests/test-sprintf-posix.h (NaN): New function/macro.
105706         (test_function): Use it instead of 0.0 / 0.0.
105707         * tests/test-fprintf-posix.h (NaN): New function/macro.
105708         (test_function): Use it instead of 0.0 / 0.0.
105709         * tests/test-printf-posix.h (NaN): New function/macro.
105710         (test_function): Use it instead of 0.0 / 0.0.
105712         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105714 2007-03-25  Bruno Haible  <bruno@clisp.org>
105716         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105718 2007-03-25  Bruno Haible  <bruno@clisp.org>
105720         * lib/regexec.c (merge_state_with_log): Make static.
105722 2007-03-25  Bruno Haible  <bruno@clisp.org>
105724         * lib/trigl.c (kernel_rem_pio2): Make static.
105726 2007-03-25  Bruno Haible  <bruno@clisp.org>
105728         * lib/sincosl.c (sincosl_table): Make static.
105730 2007-03-25  Bruno Haible  <bruno@clisp.org>
105732         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105733         if the compiler does not support C99.
105735 2007-03-25  Bruno Haible  <bruno@clisp.org>
105737         * modules/time (Makefile.am): Ensure all rule action lines start with a
105738         tab.
105740 2007-03-24  Bruno Haible  <bruno@clisp.org>
105742         * modules/tsearch-tests: New file.
105743         * tests/test-tsearch.sh: New file.
105744         * tests/test-tsearch.c: New file, mostly copied from glibc.
105746         * modules/search-tests: New file.
105747         * tests/test-search.c: New file.
105749         * modules/search: New file.
105750         * lib/search_.h: New file, incorporating lib/tsearch.h.
105751         * m4/search_h.m4: New file.
105752         * lib/tsearch.h: Remove file.
105753         * lib/tsearch.c: Include search.h instead of tsearch.h.
105754         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105755         HAVE_TSEARCH.
105756         * modules/tsearch (Files): Remove lib/tsearch.h.
105757         (Depends-on): Add search.
105758         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105759         (Include): Change tsearch.h into search.h.
105761 2007-03-24  Bruno Haible  <bruno@clisp.org>
105763         * modules/fpucw: New file.
105764         * lib/fpucw.h: New file.
105765         * lib/frexp.c: Include fpucw.h.
105766         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105767         (FUNC): Use them.
105768         * lib/printf-frexp.c: Include fpucw.h.
105769         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105770         (FUNC): Use them.
105771         * lib/vasnprintf.c: Include fpucw.h.
105772         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105773         'long double' calculations.
105774         * tests/test-frexpl.c: Include fpucw.h.
105775         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105776         * tests/test-printf-frexpl.c: Include fpucw.h.
105777         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105778         * modules/frexpl (Depends-on): Add fpucw.
105779         * modules/printf-frexpl (Depends-on): Likewise.
105780         * modules/fprintf-posix (Depends-on): Likewise.
105781         * modules/snprintf-posix (Depends-on): Likewise.
105782         * modules/sprintf-posix (Depends-on): Likewise.
105783         * modules/vasnprintf-posix (Depends-on): Likewise.
105784         * modules/vasprintf-posix (Depends-on): Likewise.
105785         * modules/vfprintf-posix (Depends-on): Likewise.
105786         * modules/vsnprintf-posix (Depends-on): Likewise.
105787         * modules/vsprintf-posix (Depends-on): Likewise.
105788         * modules/frexpl-tests (Depends-on): Likewise.
105789         * modules/printf-frexpl-tests (Depends-on): Likewise.
105791 2007-03-24  Bruno Haible  <bruno@clisp.org>
105793         * lib/float+.h: New file.
105794         * lib/isnan.c: Include float+.h.
105795         (SIZE): New macro.
105796         (FUNC): Compare only SIZE bytes of the value.
105797         * lib/vasnprintf.c: Include float+.h.
105798         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105799         SIZEOF_LDBL or SIZEOF_DBL bytes.
105800         * modules/isnan-nolibm (Files): Add lib/float+.h.
105801         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105802         * modules/isnanl (Files): Add lib/float+.h.
105803         * modules/vasnprintf (Files): Add lib/float+.h.
105805 2007-03-24  Bruno Haible  <bruno@clisp.org>
105807         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105808         include isnanl-nolibm.h.
105810 2007-03-24  Bruno Haible  <bruno@clisp.org>
105812         * tests/test-read-file.c (main): Don't produce spurious output for
105813         expected situations. Make the test fail if it encountered unexpected
105814         results.
105816 2007-03-24  Bruno Haible  <bruno@clisp.org>
105818         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105819         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105821 2007-03-24  Bruno Haible  <bruno@clisp.org>
105823         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105825 2007-03-24  Bruno Haible  <bruno@clisp.org>
105827         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105828         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105830         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105831         * modules/utf8-ucs4: Turn into a symbolic link to module
105832         unistr/u8-mbtouc.
105834         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105835         utf8-ucs4-unsafe.
105836         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105837         unistr/u8-mbtouc-unsafe.
105839         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105840         * modules/utf16-ucs4: Turn into a symbolic link to module
105841         unistr/u16-mbtouc.
105843         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105844         utf16-ucs4-unsafe.
105845         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105846         unistr/u16-mbtouc-unsafe.
105848         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105849         * modules/ucs4-utf8: Turn into a symbolic link to module
105850         unistr/u8-ubtomb.
105852         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105853         * modules/ucs4-utf16: Turn into a symbolic link to module
105854         unistr/u16-ubtomb.
105856 2007-03-24  Bruno Haible  <bruno@clisp.org>
105858         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105859         Enable the function only if HAVE_INLINE.
105860         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105861         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105862         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105863         Enable the function only if HAVE_INLINE.
105864         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105865         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105866         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105867         Enable the function only if HAVE_INLINE.
105868         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105869         Enable the function only if HAVE_INLINE.
105870         * modules/utf8-ucs4: Update.
105871         * modules/utf8-ucs4-unsafe: Update.
105872         * modules/utf16-ucs4: Update.
105873         * modules/utf16-ucs4-unsafe: Update.
105874         * modules/ucs4-utf8: Update.
105875         * modules/ucs4-utf16: Update.
105877 2007-03-24  Bruno Haible  <bruno@clisp.org>
105879         * lib/utf8-ucs4.h: Remove file.
105880         * lib/utf8-ucs4-unsafe.h: Remove file.
105881         * lib/utf16-ucs4.h: Remove file.
105882         * lib/utf16-ucs4-unsafe.h: Remove file.
105883         * lib/ucs4-utf8.h: Remove file.
105884         * lib/ucs4-utf16.h: Remove file.
105885         * lib/unistr.h: Include their previous contents.
105886         * m4/utf-ucs4.m4: Remove file.
105887         * m4/ucs4-utf.m4: Remove file.
105888         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105889         (Depends-on): Add unistr/base.
105890         (configure.ac): Remove gl_UTF_UCS4.
105891         (Makefile.am): Update.
105892         (Include): Change to unistr.h.
105893         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105894         (Depends-on): Add unistr/base.
105895         (configure.ac): Remove gl_UTF_UCS4.
105896         (Makefile.am): Update.
105897         (Include): Change to unistr.h.
105898         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105899         (Depends-on): Add unistr/base.
105900         (configure.ac): Remove gl_UTF_UCS4.
105901         (Makefile.am): Update.
105902         (Include): Change to unistr.h.
105903         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105904         (Depends-on): Add unistr/base.
105905         (configure.ac): Remove gl_UTF_UCS4.
105906         (Makefile.am): Update.
105907         (Include): Change to unistr.h.
105908         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105909         (Depends-on): Add unistr/base.
105910         (configure.ac): Remove gl_UCS4_UTF.
105911         (Makefile.am): Update.
105912         (Include): Change to unistr.h.
105913         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105914         (Depends-on): Add unistr/base.
105915         (configure.ac): Remove gl_UCS4_UTF.
105916         (Makefile.am): Update.
105917         (Include): Change to unistr.h.
105918         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105919         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105920         utf8-ucs4-unsafe.h.
105921         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105922         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105923         utf16-ucs4-unsafe.h.
105924         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105925         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105926         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105927         * lib/unistr/u8-strchr.c: Likewise.
105928         * lib/unistr/u8-strrchr.c: Likewise.
105929         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105930         * lib/unistr/u16-strchr.c: Likewise.
105931         * lib/unistr/u16-strrchr.c: Likewise.
105932         * lib/striconveh.c: Update.
105933         * lib/linebreak.c: Update.
105935 2007-03-24  Bruno Haible  <bruno@clisp.org>
105937         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105938         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105940 2007-03-22  Bruno Haible  <bruno@clisp.org>
105942         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105944 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105946         * MODULES.html.sh (File system functions): New module write-any-file.
105947         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105948         * m4/write-any-file.m4: New files.
105950 2007-03-23  Eric Blake  <ebb9@byu.net>
105952         * gnulib-tool: Rearrange space-tab sequences, since some editors
105953         like to eat them.
105955 2007-03-23  Eric Blake  <ebb9@byu.net>
105957         * lib/version-etc.c (version_etc_va): Update license wording to
105958         be more concise.  Recommended by Richard Stallman.
105960 2007-03-22  Bruno Haible  <bruno@clisp.org>
105962         * lib/poll.c (MSG_PEEK): New fallback definition.
105964 2007-03-22  Bruno Haible  <bruno@clisp.org>
105966         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105967         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105968         (main): Update.
105969         Fixes a compilation error on BeOS.
105971 2007-03-22  Bruno Haible  <bruno@clisp.org>
105973         * modules/frexpl-tests: New file.
105974         * tests/test-frexpl.c: New file.
105976         * modules/frexpl: New file.
105977         * m4/frexpl.m4: New file.
105978         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105979         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105981         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105982         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105983         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105985 2007-03-22  Bruno Haible  <bruno@clisp.org>
105987         * lib/frexpl.c: Share code with lib/frexp.c.
105988         * modules/mathl (Files): Add lib/frexp.c.
105989         (Depends-on): Add isnanl-nolibm.
105991 2007-03-22  Bruno Haible  <bruno@clisp.org>
105993         * modules/printf-frexp (Files): Add m4/frexp.m4.
105994         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105995         only if the found frexp function actually works.
105997 2007-03-22  Bruno Haible  <bruno@clisp.org>
105999         * lib/frexp.c: Remove older implementation that uses divisions.
106001 2007-03-21  Bruno Haible  <bruno@clisp.org>
106003         * modules/frexp-tests: New file.
106004         * tests/test-frexp.c: New file.
106006         * modules/frexp: New file.
106007         * lib/frexp.c: New file.
106008         * m4/frexp.m4: New file.
106009         * lib/math_.h (frexp): New declaration.
106010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
106011         REPLACE_FREXP.
106012         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
106014 2007-03-21  Bruno Haible  <bruno@clisp.org>
106016         * modules/isnanl-tests: New file.
106017         * tests/test-isnanl.c: New file.
106019         * modules/isnanl: New file.
106020         * lib/isnanl.h: New file.
106021         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
106022         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
106023         gl_FUNC_ISNANL_WORKS.
106024         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
106025         New macros.
106027 2007-03-21  Bruno Haible  <bruno@clisp.org>
106029         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
106030         lib/isnanl.h.
106031         (Include): Update.
106032         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
106033         * lib/vasnprintf.c: Update.
106034         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
106035         tests/test-isnanl.h, remove tests/test-isnanl.c.
106036         (Makefile.am): Update.
106037         * tests/test-isnanl-nolibm.c: New file.
106038         * tests/test-isnanl.h: New file.
106039         * tests/test-isnanl.c: Remove file.
106041 2007-03-21  Jim Meyering  <jim@meyering.net>
106043         When trying to open ".", treat ESTALE like EACCES.
106044         * lib/savewd.c (savewd_save): Resort to forking not just upon
106045         failure with EACCES, but also when errno is ESTALE.
106047 2007-03-20  Bruno Haible  <bruno@clisp.org>
106049         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
106050         Needed on AIX 5.1. Reported by Matthew Woehlke.
106052 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106054         Suggestions by Bruno Haible:
106055         * lib/acl-internal.h: Include "gettext.h" rather than rolling
106056         our own.
106057         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
106058         * modules/acl (Depends-on): Add gettext.
106060 2007-03-19  Bruno Haible  <bruno@clisp.org>
106062         * modules/iconvme: Remove file.
106063         * lib/iconvme.h: Remove file.
106064         * lib/iconvme.c: Remove file.
106065         * m4/iconvme.m4: Remove file.
106067 2007-03-19  Bruno Haible  <bruno@clisp.org>
106069         * doc/relocatable-maint.texi: Break long shell script line.
106070         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106072 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106074         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
106075         handle file_has_acl.
106076         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
106077         * lib/acl.c: Move header inclusions and related macro defns into
106078         lib/acl-internal.h.
106079         (S_ISLNK): Remove defn, since that's now done for us.
106080         (file_has_acl): Move to lib/file-has-acl.c.
106081         Call acl_trivial if available.  This is the crucial part of the fix.
106082         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
106083         shared within the library.  Rewrite a bit, partly to make it compatible
106084         with the GNU coding style.
106085         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
106086         Remove unnecessary double-quotes.
106087         Don't test for acl_to_text; the build will catch that.
106088         Replace acl_entries if it doesn't exist and it is needed.
106089         Check for -lsec and acl_trivial (as used on Solaris 10).
106090         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
106091         lib/file-has-acl.c.
106092         (Depends-on): Add sys_stat, for S_ISLNK.
106094 2007-03-19  Ben Pfaff  <blp@gnu.org>
106096         * doc/gnulib.texi: Fix typos.
106097         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106099 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106101         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
106102         If size is zero here, buf must be zero.
106104 2007-03-19  Simon Josefsson  <simon@josefsson.org>
106106         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
106107         <bruno@clisp.org>.
106109 2007-03-18  Bruno Haible  <bruno@clisp.org>
106111         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
106112         Suggested by Eric Blake.
106114 2007-03-18  Ben Pfaff  <blp@gnu.org>
106116         * doc/relocatable.texi: Recommend using as prefix a directory
106117         that does not exist and will never be created.  Based on
106118         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
106119         and others.
106121 2007-03-17  Bruno Haible  <bruno@clisp.org>
106123         * lib/fchownat.c: Include lchown.h.
106125 2007-03-17  Bruno Haible  <bruno@clisp.org>
106127         Fix endless loop when the given allocated size was > INT_MAX.
106128         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
106129         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
106130         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
106131         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
106132         * lib/sprintf.c (sprintf): Likewise.
106134 2007-03-17  Bruno Haible  <bruno@clisp.org>
106136         * tests/test-argp-2.sh (func_compare): Output a context diff.
106138 2007-03-17  Bruno Haible  <bruno@clisp.org>
106140         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
106141         locale's decimal-point character.
106143 2007-03-17  Bruno Haible  <bruno@clisp.org>
106145         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
106146         before comparing it. Needed because on some platforms (e.g. x86) a
106147         'long double' occupies less bytes than sizeof (long double).
106149 2007-03-17  Bruno Haible  <bruno@clisp.org>
106151         * tests/test-crc.c (main): Make printf statements 64-bit clean.
106152         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
106153         * tests/test-getaddrinfo.c (simple): Likewise.
106154         * tests/test-read-file.c (main): Likewise.
106156 2007-03-17  Bruno Haible  <bruno@clisp.org>
106158         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
106160 2007-03-17  Bruno Haible  <bruno@clisp.org>
106162         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
106163         unused variable.
106165 2007-03-17  Bruno Haible  <bruno@clisp.org>
106167         * tests/test-c-strcasecmp.c: Include c-strcase.h.
106168         * tests/test-c-strncasecmp.c: Likewise.
106170 2007-03-17  Bruno Haible  <bruno@clisp.org>
106172         * modules/stdlib (Depends-on): Add unistd.
106173         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106174         Needed for MacOS X 10.3.
106176 2007-03-17  Bruno Haible  <bruno@clisp.org>
106178         * lib/unistr/u-strdup.h: Include <stdlib.h>.
106180 2007-03-17  Bruno Haible  <bruno@clisp.org>
106182         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
106184 2007-03-17  Bruno Haible  <bruno@clisp.org>
106186         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
106187         to reflect files copied from gnulib (with or without modifications).
106188         Suggested by Jim Meyering.
106190 2007-03-17  Eric Blake  <ebb9@byu.net>
106192         * NEWS: Document stdlib change from 2007-02-18.
106194 2007-03-17  Jim Meyering  <jim@meyering.net>
106196         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
106197         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
106198         someone uses a name containing shell meta-characters.
106199         Reported by Alfred M. Szmidt.
106201         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
106203 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106205         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
106206         and copy gettext configuration files only if configure.ac contains
106207         a use of AM_GNU_GETTEXT_VERSION.
106209 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106211         * build-aux/bootstrap (gnulib_name): New variable.
106212         (gnulib_tool_options): Use it.
106214 2007-03-13  Simon Josefsson  <simon@josefsson.org>
106216         * tests/test-des.c: Use new namespace.
106218 2007-03-15  Bruno Haible  <bruno@clisp.org>
106220         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
106221         Reported by James Youngman <jay@gnu.org>.
106223 2007-03-15  Bruno Haible  <bruno@clisp.org>
106225         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
106226         declared prototype. Needed with cc on OSF/1 5.1.
106228 2007-03-15  Bruno Haible  <bruno@clisp.org>
106230         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
106231         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
106232         (struct gl_list_implementation): Add dispose_fn argument to the
106233         'create_empty', 'create' methods.
106234         (struct gl_list_impl_base): Add field 'dispose_fn'.
106235         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
106236         argument.
106237         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
106238         dispose_fn argument.
106239         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
106240         dispose_fn on the dropped values.
106241         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106242         dispose_fn argument.
106243         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
106244         dropped values.
106245         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
106246         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106247         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
106248         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106249         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
106250         argument.
106251         (gl_tree_list_free): Call dispose_fn on the dropped values.
106252         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
106253         the dropped values.
106254         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106255         Add dispose_fn argument.
106256         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
106257         Call dispose_fn on the dropped values.
106258         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
106259         Add dispose_fn argument.
106260         (gl_sublist_create): Initialize the 'dispose_fn' field.
106261         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
106262         * tests/test-array_list.c (main): Update.
106263         * tests/test-carray_list.c (main): Update.
106264         * tests/test-avltree_list.c (main): Update.
106265         * tests/test-rbtree_list.c (main): Update.
106266         * tests/test-avltreehash_list.c (main): Update.
106267         * tests/test-rbtreehash_list.c (main): Update.
106268         * tests/test-linked_list.c (main): Update.
106269         * tests/test-linkedhash_list.c (main): Update.
106270         * tests/test-array_oset.c (main): Update.
106272 2007-03-15  Bruno Haible  <bruno@clisp.org>
106274         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
106275         (gl_oset_create_empty): Add dispose_fn argument.
106276         (struct gl_oset_implementation): Add dispose_fn argument to
106277         'create_empty' method.
106278         (struct gl_oset_impl_base): Add dispose_fn field.
106279         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
106280         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
106281         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
106282         values.
106283         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
106284         (gl_tree_oset_free): Call dispose_fn on the dropped values.
106285         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106286         dropped value.
106287         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106288         dropped value.
106289         * tests/test-array_oset.c (main): Update.
106290         * tests/test-avltree_oset.c (main): Update.
106291         * tests/test-rbtree_oset.c (main): Update.
106292         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
106294 2007-03-13  Bruno Haible  <bruno@clisp.org>
106296         * tests/test-stdbool.c (i): Update after last patch.
106298 2007-03-12  Bruno Haible  <bruno@clisp.org>
106300         * lib/quotearg.c: Include <wctype.h> early, before the definition of
106301         the iswprint macro. Needed on Solaris 2.5.1.
106303 2007-03-12  Bruno Haible  <bruno@clisp.org>
106305         * tests/test-printf-frexp.c (main): Declare x as volatile.
106307 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106309         * doc/gnulib.texi (Build robot for gnulib): New section.
106311 2007-03-12  Jim Meyering  <jim@meyering.net>
106313         * build-aux/bootstrap: New file.
106314         * build-aux/bootstrap.conf: New file, from coreutils.
106316 2007-03-11  Bruno Haible  <bruno@clisp.org>
106318         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
106320 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106322         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
106323         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
106324         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
106326 2007-03-11  Bruno Haible  <bruno@clisp.org>
106328         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
106329         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
106331 2007-03-11  Bruno Haible  <bruno@clisp.org>
106333         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
106334         formula. Needed for SunPRO C 5.0.
106336 2007-03-11  Bruno Haible  <bruno@clisp.org>
106338         * modules/long-options (Depends-on): Add getopt.
106340 2007-03-11  Bruno Haible  <bruno@clisp.org>
106342         * modules/modechange (Depends-on): Add stdbool.
106344 2007-03-11  Bruno Haible  <bruno@clisp.org>
106346         * modules/i-ring (Depends-on): Add stdbool.
106348 2007-03-11  Bruno Haible  <bruno@clisp.org>
106350         * modules/gc-des (Depends-on): Add stdbool.
106352 2007-03-11  Bruno Haible  <bruno@clisp.org>
106354         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106356 2007-03-11  Bruno Haible  <bruno@clisp.org>
106358         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106360 2007-03-11  Bruno Haible  <bruno@clisp.org>
106362         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106364 2007-03-11  Bruno Haible  <bruno@clisp.org>
106366         * lib/vasnprintf.c (sprintf): Undefine.
106368 2007-03-11  Bruno Haible  <bruno@clisp.org>
106370         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106371         initializers in SunPRO C and Compaq C compilers.
106373 2007-03-11  Bruno Haible  <bruno@clisp.org>
106375         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106376         decrementing code ANSI C compliant.
106378 2007-03-11  Bruno Haible  <bruno@clisp.org>
106380         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106381         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106383 2007-03-11  Bruno Haible  <bruno@clisp.org>
106385         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106386         <stdbool.h> substitute doesn't pass.
106388 2007-03-11  Bruno Haible  <bruno@clisp.org>
106390         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106392 2007-03-11  Bruno Haible  <bruno@clisp.org>
106394         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106395         script, for submission to autobuild.josefsson.org.
106397 2007-03-10  Bruno Haible  <bruno@clisp.org>
106399         * modules/canonicalize-lgpl-tests: New file.
106400         * tests/test-canonicalize-lgpl.sh: New file.
106401         * tests/test-canonicalize-lgpl.c: New file.
106403         * modules/c-strcase-tests: New file.
106404         * tests/test-c-strcase.sh: New file.
106405         * tests/test-c-strcasecmp.c: New file.
106406         * tests/test-c-strncasecmp.c: New file.
106408         * modules/atexit-tests: New file.
106409         * tests/test-atexit.sh: New file.
106410         * tests/test-atexit.c: New file.
106412 2007-03-10  Bruno Haible  <bruno@clisp.org>
106414         * tests/test-binary-io.sh: Use temporary filenames that are not so
106415         likely to clash with those of other tests (in a parallel make).
106416         * tests/test-binary-io.c: Likewise.
106418 2007-03-10  Bruno Haible  <bruno@clisp.org>
106420         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106421         fallback; use #error instead.
106422         Suggested by Simon Josefsson.
106424 2007-03-10  Bruno Haible  <bruno@clisp.org>
106426         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106427         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106428         first and the last.
106430 2007-03-10  Bruno Haible  <bruno@clisp.org>
106432         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106434 2007-03-10  Bruno Haible  <bruno@clisp.org>
106436         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106437         "make distcheck".
106438         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106439         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106440         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106442 2007-03-10  Bruno Haible  <bruno@clisp.org>
106444         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106445         variable.
106446         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106447         variable.
106449 2007-03-09  Eric Blake  <ebb9@byu.net>
106450         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106452         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
106453         types are not being provided by gnulib.
106454         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
106455         types are supported.
106457 2007-03-10  Bruno Haible  <bruno@clisp.org>
106459         * lib/stdio_.h (__attribute__): New macro.
106460         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
106461         vsprintf): Specify __attribute__ __format__ for GCC.
106462         Suggested by Eric Blake.
106464 2007-03-09  Bruno Haible  <bruno@clisp.org>
106466         * modules/printf-posix-tests: New file.
106467         * tests/test-printf-posix.sh: New file.
106468         * tests/test-printf-posix.c: New file.
106470         * modules/printf-posix: New file.
106471         * lib/printf.c: New file.
106472         * m4/printf-posix-rpl.m4: New file.
106473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
106474         REPLACE_PRINTF.
106475         * lib/stdio_.h (printf): New declaration.
106476         (format, __format__, ____printf____, ____scanf____, ____strftime____,
106477         ____strfmon____): New macros.
106478         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
106479         REPLACE_PRINTF.
106481 2007-03-09  Bruno Haible  <bruno@clisp.org>
106483         * tests/test-vasnprintf-posix2.sh: New file.
106484         * tests/test-vasnprintf-posix2.c: New file.
106485         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
106486         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
106487         (Makefile.am): Activate test-vasnprintf-posix2.sh.
106489         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
106490         a locale dependent decimal point, rather than always '.'.
106492 2007-03-09  Eric Blake  <ebb9@byu.net>
106494         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
106495         spite of platforms like Tandem/NSK that define it to -1.
106497 2007-03-08  Bruno Haible  <bruno@clisp.org>
106499         * modules/vprintf-posix-tests: New file.
106500         * tests/test-vprintf-posix.sh: New file.
106501         * tests/test-vprintf-posix.c: New file.
106502         * tests/test-printf-posix.h: New file.
106504         * modules/vprintf-posix: New file.
106505         * lib/vprintf.c: New file.
106506         * m4/vprintf-posix.m4: New file.
106507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
106508         REPLACE_VPRINTF.
106509         * lib/stdio_.h (vprintf): New declaration.
106510         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
106511         REPLACE_VPRINTF.
106513 2007-03-08  Bruno Haible  <bruno@clisp.org>
106515         * modules/fprintf-posix-tests: New file.
106516         * tests/test-fprintf-posix.sh: New file.
106517         * tests/test-fprintf-posix.c: New file.
106519         * modules/fprintf-posix: New file.
106520         * lib/fprintf.c: New file.
106521         * m4/fprintf-posix.m4: New file.
106522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
106523         REPLACE_FPRINTF.
106524         * lib/stdio_.h (fprintf): New declaration.
106525         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
106526         REPLACE_FPRINTF.
106528 2007-03-08  Bruno Haible  <bruno@clisp.org>
106530         * modules/vfprintf-posix-tests: New file.
106531         * tests/test-vfprintf-posix.sh: New file.
106532         * tests/test-vfprintf-posix.c: New file.
106533         * tests/test-fprintf-posix.h: New file.
106534         * tests/test-fprintf-posix.out: New file.
106536         * modules/vfprintf-posix: New file.
106537         * lib/vfprintf.c: New file.
106538         * m4/vfprintf-posix.m4: New file.
106539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
106540         REPLACE_VFPRINTF.
106541         * lib/stdio_.h (vfprintf): New declaration.
106542         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
106543         REPLACE_VFPRINTF.
106545 2007-03-08  Bruno Haible  <bruno@clisp.org>
106547         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
106549 2007-03-08  Bruno Haible  <bruno@clisp.org>
106551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
106552         instead of 'expr' invocations.
106553         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106554         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106555         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106556         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
106557         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106558         Suggested by Paul Eggert.
106560 2007-03-08  Bruno Haible  <bruno@clisp.org>
106562         * modules/fseterr-tests: New file.
106563         * tests/test-fseterr.c: New file.
106565         * modules/fseterr: New file.
106566         * lib/fseterr.h: New file.
106567         * lib/fseterr.c: New file.
106569 2007-03-08  Bruno Haible  <bruno@clisp.org>
106571         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
106572         * lib/getopt_.h: Likewise.
106573         * lib/mbswidth.h: Likewise.
106574         * lib/setenv.h: Likewise.
106575         * lib/vasnprintf.h: Likewise.
106576         * lib/vasprintf.h: Likewise.
106577         * lib/verror.h: Likewise.
106578         * lib/xsetenv.h: Likewise.
106579         * lib/xvasprintf.h: Likewise.
106581 2007-03-08  Jim Meyering  <jim@meyering.net>
106583         * users.txt: Add parted.
106585         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
106587 2007-03-07  Bruno Haible  <bruno@clisp.org>
106589         * m4/printf.m4: Make the shell script snippets copy&pastable.
106591 2007-03-02  Bruno Haible  <bruno@clisp.org>
106593         * lib/netinet_in_.h: New file.
106594         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106595         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106596         * modules/netinet_in (Files): Add lib/netinet_in_.h.
106597         (Depends-on): Add absolute-header.
106598         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
106599         into netinet/in.h.
106601 2007-03-03  Bruno Haible  <bruno@clisp.org>
106603         * lib/sys_select_.h: New file.
106604         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
106605         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
106606         * modules/sys_select (Files): Add lib/sys_select_.h.
106607         (Depends-on): Add absolute-header.
106608         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
106609         into sys/select.h.
106611 2007-03-02  Bruno Haible  <bruno@clisp.org>
106613         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
106614         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
106615         values.
106616         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
106617         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
106618         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
106619         * modules/sys_socket (Depends-on): Add absolute-header.
106620         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
106621         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
106622         (Include): Remove requirement of inclusion of <sys/types.h>.
106624 2007-03-02  Bruno Haible  <bruno@clisp.org>
106626         * lib/byteswap_.h (bswap_32): Fix formula.
106628 2007-03-06  Bruno Haible  <bruno@clisp.org>
106630         * modules/sprintf-posix-tests: New file.
106631         * tests/test-sprintf-posix.c: New file.
106633         * modules/sprintf-posix: New file.
106634         * lib/sprintf.c: New file.
106635         * m4/sprintf-posix.m4: New file.
106636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
106637         REPLACE_SPRINTF.
106638         * lib/stdio_.h (sprintf): New declaration.
106639         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
106640         REPLACE_SPRINTF.
106642 2007-03-06  Bruno Haible  <bruno@clisp.org>
106644         * modules/vsprintf-posix-tests: New file.
106645         * tests/test-vsprintf-posix.c: New file.
106646         * tests/test-sprintf-posix.h: New file.
106648         * modules/vsprintf-posix: New file.
106649         * lib/vsprintf.c: New file.
106650         * m4/vsprintf-posix.m4: New file.
106651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
106652         REPLACE_VSPRINTF.
106653         * lib/stdio_.h (vsprintf): New declaration.
106654         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
106655         REPLACE_VSPRINTF.
106657 2007-03-06  Bruno Haible  <bruno@clisp.org>
106659         * modules/vsnprintf (Depend-on): Remove minmax.
106661 2007-03-06  Bruno Haible  <bruno@clisp.org>
106663         * modules/snprintf-posix-tests: New file.
106664         * tests/test-snprintf-posix.c: New file.
106666         * modules/snprintf-posix: New file.
106667         * m4/snprintf-posix.m4: New file.
106668         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106669         gl_FUNC_SNPRINTF.
106670         (gl_FUNC_SNPRINTF): Invoke it.
106671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106672         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106673         is set.
106674         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106676 2007-03-06  Bruno Haible  <bruno@clisp.org>
106678         * modules/vsnprintf-posix-tests: New file.
106679         * tests/test-vsnprintf-posix.c: New file.
106680         * tests/test-snprintf-posix.h: New file.
106682         * modules/vsnprintf-posix: New file.
106683         * m4/vsnprintf-posix.m4: New file.
106684         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106685         gl_FUNC_VSNPRINTF.
106686         (gl_FUNC_VSNPRINTF): Invoke it.
106687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106688         * lib/stdio_.h (vsnprintf): Define as a replacement if
106689         REPLACE_VSNPRINTF is set.
106690         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106692 2007-03-06  Bruno Haible  <bruno@clisp.org>
106694         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106697 2007-03-06  Bruno Haible  <bruno@clisp.org>
106699         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106700         (asinl): Declare also if HAVE_DECL_ASINL is set.
106701         (atanl): Declare also if HAVE_DECL_ATANL is set.
106702         (ceill): Declare also if HAVE_DECL_CEILL is set.
106703         (cosl): Declare also if HAVE_DECL_COSL is set.
106704         (expl): Declare also if HAVE_DECL_EXPL is set.
106705         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106706         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106707         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106708         (logl): Declare also if HAVE_DECL_LOGL is set.
106709         (sinl): Declare also if HAVE_DECL_SINL is set.
106710         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106711         (tanl): Declare also if HAVE_DECL_TANL is set.
106712         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106715         declaration of frexpl, ldexpl.
106716         * modules/printf-frexpl (Depends-on): Add math.
106717         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106719 2007-03-05  Bruno Haible  <bruno@clisp.org>
106721         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106722         frexpl and ldexpl are declared.
106723         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106725 2007-03-05  Bruno Haible  <bruno@clisp.org>
106727         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106728         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106730 2007-03-05  Bruno Haible  <bruno@clisp.org>
106732         * lib/stdio_.h: Include <stddef.h>.
106734 2007-03-05  Bruno Haible  <bruno@clisp.org>
106736         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106738 2007-03-05  Bruno Haible  <bruno@clisp.org>
106740         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106741         NetBSD 4, from Ralf Wildenhues.
106743 2007-03-04  Bruno Haible  <bruno@clisp.org>
106745         * lib/vasprintf.h: Update #if logic for the case when the functions
106746         exist but are overridden.
106748 2007-03-04  Bruno Haible  <bruno@clisp.org>
106750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106751         implementations: glibc-2.4 and MacOS X 10.3.
106752         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106753         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106754         * tests/test-vasprintf-posix.c (test_function): Likewise.
106756 2007-03-04  Bruno Haible  <bruno@clisp.org>
106758         * modules/vasprintf-posix-tests: New file.
106759         * tests/test-vasprintf-posix.c: New file.
106761         * modules/vasprintf-posix: New file.
106762         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106763         defined.
106764         * m4/vasprintf-posix.m4: New file.
106765         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106766         gl_FUNC_VASPRINTF.
106767         (gl_FUNC_VASPRINTF): Invoke it.
106768         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106769         here.
106770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106772 2007-03-04  Bruno Haible  <bruno@clisp.org>
106774         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106775         REPLACE_GETTIMEOFDAY.
106776         * modules/sys_time (Makefile.am): Likewise.
106777         * m4/sys_time_h.m4: Likewise.
106778         * m4/gettimeofday.m4: Likewise.
106780 2007-03-04  Bruno Haible  <bruno@clisp.org>
106782         * modules/vasnprintf-posix-tests: New file.
106783         * tests/test-vasnprintf-posix.c: New file.
106785         * modules/vasnprintf-posix: New file.
106786         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106787         printf-frexpl.h.
106788         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106789         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106790         REPLACE_VASNPRINTF is defined.
106791         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106792         gl_FUNC_VASNPRINTF.
106793         (gl_FUNC_VASNPRINTF): Invoke it.
106794         * m4/vasnprintf-posix.m4: New file.
106795         * m4/printf.m4: New file.
106797 2007-03-04  Bruno Haible  <bruno@clisp.org>
106799         Compile progreloc.c only if --enable-relocatable is specified.
106800         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106801         if --enable-relocatable was specified.
106802         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106803         lib_SOURCES.
106805 2007-03-04  Jim Meyering  <jim@meyering.net>
106807         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106808         Use it consistently, rather than enumerating errno constants.
106810 2007-03-04  Bruno Haible  <bruno@clisp.org>
106812         * modules/xvasprintf-tests: New file.
106813         * tests/test-xvasprintf.c: New file.
106815         * modules/vasprintf-tests: New file.
106816         * tests/test-vasprintf.c: New file.
106818         * modules/vasnprintf-tests: New file.
106819         * tests/test-vasnprintf.c: New file.
106821         * modules/vsnprintf-tests: New file.
106822         * tests/test-vsnprintf.c: New file.
106824         * modules/snprintf-tests: New file.
106825         * tests/test-snprintf.c: New file.
106827 2007-03-04  Bruno Haible  <bruno@clisp.org>
106829         Compile relocatable.c only if --enable-relocatable is specified.
106830         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106831         gl_RELOCATABLE_LIBRARY.
106832         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106833         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106834         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106835         gl_RELOCATABLE_LIBRARY.
106836         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106837         (Makefile.am): Remove lib_SOURCES.
106838         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106839         gl_RELOCATABLE_LIBRARY.
106840         (Makefile.am): Remove lib_SOURCES.
106841         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106842         always.
106843         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106844         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106846 2007-03-04  Bruno Haible  <bruno@clisp.org>
106848         * modules/argmatch-tests: New file.
106849         * tests/test-argmatch.c: New file.
106851         * tests/test-allocsa.c (main): Halve the number of loop runs.
106853         * modules/alloca-opt-tests: New file.
106854         * tests/test-alloca-opt.c: New file.
106856 2007-03-04  Jim Meyering  <jim@meyering.net>
106858         Work around difference between Linux ACLs and Solaris 10 ZFS.
106859         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106860         for EINVAL.
106862 2007-03-03  Bruno Haible  <bruno@clisp.org>
106864         * modules/relocatable-prog (Depends-on): Add back progreloc's
106865         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106867 2007-03-03  Bruno Haible  <bruno@clisp.org>
106869         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106870         * modules/relocatable-lib: New file.
106872 2007-03-03  Bruno Haible  <bruno@clisp.org>
106874         * modules/relocatable-prog: Renamed from modules/relocatable.
106875         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106877 2007-03-03  Bruno Haible  <bruno@clisp.org>
106879         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106880         m4/relocatable-lib.m4.
106881         (Depends-on): Remove 'relocatable'.
106882         (configure.ac): Add gl_RELOCATABLE_NOP.
106884 2007-03-03  Bruno Haible  <bruno@clisp.org>
106886         * modules/relocatable-prog-wrapper: New file.
106887         * modules/relocatable (Depends-on): Add it. Remove all other
106888         dependencies except progname.
106889         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106891         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106892         (gl_FUNC_STRERROR): Nop.
106893         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106895         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106896         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106898         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106899         (gl_FUNC_READLINK): Update.
106901         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106903 2007-03-03  Bruno Haible  <bruno@clisp.org>
106905         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106906         * modules/xreadlink (Depends-on): Add unistd.
106907         * modules/xreadlink-with-size (Depends-on): Likewise.
106909 2007-03-03  Bruno Haible  <bruno@clisp.org>
106911         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106912         extracted from gt_FUNC_SETENV.
106913         (gt_FUNC_SETENV): Remove macro.
106914         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106915         remove gt_FUNC_SETENV.
106917 2007-03-03  Bruno Haible  <bruno@clisp.org>
106919         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106920         ENABLE_RELOCATABLE here.
106921         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106923 2007-03-03  Bruno Haible  <bruno@clisp.org>
106925         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106926         * tests/test-rbtreehash_list.c: Include progname.h.
106927         (main): Call set_program_name.
106929         * modules/rbtree-oset-tests (Depends-on): Add progname.
106930         * tests/test-rbtree_oset.c: Include progname.h.
106931         (main): Call set_program_name.
106933         * modules/rbtree-list-tests (Depends-on): Add progname.
106934         * tests/test-rbtree_list.c: Include progname.h.
106935         (main): Call set_program_name.
106937         * modules/linked-list-tests (Depends-on): Add progname.
106938         * tests/test-linked_list.c: Include progname.h.
106939         (main): Call set_program_name.
106941 2007-03-03  Bruno Haible  <bruno@clisp.org>
106943         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106944         All uses of __restrict changed to _Restrict_.
106945         * lib/glob_.h (__restrict): Remove macro.
106947 2007-03-02  Bruno Haible  <bruno@clisp.org>
106949         * modules/gettext (configure.ac): Require gettext infrastructure
106950         from version 0.16.1.
106952 2007-03-02  Bruno Haible  <bruno@clisp.org>
106954         * modules/linkedhash-list-tests (Depends-on): Add progname.
106955         * tests/test-linkedhash_list.c: Include progname.h.
106956         (main): Call set_program_name.
106958         * modules/carray-list-tests (Depends-on): Add progname.
106959         * tests/test-carray_list.c: Include progname.h.
106960         (main): Call set_program_name.
106962         * modules/avltreehash-list-tests (Depends-on): Add progname.
106963         * tests/test-avltreehash_list.c: Include progname.h.
106964         (main): Call set_program_name.
106966         * modules/avltree-oset-tests (Depends-on): Add progname.
106967         * tests/test-avltree_oset.c: Include progname.h.
106968         (main): Call set_program_name.
106970         * modules/avltree-list-tests (Depends-on): Add progname.
106971         * tests/test-avltree_list.c: Include progname.h.
106972         (main): Call set_program_name.
106974         * modules/array-oset-tests (Depends-on): Add progname.
106975         * tests/test-array_oset.c: Include progname.h.
106976         (main): Call set_program_name.
106978         * modules/array-list-tests (Depends-on): Add progname.
106979         * tests/test-array_list.c: Include progname.h.
106980         (main): Call set_program_name.
106982         * modules/argp-tests (Depends-on): Add progname.
106983         * tests/test-argp.c: Include argp.h first. Include progname.h.
106984         (main): Call set_program_name.
106986 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106988         * doc/gnulib-tool.texi (Initial import): Reword description of
106989         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106990         limited effect even if defined after the first system include.
106992 2007-03-01  Bruno Haible  <bruno@clisp.org>
106994         * build-aux/config.libpath: Update to libtool-1.5.22.
106995         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106997 2007-03-01  Bruno Haible  <bruno@clisp.org>
106999         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
107000         foo_CFLAGS.
107001         Reported by Ralf Wildenhues.
107003 2007-03-01  Bruno Haible  <bruno@clisp.org>
107005         * build-aux/install-reloc: Remove object files left over by some
107006         compilers.
107007         Reported by Ralf Wildenhues.
107009 2007-03-01  Bruno Haible  <bruno@clisp.org>
107011         * build-aux/install-reloc: Break long lines.
107013 2007-03-01  Bruno Haible  <bruno@clisp.org>
107015         * doc/relocatable.texi: Document that it may not work on OpenBSD.
107016         Reported by Ralf Wildenhues.
107018 2007-03-01  Bruno Haible  <bruno@clisp.org>
107020         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
107021         include ordering constraints.
107023 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107025         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
107026         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
107027         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
107028         as another example.
107029         * lib/time_.h: Fix misspelling.
107030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107031         Require gl_HEADER_TIME_H_DEFAULTS.
107032         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
107033         * m4/time_r.m4 (gl_TIME_R): Likewise.
107034         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
107036 2007-03-01  Bruno Haible  <bruno@clisp.org>
107038         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
107039         * m4/utimens.m4 (gl_UTIMENS): Likewise.
107041 2007-03-01  Jim Meyering  <jim@meyering.net>
107043         * modules/xreadlink (Maintainer): Add my name.
107044         * modules/xreadlink-with-size (Depends-on): Alphabetize.
107046 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
107047             Bruno Haible  <bruno@clisp.org>
107049         * build-aux/install-reloc: Compile also c-ctype.c.
107050         * build-aux/relocatable.sh.in: New file.
107051         * doc/relocatable.texi: New file.
107052         * doc/relocatable-maint.texi: New file.
107053         * doc/gnulib.texi: Include relocatable-maint.texi.
107054         * lib/progreloc.c: Include unistd.h unconditionally.
107055         * lib/relocwrapper.c: Include unistd.h unconditionally.
107056         Include c-ctype.h.
107057         (add_dotbin): Use c_tolower.
107058         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
107059         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
107060         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
107061         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
107062         to m4/relocatable-lib.m4.
107063         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
107064         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
107065         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
107066         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
107067         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
107068         * modules/relocatable: New file.
107069         * modules/relocatable-lib: New file.
107070         * modules/relocatable-script: New file.
107072 2007-02-28  Bruno Haible  <bruno@clisp.org>
107074         Import --enable-relocatable infrastructure.
107075         * build-aux/config.libpath: New file, from GNU gettext.
107076         * build-aux/install-reloc: New file, from GNU gettext.
107077         * build-aux/reloc-ldflags: New file, from GNU gettext.
107078         * lib/relocatable.h: New file, from GNU gettext.
107079         * lib/relocatable.c: New file, from GNU gettext.
107080         * lib/relocwrapper.c: New file, from GNU gettext.
107081         * m4/relocatable.m4: New file, from GNU gettext.
107083 2007-02-28  Bruno Haible  <bruno@clisp.org>
107085         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
107087         * modules/xreadlink: New file, from GNU gettext with modifications.
107088         * lib/xreadlink.c: New file, from GNU gettext.
107089         * lib/xreadlink.h: Add comments.
107090         (xreadlink): New declaration.
107092         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
107093         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
107094         lib/xreadlink-with-size.c.
107095         (configure.ac): Remove gl_XREADLINK invocation.
107096         (Makefile.am): Augment lib_SOURCES.
107097         * m4/xreadlink.m4: Remove file.
107098         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
107099         (xreadlink_with_size): Renamed from xreadink.
107100         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
107101         * modules/canonicalize (Depends-on): Replace xreadlink with
107102         xreadlink-with-size.
107103         * lib/canonicalize.c (canonicalize_filename_mode): Update.
107105 2007-02-25  Jim Meyering  <jim@meyering.net>
107107         * build-aux/announce-gen: When complaining about excess arguments,
107108         list them.
107110 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107112         * README: Document signed integer overflow situation more
107113         accurately.
107115 2007-02-25  Bruno Haible  <bruno@clisp.org>
107117         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
107118         'a' or 'A' conversion.
107120 2007-02-25  Bruno Haible  <bruno@clisp.org>
107122         * modules/filename: Renamed from modules/pathname.
107123         (Files): Replace lib/pathname.h with lib/filename.h. Replace
107124         lib/concatpath.c with lib/concat-filename.c.
107125         (Makefile.am): Update.
107126         (Include): Replace pathname.h with filename.h.
107127         * lib/filename.h: Renamed from lib/pathname.h.
107128         (concatenated_filename): Renamed from concatenated_pathname.
107129         * lib/concat-filename.c: Renamed from lib/concatpath.c.
107130         (concatenated_filename): Renamed from concatenated_pathname.
107131         * lib/findprog.c: Include filename.h instead of pathname.h.
107132         (find_in_path): Update.
107133         * lib/javacomp.c: Include filename.h instead of pathname.h.
107134         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
107135         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
107136         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
107137         is_oldgcj_14_13_usable, is_javac_usable): Update.
107138         * lib/javaexec.c: Include filename.h instead of pathname.h.
107139         (execute_java_class): Update.
107140         * modules/findprog: Update.
107141         * modules/javacomp: Update.
107142         * modules/javaexec: Update.
107143         * MODULES.html.sh (File system functions): Add 'filename', remove
107144         'pathname'.
107146 2007-02-25  Bruno Haible  <bruno@clisp.org>
107148         * modules/printf-frexpl-tests: New file.
107149         * tests/test-printf-frexpl.c: New file.
107151         * modules/printf-frexpl: New file.
107152         * lib/printf-frexpl.h: New file.
107153         * lib/printf-frexpl.c: New file.
107154         * m4/printf-frexpl.m4: New file.
107156 2007-02-25  Bruno Haible  <bruno@clisp.org>
107158         * modules/printf-frexp-tests: New file.
107159         * tests/test-printf-frexp.c: New file.
107161         * modules/printf-frexp: New file.
107162         * lib/printf-frexp.h: New file.
107163         * lib/printf-frexp.c: New file.
107164         * m4/printf-frexp.m4: New file.
107166 2007-02-25  Bruno Haible  <bruno@clisp.org>
107168         Assume automake >= 1.10 for the tests.
107169         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
107170         * modules/arctwo-tests: Likewise.
107171         * modules/argp-tests: Likewise.
107172         * modules/avltree-list-tests: Likewise.
107173         * modules/avltree-oset-tests: Likewise.
107174         * modules/avltreehash-list-tests: Likewise.
107175         * modules/carray-list-tests: Likewise.
107176         * modules/crc-tests: Likewise.
107177         * modules/des-tests: Likewise.
107178         * modules/gc-arcfour-tests: Likewise.
107179         * modules/gc-arctwo-tests: Likewise.
107180         * modules/gc-des-tests: Likewise.
107181         * modules/gc-hmac-md5-tests: Likewise.
107182         * modules/gc-hmac-sha1-tests: Likewise.
107183         * modules/gc-md2-tests: Likewise.
107184         * modules/gc-md4-tests: Likewise.
107185         * modules/gc-md5-tests: Likewise.
107186         * modules/gc-pbkdf2-sha1-tests: Likewise.
107187         * modules/gc-rijndael-tests: Likewise.
107188         * modules/gc-sha1-tests: Likewise.
107189         * modules/gc-tests: Likewise.
107190         * modules/getaddrinfo-tests: Likewise.
107191         * modules/hmac-md5-tests: Likewise.
107192         * modules/hmac-sha1-tests: Likewise.
107193         * modules/linked-list-tests: Likewise.
107194         * modules/linkedhash-list-tests: Likewise.
107195         * modules/lock-tests: Likewise.
107196         * modules/md2-tests: Likewise.
107197         * modules/md4-tests: Likewise.
107198         * modules/md5-tests: Likewise.
107199         * modules/rbtree-list-tests: Likewise.
107200         * modules/rbtree-oset-tests: Likewise.
107201         * modules/rbtreehash-list-tests: Likewise.
107202         * modules/read-file-tests: Likewise.
107203         * modules/rijndael-tests: Likewise.
107204         * modules/stdint-tests: Likewise.
107205         * modules/tls-tests: Likewise.
107207 2007-02-24  Bruno Haible  <bruno@clisp.org>
107209         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
107210         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
107211         function; instead check whether isnan with a double argument links.
107212         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
107213         function; instead check whether isnan with a 'long double' argument
107214         links.
107215         Reported by Eric Blake <ebb9@byu.net>.
107217 2007-02-24  Bruno Haible  <bruno@clisp.org>
107219         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
107220         defined.
107221         * lib/isnanl.c: Remove all code. Just include isnan.c.
107222         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
107224 2007-02-25  Jim Meyering  <jim@meyering.net>
107226         Avoid conflicting types for 'unsetenv' on FreeBSD.
107227         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
107228         conflicting with FreeBSD's (5.0 and 6.1) function declaration
107229         in stdlib.h.
107231 2007-02-24  Bruno Haible  <bruno@clisp.org>
107233         * modules/isnanl-nolibm-tests: New file.
107234         * tests/test-isnanl.c: New file.
107236         * modules/isnanl-nolibm: New file.
107237         * lib/isnanl.h: New file.
107238         * lib/isnanl.c: New file.
107239         * m4/isnanl.m4: New file.
107241 2007-02-24  Bruno Haible  <bruno@clisp.org>
107243         * modules/isnan-nolibm-tests: New file.
107244         * tests/test-isnan.c: New file.
107246         * modules/isnan-nolibm: New file.
107247         * lib/isnan.h: New file.
107248         * lib/isnan.c: New file.
107249         * m4/isnan.m4: New file.
107251 2007-02-24  Bruno Haible  <bruno@clisp.org>
107253         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
107254         assume that an exponent fits in 20 bits.
107256 2007-02-24  Jim Meyering  <jim@meyering.net>
107258         * m4/regex.m4: Update the description of the configure-time option,
107259         --without-included-regex, to state accurately what the defaults are,
107260         and perhaps to give people an idea why using this option is risky.
107262 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
107265         loops on small arguments.  This attempts to avoid the problem
107266         Bruno Haible reported for AIX 4.3.2 in
107267         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
107269 2007-02-23  Bruno Haible  <bruno@clisp.org>
107271         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
107272         Needed for help2man.
107274 2007-02-23  Karl Berry  <karl@gnu.org>
107276         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
107277         exists, foo.h should be cvs-ignored, not committed.
107279 2007-02-23  Eric Blake  <ebb9@byu.net>
107281         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
107282         * lib/stat-time.h (includes): Likewise.
107283         * lib/utimecmp.c (includes): Likewise.
107284         * lib/utimens.h (includes): Likewise.
107285         * lib/getdate.y (includes): Also include "timespec.h" for use
107286         internal to the module.
107287         * modules/utimens (Depends-on): Revert yesterday's patch.
107288         * modules/nanosleep (Depends-on): Add missing dependency.
107290 2007-02-22  Bruno Haible  <bruno@clisp.org>
107292         * lib/glob.c: Don't include getlogin_r.h.
107294 2007-02-22  Jim Meyering  <jim@meyering.net>
107296         * modules/utimens (Depends-on): Add timespec, required for
107297         utimens.h's inclusion of timespec.h.
107299 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
107301         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
107302         long unreadable paths in GNU/Linux.  Problem reported by Andreas
107303         Schwab in
107304         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
107305         I'll try to think of a better way to fix the Solaris problem.
107307         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
107308         like glibc; on Solaris 10, it fails with errno == EINVAL.
107309         POSIX says the behavior is unspecified if the first argument is NULL,
107310         so play it safe and never pass NULL to the system getcwd.
107312 2007-02-21  Jim Meyering  <jim@meyering.net>
107314         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
107315         of gettimeofday.  It would conflict with the one now always
107316         provided via sys_time_.h.  Reported by Matthew Woehlke, as
107317         an IRIX 6.5 build failure.
107319 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107321         Minor fixups to port to Solaris 10 with Sun C 5.8.
107322         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
107323         * modules/getcwd (Depends-on): Add dirfd.
107324         * lib/putenv.c (putenv): #undef it.
107325         (rpl_putenv): New decl.
107326         (malloc, free): Include <stdlib.h> rather than prototyping separately.
107328 2007-02-20  Bruno Haible  <bruno@clisp.org>
107330         * modules/stdio-tests: New file.
107331         * tests/test-stdio.c: New file.
107333         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
107334         (Depends-on): Add stdio.
107335         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107336         (Include): Use <stdio.h> instead of vsnprintf.h.
107337         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107338         HAVE_DECL_VSNPRINTF.
107339         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
107341         * modules/snprintf (Files): Remove lib/snprintf.h.
107342         (Depends-on): Add stdio.
107343         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107344         (Include): Use <stdio.h> instead of snprintf.h.
107345         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107346         HAVE_DECL_SNPRINTF.
107347         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107348         * lib/getaddrinfo.c: Likewise.
107350         * modules/stdio: New file.
107351         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107352         * lib/snprintf.h: Remove file.
107353         * lib/vsnprintf.h: Remove file.
107354         * lib/.cppi-disable: Remove snprintf.h.
107355         * m4/stdio_h.m4: New file.
107356         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107358 2007-02-20  Jim Meyering  <jim@meyering.net>
107360         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107361         used by e.g., mingw.  From Bruno Haible.
107363 2007-02-19  Bruno Haible  <bruno@clisp.org>
107365         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107366         warnings.
107367         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107369 2007-02-19  Bruno Haible  <bruno@clisp.org>
107371         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107372         from mingw users.
107374 2007-02-19  Bruno Haible  <bruno@clisp.org>
107376         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107377         warnings.
107378         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107380 2007-02-19  Jim Meyering  <jim@meyering.net>
107382         Don't use FD after a successful "fdopendir (fd)".
107383         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107384         Reset it by calling dirfd on the just-obtained DIR*.
107386         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107387         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107389 2007-02-18  Bruno Haible  <bruno@clisp.org>
107391         * lib/readlink.c: Include <unistd.h>.
107392         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107393         HAVE_READLINK.
107394         * modules/readlink (Depends-on): Add unistd.
107395         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107396         (Include): Add <unistd.h>.
107398         * lib/getlogin_r.h: Remove file.
107399         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107400         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107401         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107402         HAVE_DECL_GETLOGIN_R.
107403         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107405         (Include): Use <unistd.h> instead of getlogin_r.h.
107407         * lib/getcwd.h: Remove file.
107408         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107409         * lib/xgetcwd.c: Likewise.
107410         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107411         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107412         * modules/getcwd (Files): Remove lib/getcwd.h.
107413         (Depends-on): Add unistd.
107414         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107415         (Include): Use <unistd.h> instad of getcwd.h.
107417         * lib/ftruncate.c: Include <unistd.h> first.
107418         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107419         Set HAVE_FTRUNCATE.
107420         * modules/ftruncate (Depends-on): Add unistd.
107421         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107423         * lib/fchdir.c: Include <unistd.h> first.
107424         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107426         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107427         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107428         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107430         * lib/dup2.c: Include <unistd.h> first.
107431         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107432         HAVE_DUP2.
107433         * modules/dup2 (Depends-on): Add unistd.
107434         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107436         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107437         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107438         REPLACE_CHOWN. Don't define chown as a macro here.
107439         * modules/chown (Depends-on): Add unistd.
107440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107442         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107443         Add definition for GL_LINK_WARNING.
107444         (chown, dup2): New declarations.
107445         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107446         link warning.
107447         (ftruncate): New declaration.
107448         (getcwd): New declaration, taken from old getcwd.h.
107449         (getlogin_r): New declaration, taken from old getlogin_r.h.
107450         (readlink): New declaration.
107451         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107452         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
107453         (gl_PREREQ_UNISTD): Remove macro.
107454         (gl_UNISTD_MODULE_INDICATOR): New macro.
107455         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
107456         many new variables. Don't set UNISTD_H.
107457         * modules/unistd (Description): Change.
107458         (Depends-on): Add link-warning.
107459         (configure.ac): Update.
107460         (Makefile.am): Create unistd.h always. Substitute many new variables
107461         into it.
107463 2007-02-18  Bruno Haible  <bruno@clisp.org>
107465         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
107466         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
107467         HAVE_GETSUBOPT.
107468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
107469         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
107470         * lib/getsubopt.h: Remove file.
107471         * modules/getsubopt (Files): Remove lib/getsubopt.h.
107472         (Depends-on): Add stdlib.
107473         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107474         (Includes): Use <stdlib.h> instead of getsubopt.h.
107475         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
107476         Set HAVE_GETSUBOPT.
107477         * lib/getsubopt.c: Don't include getsubopt.h.
107479 2007-02-18  Bruno Haible  <bruno@clisp.org>
107481         * modules/fchdir (Depends-on): Add dup2.
107483 2007-02-18  Bruno Haible  <bruno@clisp.org>
107485         * lib/stdlib_.h: Handle glibc's special invocation convention
107486         specially.
107488 2007-02-18  Bruno Haible  <bruno@clisp.org>
107490         * modules/stdlib-tests: New file.
107491         * tests/test-stdlib.c: New file.
107493         * modules/mkstemp (Files): Remove lib/mkstemp.h.
107494         (Depends-on): Add stdlib.
107495         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107496         (Includes): Use <stdlib.h> instead of mkstemp.h.
107497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107498         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
107499         * lib/mkstemp.c: Don't include mkstemp.h.
107500         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
107501         * lib/stdlib--.h: Don't include mkstemp.h.
107503         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
107504         (Depends-on): Add stdlib.
107505         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107506         (Includes): Use <stdlib.h> instead of mkdtemp.h.
107507         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107508         HAVE_MKDTEMP.
107509         * lib/mkdtemp.c: Don't include mkdtemp.h.
107510         * lib/clean-temp.c: Don't include mkdtemp.h.
107512         * modules/exit (Files): Remove lib/exit.h.
107513         (Depends-on): Add stdlib.
107514         (Makefile.am): Remove lib_SOURCES.
107515         (Include): Use <stdlib.h> instead of exit.h.
107516         * lib/argmatch.c: Don't include exit.h.
107517         * lib/execute.c: Likewise.
107518         * lib/pagealign_alloc.c: Likewise.
107519         * lib/pipe.c: Likewise.
107520         * lib/wait-process.c: Likewise.
107521         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
107522         * lib/exitfail.c: Likewise.
107523         * lib/savewd.c: Likewise.
107524         * lib/xsetenv.c: Likewise.
107526         * modules/stdlib: New file.
107527         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
107528         and extra comments about mkstemp().
107529         * lib/exit.h: Remove file.
107530         * lib/mkdtemp.h: Remove file.
107531         * lib/mkstemp.h: Remove file.
107532         * m4/stdlib_h.m4: New file.
107533         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
107535 2007-02-18  Bruno Haible  <bruno@clisp.org>
107537         * modules/math-tests: New file.
107538         * tests/test-math.c: New file.
107540         * modules/math: New file.
107541         * modules/mathl (Files): Remove lib/mathl.h.
107542         (Depends-on): Add math.
107543         (Makefile.am): Don't mention mathl.h.
107544         (Include): Use <math.h> instead of mathl.h.
107545         * lib/math_.h: New file.
107546         * lib/mathl.h: Remove file.
107547         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
107548         mathl.h.
107549         * lib/asinl.c: Likewise.
107550         * lib/atanl.c: Likewise.
107551         * lib/ceill.c: Likewise.
107552         * lib/cosl.c: Likewise.
107553         * lib/expl.c: Likewise.
107554         * lib/floorl.c: Likewise.
107555         * lib/frexpl.c: Likewise.
107556         * lib/ldexpl.c: Likewise.
107557         * lib/logl.c: Likewise.
107558         * lib/sincosl.c: Likewise.
107559         * lib/sinl.c: Likewise.
107560         * lib/sqrtl.c: Likewise.
107561         * lib/tanl.c: Likewise.
107562         * lib/trigl.c: Likewise.
107563         * m4/math_h.m4: New file.
107564         * MODULES.html.sh (Mathematics): Add math.
107566 2007-02-17  Bruno Haible  <bruno@clisp.org>
107568         * modules/wctype-tests: New file.
107569         * tests/test-wctype.c: New file.
107571         * modules/wchar-tests: New file.
107572         * tests/test-wchar.c: New file.
107574         * modules/unistd-tests: New file.
107575         * tests/test-unistd.c: New file.
107577         * modules/time-tests: New file.
107578         * tests/test-time.c: New file.
107580         * modules/sysexits-tests: New file.
107581         * tests/test-sysexits.c: New file.
107583         * modules/sys_time-tests: New file.
107584         * tests/test-sys_time.c: New file.
107586         * modules/sys_stat-tests: New file.
107587         * tests/test-sys_stat.c: New file.
107589         * modules/sys_socket-tests: New file.
107590         * tests/test-sys_socket.c: New file.
107592         * modules/sys_select-tests: New file.
107593         * tests/test-sys_select.c: New file.
107595         * modules/string-tests: New file.
107596         * tests/test-string.c: New file.
107598         * modules/stdbool-tests: New file.
107599         * tests/test-stdbool.c: New file.
107601         * modules/netinet_in-tests: New file.
107602         * tests/test-netinet_in.c: New file.
107604         * modules/inttypes-tests: New file.
107605         * tests/test-inttypes.c: New file.
107607         * modules/fcntl-tests: New file.
107608         * tests/test-fcntl.c: New file.
107610         * modules/byteswap-tests: New file.
107611         * tests/test-byteswap.c: New file.
107613         * modules/arpa_inet-tests: New file.
107614         * tests/test-arpa_inet.c: New file.
107616 2007-02-17  Bruno Haible  <bruno@clisp.org>
107618         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
107619         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
107620         if the corresponding module is not enabled. Emit link warnings if
107621         the function is used nevertheless.
107622         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
107623         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
107624         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
107625         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
107626         * modules/inttypes (Depends-on): Add link-warning.
107627         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107628         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
107629         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
107630         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
107631         * modules/imaxdiv (configure.ac): Likewise.
107632         * modules/strtoimax (configure.ac): Likewise.
107633         * modules/strtoumax (configure.ac): Likewise.
107635 2007-02-17  Bruno Haible  <bruno@clisp.org>
107637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
107638         gl_STRING_MODULE_INDICATOR_DEFAULTS.
107639         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
107640         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
107642 2007-02-17  Bruno Haible  <bruno@clisp.org>
107644         * modules/link-warning: New file.
107645         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
107646         * lib/string_.h (GL_LINK_WARNING): Remove definition.
107647         * modules/string (Depends-on): Add link-warning.
107648         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107649         string.h.
107650         * MODULES.html.sh (Support for building libraries and executables): Add
107651         link-warning.
107653 2007-02-17  Bruno Haible  <bruno@clisp.org>
107655         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
107656         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
107657         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
107658         long lines.
107660 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107661             Bruno Haible  <bruno@clisp.org>
107663         * modules/tmpfile: New file.
107664         * lib/tmpfile.c: New file.
107665         * m4/tmpfile.m4: New file.
107666         * MODULES.html.sh (func_all_modules): New section "Input/output".
107668 2007-02-15  Bruno Haible  <bruno@clisp.org>
107670         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107671         (supports_delete_on_close): New function.
107672         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107674 2007-02-14  Bruno Haible  <bruno@clisp.org>
107676         * modules/mbspcasecmp-tests: New file.
107677         * tests/test-mbspcasecmp.sh: New file.
107678         * tests/test-mbspcasecmp.c: New file.
107680         New module mbspcasecmp.
107681         * modules/mbspcasecmp: New file.
107682         * lib/mbspcasecmp.c: New file.
107683         * lib/string_.h (strncasecmp): Change warning message.
107684         (mbspcasecmp): New declaration.
107685         * m4/mbspcasecmp.m4: New file.
107686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107687         GNULIB_MBSPCASECMP.
107688         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107689         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107691 2007-02-14  Bruno Haible  <bruno@clisp.org>
107693         * modules/mbsncasecmp-tests: New file.
107694         * tests/test-mbsncasecmp.sh: New file.
107695         * tests/test-mbsncasecmp.c: New file.
107697         New module mbsncasecmp.
107698         * modules/mbsncasecmp: New file.
107699         * lib/mbsncasecmp.c: New file.
107700         * lib/string_.h (mbsncasecmp): New declaration.
107701         * m4/mbsncasecmp.m4: New file.
107702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107703         GNULIB_MBSNCASECMP.
107704         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107705         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107707 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107709         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107710         Verify that it doesn't overlap with our flags.
107711         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107712         do not have the desired effect in multibyte locales; instead, use
107713         mbscasecmp.
107714         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107715         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107716         we don't require GNU fnmatch ourselves (if our users require it, they
107717         should do so explicitly).
107719         Fix regex code so it doesn't rely on strcasecmp.
107720         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107721         Otherwise, include gnulib's langinfo.h.
107722         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107723         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107724         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107725         * modules/regex (FILES): Remove m4/codeset.m4.
107726         (Depends-on): Add localcharset.  Remove strcase.
107728 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107730         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107731         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107733 2007-02-13  Bruno Haible  <bruno@clisp.org>
107735         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107736         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107738 2007-02-12  Bruno Haible  <bruno@clisp.org>
107740         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107741         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107742         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107743         time warning rather than a link error.
107745 2007-02-12  Bruno Haible  <bruno@clisp.org>
107747         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107748         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107749         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107751 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107753         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107754         args, not 2.
107756 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107758         New module 'time', so that apps can include <time.h> as per
107759         POSIX and GNU instead of separate include files like time_r.h
107760         and timegm.h.  This implementation tries out a simpler approach
107761         for replacing decls in standard include files (as compared to
107762         the string module), somewhat as an experiment.
107764         * config/srclist.txt: Comment out mktime.c for now.
107765         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107766         since it doesn't apply any more.  Use generic wording instead.
107767         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107768         'time'.
107769         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107770         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107771         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107772         Don't include <sys/types.h>; no longer needed since we assume C89.
107773         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107774         * lib/strftime.c: Likewise.
107775         * lib/time_r.c: Likewise.
107776         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107777         * lib/nanosleep.c: Include <time.h> first, to check interface.
107778         * lib/strptime.c: Likewise.
107779         * lib/time_r.c: Likewise.
107780         * lib/timegm.c: Likewise.
107781         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107782         needed.
107783         * lib/timegm.c: Don't include timegm.h; no longer needed.
107784         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107785         time.h now handles any problems in that area.
107786         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107787         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107788         that time.h defines struct timespec.
107789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107790         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107791         handles that.
107792         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107793         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107794         needed.  Set REPLACE_LOCALTIME.
107795         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107796         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107797         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107798         nanosleep; time_h.m4 now does that.  Don't require
107799         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107800         module handles this now.
107801         * modules/getdate (Depends-on): Remove timespec.  Add time.
107802         * modules/nanosleep (Depends-on): Likewise.
107803         * modules/stat-time (Depends-on): Likewise.
107804         * modules/nanosleep (Include): Include time.h, not timespec.h.
107805         * modules/strptime (Files): Remove lib/strptime.h.
107806         (Depends-on): Add extensions, time.
107807         (Include): Include time.h, not strptime.h.
107808         * modules/time_r (Files): Remove lib/time_r.h.
107809         (Depends-on): Add time.
107810         (Include): Include time.h, not time_r.h.
107811         * modules/timegm: Likewise.
107812         * modules/timespec (Description): Now does timespec-related decls
107813         of our own, instead of struct timespec itself.
107814         (Depends-on): Add time; remove extensions.
107815         (Maintainer): Add self.
107816         * modules/utimecmp (Depends-on): Add time; remove timespec.
107817         * modules/utimens (Depends-on): Likewise.
107818         * modules/xnanosleep (Depends-on): Likewise.
107820 2007-02-11  Bruno Haible  <bruno@clisp.org>
107822         * lib/c-strstr.c: Include allocsa.h.
107823         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107824         * lib/c-strcasestr.c: Include allocsa.h.
107825         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107826         * lib/strcasestr.c: Include allocsa.h.
107827         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107828         * lib/mbsstr.c: Include allocsa.h.
107829         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107830         allocsa/freesa instead of malloc/free.
107831         * lib/mbscasestr.c: Include allocsa.h.
107832         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107833         allocsa/freesa instead of malloc/free.
107834         * modules/c-strstr (Depends-on): Add allocsa.
107835         * modules/c-strcasestr (Depends-on): Likewise.
107836         * modules/strcasestr (Depends-on): Likewise.
107837         * modules/mbsstr (Depends-on): Likewise.
107838         * modules/mbscasestr (Depends-on): Likewise.
107840 2007-02-11  Bruno Haible  <bruno@clisp.org>
107842         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107844         * modules/mbsspn-tests: New file.
107845         * tests/test-mbsspn.sh: New file.
107846         * tests/test-mbsspn.c: New file.
107848 2007-02-11  Bruno Haible  <bruno@clisp.org>
107850         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107852         * modules/mbspbrk-tests: New file.
107853         * tests/test-mbspbrk.sh: New file.
107854         * tests/test-mbspbrk.c: New file.
107856 2007-02-11  Bruno Haible  <bruno@clisp.org>
107858         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107859         unneeded cast.
107861         * modules/mbscspn-tests: New file.
107862         * tests/test-mbscspn.sh: New file.
107863         * tests/test-mbscspn.c: New file.
107865 2007-02-11  Bruno Haible  <bruno@clisp.org>
107867         * modules/mbscasecmp-tests: New file.
107868         * tests/test-mbscasecmp.sh: New file.
107869         * tests/test-mbscasecmp.c: New file.
107871 2007-02-11  Bruno Haible  <bruno@clisp.org>
107873         Ensure O(n) worst-case complexity of mbscasestr.
107874         * lib/mbscasestr.c: Include stdbool.h.
107875         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107876         functions.
107877         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107878         the bookkeeping indicates that it's worth it.
107879         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107881         * modules/mbscasestr-tests: New file.
107882         * tests/test-mbscasestr1.c: New file.
107883         * tests/test-mbscasestr2.sh: New file.
107884         * tests/test-mbscasestr2.c: New file.
107885         * tests/test-mbscasestr3.sh: New file.
107886         * tests/test-mbscasestr3.c: New file.
107887         * tests/test-mbscasestr4.sh: New file.
107888         * tests/test-mbscasestr4.c: New file.
107889         * m4/locale-tr.m4: New file.
107891 2007-02-11  Bruno Haible  <bruno@clisp.org>
107893         Ensure O(n) worst-case complexity of mbsstr.
107894         * lib/mbsstr.c: Include stdbool.h.
107895         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107896         functions.
107897         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107898         bookkeeping indicates that it's worth it.
107899         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107901         * modules/mbsstr-tests: New file.
107902         * tests/test-mbsstr1.c: New file.
107903         * tests/test-mbsstr2.sh: New file.
107904         * tests/test-mbsstr2.c: New file.
107905         * tests/test-mbsstr3.sh: New file.
107906         * tests/test-mbsstr3.c: New file.
107907         * m4/locale-fr.m4: New file.
107909 2007-02-11  Bruno Haible  <bruno@clisp.org>
107911         * lib/mbsrchr.c (mbsrchr): Fix bug.
107913         * modules/mbsrchr-tests: New file.
107914         * tests/test-mbsrchr.sh: New file.
107915         * tests/test-mbsrchr.c: New file.
107917 2007-02-11  Bruno Haible  <bruno@clisp.org>
107919         * lib/mbschr.c (mbschr): Fix bug.
107921         * modules/mbschr-tests: New file.
107922         * tests/test-mbschr.sh: New file.
107923         * tests/test-mbschr.c: New file.
107924         * m4/locale-zh.m4: New file.
107926 2007-02-11  Bruno Haible  <bruno@clisp.org>
107928         Support for copying multibyte string iterators.
107929         * lib/mbiter.h: Include <string.h>.
107930         (mbiter_multi_copy): New function.
107931         (mbi_copy): New macro.
107932         * lib/mbuiter.h: Include <string.h>.
107933         (mbuiter_multi_copy): New function.
107934         (mbui_copy): New macro.
107936 2007-02-11  Bruno Haible  <bruno@clisp.org>
107938         New module mbslen.
107939         * modules/mbslen: New file.
107940         * lib/mbslen.c: New file.
107941         * lib/string_.h (mbslen): New declaration.
107942         * m4/mbslen.m4: New file.
107943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107944         GNULIB_MBSLEN.
107945         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107946         * MODULES.html.sh (Internationalization functions): Add mbslen.
107948 2007-02-11  Bruno Haible  <bruno@clisp.org>
107950         Ensure O(n) worst-case complexity of strcasestr substitute.
107951         * lib/strcasestr.c: Include stdbool.h.
107952         (knuth_morris_pratt): New function.
107953         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107954         bookkeeping indicates that it's worth it.
107955         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107957         * modules/strcasestr-tests: New file.
107958         * tests/test-strcasestr.c: New file.
107960 2007-02-11  Bruno Haible  <bruno@clisp.org>
107962         Ensure O(n) worst-case complexity of c_strcasestr.
107963         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107964         (knuth_morris_pratt): New function.
107965         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107966         the bookkeeping indicates that it's worth it.
107967         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107969         * modules/c-strcasestr-tests: New file.
107970         * tests/test-c-strcasestr.c: New file.
107972 2007-02-11  Bruno Haible  <bruno@clisp.org>
107974         Ensure O(n) worst-case complexity of c_strstr.
107975         * lib/c-strstr.c: Include stdbool.h, string.h.
107976         (knuth_morris_pratt): New function.
107977         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107978         bookkeeping indicates that it's worth it.
107979         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107981         * lib/c-strstr.c: Complete rewrite for maintainability.
107983         * modules/c-strstr-tests: New file.
107984         * tests/test-c-strstr.c: New file.
107986 2007-02-11  Bruno Haible  <bruno@clisp.org>
107988         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107989         5.2.1 and earlier, whereby \055 was treated just like the range
107990         delimiter '-'.
107991         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107993 2007-02-08  Bruno Haible  <bruno@clisp.org>
107995         * modules/regex (Depends-on): Add stdbool.
107996         Reported by Dalibor Topic <robilad@kaffe.org>.
107998 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
108000         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
108001         Prefer returning from main to exiting from it.
108002         Remove unnecessary parens after sizeof.
108004 2007-02-05  Bruno Haible  <bruno@clisp.org>
108006         New module mbssep.
108007         * modules/mbssep: New file.
108008         * lib/mbssep.c: New file.
108009         * lib/string_.h (strsep): Add a conditional link warning.
108010         (mbssep): New declaration.
108011         * m4/mbssep.m4: New file.
108012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108013         GNULIB_MBSSEP.
108014         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
108015         * MODULES.html.sh (Internationalization functions): Add mbssep.
108017 2007-02-05  Bruno Haible  <bruno@clisp.org>
108019         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
108020         Optimize search in case of 1 delimiter.
108022 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108024         * lib/acl.h: Include sys/types.h before sys/acl.h.
108026 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108028         Merge upstream fix for glibc bugzilla #3957:
108030         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
108032         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
108033         bit for RE_HAT_LISTS_NOT_NEWLINE.
108034         (build_charclass_op): Remove bogus comment.
108036 2007-02-05  Simon Josefsson  <simon@josefsson.org>
108038         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
108040 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108042         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
108043         * lib/memmem.c [!defined _LIBC]: Include config.h.
108045 2007-02-04  Bruno Haible  <bruno@clisp.org>
108047         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
108048         warning message.
108050 2007-02-04  Bruno Haible  <bruno@clisp.org>
108052         New module mbstok_r.
108053         * modules/mbstok_r: New file.
108054         * lib/mbstok_r.c: New file.
108055         * lib/string_.h (strtok_r): Change argument names to match the
108056         comments. Add a conditional link warning.
108057         (mbstok_r): New declaration.
108058         * m4/mbstok_r.m4: New file.
108059         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108060         GNULIB_MBSTOK_R.
108061         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
108062         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
108064 2007-02-04  Bruno Haible  <bruno@clisp.org>
108066         New module mbsspn.
108067         * modules/mbsspn: New file.
108068         * lib/mbsspn.c: New file.
108069         * lib/string_.h (strspn): Add a conditional link warning.
108070         (mbsspn): New declaration.
108071         * m4/mbsspn.m4: New file.
108072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108073         GNULIB_MBSSPN.
108074         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
108075         * MODULES.html.sh (Internationalization functions): Add mbsspn.
108077 2007-02-04  Bruno Haible  <bruno@clisp.org>
108079         New module mbspbrk.
108080         * modules/mbspbrk: New file.
108081         * lib/mbspbrk.c: New file.
108082         * lib/string_.h (strpbrk): Add a conditional link warning.
108083         (mbspbrk): New declaration.
108084         * m4/mbspbrk.m4: New file.
108085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108086         GNULIB_MBSPBRK.
108087         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
108088         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
108090 2007-02-04  Bruno Haible  <bruno@clisp.org>
108092         New module mbscspn.
108093         * modules/mbscspn: New file.
108094         * lib/mbscspn.c: New file.
108095         * lib/string_.h (strcspn): Add a conditional link warning.
108096         (mbscspn): New declaration.
108097         * m4/mbscspn.m4: New file.
108098         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108099         GNULIB_MBSCSPN.
108100         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
108101         * MODULES.html.sh (Internationalization functions): Add mbscspn.
108103 2007-02-04  Bruno Haible  <bruno@clisp.org>
108105         New module mbscasestr, reduced goal of strcasestr.
108106         * modules/mbscasestr: New file.
108107         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
108108         (mbscasestr): Renamed from strcasestr.
108109         * lib/strcasestr.c: Don't include mbuiter.h.
108110         (strcasestr): Remove support for multibyte locales.
108111         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
108112         Change the conditional link warning.
108113         (mbscasestr): New declaration.
108114         * m4/mbscasestr.m4: New file.
108115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
108116         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
108117         REPLACE_STRCASESTR.
108118         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
108119         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108120         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108121         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
108122         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
108123         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108124         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
108125         (Depends-on): Remove mbuiter.
108126         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
108128 2007-02-04  Bruno Haible  <bruno@clisp.org>
108130         Simplify handling of strncasecmp.
108131         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
108132         the conditional link warning.
108133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108134         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
108135         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
108136         * modules/strcase (configure.ac): Don't invoke
108137         gl_STRING_MODULE_INDICATOR.
108138         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
108140 2007-02-04  Bruno Haible  <bruno@clisp.org>
108142         New module mbscasecmp, reduced goal of strcasecmp.
108143         * modules/mbscasecmp: New file.
108144         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
108145         (mbscasecmp): Renamed from strcasecmp.
108146         * lib/strcasecmp.c: Don't include mbuiter.h.
108147         (strcasecmp): Remove support for multibyte locales.
108148         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
108149         Change the conditional link warning.
108150         (mbscasecmp): New declaration.
108151         * m4/mbscasecmp.m4: New file.
108152         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
108153         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
108154         REPLACE_STRCASECMP.
108155         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
108156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108157         GNULIB_MBSCASECMP.
108158         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
108159         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
108160         * modules/strcase (Files): Remove m4/mbrtowc.m4.
108161         (Depends-on): Remove mbuiter.
108162         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
108164 2007-02-04  Bruno Haible  <bruno@clisp.org>
108166         New module mbsstr. Remove module strstr.
108167         * modules/mbsstr: New file.
108168         * modules/strstr: Remove file.
108169         * lib/mbsstr.c: Renamed from lib/strstr.c.
108170         (mbsstr): Renamed from strstr.
108171         * lib/string_.h (strstr): Remove declaration. Change the conditional
108172         link warning.
108173         (mbsstr): New declaration.
108174         * m4/mbsstr.m4: New file.
108175         * m4/strstr.m4: Remove file.
108176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
108177         REPLACE_STRSTR.
108178         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
108179         Don't initialize GNULIB_STRSTR.
108180         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
108181         substitute GNULIB_STRSTR and REPLACE_STRSTR.
108182         * MODULES.html.sh (Internationalization functions): Add mbsstr.
108183         (Support for systems lacking ANSI C 89): Remove strstr.
108185 2007-02-04  Bruno Haible  <bruno@clisp.org>
108187         New module mbsrchr.
108188         * modules/mbsrchr: New file.
108189         * lib/mbsrchr.c: New file.
108190         * lib/string_.h (strrchr): Add a conditional link warning.
108191         (mbsrchr): New declaration.
108192         * m4/mbsrchr.m4: New file.
108193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108194         GNULIB_MBSRCHR.
108195         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
108196         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
108198 2007-02-04  Bruno Haible  <bruno@clisp.org>
108200         New module mbschr.
108201         * modules/mbschr: New file.
108202         * lib/mbschr.c: New file.
108203         * lib/string_.h (strchr): Add a conditional link warning.
108204         (mbschr): New declaration.
108205         * m4/mbschr.m4: New file.
108206         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108207         GNULIB_MBSCHR.
108208         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
108209         * MODULES.html.sh (Internationalization functions): Add mbschr.
108211 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108213         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
108215         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108217 2007-02-04  Bruno Haible  <bruno@clisp.org>
108219         New module description section 'configure.ac-early'.
108220         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
108221         (func_get_autoconf_early_snippet): New function.
108222         (func_import, func_create_testdir): Use it. Remove special cases for
108223         modules 'extensions' and 'lock'.
108224         * modules/extensions (configure.ac-early): Require
108225         gl_USE_SYSTEM_EXTENSIONS.
108226         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
108228 2007-02-04  Bruno Haible  <bruno@clisp.org>
108230         Make use of gcj-4.3's -fsource and -ftarget option.
108231         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
108232         and if so try the options -fsource and -ftarget.
108233         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
108234         source_version, ftarget_option, target_version arguments.
108235         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
108236         (is_envjavac_oldgcj_14_14_usable): Renamed from
108237         is_envjavac_gcj_14_14_usable.
108238         (is_envjavac_oldgcj_14_13_usable): Renamed from
108239         is_envjavac_gcj_14_13_usable.
108240         (is_gcj_present): Update.
108241         (is_gcj_43, is_gcj43_usable): New functions.
108242         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
108243         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
108244         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
108245         try the options -fsource and -ftarget.
108247 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
108249         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
108250         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
108251         larger value.
108253 2007-02-03  Jim Meyering  <jim@meyering.net>
108255         Give tools a better chance to allocate space for very large buffers.
108256         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
108258         Make pwd and readlink work also when run with an unreadable parent dir
108259         on systems with openat support.
108260         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
108261         provided getcwd function, even when we have openat support.
108262         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
108264 2007-02-02  Bruno Haible  <bruno@clisp.org>
108266         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108267         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
108268         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
108269         portability problems if one of these functions is only used on specific
108270         platforms.
108271         Reported by Paul Eggert.
108273 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
108275         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
108276         is causing more trouble than it's curing.
108277         * lib/regex_internal.h (__mempcpy): Remove.
108278         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
108279         (and make the code a tad smaller to boot).
108280         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
108282 2007-02-02  Jim Meyering  <jim@meyering.net>
108284         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
108285         section, not in the Makefile.am: one.
108287 2007-02-02  Eric Blake  <ebb9@byu.net>
108289         * lib/strchrnul.c: Always include config.h first.
108291         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
108292         gnulib strstr is not necessary here.
108294 2007-02-02  Simon Josefsson  <simon@josefsson.org>
108296         * m4/socklen.m4: Fix typo.
108298 2007-02-02  Eric Blake  <ebb9@byu.net>
108300         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
108301         * modules/netinet_in (Makefile.am): Likewise.
108303 2007-02-01  Bruno Haible  <bruno@clisp.org>
108305         * lib/string_.h (GL_LINK_WARNING): New macro.
108306         (strcasecmp, strstr, strcasestr): If provided by the system,
108307         conditionally define as a macro that leads to a warning instead of to
108308         an error.
108309         (strncasecmp): Conditionally define as a macro that leads to a warning.
108311 2007-02-01  Karl Berry  <karl@gnu.org>
108313         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
108315 2007-02-01  Bruno Haible  <bruno@clisp.org>
108317         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
108318         renamings.
108320 2007-02-01  Eric Blake  <ebb9@byu.net>
108322         * modules/regex (Depends-on): Revert dependence on mempcpy.
108323         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
108324         module's definition of mempcpy.
108325         Reported by Paul Eggert.
108327 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
108329         * lib/string_.h: If the gnulib module XYZ is not present, undefine
108330         the symbol XYZ before redefining it.  This fixes a problem with
108331         programs that don't use XYZ, when compiled on systems that define
108332         XYZ to something else.
108334 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
108336         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
108337         occurs when "mkdir -m foo" creates a setgid directory that is (1)
108338         writeable to group or other and (2) is intended to have a special
108339         mode bit that is set or cleared.  In such a case, the directory
108340         should be neither group- nor other-writeable until the special
108341         mode bits are right.
108343 2007-01-31  Eric Blake  <ebb9@byu.net>
108345         * modules/mountlist (Depends-on): Add strstr.
108347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108348         bug.
108349         * modules/string (Makefile.am): Remove redundant replacement.
108350         * modules/regex (Depends-on): Add mempcpy.
108352 2007-01-31  Bruno Haible  <bruno@clisp.org>
108354         New module description field 'Link'.
108355         * gnulib-tool (func_usage): Document --extract-link-directive.
108356         (sed_extract_prog): Recognize 'Link' directive.
108357         (func_get_link_directive): New function.
108358         (func_import): Show summary of link directives.
108359         Handle --extract-link-directive option.
108360         * modules/acl (Link): New section.
108361         * modules/clock-time (Link): New section.
108362         * modules/euidaccess (Link): New section.
108363         * modules/gettext (Link): New section.
108364         * modules/iconv (Link): New section.
108365         * modules/lock (Link): New section.
108366         * modules/nanosleep (Link): New section.
108367         * modules/readline (Link): New section.
108369 2007-01-27  Bruno Haible  <bruno@clisp.org>
108371         Enforce the use of gnulib modules for unportable <string.h> functions.
108372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108373         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108374         (gl_HEADER_STRING_H_BODY): Require it.
108375         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108376         the symbol XYZ to one that gives a link error.
108377         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108378         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108379         * modules/mempcpy (configure.ac): Likewise.
108380         * modules/memrchr (configure.ac): Likewise.
108381         * modules/stpcpy (configure.ac): Likewise.
108382         * modules/stpncpy (configure.ac): Likewise.
108383         * modules/strcase (configure.ac): Likewise.
108384         * modules/strcasestr (configure.ac): Likewise.
108385         * modules/strchrnul (configure.ac): Likewise.
108386         * modules/strdup (configure.ac): Likewise.
108387         * modules/strndup (configure.ac): Likewise.
108388         * modules/strnlen (configure.ac): Likewise.
108389         * modules/strpbrk (configure.ac): Likewise.
108390         * modules/strsep (configure.ac): Likewise.
108391         * modules/strstr (configure.ac): Likewise.
108392         * modules/strtok_r (configure.ac): Likewise.
108394 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108396         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108398 2007-01-30  Jim Meyering  <jim@meyering.net>
108400         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108402 2007-01-29  Bruno Haible  <bruno@clisp.org>
108404         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108405         * lib/execute.c: Likewise.
108406         * lib/pipe.c: Likewise.
108407         * lib/printf-args.h: Likewise.
108408         * lib/printf-args.c: Likewise.
108409         * lib/printf-parse.c: Likewise.
108410         * lib/vasnprintf.c: Likewise.
108412 2007-01-29  Eric Blake  <ebb9@byu.net>
108414         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108415         declaration.
108417 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108419         * lib/strptime.h (strptime): Use 'restrict' for args where
108420         POSIX requires this.
108421         * lib/strptime.c (strptime): Likewise.
108422         Change license notice from LGPL to GPL, since gnulib-tool will
108423         change this as needed.
108424         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108425         defined.
108426         Include "strptime.h" first, to check interface.
108427         Do not #undef _LIBC and _NL_CURRENT.
108428         Do not include <stdlib.h>; no longer needed.
108429         Include "time_r.h" and declare ptime_locale_status
108430         only if _LIBC is not defined.
108431         (__P): Remove unused macro.
108432         (match_string): Bring back glibc version, but use it only if _LIBC
108433         is defined.
108434         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108435         Remove unnecessary assertion and abort() call.
108436         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108437         * m4/strptime.m4: Fix serial number comment.
108438         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108439         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108440         (Depends-on): Add time_r.
108442 2007-01-29  Bruno Haible  <bruno@clisp.org>
108444         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108445         strptime.
108446         * modules/strptime (Depends-on): Add stdbool.
108447         * lib/strptime.h: Include <time.h> always. Add comments.
108449 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108451         * modules/strptime: New file.
108452         * lib/strptime.h: New file.
108453         * lib/strptime.c: New file.
108454         * m4/strptime.m4: New file.
108456 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
108458         * MODULES.html.sh: New module mpsort.
108459         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
108461         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
108462         a circularity problem with HP-UX ia64 reported by Bob Proulx in
108463         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
108464         All uses changed.
108465         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
108466         All uses changed.
108467         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
108468         to _Restrict_.
108469         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
108470         the parameter matches the prototype.
108472 2007-01-28  Jim Meyering  <jim@meyering.net>
108474         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
108475         sys/time.h here, reverting that part of the previous patch:
108476         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
108478 2007-01-28  Bruno Haible  <bruno@clisp.org>
108480         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
108481         value of $(SYS_TIME_H).
108482         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
108483         remove it conditionally, too. [added by Jim Meyering]
108484         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
108485         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108486         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
108487         GETTIMEOFDAY_REPLACEMENT to 1.
108489 2007-01-28  Bruno Haible  <bruno@clisp.org>
108491         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
108492         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
108493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
108494         Set UNISTD_H instead of UNISTD_H2.
108495         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
108497 2007-01-28  Bruno Haible  <bruno@clisp.org>
108499         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
108500         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
108502 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108504         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
108505         (func_create_testdir): Ensure C locale for `grep' and `tr'
108506         character ranges.
108507         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
108508         ACLOCAL_AMFLAGS parsing state machine.
108510 2007-01-27  Bruno Haible  <bruno@clisp.org>
108512         * modules/unistr/base: Update.
108514 2007-01-27  Bruno Haible  <bruno@clisp.org>
108516         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
108517         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
108518         * modules/unistr/u32-mbtouc-unsafe: Renamed from
108519         modules/unistr/u32-mbtouc.
108520         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
108521         * lib/unistr.h: Update.
108522         * lib/linebreak.c: Update.
108523         * modules/unistr/u32-mbtouc: Renamed from
108524         modules/unistr/u32-mbtouc-safe.
108525         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
108526         * lib/unistr.h: Update.
108527         * lib/unistr/u32-to-u8.c: Update.
108528         * lib/unistr/u32-to-u16.c: Update.
108530 2007-01-27  Bruno Haible  <bruno@clisp.org>
108532         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
108533         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
108534         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
108535         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
108536         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
108537         * modules/unistr/u16-mbtouc-unsafe: Renamed from
108538         modules/unistr/u16-mbtouc.
108539         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
108540         * lib/unistr.h: Update.
108541         * lib/linebreak.c: Update.
108542         * modules/linebreak: Update.
108543         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
108544         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
108545         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
108546         * modules/unistr/u16-mbtouc: Renamed from
108547         modules/unistr/u16-mbtouc-safe.
108548         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
108549         * lib/unistr.h: Update.
108550         * lib/unistr/u16-to-u8.c: Update.
108551         * modules/unistr/u16-to-u8: Update.
108552         * lib/unistr/u16-to-u32.c: Update.
108553         * modules/unistr/u16-to-u32: Update.
108555 2007-01-27  Bruno Haible  <bruno@clisp.org>
108557         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
108558         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
108559         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
108560         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
108561         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
108562         * modules/unistr/u8-mbtouc-unsafe: Renamed from
108563         modules/unistr/u8-mbtouc.
108564         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
108565         * lib/unistr.h: Update.
108566         * lib/striconveh.c: Update.
108567         * modules/striconveh: Update.
108568         * lib/linebreak.c: Update.
108569         * modules/linebreak: Update.
108570         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
108571         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
108572         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
108573         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
108574         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
108575         * lib/unistr.h: Update.
108576         * lib/striconveh.c: Update.
108577         * modules/striconveh: Update.
108578         * lib/unistr/u8-to-u16.c: Update.
108579         * modules/unistr/u8-to-u16: Update.
108580         * lib/unistr/u8-to-u32.c: Update.
108581         * modules/unistr/u8-to-u32: Update.
108583 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108585         Sync from Libtool.
108586         * lib/argz.c: Do not include strings.h nor memory.h, include
108587         string.h unconditionally.  Patch by Simon Josefsson.
108589 2007-01-27  Bruno Haible  <bruno@clisp.org>
108591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108592         from gl_HEADER_STRING_H_BODY.
108593         (gl_HEADER_STRING_H_BODY): Require it.
108594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108595         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108596         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
108597         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
108598         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
108599         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
108600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
108601         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
108602         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
108603         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
108604         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
108605         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
108606         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
108607         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
108608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108610 2007-01-27  Bruno Haible  <bruno@clisp.org>
108612         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
108613         check_PROGRAMS into noinst_PROGRAMS.
108614         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
108615         check_PROGRAMS in this case.
108616         (func_import): Set for_test to false.
108617         (func_create_testdir): Set for_test to true.
108619 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108620             Bruno Haible  <bruno@clisp.org>
108622         * modules/strcasestr (Files): Remove lib/strcasestr.h.
108623         (Depends-on): Add string.
108624         (Includes): Use <string.h> instead of strcasestr.h.
108625         * modules/string (Makefile.am): Also substitute the value of
108626         REPLACE_STRCASESTR.
108627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
108628         assume strcasestr is declared in <string.h> not <strings.h>. Also
108629         set REPLACE_STRCASESTR.
108630         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
108631         REPLACE_STRCASESTR.
108632         * lib/strcasestr.h: Remove file.
108633         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
108634         * lib/string_.h (strcasestr): New declaration.
108636 2007-01-27  Bruno Haible  <bruno@clisp.org>
108638         * lib/string_.h: Use 'extern'.
108640 2007-01-27  Jim Meyering  <jim@meyering.net>
108642         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
108643         of set-but-not-used local, "q".
108645         * lib/mempcpy.c: Include <config.h> before <string.h>.
108646         This fixes a compilation error on HP-UX, due to the system's
108647         "restrict"-using mempcpy prototype.
108649 2007-01-26  Bruno Haible  <bruno@clisp.org>
108651         Small optimization.
108652         * lib/javacomp.c: Include c-strstr.h.
108653          (is_envjavac_gcj): Use c_strstr instead of strstr.
108654         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
108656 2007-01-26  Bruno Haible  <bruno@clisp.org>
108658         * MODULES.html.sh (Unicode string functions): Add the new modules.
108660         * modules/uniconv/u32-strconv-to-locale: New file.
108661         * lib/uniconv/u32-strconv-to-locale.c: New file.
108663         * modules/uniconv/u16-strconv-to-locale: New file.
108664         * lib/uniconv/u16-strconv-to-locale.c: New file.
108666         * modules/uniconv/u8-strconv-to-locale: New file.
108667         * lib/uniconv/u8-strconv-to-locale.c: New file.
108669         * modules/uniconv/u32-strconv-from-locale: New file.
108670         * lib/uniconv/u32-strconv-from-locale.c: New file.
108672         * modules/uniconv/u16-strconv-from-locale: New file.
108673         * lib/uniconv/u16-strconv-from-locale.c: New file.
108675         * modules/uniconv/u8-strconv-from-locale: New file.
108676         * lib/uniconv/u8-strconv-from-locale.c: New file.
108678         * modules/uniconv/u32-strconv-to-enc: New file.
108679         * lib/uniconv/u32-strconv-to-enc.c: New file.
108680         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108681         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108683         * modules/uniconv/u16-strconv-to-enc: New file.
108684         * lib/uniconv/u16-strconv-to-enc.c: New file.
108685         * lib/uniconv/u-strconv-to-enc.h: New file.
108686         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108687         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108689         * modules/uniconv/u8-strconv-to-enc: New file.
108690         * lib/uniconv/u8-strconv-to-enc.c: New file.
108691         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108692         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108694         * modules/uniconv/u32-strconv-from-enc: New file.
108695         * lib/uniconv/u32-strconv-from-enc.c: New file.
108696         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108697         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108699         * modules/uniconv/u16-strconv-from-enc: New file.
108700         * lib/uniconv/u16-strconv-from-enc.c: New file.
108701         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108702         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108704         * modules/uniconv/u8-strconv-from-enc: New file.
108705         * lib/uniconv/u8-strconv-from-enc.c: New file.
108706         * lib/uniconv/u-strconv-from-enc.h: New file.
108707         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108708         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108710         * modules/uniconv/u32-conv-from-enc: New file.
108711         * lib/uniconv/u32-conv-from-enc.c: New file.
108712         * modules/uniconv/u32-conv-from-enc-tests: New file.
108713         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108715         * modules/uniconv/u16-conv-from-enc: New file.
108716         * lib/uniconv/u16-conv-from-enc.c: New file.
108717         * lib/uniconv/u-conv-from-enc.h: New file.
108718         * modules/uniconv/u16-conv-from-enc-tests: New file.
108719         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108721         * modules/uniconv/u8-conv-from-enc: New file.
108722         * lib/uniconv/u8-conv-from-enc.c: New file.
108723         * modules/uniconv/u8-conv-from-enc-tests: New file.
108724         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108726         * modules/uniconv/base: New file.
108727         * lib/uniconv.h: New file.
108729 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108731         * doc/gnulib-tool.texi (Initial import): Update to match current
108732         behavior with strdup module.
108733         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108734         * lib/memmem.h: Remove; all uses removed.  This is now done
108735         by <string.h>.
108736         * lib/mempcpy.h: Likewise.
108737         * lib/memrchr.h: Likewise.
108738         * lib/stpcpy.h: Likewise.
108739         * lib/stpncpy.h: Likewise.
108740         * lib/strcase.h: Likewise.
108741         * lib/strchrnul.h: Likewise.
108742         * lib/strdup.h: Likewise.
108743         * lib/strndup.h: Likewise.
108744         * lib/strnlen.h: Likewise.
108745         * lib/strpbrk.h: Likewise.
108746         * lib/strsep.h: Likewise.
108747         * lib/strstr.h: Likewise.
108748         * lib/strtok_r.h: Likewise.
108749         * lib/string_.h: New file.
108750         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108751         Rely on <string.h> instead.
108752         * lib/canon-host.c: Likewise.
108753         * lib/chdir-long.c: Likewise.
108754         * lib/concatpath.c: Likewise.
108755         * lib/exclude.c: Likewise.
108756         * lib/fchdir.c: Likewise.
108757         * lib/getaddrinfo.c: Likewise.
108758         * lib/getcwd.c: Likewise.
108759         * lib/getsubopt.c: Likewise.
108760         * lib/glob.c: Likewise.
108761         * lib/hard-locale.c: Likewise.
108762         * lib/iconvme.c: Likewise.
108763         * lib/javacomp.c: Likewise.
108764         * lib/mempcpy.c: Likewise.
108765         * lib/memrchr.c: Likewise.
108766         * lib/regex_internal.h: Likewise.
108767         * lib/stpncpy.c: Likewise.
108768         * lib/strcasecmp.c: Likewise.
108769         * lib/strchrnul.c: Likewise.
108770         * lib/strdup.c: Likewise.
108771         * lib/striconv.c: Likewise.
108772         * lib/striconveh.c: Likewise.
108773         * lib/striconveha.c: Likewise.
108774         * lib/strncasecmp.c: Likewise.
108775         * lib/strndup.c: Likewise.
108776         * lib/strnlen.c: Likewise.
108777         * lib/strsep.c: Likewise.
108778         * lib/strstr.c: Likewise.
108779         * lib/strtok_r.c: Likewise.
108780         * lib/userspec.c: Likewise.
108781         * lib/w32spawn.h: Likewise.
108782         * lib/xstrndup.c: Likewise.
108783         * lib/mountlist.c (strstr): Remove decl.
108784         * m4/string_h.m4: New file.
108785         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108786         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108787         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108788         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108789         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108790         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108791         Set REPLACE_STRCASECMP if necessary.
108792         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108793         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108794         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108795         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108796         HAVE_DECL_STRDUP if necessary.
108797         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108798         since gl_FUNC_STRNDUP does that now.
108799         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108800         Check for decl here...
108801         (gl_PREREQ_STRNLEN): ... not here.
108802         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108803         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108804         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108805         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108806         necessary.
108807         * modules/string: New file.
108808         * modules/memmem (Files): Remove special-purpose include file.
108809         (Depends-on): Add string.
108810         (Include): Include <string.h>, not the removed file.
108811         * modules/mempcpy: Likewise.
108812         * modules/memrchr: Likewise.
108813         * modules/stpcpy: Likewise.
108814         * modules/stpncpy: Likewise.
108815         * modules/strcase: Likewise.
108816         * modules/strchrnul: Likewise.
108817         * modules/strdup: Likewise.
108818         * modules/strndup: Likewise.
108819         * modules/strnlen: Likewise.
108820         * modules/strpbrk: Likewise.
108821         * modules/strsep: Likewise.
108822         * modules/strstr: Likewise.
108823         * modules/strtok_r: Likewise.
108824         * tests/test-dirname.c: Don't include "strdup.h", since
108825         <string.h> now suffices.
108826         * tests/test-memmem.c: Don't include "memmem.h", since
108827         <string.h> now suffices.
108829 2007-01-25  Bruno Haible  <bruno@clisp.org>
108831         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108832         *resultp is 0.
108834         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108835         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108836         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108837         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108839         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108840         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108841         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108842         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108843         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108844         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108846 2007-01-24  Bruno Haible  <bruno@clisp.org>
108848         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108849         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108850         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108851         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108852         gl_FUNC_FTS_CORE.
108853         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108854         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108855         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108856         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108857         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108858         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108859         gl_FUNC_FCHOWNAT.
108860         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108861         gl_FUNC_STRFTIME.
108862         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108863         Reported by Ralf Wildenhues.
108865 2007-01-24  Bruno Haible  <bruno@clisp.org>
108867         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108868         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108869         gl_GETADDRINFO.
108870         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108871         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108872         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108874 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108876         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108877         Don't use 'exit'; just return from 'main'.
108878         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108880         * lib/fnmatch_.h: Readjust white space and comments to match
108881         glibc, to avoid spurious diffs.
108883 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108885         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108886         2004-12-01 change by Jakub Jelinek, since this code won't compile
108887         if !LIBC.  Problem reported by Bob Proulx.
108889 2007-01-23  Bruno Haible  <bruno@clisp.org>
108891         * lib/striconveh.c: Include c-strcaseeq.h.
108892         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108893         * modules/striconveh (Depends-on): Add c-strcaseeq.
108895 2007-01-23  Bruno Haible  <bruno@clisp.org>
108897         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108899         * modules/c-strcaseeq: New file.
108900         * lib/c-strcaseeq.h: New file.
108902         * modules/streq: New file.
108903         * lib/streq.h: New file.
108905 2007-01-23  Bruno Haible  <bruno@clisp.org>
108907         * modules/striconveha-tests: New file.
108908         * tests/test-striconveha.c: New file.
108910         * lib/striconveha.h: Include <stdbool.h>.
108911         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108912         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108913         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108914         (mem_iconveha): New function.
108915         (str_iconveha_notranslit): Renamed from str_iconveha.
108916         (str_iconveha): New function.
108917         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108918         c-strcase.
108920 2007-01-23  Bruno Haible  <bruno@clisp.org>
108922         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108923         encodings without forgiving before trying any encoding with handler.
108924         (str_iconveha): Try all encodings without forgiving before trying any
108925         encoding with handler.
108927 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108929         Import the following changes from libc.
108931         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108933         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108935         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108937         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108938         normal_bracket label.
108940         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108942         [BZ #361]
108943         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108944         to normal_bracket after fetching the next character.
108946 2007-01-22  Bruno Haible  <bruno@clisp.org>
108948         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108949         argument.
108950         * lib/striconveh.c (iconv_carefully_1): New function.
108951         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108952         argument.
108953         (str_cd_iconveh): Update.
108954         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108955         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108956         * tests/test-striconveh.c (MAGIC): New macro.
108957         (new_offsets): New function.
108958         (main): Test call with and without offsets.
108960 2007-01-22  Bruno Haible  <bruno@clisp.org>
108962         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108963         * modules/sys_select (Makefile.am): Likewise.
108964         * modules/sys_socket (Makefile.am): Likewise.
108965         * modules/sys_time (Makefile.am): Likewise.
108967 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108969         * modules/gettimeofday (License): Change from GPL to LGPL, since
108970         gettimeofday is a library function.
108972 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108974         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108976 2007-01-21  Bruno Haible  <bruno@clisp.org>
108978         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108980 2007-01-21  Bruno Haible  <bruno@clisp.org>
108982         * modules/striconveha: New file.
108983         * lib/striconveha.h: New file.
108984         * lib/striconveha.c: New file.
108985         * MODULES.html.sh (Internationalization functions): Add striconveha.
108986         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108987         string.
108988         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108990 2007-01-21  Bruno Haible  <bruno@clisp.org>
108992         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108993         * lib/striconveh.c (str_iconveh): Likewise.
108995 2007-01-21  Bruno Haible  <bruno@clisp.org>
108997         * lib/striconveh.h (mem_iconveh): New declaration.
108998         * lib/striconveh.c (mem_iconveh): New function.
108999         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
109001 2007-01-21  Bruno Haible  <bruno@clisp.org>
109003         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
109005         * lib/striconveh.h (mem_cd_iconveh): Change specification.
109006         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
109007         original result buffer.
109008         (str_cd_iconveh): Update.
109009         * tests/test-striconveh.c (main): Update.
109011         * lib/striconv.h (mem_cd_iconv): Change specification.
109012         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
109013         result buffer.
109014         (str_cd_iconv): Update.
109015         * tests/test-striconv.c (main): Update.
109017 2007-01-21  Bruno Haible  <bruno@clisp.org>
109019         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
109021 2007-01-20  Jim Meyering  <jim@meyering.net>
109023         * lib/userspec.c (parse_with_separator): If a user or group string
109024         starts with "+", skip the corresponding name-to-ID look-up, since
109025         such a look-up must fail: user and group names may not include "+".
109027 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
109029         * lib/poll.c: Include sys/time.h and time.h unconditionally,
109030         since we now assume the sys_time module.
109031         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
109032         check for sys/time.h; no longer needed.
109033         * modules/poll (Depends-on): Depend on sys_time.
109035 2007-01-18  Bruno Haible  <bruno@clisp.org>
109037         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
109038         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109040         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
109041         gettimeofday.
109043         * tests/test-gettimeofday.c: Include <time.h>.
109044         (dummy): Remove variable.
109046         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
109047         gl_HEADER_SYS_TIME_H.
109048         (gl_HEADER_SYS_TIME_H): New macro.
109050         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
109051         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
109053         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
109054         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109055         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
109056         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
109057         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109058         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
109059         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
109060         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109062         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
109063         last change; it caused a compilation error when cross-compiling to
109064         Cygwin.
109066 2007-01-18  Jim Meyering  <jim@meyering.net>
109068         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
109069         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
109070         than the race-prone "test -d sys || mkdir sys".
109071         (configure.ac): Use AC_PROG_MKDIR_P.
109072         * modules/sys_select: Likewise.
109073         * modules/sys_socket: Likewise.
109074         * modules/sys_time: Likewise.
109076 2007-01-18  Eric Blake  <ebb9@byu.net>
109078         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
109079         replace gettimeofday.
109080         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
109081         name, to avoid infinite recursion.
109083 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
109085         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
109086         module sys_time.
109087         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
109088         assume timespec.h defines struct timeval.
109089         * lib/settime.c: Likewise.
109090         * lib/utimens.c: Likewise.
109091         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
109092         since we now assume the gettimeofday module.
109093         * lib/tempname.c (__gen_tempname): Likewise.
109094         * lib/gettimeofday.h: Remove.
109095         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
109096         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
109097         Include <time.h>, for 'time()'.
109098         (localtime_buffer_addr): Also use this workaround if
109099         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
109100         to simplify the uses.  All uses changed.
109101         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
109102         that #undef is inside {}, and 'const' follows type name consistently.
109103         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
109104         (gettimeofday): Do not use the maximum possible value for
109105         tv->tv_usec, since that might break usages other than ls.c.
109106         Instead, we'll leave ls.c alone.  This undoes today's patch
109107         by Bruno.  Add a compile-time warning for 1s-clock resolution;
109108         we've never observed the problem but might as well keep the
109109         canary.
109110         * lib/nanosleep.c: Include timespec.h first, for interface check.
109111         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
109112         now assume the sys_time module.
109113         * lib/tempname.c: Likewise.
109114         * lib/timespec.h: Likewise.
109115         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
109116         needed.
109117         * lib/strftime.c: Likewise.
109118         * lib/timespec.h: Likewise.
109119         * lib/posixtm.c: Include posixtm.h first, for interface check.
109120         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
109121         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
109122         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
109123         * lib/sys_time_.h: New file.
109124         * lib/timespec.h (struct timespec): Use long int, not long.
109125         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109126         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
109127         Remove obsolescent call to AC_HEADER_TIME.
109128         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
109129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109130         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109131         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
109132         Likewise.
109133         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
109134         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
109135         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
109136         into the sys_time module.  Check for gettimeofday just once.
109137         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
109138         for gettimeofday signature to just check the signature.  Merely
109139         compile it, since linking doesn't test signature.  Improve test for
109140         whether gettimeofday.o is actually needed.
109141         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
109142         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109143         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
109144         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109145         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
109146         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
109147         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
109148         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
109149         than worrying about sys/time.h.
109150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109151         Don't bother worrying about TIME_WITH_SYS_TIME.
109152         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
109153         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
109154         * m4/sys_time_h.m4: New file.
109155         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
109156         Don't include sys/time.h.  Return from main rather than exiting.
109157         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
109158         all uses changed.
109159         * modules/gethrxtime (Depends-on): Add sys_time.
109160         * modules/gettime (Depends-on): Likewise.
109161         * modules/gettimeofday (Depends-on): Likewise.
109162         * modules/nanosleep (Depends-on): Likewise.
109163         * modules/settime (Depends-on): Likewise.
109164         * modules/tempname (Depends-on): Likewise.
109165         * modules/utimens (Depends-on): Likewise.
109166         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
109167         (Include): Change back to <sys/time.h>.
109168         (Maintainer): Add self.
109169         * modules/sys_time: New file.
109170         * modules/tempname (Depends-on): Add gettimeofday.
109171         * tests/test-gettimeofday.c: Include <sys/time.h>
109172         rather than gettimeofday.h.
109174 2007-01-17  Bruno Haible  <bruno@clisp.org>
109176         * gnulib-tool (func_get_license): Revert last patch. Instead, let
109177         the license default to GPL.
109178         (func_create_testdir): Don't complain if a module is LGPL and its
109179         tests module depends on GPLed modules.
109181 2007-01-17  Bruno Haible  <bruno@clisp.org>
109183         * lib/gettimeofday.c (gettimeofday): Add code for the case
109184         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
109185         maximum possible value for tv->tv_usec, rather than the minimum one.
109187 2005-10-08  Martin Lambers  <marlam@marlam.de>
109188 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109189 2007-01-16  Bruno Haible  <bruno@clisp.org>
109191         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
109192         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
109193         gl_FUNC_GETTIMEOFDAY.
109194         (Include): Add gettimeofday.h.
109195         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
109196         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
109197         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
109198         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
109199         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
109200         * lib/gettimeofday.h: New file.
109201         * lib/gettimeofday.c: Include <sys/timeb.h>.
109202         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
109203         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109204         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
109205         fall back on time().
109207         * tests/test-gettimeofday.c: New file.
109208         * modules/gettimeofday-tests: New file.
109210 2007-01-16  Eric Blake  <ebb9@byu.net>
109212         * modules/fnmatch (Depends-on): Depend on wchar.
109213         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
109214         * m4/fnmatch.m4: Likewise.
109215         * modules/mbchar (Makefile.am): Assume <wchar.h>.
109216         * m4/mbchar.m4: Likewise.
109217         * modules/mbswidth (Depends-on): Depend on wchar.
109218         * lib/mbswidth.c: Assume <wchar.h>.
109219         * m4/mbswidth.m4: Likewise.
109220         * modules/quotearg (Depends-on): Depend on wchar.
109221         * lib/quotearg.c: Assume <wchar.h>.
109222         * m4/quotearg.m4: Likewise.
109223         * modules/regex (Depends-on): Depend on wchar.
109224         * lib/regex_internal.h: Assume <wchar.h>.
109225         * m4/regex.m4: Likewise.
109226         * modules/stdint (Depends-on): Depend on wchar.
109227         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
109228         * m4/stdint.m4: Likewise.
109229         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
109230         * modules/strftime (Depends-on): Depend on wchar.
109231         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
109232         * modules/strtol (Depends-on): Depend on wchar.
109233         * lib/strtol.c: Assume <wchar.h>.
109234         * modules/wcwidth (Depends-on): Depend on wchar.
109235         * lib/wcwidth.h: Assume <wchar.h>.
109236         * m4/wcwidth.m4: Likewise.
109238 2007-01-16  Bruno Haible  <bruno@clisp.org>
109240         * modules/csharpexec-script: New, created from...
109241         * modules/csharpexec: ... this.
109243 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
109245         * modules/javaexec-script: New, created from...
109246         * modules/javaexec: ... this.
109248 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109250         * modules/poll (Dependencies): Add sys_select.
109252 2007-01-15  Jim Meyering  <jim@meyering.net>
109254         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
109255         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
109256         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
109257         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
109259 2007-01-15  Bruno Haible  <bruno@clisp.org>
109261         * modules/striconveh: New file.
109262         * lib/striconveh.h: New file.
109263         * lib/striconveh.c: New file.
109264         * MODULES.html.sh (Internationalization functions): Add striconveh.
109266         * modules/striconveh-tests: New file.
109267         * tests/test-striconveh.c: New file.
109269 2007-01-15  Bruno Haible  <bruno@clisp.org>
109271         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
109272         not from GNU libiconv or GNU libc.
109274 2007-01-15  Bruno Haible  <bruno@clisp.org>
109276         * doc/gnulib-intro.texi (Copyright): Explain the different license
109277         terms for module descriptions, autoconf macros, tests, documentation.
109279 2007-01-14  Bruno Haible  <bruno@clisp.org>
109281         * modules/striconv-tests: New file.
109282         * tests/test-striconv.c: New file.
109284 2007-01-14  Bruno Haible  <bruno@clisp.org>
109286         * modules/iconv-tests: New file.
109287         * tests/test-iconv.c: New file.
109289 2007-01-14  Bruno Haible  <bruno@clisp.org>
109291         * gnulib-tool (func_get_license): For test modules, use the license of
109292         the main module.
109294 2007-01-14  Bruno Haible  <bruno@clisp.org>
109296         * modules/iconv (Include): Clarify that <iconv.h> can only be included
109297         if iconv is found to exist.
109299 2007-01-14  Bruno Haible  <bruno@clisp.org>
109301         * modules/c-ctype-tests: New file.
109302         * tests/test-c-ctype.c: New file.
109304 2007-01-14  Bruno Haible  <bruno@clisp.org>
109306         * modules/binary-io-tests: New file.
109307         * tests/test-binary-io.sh: New file.
109308         * tests/test-binary-io.c: New file.
109310 2007-01-14  Bruno Haible  <bruno@clisp.org>
109312         * modules/array-oset-tests: New file.
109313         * tests/test-array_oset.c: New file.
109315 2007-01-14  Bruno Haible  <bruno@clisp.org>
109317         * modules/array-list-tests: New file.
109318         * tests/test-array_list.c: New file.
109320 2007-01-14  Bruno Haible  <bruno@clisp.org>
109322         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
109323         and make.
109324         Reported by Simon Josefsson in
109325         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
109327 2007-01-14  Bruno Haible  <bruno@clisp.org>
109329         * modules/allocsa-tests: New file.
109330         * tests/test-allocsa.c: New file.
109332 2007-01-14  Bruno Haible  <bruno@clisp.org>
109334         * modules/fchdir (Depends-on): Add absolute-header.
109335         * modules/unistd (Depends-on): Likewise.
109337 2006-12-30  Bruno Haible  <bruno@clisp.org>
109339         * modules/fchdir: New file.
109340         * modules/unistd (Files): Add lib/unistd_.h.
109341         (Makefile.am): Generate unistd.h from unistd_.h.
109342         * lib/fchdir.c: New file.
109343         * lib/dirent_.h: New file.
109344         * lib/unistd_.h: New file.
109345         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109346         * m4/fchdir.m4: New file.
109347         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109348         (gl_HEADER_UNISTD): Invoke it.
109349         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109350         function.
109351         * lib/backupfile.c (opendir, closedir): Undefine.
109352         * lib/chown.c (open, close): Undefine.
109353         * lib/clean-temp.c (open, close): Undefine.
109354         * lib/copy-file.c (open, close): Undefine.
109355         * lib/execute.c (open, close): Undefine.
109356         * lib/fsusage.c (open, close): Undefine.
109357         * lib/gc-gnulib.c (open, close): Undefine.
109358         * lib/getcwd.c (opendir, closedir): Undefine.
109359         * lib/glob.c (opendir, closedir): Undefine.
109360         * lib/javacomp.c (open, close): Undefine.
109361         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109362         * lib/openat-proc.c (open, close): Undefine.
109363         * lib/pagealign_alloc.c (open, close): Undefine.
109364         * lib/pipe.c (open, close): Undefine.
109365         * lib/progreloc.c (open, close): Undefine.
109366         * lib/savedir.c (opendir, closedir): Undefine.
109367         * lib/utime.c (open, close): Undefine.
109368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109370 2007-01-10  Bruno Haible  <bruno@clisp.org>
109372         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109374 2007-01-12  Eric Blake  <ebb9@byu.net>
109376         Provide a robust <wchar.h>.  Further simplifications are now
109377         possible in other modules, but not included here.
109378         * modules/wchar: New module.
109379         * m4/wchar.m4: New file.
109380         * lib/wchar_.h: Likewise.
109381         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109382         of the new module.
109383         * MODULES.html.sh (Extended multibyte and wide character utilities):
109384         New section.
109386 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109388         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109389         to a reasonable default for memory allocation.
109390         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109391         file system that reports garbage st_size values for symlinks.
109392         Problem reported by Liyang Hu.
109394 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109396         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109397         Emacs .#* auto-save files).
109399 2007-01-11  Bruno Haible  <bruno@clisp.org>
109401         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109402         directory.
109404 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109406         Use @...@ consistently in lib/wctype_.h.
109407         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109408         on it being set to 1 or 0.
109409         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109410         go back to AC_SUBSTing it.
109411         * modules/wctype (Makefile.am): Undo previous change.
109413 2007-01-10  Eric Blake  <ebb9@byu.net>
109415         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109416         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109417         * modules/wctype (Makefile.am): Likewise.
109418         Reported by Chris McGuire.
109420 2007-01-10  Jim Meyering  <jim@meyering.net>
109422         fts.c: a small readability/maintainability improvement
109423         * lib/fts.c (fts_read): Make this code slightly more readable and
109424         maintainable by hoisting the "sp->fts_cur = p" assignments to
109425         immediately follow the statements that set P.  Derived from
109426         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109428 2007-01-10  Eric Blake  <ebb9@byu.net>
109430         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109431         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109433         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109434         Reported by Chris McGuire.
109436 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109438         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109439         in sed script.
109441 2007-01-09  Bruno Haible  <bruno@clisp.org>
109443         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109444         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109445         variables.
109446         (func_module): Use them.
109448 2007-01-09  Bruno Haible  <bruno@clisp.org>
109450         * modules/unistr/base: New file.
109451         * lib/unistr.h: New file.
109453         * modules/unistr/u8-to-u16: New file.
109454         * lib/unistr/u8-to-u16.c: New file.
109456         * modules/unistr/u8-to-u32: New file.
109457         * lib/unistr/u8-to-u32.c: New file.
109459         * modules/unistr/u16-to-u8: New file.
109460         * lib/unistr/u16-to-u8.c: New file.
109462         * modules/unistr/u16-to-u32: New file.
109463         * lib/unistr/u16-to-u32.c: New file.
109465         * modules/unistr/u32-to-u8: New file.
109466         * lib/unistr/u32-to-u8.c: New file.
109468         * modules/unistr/u32-to-u16: New file.
109469         * lib/unistr/u32-to-u16.c: New file.
109471         * modules/unistr/u8-check: New file.
109472         * modules/unistr/u16-check: New file.
109473         * modules/unistr/u32-check: New file.
109474         * lib/unistr/u8-check.c: New file.
109475         * lib/unistr/u16-check.c: New file.
109476         * lib/unistr/u32-check.c: New file.
109478         * modules/unistr/u8-chr: New file.
109479         * modules/unistr/u16-chr: New file.
109480         * modules/unistr/u32-chr: New file.
109481         * lib/unistr/u8-chr.c: New file.
109482         * lib/unistr/u16-chr.c: New file.
109483         * lib/unistr/u32-chr.c: New file.
109485         * modules/unistr/u8-cmp: New file.
109486         * modules/unistr/u16-cmp: New file.
109487         * modules/unistr/u32-cmp: New file.
109488         * lib/unistr/u8-cmp.c: New file.
109489         * lib/unistr/u16-cmp.c: New file.
109490         * lib/unistr/u32-cmp.c: New file.
109492         * modules/unistr/u8-cpy: New file.
109493         * modules/unistr/u16-cpy: New file.
109494         * modules/unistr/u32-cpy: New file.
109495         * lib/unistr/u8-cpy.c: New file.
109496         * lib/unistr/u16-cpy.c: New file.
109497         * lib/unistr/u32-cpy.c: New file.
109498         * lib/unistr/u-cpy.h: New file.
109500         * modules/unistr/u8-cpy-alloc: New file.
109501         * modules/unistr/u16-cpy-alloc: New file.
109502         * modules/unistr/u32-cpy-alloc: New file.
109503         * lib/unistr/u8-cpy-alloc.c: New file.
109504         * lib/unistr/u16-cpy-alloc.c: New file.
109505         * lib/unistr/u32-cpy-alloc.c: New file.
109506         * lib/unistr/u-cpy-alloc.h: New file.
109508         * modules/unistr/u8-endswith: New file.
109509         * modules/unistr/u16-endswith: New file.
109510         * modules/unistr/u32-endswith: New file.
109511         * lib/unistr/u8-endswith.c: New file.
109512         * lib/unistr/u16-endswith.c: New file.
109513         * lib/unistr/u32-endswith.c: New file.
109514         * lib/unistr/u-endswith.h: New file.
109516         * modules/unistr/u8-mblen: New file.
109517         * modules/unistr/u16-mblen: New file.
109518         * modules/unistr/u32-mblen: New file.
109519         * lib/unistr/u8-mblen.c: New file.
109520         * lib/unistr/u16-mblen.c: New file.
109521         * lib/unistr/u32-mblen.c: New file.
109523         * modules/unistr/u8-mbtouc: New file.
109524         * modules/unistr/u16-mbtouc: New file.
109525         * modules/unistr/u32-mbtouc: New file.
109526         * lib/unistr/u8-mbtouc.c: New file.
109527         * lib/unistr/u16-mbtouc.c: New file.
109528         * lib/unistr/u32-mbtouc.c: New file.
109530         * modules/unistr/u8-mbtouc-safe: New file.
109531         * modules/unistr/u16-mbtouc-safe: New file.
109532         * modules/unistr/u32-mbtouc-safe: New file.
109533         * lib/unistr/u8-mbtouc-safe.c: New file.
109534         * lib/unistr/u16-mbtouc-safe.c: New file.
109535         * lib/unistr/u32-mbtouc-safe.c: New file.
109537         * modules/unistr/u8-move: New file.
109538         * modules/unistr/u16-move: New file.
109539         * modules/unistr/u32-move: New file.
109540         * lib/unistr/u8-move.c: New file.
109541         * lib/unistr/u16-move.c: New file.
109542         * lib/unistr/u32-move.c: New file.
109543         * lib/unistr/u-move.h: New file.
109545         * modules/unistr/u8-next: New file.
109546         * modules/unistr/u16-next: New file.
109547         * modules/unistr/u32-next: New file.
109548         * lib/unistr/u8-next.c: New file.
109549         * lib/unistr/u16-next.c: New file.
109550         * lib/unistr/u32-next.c: New file.
109552         * modules/unistr/u8-prev: New file.
109553         * modules/unistr/u16-prev: New file.
109554         * modules/unistr/u32-prev: New file.
109555         * lib/unistr/u8-prev.c: New file.
109556         * lib/unistr/u16-prev.c: New file.
109557         * lib/unistr/u32-prev.c: New file.
109559         * modules/unistr/u8-set: New file.
109560         * modules/unistr/u16-set: New file.
109561         * modules/unistr/u32-set: New file.
109562         * lib/unistr/u8-set.c: New file.
109563         * lib/unistr/u16-set.c: New file.
109564         * lib/unistr/u32-set.c: New file.
109565         * lib/unistr/u-set.h: New file.
109567         * modules/unistr/u8-startswith: New file.
109568         * modules/unistr/u16-startswith: New file.
109569         * modules/unistr/u32-startswith: New file.
109570         * lib/unistr/u8-startswith.c: New file.
109571         * lib/unistr/u16-startswith.c: New file.
109572         * lib/unistr/u32-startswith.c: New file.
109573         * lib/unistr/u-startswith.h: New file.
109575         * modules/unistr/u8-stpcpy: New file.
109576         * modules/unistr/u16-stpcpy: New file.
109577         * modules/unistr/u32-stpcpy: New file.
109578         * lib/unistr/u8-stpcpy.c: New file.
109579         * lib/unistr/u16-stpcpy.c: New file.
109580         * lib/unistr/u32-stpcpy.c: New file.
109581         * lib/unistr/u-stpcpy.h: New file.
109583         * modules/unistr/u8-stpncpy: New file.
109584         * modules/unistr/u16-stpncpy: New file.
109585         * modules/unistr/u32-stpncpy: New file.
109586         * lib/unistr/u8-stpncpy.c: New file.
109587         * lib/unistr/u16-stpncpy.c: New file.
109588         * lib/unistr/u32-stpncpy.c: New file.
109589         * lib/unistr/u-stpncpy.h: New file.
109591         * modules/unistr/u8-strcat: New file.
109592         * modules/unistr/u16-strcat: New file.
109593         * modules/unistr/u32-strcat: New file.
109594         * lib/unistr/u8-strcat.c: New file.
109595         * lib/unistr/u16-strcat.c: New file.
109596         * lib/unistr/u32-strcat.c: New file.
109597         * lib/unistr/u-strcat.h: New file.
109599         * modules/unistr/u8-strchr: New file.
109600         * modules/unistr/u16-strchr: New file.
109601         * modules/unistr/u32-strchr: New file.
109602         * lib/unistr/u8-strchr.c: New file.
109603         * lib/unistr/u16-strchr.c: New file.
109604         * lib/unistr/u32-strchr.c: New file.
109606         * modules/unistr/u8-strcmp: New file.
109607         * modules/unistr/u16-strcmp: New file.
109608         * modules/unistr/u32-strcmp: New file.
109609         * lib/unistr/u8-strcmp.c: New file.
109610         * lib/unistr/u16-strcmp.c: New file.
109611         * lib/unistr/u32-strcmp.c: New file.
109613         * modules/unistr/u8-strcpy: New file.
109614         * modules/unistr/u16-strcpy: New file.
109615         * modules/unistr/u32-strcpy: New file.
109616         * lib/unistr/u8-strcpy.c: New file.
109617         * lib/unistr/u16-strcpy.c: New file.
109618         * lib/unistr/u32-strcpy.c: New file.
109619         * lib/unistr/u-strcpy.h: New file.
109621         * modules/unistr/u8-strcspn: New file.
109622         * modules/unistr/u16-strcspn: New file.
109623         * modules/unistr/u32-strcspn: New file.
109624         * lib/unistr/u8-strcspn.c: New file.
109625         * lib/unistr/u16-strcspn.c: New file.
109626         * lib/unistr/u32-strcspn.c: New file.
109627         * lib/unistr/u-strcspn.h: New file.
109629         * modules/unistr/u8-strdup: New file.
109630         * modules/unistr/u16-strdup: New file.
109631         * modules/unistr/u32-strdup: New file.
109632         * lib/unistr/u8-strdup.c: New file.
109633         * lib/unistr/u16-strdup.c: New file.
109634         * lib/unistr/u32-strdup.c: New file.
109635         * lib/unistr/u-strdup.h: New file.
109637         * modules/unistr/u8-strlen: New file.
109638         * modules/unistr/u16-strlen: New file.
109639         * modules/unistr/u32-strlen: New file.
109640         * lib/unistr/u8-strlen.c: New file.
109641         * lib/unistr/u16-strlen.c: New file.
109642         * lib/unistr/u32-strlen.c: New file.
109643         * lib/unistr/u-strlen.h: New file.
109645         * modules/unistr/u8-strmblen: New file.
109646         * modules/unistr/u16-strmblen: New file.
109647         * modules/unistr/u32-strmblen: New file.
109648         * lib/unistr/u8-strmblen.c: New file.
109649         * lib/unistr/u16-strmblen.c: New file.
109650         * lib/unistr/u32-strmblen.c: New file.
109652         * modules/unistr/u8-strmbtouc: New file.
109653         * modules/unistr/u16-strmbtouc: New file.
109654         * modules/unistr/u32-strmbtouc: New file.
109655         * lib/unistr/u8-strmbtouc.c: New file.
109656         * lib/unistr/u16-strmbtouc.c: New file.
109657         * lib/unistr/u32-strmbtouc.c: New file.
109659         * modules/unistr/u8-strncat: New file.
109660         * modules/unistr/u16-strncat: New file.
109661         * modules/unistr/u32-strncat: New file.
109662         * lib/unistr/u8-strncat.c: New file.
109663         * lib/unistr/u16-strncat.c: New file.
109664         * lib/unistr/u32-strncat.c: New file.
109665         * lib/unistr/u-strncat.h: New file.
109667         * modules/unistr/u8-strncmp: New file.
109668         * modules/unistr/u16-strncmp: New file.
109669         * modules/unistr/u32-strncmp: New file.
109670         * lib/unistr/u8-strncmp.c: New file.
109671         * lib/unistr/u16-strncmp.c: New file.
109672         * lib/unistr/u32-strncmp.c: New file.
109674         * modules/unistr/u8-strncpy: New file.
109675         * modules/unistr/u16-strncpy: New file.
109676         * modules/unistr/u32-strncpy: New file.
109677         * lib/unistr/u8-strncpy.c: New file.
109678         * lib/unistr/u16-strncpy.c: New file.
109679         * lib/unistr/u32-strncpy.c: New file.
109680         * lib/unistr/u-strncpy.h: New file.
109682         * modules/unistr/u8-strnlen: New file.
109683         * modules/unistr/u16-strnlen: New file.
109684         * modules/unistr/u32-strnlen: New file.
109685         * lib/unistr/u8-strnlen.c: New file.
109686         * lib/unistr/u16-strnlen.c: New file.
109687         * lib/unistr/u32-strnlen.c: New file.
109688         * lib/unistr/u-strnlen.h: New file.
109690         * modules/unistr/u8-strpbrk: New file.
109691         * modules/unistr/u16-strpbrk: New file.
109692         * modules/unistr/u32-strpbrk: New file.
109693         * lib/unistr/u8-strpbrk.c: New file.
109694         * lib/unistr/u16-strpbrk.c: New file.
109695         * lib/unistr/u32-strpbrk.c: New file.
109696         * lib/unistr/u-strpbrk.h: New file.
109698         * modules/unistr/u8-strrchr: New file.
109699         * modules/unistr/u16-strrchr: New file.
109700         * modules/unistr/u32-strrchr: New file.
109701         * lib/unistr/u8-strrchr.c: New file.
109702         * lib/unistr/u16-strrchr.c: New file.
109703         * lib/unistr/u32-strrchr.c: New file.
109705         * modules/unistr/u8-strspn: New file.
109706         * modules/unistr/u16-strspn: New file.
109707         * modules/unistr/u32-strspn: New file.
109708         * lib/unistr/u8-strspn.c: New file.
109709         * lib/unistr/u16-strspn.c: New file.
109710         * lib/unistr/u32-strspn.c: New file.
109711         * lib/unistr/u-strspn.h: New file.
109713         * modules/unistr/u8-strstr: New file.
109714         * modules/unistr/u16-strstr: New file.
109715         * modules/unistr/u32-strstr: New file.
109716         * lib/unistr/u8-strstr.c: New file.
109717         * lib/unistr/u16-strstr.c: New file.
109718         * lib/unistr/u32-strstr.c: New file.
109719         * lib/unistr/u-strstr.h: New file.
109721         * modules/unistr/u8-strtok: New file.
109722         * modules/unistr/u16-strtok: New file.
109723         * modules/unistr/u32-strtok: New file.
109724         * lib/unistr/u8-strtok.c: New file.
109725         * lib/unistr/u16-strtok.c: New file.
109726         * lib/unistr/u32-strtok.c: New file.
109727         * lib/unistr/u-strtok.h: New file.
109729         * modules/unistr/u8-uctomb: New file.
109730         * modules/unistr/u16-uctomb: New file.
109731         * modules/unistr/u32-uctomb: New file.
109732         * lib/unistr/u8-uctomb.c: New file.
109733         * lib/unistr/u16-uctomb.c: New file.
109734         * lib/unistr/u32-uctomb.c: New file.
109736         * MODULES.html.sh (Unicode string functions): Add the new modules.
109738 2007-01-08  Bruno Haible  <bruno@clisp.org>
109740         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109741         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109742         subdirectories.
109744 2007-01-08  Karl Berry  <karl@gnu.org>
109746         * doc/error.texi: mention that main() fns must set program_name
109747         when progname is used.
109749 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109751         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109752         WCTYPE_H is empty, for the benefit of builds from non-distclean
109753         directories.  Problem reported by Eric Blake in
109754         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109756 2007-01-08  Bruno Haible  <bruno@clisp.org>
109758         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109759         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109760         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109761         PROVIDE_CANONICALIZE_FILENAME_MODE.
109762         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109764 2007-01-08  Bruno Haible  <bruno@clisp.org>
109766         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109767         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109768         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109769         * lib/fts.c: Likewise.
109770         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109772 2006-12-25  Bruno Haible  <bruno@clisp.org>
109774         * modules/utf8-ucs4-safe: New file.
109775         * lib/utf8-ucs4-safe.h: New file.
109776         * lib/unistr/utf8-ucs4-safe.c: New file.
109778         * modules/utf16-ucs4-safe: New file.
109779         * lib/utf16-ucs4-safe.h: New file.
109780         * lib/unistr/utf16-ucs4-safe.c: New file.
109782         * MODULES.html.sh (Unicode string functions): Add the new modules.
109784 2007-01-08  Bruno Haible  <bruno@clisp.org>
109786         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109787         (Depends-on): Add unitypes.
109788         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109789         (u8_mbtouc_aux): Move out to separate file.
109790         (u8_mbtouc): Use ucs4_t, uint8_t types.
109791         * lib/unistr/utf8-ucs4.c: New file.
109793         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109794         (Depends-on): Add unitypes.
109795         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109796         (u16_mbtouc_aux): Move out to separate file.
109797         (u16_mbtouc): Use ucs4_t, uint16_t types.
109798         * lib/unistr/utf16-ucs4.c: New file.
109800         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109801         (Depends-on): Add unitypes.
109802         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109803         (u8_uctomb_aux): Move out to separate file.
109804         (u8_uctomb): Use ucs4_t, uint8_t types.
109805         * lib/unistr/ucs4-utf8.c: New file.
109807         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109808         (Depends-on): Add unitypes.
109809         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109810         (u16_uctomb_aux): Move out to separate file.
109811         (u16_uctomb): Use ucs4_t, uint16_t types.
109812         * lib/unistr/ucs4-utf16.c: New file.
109814 2006-12-25  Bruno Haible  <bruno@clisp.org>
109816         * modules/unitypes: New file.
109817         * lib/unitypes.h: New file.
109818         * MODULES.html.sh (func_all_modules): New section "Unicode string
109819         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109820         this section. Add unitypes.
109822 2007-01-08  Bruno Haible  <bruno@clisp.org>
109824         Avoid variable names that conflict with those from libtool.
109825         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109826         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109827         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109828         library_names_spec to acl_library_names_spec, hardcode_* to
109829         acl_hardcode_*.
109830         Reported by Ralf Wildenhues.
109832 2007-01-08  Bruno Haible  <bruno@clisp.org>
109834         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109835         definition.
109836         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109837         definition.
109838         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109839         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109840         definition.
109841         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109842         definition.
109843         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109844         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109845         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109846         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109847         definition.
109848         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109849         definition.
109850         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109851         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109852         GC_USE_<algorithm>.
109853         * lib/gc-libgcrypt.c: Likewise.
109854         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109855         * modules/gc-arctwo (configure.ac): Likewise.
109856         * modules/gc-des (configure.ac): Likewise.
109857         * modules/gc-hmac-md5 (configure.ac): Likewise.
109858         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109859         * modules/gc-md2 (configure.ac): Likewise.
109860         * modules/gc-md4 (configure.ac): Likewise.
109861         * modules/gc-md5 (configure.ac): Likewise.
109862         * modules/gc-random (configure.ac): Likewise.
109863         * modules/gc-rijndael (configure.ac): Likewise.
109864         * modules/gc-sha1 (configure.ac): Likewise.
109866 2007-01-08  Bruno Haible  <bruno@clisp.org>
109868         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109869         macro definition.
109870         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109871         definition.
109872         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109873         definition.
109874         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109875         * modules/fcntl-safer (configure.ac): Likewise.
109876         * modules/fopen-safer (configure.ac): Likewise.
109877         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109878         GNULIB_FWRITEERROR macro definition.
109880 2007-01-08  Bruno Haible  <bruno@clisp.org>
109882         * m4/gnulib-common.m4: New file.
109883         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109884         (func_get_filelist): Add m4/gnulib-common.m4.
109886 2007-01-08  Bruno Haible  <bruno@clisp.org>
109888         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109889         command.
109891 2007-01-08  Jim Meyering  <jim@meyering.net>
109893         Use a more robust test for a "can't happen" condition.
109894         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109895         narrowed the st_size value.  Presuming the "can't happen" condition
109896         is true, that narrowing could conceivably convert an invalid st_size
109897         value into a valid one.  Instead, use a change based on Matthew
109898         Woehlke's original patch.
109900         Slight readability improvement: use an assert-like macro
109901         in place of literal "abort ()" uses.
109902         * lib/fts.c (fts_assert): Define.
109903         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109904         Use this macro instead of a bare 'abort'.
109906 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109908         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109909         simply work around them.
109910         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109911         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109912         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109913         declaring.
109914         Don't bother to define as macros, since the standard doesn't require it.
109915         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109916         longer worry about IRIX 5.3.
109917         (HAVE_WCTYPE_CTMP_BUG): Remove.
109919 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109921         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109922         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109923         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109924         Problems reported by Georg Schwarz for IRIX 5.3.
109926         * gnulib-tool (autoconf_minversion): Take the maximum version number
109927         found, not the minimum.  Problem reported by James Youngman.
109929 2007-01-03  Karl Berry  <karl@gnu.org>
109931         * doc/error.texi: new file, explaining interaction with progname.
109932         * doc/gnulib.texi: include it.  Update copyright.
109934 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109936         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109937         AC_CANONICAL_HOST, to improve autobuild outputs.
109939 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109940             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109942         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109943         sockets, server sockets, and other file descriptors.  Count errors
109944         to compute the return value.  Reorder the code a bit to be easier
109945         to follow.  Don't set event bits that were not requested (except
109946         POLLERR and POLLHUP).
109948 2007-01-01  Bruno Haible  <bruno@clisp.org>
109950         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109952 2007-01-03  Jim Meyering  <jim@meyering.net>
109954         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109956 2007-01-02  Bruno Haible  <bruno@clisp.org>
109958         * modules/settime (Include): Require timespec.h.
109959         * modules/nanosleep (Include): Likewise.
109961 2007-01-01  Bruno Haible  <bruno@clisp.org>
109963         * gnulib-tool (func_emit_copyright_notice): Bump year.
109964         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109966 2007-01-01  Bruno Haible  <bruno@clisp.org>
109968         Improve support for OpenBSD.
109969         * build-aux/config.rpath (libname_spec): Export.
109970         (library_names_spec): New variable. Export.
109971         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109972         library_names_spec from the config.rpath output. Locate shared library
109973         through the name pattern in library_names_spec.
109975 2007-01-01  Eric Blake  <ebb9@byu.net>
109977         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109979 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109981         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109982         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109983         assume the C locale, and avoid an "eval" that could cause trouble.
109984         Problem with SORT reported by Bob Proulx.
109986         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109987         Define.  Trivial patch from Henning Nielsen Lund, originally
109988         sent to bug-grep@gnu.org today.
109990 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109992         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109993         struct stat.  Problem reported by Henning Nielsen Lund.
109994         * lib/acl.c: Include acl.h first, to check interface.  Don't
109995         bother to include sys/types.h and sys/stat.h again.
109997 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109999         Import the following change from libc; problem reported by
110000         Sven Verdoolaege.
110002         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
110004         [BZ #1373]
110005         * lib/argp.h: Remove __NTH for __argp_usage inline function.
110007 2006-12-28  Jim Meyering  <jim@meyering.net>
110009         * build-aux/announce-gen: Do not assume that the package
110010         builds any of tar.gz, tar.bz2, and .xdelta files.
110011         Suggestion from Simon Josefsson.
110013 2006-12-28  Simon Josefsson  <simon@josefsson.org>
110015         * modules/announce-gen: New file.
110017 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110019         * lib/mbchar.h: Just include <wctype.h>; the wctype module
110020         handles its gotchas now.
110021         * lib/mbswidth.c: Likewise.
110022         * lib/wcwidth.h: Likewise.
110023         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
110024         and iswcntrl; the wctype module does this stuff now.
110025         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110027         * modules/mbchar (Depends-on): Add wctype.
110028         * modules/mbswidth (Depends-on): Likewise.
110029         * modules/wcwidth (Depends-on): Likewise.
110031 2006-12-27  Eric Blake  <ebb9@byu.net>
110033         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
110034         module uses more than what <wctype.h> is required to provide.
110036 2006-12-26  Eric Blake  <ebb9@byu.net>
110038         * gnulib-tool (sed_extract_prog): Avoid space-tab.
110040 2006-12-26  Eric Blake  <ebb9@byu.net>
110042         * modules/absolute-header: New module.
110043         * modules/fcntl (Depends-on): Depend on it.
110044         * modules/inttypes (Depends-on): Likewise.
110045         * modules/stdint (Depends-on): Likewise.
110046         * modules/sys_stat (Depends-on): Likewise.
110047         * modules/wctype (Depends-on): Likewise.
110048         * MODULES.html.sh (Support for building libraries and
110049         executables): Document it.
110051 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
110053         * gnulib-tool (SED): Remove, undoing previous change.
110054         The problem was that it broke coreutils on Solaris, because
110055         "sed --posix" leaked into a makefile.
110056         (sed): New alias, if 'alias' and GNU sed.
110058 2006-12-24  Jim Meyering  <jim@meyering.net>
110060         Work around an fchownat bug in glibc-2.4:
110061         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
110062         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
110063         in spite of the -P option.
110064         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
110065         New macros.
110066         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
110067         * modules/openat (Files): Add lib/fchownat.c.
110068         * lib/openat.c (fchownat): Don't define here.  Move to...
110069         * lib/fchownat.c: ...this new file.
110071 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
110073         Fix bug reported by Bruno Haible in
110074         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
110075         where quotearg.c didn't compile on Mac OS X 10.2 because it
110076         lacks <wchar.h> and wint_t.
110077         * lib/wctype_.h (__wctype_wint_t): New type.
110078         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
110079         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
110080         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
110081         Arg is now of type __wctype_wint_t, not wint_t.
110082         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
110083         substitute HAVE_WINT_T.
110084         * modules/wctype (Files): Add m4/wint_t.m4.
110085         (wctype.h): Substitute HAVE_WINT_T.
110087 2006-12-23  Bruno Haible  <bruno@clisp.org>
110089         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
110091 2006-12-23  Bruno Haible  <bruno@clisp.org>
110093         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
110094         S_ISLNK.
110095         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
110096         mingw.
110098 2006-12-22  Bruno Haible  <bruno@clisp.org>
110100         * lib/copy-file.c: Include acl.h.
110101         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
110102         Close the file descriptors only after being done with copy_acl.
110103         * modules/copy-file (Depends-on): Add acl.
110105 2006-12-22  Bruno Haible  <bruno@clisp.org>
110107         * gnulib-tool (SED): New variable.
110108         Use $SED instead of sed everywhere.
110110 2006-12-22  Bruno Haible  <bruno@clisp.org>
110112         * modules/no-c++: New file.
110113         * m4/no-c++.m4: New file.
110114         * MODULES.html.sh (Support for building libraries and executables):
110115         Add no-c++.
110117 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
110119         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110120         Include <limits.h>, and use its INT_MAX to rewrite the
110121         j loop so that it does not overflow 'int'.  Problem reported by
110122         Ralf Wildenhues in
110123         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
110124         Play it safe by shifting left by 1 rather than multiplying by 2,
110125         as GCC is less likely to optimize this away when the value
110126         is signed (when it assumes overflow leads to undefined behavior).
110127         Also, don't assume time_t uses two's complement.
110129 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
110131         * MODULES.html.sh: New module wctype.
110132         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
110133         * lib/fnmatch.c: Don't bother to include <wchar.h> before
110134         <wctype.h>, since the new wctype module should fix this.
110135         * lib/quotearg.c: Include <wctype.h> unconditionally, since
110136         the wctype module should arrange for it.
110137         * lib/regex_internal.h: Likewise.
110138         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
110139         since the wctype module should handle this now.
110140         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
110141         * modules/fnmatch (Depends-on): Add wctype.
110142         * modules/quotearg (Depends-on): Likewise.
110143         * modules/regex (Depends-on): Likewise.
110145 2006-12-19  Bruno Haible  <bruno@clisp.org>
110147         * lib/strdup.h [C++]: Wrap definitions in extern "C".
110148         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
110150 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110152         * modules/savewd (Depends-on): Fix dependency on fcntl.
110154 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110156         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
110157         conforms to C99, rather than relying on the user's environment
110158         setting of STDINT_H.
110160 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110161         and Eric Blake  <ebb9@byu.net>
110163         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
110164         This is more consistent with the other defines here.
110165         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
110166         Port to z/OS.  Problem reported by Paul Gilmartin.
110167         Change local vars to use gl_ prefix rather than ac_.
110168         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
110169         with other defines.
110170         * modules/double-slash-root: New module.
110171         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110172         (Depends-on): Add double-slash-root.
110173         * MODULES.html.sh (File system functions): Mention new module.
110175 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
110177         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
110178         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
110179         This is for the benefit of gzip, which doesn't do i18n.
110181 2006-12-12  Jim Meyering  <jim@meyering.net>
110183         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
110184         Reported by Andreas Schwab <schwab@suse.de>.
110186 2006-12-12  Bruno Haible  <bruno@clisp.org>
110188         Merge these changes.
110189         2006-09-05  Bruno Haible  <bruno@clisp.org>
110190         * lib/iconvme.c (iconv_string): No need to save and restore errno when
110191         iconv_alloc succeeded.
110192         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
110193         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
110194         test for " && dest " at the end - dest is always != NULL there. Call
110195         iconv with 4xNULL arguments initially, to reset the state. Call iconv
110196         with 2xNULL arguments, also to flush the state storage. Handle the
110197         IRIX iconv behaviour. Realloc the final result, to throw away unused
110198         memory.
110200 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
110202         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
110203         and fchmodat unconditionally, since glibc 2.4 has them.
110204         Problem reported by Arkadiusz Miskiewicz.
110206 2006-12-10  Bruno Haible  <bruno@clisp.org>
110208         * gnulib-tool (func_import): Show the include files only for those
110209         modules that are copied and specified.
110210         Reported by Karl Berry.
110212 2006-12-08  Jim Meyering  <jim@meyering.net>
110214         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
110215         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
110217         * build-aux/announce-gen: Add two new options, both optional:
110218         --bootstrap-tools=TOOL_LIST
110219               a comma-separated list of tools, e.g.,
110220               autoconf,automake,bison,gnulib
110221         --gnulib-snapshot-date=DATE
110222               if gnulib is in the bootstrap tool list,
110223               then report this as the snapshot date.
110224               If not specified, use the current date/time.
110225               If you specify a date here, be sure it's UTC.
110227 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110229         * tests/test-argp-2.sh: Fix test to match actual output.
110230         (func_compare): Fix sed script to be portable.
110232 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
110234         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
110235         workaround for this case.  It is not autoconfigured now; offhand
110236         it's hard to see how to autoconfigure it.
110238 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
110240         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
110241         a directory that is about to be chowned.  Such a directory's
110242         initial file permissions should permit the owner only and this
110243         should not be changed until after the chown, since the group and
110244         other bits would be incorrect if they granted permission before
110245         the chown.
110247         Fix porting problem for iswctype reported by Georg Schwarz in:
110248         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
110249         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
110250         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
110251         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
110252         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
110254 2006-12-03  Jim Meyering  <jim@meyering.net>
110256         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
110257         p->fts_statp may not yet be defined.
110258         (fts_read): Instead, set it in the caller, once p->fts_statp is
110259         sure to be defined, and corresponds to a top-level directory.
110260         This bug made du -x fail.  Here's the coreutils test case:
110261         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
110262         Reported by Mike Frysinger.
110264 2006-12-01  Jim Meyering  <jim@meyering.net>
110266         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
110267         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
110268         Reported by Simon Josefsson.
110270 2006-11-30  Jim Meyering  <jim@meyering.net>
110272         * m4/warning.m4: Use the all-permissive copyright notice
110273         recommended by RMS (rather than LGPL).
110274         * m4/vararrays.m4: Likewise.
110275         * m4/flexmember.m4: Likewise.
110277 2006-11-29  Bruno Haible  <bruno@clisp.org>
110279         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110280         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
110281         using +=.
110282         Reported by Simon Josefsson <simon@josefsson.org>.
110284 2006-11-28  James Youngman  <jay@gnu.org>
110286         * README: Advise users that they might find the bug-gnulib@gnu.org
110287         and autotools-announce@gnu.org mailing lists useful.
110289 2006-11-28  Bruno Haible  <bruno@clisp.org>
110291         * m4/ptrdiff_max.m4: Remove file.
110293 2006-11-21  Bruno Haible  <bruno@clisp.org>
110295         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
110296         _AC_COMPUTE_INT.
110297         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110298         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
110299         _AC_COMPUTE_INT.
110300         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110301         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
110302         _AC_COMPUTE_INT.
110303         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110305 2006-11-28  Jim Meyering  <jim@meyering.net>
110307         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
110308         warning from "gcc -Wshadow" about shadowing the builtin.
110310 2006-11-27  Bruno Haible  <bruno@clisp.org>
110312         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
110313         _AC_COMPUTE_INT.
110314         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110316 2006-11-27  Bruno Haible  <bruno@clisp.org>
110317             Paul Eggert  <eggert@cs.ucla.edu>
110319         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
110321 2006-11-26  Bruno Haible  <bruno@clisp.org>
110323         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110324         noinst_LTLIBRARIES.
110326 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
110327             Bruno Haible  <bruno@clisp.org>
110329         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
110330         if compiling with "gcc -ansi".
110332 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
110334         Fix some incompatibilities with gcc -ansi -pedantic.
110335         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
110336         if compiling pedantically with GCC, unless it's C99 or later.
110337         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
110338         it mishandles gcc -ansi -pedantic as well.
110339         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
110340         if gcc -pedantic.
110341         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110342         initializers for struct if -pedantic, unless it's C99 or later.
110344 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110346         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110347         Don't close an fd more than once. Identical atimes indicate
110348         success, not failure.
110350 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110352         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110354 2006-11-23  Jim Meyering  <jim@meyering.net>
110356         * build-aux/announce-gen: New file.  From coreutils.
110358 2006-11-22  Jim Meyering  <jim@meyering.net>
110360         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110361         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110362         (fts_read): Use a temporary to narrow the overused st_size member
110363         before using it in a switch statement.  Reported by Matthew Woehlke.
110365         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110366         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110368 2006-11-20  Bruno Haible  <bruno@clisp.org>
110370         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110371         changequote instead of pairs of brackets.
110372         Reported by Andreas Schwab <schwab@suse.de>.
110374 2006-11-21  Jim Meyering  <jim@meyering.net>
110376         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110377         so as to remain compatible with older compilers.
110378         Patch from Michael Deutschmann.
110380 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110382         * MODULES.html.sh (File system functions): Add openat.
110384         * lib/openat.h (rpl_fstatat): New macro, if
110385         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110386         (fstatat): Define to rpl_fstatat under the same conditions,
110387         unless COMPILING_FSTATAT.
110388         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110389         seems to have the bug.
110390         * lib/fstatat.c: New file.
110391         * modules/openat (Files): Add it.
110393 2006-11-20  Bruno Haible  <bruno@clisp.org>
110395         * Makefile: New file.
110397 2006-11-20  Jim Meyering  <jim@meyering.net>
110399         The beginnings of syntax-related checks for gnulib.
110400         * lib/Makefile: New file.
110401         * lib/t-idcache: New script.  Ensure that the two halves of
110402         idcache.c stay in sync.
110404         * lib/idcache.c: Adjust comments in user- and group- portions to
110405         be more accurate, and to be consistent with one another.
110407 2006-11-20  Jim Meyering  <jim@meyering.net>
110409         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110410         continue using the flexible array member (thus, this module performs
110411         half as many malloc calls), with the addition that...
110412         (getgroup, getuser): Consistently record a non-match via an empty
110413         "name" string, and map an empty string match to a NULL return value.
110414         * modules/idcache (Depends-on): Re-add flexmember.
110416         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110417         (getuidbyname, getgroup, getgidbyname): Likewise.
110419         Use cleaner syntax: NULL rather than 0.
110420         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110422 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110424         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110425         It mishandled the case where the group was missing.
110426         Problem reported by Greg Schafer.
110427         * modules/idcache: Likewise.
110429 2006-11-18  Jim Meyering  <jim@meyering.net>
110431         * check-module (%exempt_header): Add exception for some
110432         conditionally-included headers.
110434         * modules/i-ring (Depends-on): Add verify.
110435         (License): Change to LGPL.
110437 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110439         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110440         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110441         and inttostr.h.  Use snprintf rather than uinttostr, so that
110442         LGPLed code doesn't depend on GPLed.
110444 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110446         * modules/inline (License): Change from GPL to LGPL.
110448 2006-11-17  Jim Meyering  <jim@meyering.net>
110450         * modules/d-type (License): Switch to LGPL.
110452 2006-11-15  Bruno Haible  <bruno@clisp.org>
110454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
110456 2006-11-15  Eric Blake  <ebb9@byu.net>
110458         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
110459         the module dependency.
110461 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110462             Bruno Haible  <bruno@clisp.org>
110464         * gnulib-tool (func_create_testdir): Add license consistency check.
110466 2006-11-15  Eric Blake  <ebb9@byu.net>
110468         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
110469         random "(cached)" in configure output.
110471 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110473         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
110474         test for conforming inttypes.h is both announced and cached.
110476         * MODULES.html.sh (seen_modules, seen_files): New variables.
110477         (func_module): Rewrite to use a few less gnulib-tool and sed
110478         invocations.  Avoid a couple of quadratic algorithms for ...
110479         (missed_modules, missed_files): ... these, with ...
110480         (func_append, func_tmpdir): ... these new functions, from
110481         gnulib-tool.  Analogously, install traps for cleanup.
110483         * tests/test-gc.c (main): Remove unused variables.
110484         * tests/test-read-file.c: Include stdlib.h, for 'free'.
110486 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
110488         * modules/inttostr (License): Change to LGPL.
110490 2006-11-14  Eric Blake  <ebb9@byu.net>
110492         * modules/tempname (License): Change to LGPL.
110494 2006-11-14  Eric Blake  <ebb9@byu.net>
110496         * doc/functions.texi (Function Portability): *printf functions on
110497         Cygwin now understand all POSIX size specifiers.
110499 2006-11-14  Bruno Haible  <bruno@clisp.org>
110501         * modules/c-ctype (License): Change to LGPL.
110503 2006-11-12  Bruno Haible  <bruno@clisp.org>
110505         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
110506         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
110507         for GNOME libraries, for which the include files are installed in
110508         subdirectories of $prefix/include.
110510 2006-11-12  Bruno Haible  <bruno@clisp.org>
110512         * m4/lib-link.m4: Require at least autoconf-2.54.
110513         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
110514         name to underscores for the --with option.
110516 2006-11-13  Bruno Haible  <bruno@clisp.org>
110518         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
110519         the tests directory.
110520         Reported by Ralf Wildenhues.
110522 2006-11-13  Bruno Haible  <bruno@clisp.org>
110524         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
110525         (func_emit_initmacro_end): Undo the override here.
110526         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
110527         Works around the famous automake error in coreutils.
110529 2006-11-13  Eric Blake  <ebb9@byu.net>
110531         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
110532         element, not its node.
110534 2006-11-12  Bruno Haible  <bruno@clisp.org>
110536         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
110537         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
110539 2006-11-12  Bruno Haible  <bruno@clisp.org>
110541         * gnulib-tool: New option --local-symlink.
110542         (func_usage): Document it.
110543         (lsymbolic): New variable.
110544         (func_import, func_create_testdir): If --symlink was not specified,
110545         test whether --local-symlink was specified and the file comes from
110546         the local_gnulib_dir.
110548 2006-11-12  Bruno Haible  <bruno@clisp.org>
110550         * gnulib-tool (func_ln): New function.
110551         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
110553 2006-11-12  Bruno Haible  <bruno@clisp.org>
110555         Finish support for source files in subdirectories.
110556         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
110557         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
110558         AUTOMAKE_OPTIONS.
110559         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
110561 2006-11-12  Bruno Haible  <bruno@clisp.org>
110563         * gnulib-tool (func_get_automake_snippet): Synthesize also an
110564         EXTRA_lib_SOURCES augmentation.
110565         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
110567 2006-11-12  Jim Meyering  <jim@meyering.net>
110569         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
110570         file descriptors.  This also averts a failure on systems with
110571         native openat support when a traversed directory lacks "x" access.
110572         * lib/fts_.h: Include "i-ring.h"
110573         (struct FTS) [fts_fd_ring]: New member.
110574         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
110575         (FCHDIR): Add parentheses.
110576         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
110577         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
110578         When descending, rather than simply closing the previous
110579         fts_cwd_fd value, push that file descriptor onto the ring.
110580         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
110581         (fts_open): Initialize the new fd_ring member.
110582         (fts_close): Clear the ring.
110583         (fts_safe_changedir): When possible, use our new fd_ring to skip
110584         the diropen and fstat and dev/ino comparison that would normally
110585         accompany a virtual `chdir ("..")'.
110587         * modules/fts (Depends-on): Add i-ring.
110588         * modules/i-ring: New module.
110589         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110590         * m4/i-ring.m4: New file.
110592 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110594         * gnulib-tool (func_create_testdir): Fix replacement of
110595         `build-aux' in configure.ac.  Run autotools in gltests
110596         subdirectory.
110597         (func_create_testdir, func_create_megatestdir, test): There is
110598         no need for '--force' in most autotool invocations in a new
110599         tree.  Actually fail the whole test if any of the tools, or the
110600         configure or make stages fail.
110602         Sync from Automake.
110603         * build-aux/gnupload: Revert last change.  Add pointer to upload
110604         instructions of the GNU Maintenance Instructions.
110605         Suggestion by Karl Berry.
110607 2006-11-10  Jim Meyering  <jim@meyering.net>
110609         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
110611 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110613         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
110614         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
110615         (bind_textdomain_codeset) [! ENABLE_NLS]:
110616         Evaluate all the arguments.  That way, callers get compatible behavior
110617         if the arguments have side effects.  Also, it avoids some GCC
110618         diagnostics in some cases; Joel E. Denny reported problems when Bison
110619         was configured with --enable-gcc-warnigs.
110621 2006-11-10  Jim Meyering  <jim@meyering.net>
110623         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
110624         relevant options in CFLAGS (like -O, -fno-inline) are taken into
110625         account.
110627 2006-11-10  Jim Meyering  <jim@meyering.net>
110629         * modules/inline: New file/module.
110630         * modules/xalloc (Files): Remove m4/inline.m4.
110631         (Depends-on): Add inline, instead.
110632         * modules/oset: Likewise.
110633         * modules/list: Likewise.
110635 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110637         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
110638         Problem reported by Matthew Woehlke.
110640 2006-11-09  Bruno Haible  <bruno@clisp.org>
110642         * lib/tempname.c (gen_tempname): Remove variant that invokes
110643         __gen_tempname.
110644         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
110645         __gen_tempname.
110647 2006-11-08  Bruno Haible  <bruno@clisp.org>
110649         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
110650         to 'yes' instead of 'cross-compiling'.
110652 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
110654         * lib/quotearg.h (quotearg_free): New decl.
110655         * lib/quotearg.c (quotearg_free): New function.
110656         (slot0, nslots, slotvec0, slotvec):
110657         Now file-scope so that quotearg_free can get at them.
110659 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110661         Sync from Automake.
110662         * build-aux/gnupload: Add missing 'gnu' to example URL.
110663         Report by Karl Berry.
110665 2006-11-08  Bruno Haible  <bruno@clisp.org>
110667         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110668         Suggested by Paul Eggert.
110670 2006-11-08  Jim Meyering  <jim@meyering.net>
110672         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110673         It's already included if !_LIBC.
110674         (fts_safe_changedir): Add a comment.
110676 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110678         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110679         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110680         Matthew Woehlke.
110682         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110683         definitions up, to avoid colliding with change below.
110684         (static_inline) [HAVE_INLINE]: New macro.
110685         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110686         Provide extern decls when !HAVE_INLINE.  Do not define unless
110687         static_inline is defined, either by us or by xmalloc.c.  Use
110688         static_inline rather than static inline.
110689         (XCALLOC): Optimize sizeof(T) = 1 case.
110690         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110692 2006-11-07  Bruno Haible  <bruno@clisp.org>
110694         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110695         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110696         AC_C_INLINE.
110697         * modules/xalloc (Files): Add m4/inline.m4.
110699 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110701         * README: Fix typo.
110702         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110703         (Miscellanous Notes): ...from this.
110705 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110707         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110708         Mention that offsetof should be used instead of sizeof.
110709         From Bruno Haible.
110711 2006-11-07  Bruno Haible  <bruno@clisp.org>
110713         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110715 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110717         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110718         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110719         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110720         (gl_tree_add_before, gl_tree_add_after):
110721         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110722         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110723         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110724         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110725         (gl_linked_add_after, gl_linked_add_at): Likewise.
110726         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110727         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110728         (gl_tree_add_before, gl_tree_add_after): Likewise.
110729         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110730         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110731         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110733 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110735         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110737 2006-11-06  Bruno Haible  <bruno@clisp.org>
110739         * m4/inline.m4: New file.
110740         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110741         * modules/list (Files): Add m4/inline.m4.
110742         * modules/oset (Files): Likewise.
110744 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110746         * lib/idcache.c: Include <stddef.h>, for offsetof.
110747         (struct userid.name): Change from char * to a flexible array member.
110748         All uses changed.
110749         * modules/idcache (Depends-on): Add flexmember.
110751         * MODULES.html.sh (Core language properties): New module flexmember.
110752         * modules/flexmember, m4/flexmember.m4: New files.
110754         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110755         inline functions that are identical with the old xnmalloc_inline,
110756         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110757         that we can avoid some unnecessary integer multiplications and
110758         divisions in the common case where the element size is known at
110759         compile time.
110760         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110761         needed.
110762         (xnboundedmalloc): Remove.
110763         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110764         arguments, for consistency with rest of this header.
110765         (xcharalloc): Rewrite using XNMALLOC.
110766         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110767         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110768         versions have been moved to lib/xalloc.h and renamed to be the
110769         non-*_inline versions.
110770         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110771         and xnrealloc functions, since those functions are now inline and
110772         now call us.
110773         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110774         renaming described above.
110775         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110776         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110777         captures the dependency in AC_C_INLINE.
110779         New module canonicalize-lgpl, proposed by Charles Wilson in
110780         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110781         with a few small changes afterwards.
110782         * MODULES.html.sh (File system functions): New module
110783         canonicalize-lgpl.
110784         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110785         and canonicalize_file_name.
110786         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110787         * modules/canonicalize-lgpl: New files.
110789 2006-11-05  Bruno Haible  <bruno@clisp.org>
110791         * gnulib-tool (func_import, func_create_testdir): Create directories
110792         also for files in subdirectories of lib/.
110794 2006-11-05  Bruno Haible  <bruno@clisp.org>
110796         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110797         ANSI C compliant.
110799 2006-11-03  Bruno Haible  <bruno@clisp.org>
110801         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110802         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110803         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110804         (xnboundedmalloc): New inline function.
110805         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110806         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110807         xmalloc.
110808         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110809         xmalloc.
110810         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110811         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110812         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110813         xmalloc.
110814         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110815         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110816         xmalloc.
110817         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110818         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110819         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110820         xmalloc.
110821         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110822         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110823         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110824         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110825         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110826         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110827         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110829 2006-11-03  Bruno Haible  <bruno@clisp.org>
110831         * lib/c-ctype.h [C++]: Define functions without name mangling.
110832         * lib/fwriteerror.h [C++]: Likewise.
110833         * lib/gcd.h [C++]: Likewise.
110834         * lib/linebreak.h [C++]: Likewise.
110836 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110838         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110839         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110840         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110841         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110842         Check for functions and headers just once.
110843         Check for declaration of canonicalize_file_name.
110844         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110846 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110848         * gnulib-tool (func_import): Fix typo in actioncmd.
110850 2006-11-02  Bruno Haible  <bruno@clisp.org>
110852         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110853         newline sequence in the Makefile.am snippet as a space, like "make"
110854         does.
110855         Reported by Roger Persson <perrog@gmail.com>.
110857 2006-11-01  Bruno Haible  <bruno@clisp.org>
110859         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110860         already declared in <string.h>.
110861         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110863 2006-11-01  Bruno Haible  <bruno@clisp.org>
110865         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110866         * lib/strcase.h: Include <string.h>.
110867         (strcasecmp): Define to rpl_strcasecmp here.
110869 2006-11-01  Bruno Haible  <bruno@clisp.org>
110871         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110873 2006-11-01  Eric Blake  <ebb9@byu.net>
110875         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110877         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110879 2006-10-29  Bruno Haible  <bruno@clisp.org>
110881         Make it compile in C++ mode.
110882         * lib/full-write.c (full_rw): Add a cast.
110884 2006-11-01  Bruno Haible  <bruno@clisp.org>
110886         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110887         be POSIX compliant.
110888         Reported by Roger Persson <perrog@gmail.com>.
110890 2006-11-01  Eric Blake  <ebb9@byu.net>
110892         * lib/getopt_.h: Fix comments.
110894 2006-10-31  Eric Blake  <ebb9@byu.net>
110896         * modules/tmpdir (Depends-on): Add sys_stat.
110897         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110898         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110899         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110900         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110901         tempname.
110903 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110905         Avoid some C++ diagnostics reported by Bruno Haible.
110906         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110907         xmalloc.
110908         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110909         (struct slotvec): Move to top level.
110910         (quotearg_n_options): Rewrite to avoid xmalloc.
110911         * lib/xalloc.h (xcharalloc): New function.
110912         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110913         [defined __cplusplus]: Add function template that provides result
110914         type propagation.  This part of the change is from Bruno Haible.
110916 2006-10-29  Bruno Haible  <bruno@clisp.org>
110918         Make it compile in C++ mode.
110919         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110920         * lib/strnlen1.c (strnlen1): Cast memchr result.
110921         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110922         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110923         (create_temp_dir): Rename local variable 'template'.
110924         (compile_csharp_using_sscli): Add cast.
110925         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110926         * lib/findprog.c (find_in_path): Likewise.
110927         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110928         * lib/wait-process.c (register_slave_subprocess): Likewise.
110930 2006-10-22  Bruno Haible  <bruno@clisp.org>
110932         * modules/tsearch: New file.
110933         * lib/tsearch.h: New file.
110934         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110935         * m4/tsearch.m4: New file.
110936         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110938 2006-10-29  Eric Blake  <ebb9@byu.net>
110940         * lib/arcfour.c: Assume config.h.
110941         * lib/arctwo.c: Likewise.
110942         * lib/base64.c: Likewise.
110943         * lib/check-version.c: Likewise.
110944         * lib/crc.c: Likewise.
110945         * lib/des.c: Likewise.
110946         * lib/gc-gnulib.c: Likewise.
110947         * lib/gc-libgcrypt.c: Likewise.
110948         * lib/gc-pbkdf2-sha1.c: Likewise.
110949         * lib/getaddrinfo.c: Likewise.
110950         * lib/getdelim.c: Likewise.
110951         * lib/getline.c: Likewise.
110952         * lib/hmac-md5.c: Likewise.
110953         * lib/hmac-sha1.c: Likewise.
110954         * lib/iconvme.c: Likewise.
110955         * lib/md2.c: Likewise.
110956         * lib/md4.c: Likewise.
110957         * lib/memxor.c: Likewise.
110958         * lib/read-file.c: Likewise.
110959         * lib/readline.c: Likewise.
110960         * lib/rijndael-alg-fst.c: Likewise.
110961         * lib/rijndael-api-fst.c: Likewise.
110962         * lib/xgetdomainname.c: Likewise.
110964 2006-10-28  Eric Blake  <ebb9@byu.net>
110966         * lib/xstrndup.c: Assume config.h.
110968 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110970         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110971         stat-macros.h is now for our own macros, whereas stat_h is for
110972         macros in the <sys/stat.h> name space.
110973         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110974         (STAT_MACROS_H): Remove.
110975         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110976         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110977         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110978         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110979         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110980         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110981         Move these macros to ...
110982         * lib/stat_.h: here.  Don't include stat-macros.h.
110983         * lib/canonicalize.c: Don't include stat-macros.h.
110984         * lib/chown.c: Likewise.
110985         * lib/euidaccess.c: Likewise.
110986         * lib/file-type.c: Likewise.
110987         * lib/filemode.c: Likewise.
110988         * lib/glob.c: Likewise.
110989         * lib/isapipe.c: Likewise.
110990         * lib/lchown.c: Likewise.
110991         * lib/lstat.c: Likewise.
110992         * lib/mkdir-p.c: Likewise.
110993         * lib/rmdir.c: Likewise.
110994         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110995         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110996         unless mkdir isn't declared, to speed up 'configure'.
110997         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110998         would define all the S_* symbols.
110999         * modules/canonicalize (Depends-on):
111000         Depend on sys_stat, not stat-macros.
111001         * modules/chown: Likewise.
111002         * modules/euidaccess: Likewise.
111003         * modules/filemode: Likewise.
111004         * modules/file-type: Likewise.
111005         * modules/glob: Likewise.
111006         * modules/isapipe: Likewise.
111007         * modules/lchown: Likewise.
111008         * modules/lstat: Likewise.
111009         * modules/mkancesdirs: Likewise.
111010         * modules/rmdir: Likewise.
111011         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
111012         * modules/modechange: Likewise.
111013         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
111014         (configure.ac): Remove gl_STAT_MACROS.
111015         * modules/sys_stat (Depends-on): Remove stat-macros.
111017 2006-10-27  Bruno Haible  <bruno@clisp.org>
111019         * m4/signed.m4: Remove file.
111020         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
111021         invocation.
111022         * modules/vasnprintf (Files): Remove m4/signed.m4.
111024 2006-10-27  Bruno Haible  <bruno@clisp.org>
111026         Update to GNU gettext 0.16.
111027         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
111028         m4/inttypes-h.m4, m4/signed.m4.
111029         * m4/gettext.m4: Update to GNU gettext 0.16.
111030         * m4/intl.m4: New file, from GNU gettext.
111031         * m4/intldir.m4: New file, from GNU gettext.
111032         * config/srclist.txt: Update
111034 2006-10-27  Eric Blake  <ebb9@byu.net>
111036         * MODULES.html.sh: Document tempname.
111037         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
111038         dependencies.
111039         (Files): Move lib/tempname.c...
111040         * modules/tempname: ...to this new module.
111041         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
111042         (gl_PREREQ_TEMPNAME): Move...
111043         * m4/tempname.m4: ...to this new file.
111044         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
111045         * modules/sys_stat (Depends-on): Add stat-macros.
111046         * lib/stat_.h (includes): Pick up stat macros.
111047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
111048         if stat macros are broken.
111049         * lib/tempname.c (includes): No need to include "stat-macros.h".
111050         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
111051         (direxists, __path_search) [!_LIBC]: Don't compile these in
111052         gnulib; the tmpdir module covers that.
111053         * lib/tempname.h: New file.
111055 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
111057         * COPYING: Explain how gnulib-tool converts licence headers.
111058         Almost all wording by Eric Blake.
111060 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
111062         * lib/mbchar.h (is_basic_table): Make read-only.
111063         * lib/mbchar.c (is_basic_table): Likewise.
111064         Reported by John Darrington.
111066 2006-10-25  Bruno Haible  <bruno@clisp.org>
111068         * lib/progname.h (set_program_name): Undefine before defining.
111070 2006-10-25  Bruno Haible  <bruno@clisp.org>
111072         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
111073         false for non-gcc C++ compilers.
111074         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
111076 2006-10-24  Bruno Haible  <bruno@clisp.org>
111078         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
111079         iconv implementations like Irix iconv.
111081 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111083         * modules/vararrays: New file.
111084         * m4/vararrays.m4: New file, taken from diffutils.
111085         * MODULES.html.sh: New module vararrays.
111087 2006-10-24  Karl Berry  <karl@gnu.org>
111089         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
111090         Don't call GNU Unix.
111092 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111094         * users.txt: Add Libtool.
111096         Sync from Libtool:
111098         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111100         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
111101         to gnulib's policy of including config.h unconditionally.
111103 2006-10-24  Bruno Haible  <bruno@clisp.org>
111105         * modules/wcwidth (Files): Add m4/wint_t.m4.
111106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
111107         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
111109 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111111         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
111112         to pacify GCC with some -W flags enabled.  Problem reported by
111113         Bruno Haible.
111115 2006-10-24  Jim Meyering  <jim@meyering.net>
111117         * MODULES.html.sh: Remove uinttostr.  It's not a module.
111118         Reported by Karl Berry.
111120 2006-10-23  Bruno Haible  <bruno@clisp.org>
111122         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
111124 2006-10-24  Bruno Haible  <bruno@clisp.org>
111126         * lib/gl_list.h: Use C comment style, not C++ comment style.
111128 2006-10-23  Eric Blake  <ebb9@byu.net>
111130         * lib/getaddrinfo.c (includes): Add missing include.
111132 2006-10-23  Bruno Haible  <bruno@clisp.org>
111133             Paul Eggert  <eggert@cs.ucla.edu>
111135         Ability to rename obstack_free.
111136         * lib/obstack.h (__obstack_free): New macro. Declare instead of
111137         obstack_free.
111138         (obstack_free): Invoke the __obstack_free macro.
111139         * lib/obstack.c (obstack_free): Use __obstack_free macro.
111141 2006-10-23  Bruno Haible  <bruno@clisp.org>
111142             Paul Eggert  <eggert@cs.ucla.edu>
111144         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
111145         __argc, __argv from the declaration. (They are defined as macros on
111146         mingw.)
111148 2006-10-22  Bruno Haible  <bruno@clisp.org>
111150         * doc/gnulib-intro.texi: New file.
111151         * doc/gnulib.texi: Include it.
111153 2006-10-21  Bruno Haible  <bruno@clisp.org>
111155         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
111156         "Introduction", "Miscellanous Notes", "Particular Modules".
111158 2006-10-21  Bruno Haible  <bruno@clisp.org>
111160         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111161         Change mostlyclean-local rule to avoid sh syntax error from bash
111162         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
111164 2006-10-23  Jim Meyering  <jim@meyering.net>
111166         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
111167         in place of snprintf.
111169         * modules/inttostr (Files): Add lib/uinttostr.c.
111170         * lib/uinttostr.c (inttostr): New file/function.
111171         * lib/inttostr.h (uinttostr): Declare.
111172         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111173         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111174         Add uinttostr.
111175         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
111177 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111179         * lib/canonicalize.c (ELOOP): Define if not already defined.
111180         Problem reported by Bruno Haible in
111181         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
111183 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111185         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
111186         Problem reported by Perry Smith and Ville Laurikari.
111188         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
111189         uses.
111191 2006-10-19  Bruno Haible  <bruno@clisp.org>
111193         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
111194         for mingw.
111196 2006-10-19  Bruno Haible  <bruno@clisp.org>
111198         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
111199         Needed for mingw.
111201 2006-10-19  Bruno Haible  <bruno@clisp.org>
111203         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
111205 2006-10-19  Bruno Haible  <bruno@clisp.org>
111207         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
111208         it.
111210 2006-10-19  Bruno Haible  <bruno@clisp.org>
111212         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
111213         invocation.
111215 2006-10-19  Bruno Haible  <bruno@clisp.org>
111217         * gnulib-tool (func_create_testdir): Don't include ftruncate and
111218         mountlist by default.
111220 2006-10-16  Bruno Haible  <bruno@clisp.org>
111222         * lib/c-strstr.c: Include c-strstr.h.
111224 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111226         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
111227         in a slash.
111229 2006-10-18  Bruno Haible  <bruno@clisp.org>
111231         * lib/lock.h [C++]: Wrap definitions in extern "C".
111233 2006-10-18  Bruno Haible  <bruno@clisp.org>
111235         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
111236         gl_LIBOBJS list.
111238 2006-10-18  Bruno Haible  <bruno@clisp.org>
111240         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
111242 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
111244         * lib/xstrtol.h: Include gettext.h.
111245         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
111246         Problem reported by Eric Blake.
111247         * modules/xstrtol (Depends-on): Add gettext-h.
111249 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
111251         * lib/strftime.c (advance): New macro.
111252         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
111253         incomplete type, so you can't add 0 to it.  Problem and patch
111254         reported by Eelco Dolstra for dietlibc.
111256 2006-10-18  Jim Meyering  <jim@meyering.net>
111258         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
111259         type for a local, and rename it: s/up/user_proc/.
111261 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
111263         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
111264         READ_UTMP_USER_PROCESS.
111265         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
111267 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
111269         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
111270         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
111272 2006-10-17  Eric Blake  <ebb9@byu.net>
111274         * lib/sigprocmask.c (sigprocmask): Fix typo.
111276         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
111278         * modules/clean-temp (Makefile.am): Don't add to make output...
111279         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
111280         config.h.
111282 2006-10-17  Bruno Haible  <bruno@clisp.org>
111284         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
111285         differently if DEFAULT_TEXT_DOMAIN is set.
111287 2006-10-16  Bruno Haible  <bruno@clisp.org>
111289         * lib/clean-temp.c: Include fwriteerror.h.
111291 2006-10-16  Bruno Haible  <bruno@clisp.org>
111293         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
111295 2006-10-16  Bruno Haible  <bruno@clisp.org>
111297         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
111298         * lib/sigprocmask.h: Include <sys/types.h>.
111299         (sigset_t): Use the system's definition if present.
111301 2006-10-17  Eric Blake  <ebb9@byu.net>
111303         * lib/xvasprintf.c (includes): Assume config.h.
111304         * lib/xasprintf.c (includes): Likewise.
111306 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
111308         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
111309         at least as wide as intmax_t.
111311 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
111313         (Imported from Automake.)
111314         * build-aux/gnupload: Update to version 1.1 of directive file.
111316 2006-10-16  Eric Blake  <ebb9@byu.net>
111318         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
111319         match Automake 1.10a.
111321 2006-10-14  Bruno Haible  <bruno@clisp.org>
111323         * modules/sigprocmask: New file.
111324         * lib/sigprocmask.h: New file.
111325         * lib/sigprocmask.c: New file.
111326         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
111327         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
111328         request sigprocmask.o.
111329         (gl_PREREQ_SIGPROCMASK): New macro.
111330         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
111331         (Depends-on): Add sigprocmask.
111332         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
111333         gt_SIGNALBLOCKING. Test for 'raise' only once.
111334         * lib/fatal-signal.c: Include sigprocmask.h.
111335         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
111336         unblock_fatal_signals): Define always.
111337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111338         sigprocmask.
111340 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111342         Sync from Automake.
111343         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111344         which incorrectly sets the mode of an existing destination
111345         directory.  In some cases the unpatched install-sh could do the
111346         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111347         system.  We hope this is rare in practice, but it's clearly worth
111348         fixing.  Problem reported by Alex Unleashed in
111349         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111350         Also, don't bother to check for -m bugs unless we're using -m;
111351         suggested by Stepan Kasal.
111353 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111355         Sync from Automake.
111356         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111357         `-c' flag, so they appear at the same position as in %FASTDEP%
111358         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111359         which ignores unknown options only after the first non-option.
111360         Bug report against M4 by Nelson H. F. Beebe.
111362 2006-10-13  Jim Meyering  <jim@meyering.net>
111364         Fix a bug in yesterday's change.
111365         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111366         p->fts_statp->st_dev would be used uninitialized.
111367         Ensures that we always call fts_stat on the very first entry.
111368         Miklos Szeredi reported that find -xdev stopped working.
111370 2006-10-12  Bruno Haible  <bruno@clisp.org>
111372         * gnulib-tool (func_get_automake_snippet): Append an automatically
111373         computed EXTRA_DIST augmentation.
111374         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111375         * modules/alloca-opt (Makefile.am): Likewise.
111376         * modules/allocsa (Makefile.am): Likewise.
111377         * modules/arcfour (Makefile.am): Likewise.
111378         * modules/arctwo (Makefile.am): Likewise.
111379         * modules/argmatch (Makefile.am): Likewise.
111380         * modules/argz (Makefile.am): Likewise.
111381         * modules/atexit (Makefile.am): Likewise.
111382         * modules/backupfile (Makefile.am): Likewise.
111383         * modules/byteswap (Makefile.am): Likewise.
111384         * modules/c-strtod (Makefile.am): Likewise.
111385         * modules/c-strtold (Makefile.am): Likewise.
111386         * modules/calloc (Makefile.am): Likewise.
111387         * modules/canon-host (Makefile.am): Likewise.
111388         * modules/canonicalize (Makefile.am): Likewise.
111389         * modules/chdir-long (Makefile.am): Likewise.
111390         * modules/chdir-safer (Makefile.am): Likewise.
111391         * modules/check-version (Makefile.am): Likewise.
111392         * modules/chown (Makefile.am): Likewise.
111393         * modules/cloexec (Makefile.am): Likewise.
111394         * modules/close-stream (Makefile.am): Likewise.
111395         * modules/closeout (Makefile.am): Likewise.
111396         * modules/crc (Makefile.am): Likewise.
111397         * modules/csharpexec (Makefile.am): Likewise.
111398         * modules/cycle-check (Makefile.am): Likewise.
111399         * modules/des (Makefile.am): Likewise.
111400         * modules/dev-ino (Makefile.am): Likewise.
111401         * modules/dirfd (Makefile.am): Likewise.
111402         * modules/dirname (Makefile.am): Likewise.
111403         * modules/dup2 (Makefile.am): Likewise.
111404         * modules/eealloc (Makefile.am): Likewise.
111405         * modules/error (Makefile.am): Likewise.
111406         * modules/euidaccess (Makefile.am): Likewise.
111407         * modules/exclude (Makefile.am): Likewise.
111408         * modules/exitfail (Makefile.am): Likewise.
111409         * modules/fcntl-safer (Makefile.am): Likewise.
111410         * modules/fcntl (Makefile.am): Likewise.
111411         * modules/file-type (Makefile.am): Likewise.
111412         * modules/fileblocks (Makefile.am): Likewise.
111413         * modules/filemode (Makefile.am): Likewise.
111414         * modules/filenamecat (Makefile.am): Likewise.
111415         * modules/fnmatch (Makefile.am): Likewise.
111416         * modules/fopen-safer (Makefile.am): Likewise.
111417         * modules/fpending (Makefile.am): Likewise.
111418         * modules/fprintftime (Makefile.am): Likewise.
111419         * modules/free (Makefile.am): Likewise.
111420         * modules/fsusage (Makefile.am): Likewise.
111421         * modules/ftruncate (Makefile.am): Likewise.
111422         * modules/fts (Makefile.am): Likewise.
111423         * modules/gc-arcfour (Makefile.am): Likewise.
111424         * modules/gc-des (Makefile.am): Likewise.
111425         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111426         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111427         * modules/gc-md4 (Makefile.am): Likewise.
111428         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111429         * modules/gc-sha1 (Makefile.am): Likewise.
111430         * modules/gc (Makefile.am): Likewise.
111431         * modules/getaddrinfo (Makefile.am): Likewise.
111432         * modules/getcwd (Makefile.am): Likewise.
111433         * modules/getdelim (Makefile.am): Likewise.
111434         * modules/getdomainname (Makefile.am): Likewise.
111435         * modules/getgroups (Makefile.am): Likewise.
111436         * modules/gethostname (Makefile.am): Likewise.
111437         * modules/gethrxtime (Makefile.am): Likewise.
111438         * modules/getline (Makefile.am): Likewise.
111439         * modules/getloadavg (Makefile.am): Likewise.
111440         * modules/getlogin_r (Makefile.am): Likewise.
111441         * modules/getndelim2 (Makefile.am): Likewise.
111442         * modules/getopt (Makefile.am): Likewise.
111443         * modules/getpagesize (Makefile.am): Likewise.
111444         * modules/getpass-gnu (Makefile.am): Likewise.
111445         * modules/getpass (Makefile.am): Likewise.
111446         * modules/getsubopt (Makefile.am): Likewise.
111447         * modules/gettime (Makefile.am): Likewise.
111448         * modules/gettimeofday (Makefile.am): Likewise.
111449         * modules/getugroups (Makefile.am): Likewise.
111450         * modules/getusershell (Makefile.am): Likewise.
111451         * modules/glob (Makefile.am): Likewise.
111452         * modules/group-member (Makefile.am): Likewise.
111453         * modules/hard-locale (Makefile.am): Likewise.
111454         * modules/hash (Makefile.am): Likewise.
111455         * modules/hmac-md5 (Makefile.am): Likewise.
111456         * modules/hmac-sha1 (Makefile.am): Likewise.
111457         * modules/human (Makefile.am): Likewise.
111458         * modules/idcache (Makefile.am): Likewise.
111459         * modules/imaxabs (Makefile.am): Likewise.
111460         * modules/imaxdiv (Makefile.am): Likewise.
111461         * modules/inet_ntop (Makefile.am): Likewise.
111462         * modules/inet_pton (Makefile.am): Likewise.
111463         * modules/intprops (Makefile.am): Likewise.
111464         * modules/inttostr (Makefile.am): Likewise.
111465         * modules/inttypes (Makefile.am): Likewise.
111466         * modules/isapipe (Makefile.am): Likewise.
111467         * modules/javaversion (Makefile.am): Likewise.
111468         * modules/lchmod (Makefile.am): Likewise.
111469         * modules/lchown (Makefile.am): Likewise.
111470         * modules/localcharset (Makefile.am): Likewise.
111471         * modules/long-options (Makefile.am): Likewise.
111472         * modules/lstat (Makefile.am): Likewise.
111473         * modules/malloc (Makefile.am): Likewise.
111474         * modules/mathl (Makefile.am): Likewise.
111475         * modules/mbchar (Makefile.am): Likewise.
111476         * modules/md2 (Makefile.am): Likewise.
111477         * modules/md4 (Makefile.am): Likewise.
111478         * modules/md5 (Makefile.am): Likewise.
111479         * modules/memcasecmp (Makefile.am): Likewise.
111480         * modules/memchr (Makefile.am): Likewise.
111481         * modules/memcmp (Makefile.am): Likewise.
111482         * modules/memcoll (Makefile.am): Likewise.
111483         * modules/memcpy (Makefile.am): Likewise.
111484         * modules/memmem (Makefile.am): Likewise.
111485         * modules/memmove (Makefile.am): Likewise.
111486         * modules/mempcpy (Makefile.am): Likewise.
111487         * modules/memrchr (Makefile.am): Likewise.
111488         * modules/memset (Makefile.am): Likewise.
111489         * modules/memxor (Makefile.am): Likewise.
111490         * modules/mkancesdirs (Makefile.am): Likewise.
111491         * modules/mkdir-p (Makefile.am): Likewise.
111492         * modules/mkdir (Makefile.am): Likewise.
111493         * modules/mkdtemp (Makefile.am): Likewise.
111494         * modules/mkstemp (Makefile.am): Likewise.
111495         * modules/mktime (Makefile.am): Likewise.
111496         * modules/modechange (Makefile.am): Likewise.
111497         * modules/mountlist (Makefile.am): Likewise.
111498         * modules/nanosleep (Makefile.am): Likewise.
111499         * modules/obstack (Makefile.am): Likewise.
111500         * modules/openat (Makefile.am): Likewise.
111501         * modules/pagealign_alloc (Makefile.am): Likewise.
111502         * modules/pathmax (Makefile.am): Likewise.
111503         * modules/physmem (Makefile.am): Likewise.
111504         * modules/poll (Makefile.am): Likewise.
111505         * modules/posixtm (Makefile.am): Likewise.
111506         * modules/posixver (Makefile.am): Likewise.
111507         * modules/putenv (Makefile.am): Likewise.
111508         * modules/quote (Makefile.am): Likewise.
111509         * modules/quotearg (Makefile.am): Likewise.
111510         * modules/raise (Makefile.am): Likewise.
111511         * modules/read-file (Makefile.am): Likewise.
111512         * modules/readline (Makefile.am): Likewise.
111513         * modules/readlink (Makefile.am): Likewise.
111514         * modules/readtokens (Makefile.am): Likewise.
111515         * modules/readutmp (Makefile.am): Likewise.
111516         * modules/realloc (Makefile.am): Likewise.
111517         * modules/regex (Makefile.am): Likewise.
111518         * modules/rename-dest-slash (Makefile.am): Likewise.
111519         * modules/rename (Makefile.am): Likewise.
111520         * modules/rijndael (Makefile.am): Likewise.
111521         * modules/rmdir (Makefile.am): Likewise.
111522         * modules/rpmatch (Makefile.am): Likewise.
111523         * modules/safe-read (Makefile.am): Likewise.
111524         * modules/safe-write (Makefile.am): Likewise.
111525         * modules/same-inode (Makefile.am): Likewise.
111526         * modules/same (Makefile.am): Likewise.
111527         * modules/save-cwd (Makefile.am): Likewise.
111528         * modules/savedir (Makefile.am): Likewise.
111529         * modules/setenv (Makefile.am): Likewise.
111530         * modules/settime (Makefile.am): Likewise.
111531         * modules/sha1 (Makefile.am): Likewise.
111532         * modules/sig2str (Makefile.am): Likewise.
111533         * modules/snprintf (Makefile.am): Likewise.
111534         * modules/stat-macros (Makefile.am): Likewise.
111535         * modules/stat-time (Makefile.am): Likewise.
111536         * modules/stdbool (Makefile.am): Likewise.
111537         * modules/stdint (Makefile.am): Likewise.
111538         * modules/stdlib-safer (Makefile.am): Likewise.
111539         * modules/stpcpy (Makefile.am): Likewise.
111540         * modules/stpncpy (Makefile.am): Likewise.
111541         * modules/strcase (Makefile.am): Likewise.
111542         * modules/strcasestr (Makefile.am): Likewise.
111543         * modules/strchrnul (Makefile.am): Likewise.
111544         * modules/strcspn (Makefile.am): Likewise.
111545         * modules/strdup (Makefile.am): Likewise.
111546         * modules/strerror (Makefile.am): Likewise.
111547         * modules/strftime (Makefile.am): Likewise.
111548         * modules/strndup (Makefile.am): Likewise.
111549         * modules/strnlen (Makefile.am): Likewise.
111550         * modules/strpbrk (Makefile.am): Likewise.
111551         * modules/strsep (Makefile.am): Likewise.
111552         * modules/strstr (Makefile.am): Likewise.
111553         * modules/strtod (Makefile.am): Likewise.
111554         * modules/strtoimax (Makefile.am): Likewise.
111555         * modules/strtok_r (Makefile.am): Likewise.
111556         * modules/strtol (Makefile.am): Likewise.
111557         * modules/strtoll (Makefile.am): Likewise.
111558         * modules/strtoul (Makefile.am): Likewise.
111559         * modules/strtoull (Makefile.am): Likewise.
111560         * modules/strtoumax (Makefile.am): Likewise.
111561         * modules/strverscmp (Makefile.am): Likewise.
111562         * modules/sys_socket (Makefile.am): Likewise.
111563         * modules/sys_stat (Makefile.am): Likewise.
111564         * modules/sysexits (Makefile.am): Likewise.
111565         * modules/time_r (Makefile.am): Likewise.
111566         * modules/timegm (Makefile.am): Likewise.
111567         * modules/timespec (Makefile.am): Likewise.
111568         * modules/tmpfile-safer (Makefile.am): Likewise.
111569         * modules/trim (Makefile.am): Likewise.
111570         * modules/unistd-safer (Makefile.am): Likewise.
111571         * modules/unlinkdir (Makefile.am): Likewise.
111572         * modules/unlocked-io (Makefile.am): Likewise.
111573         * modules/userspec (Makefile.am): Likewise.
111574         * modules/utime (Makefile.am): Likewise.
111575         * modules/utimecmp (Makefile.am): Likewise.
111576         * modules/utimens (Makefile.am): Likewise.
111577         * modules/vasnprintf (Makefile.am): Likewise.
111578         * modules/vasprintf (Makefile.am): Likewise.
111579         * modules/vsnprintf (Makefile.am): Likewise.
111580         * modules/xalloc (Makefile.am): Likewise.
111581         * modules/xgetcwd (Makefile.am): Likewise.
111582         * modules/xnanosleep (Makefile.am): Likewise.
111583         * modules/xreadlink (Makefile.am): Likewise.
111584         * modules/xstrtod (Makefile.am): Likewise.
111585         * modules/xstrtol (Makefile.am): Likewise.
111586         * modules/xstrtold (Makefile.am): Likewise.
111587         * modules/yesno (Makefile.am): Likewise.
111588         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111590 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111592         * modules/error (Makefile.am): Distribute files through
111593         EXTRA_DIST, not lib_SOURCES.
111595 2006-10-12  Eric Blake  <ebb9@byu.net>
111597         * modules/error (Makefile.am): Distribute files in /lib.
111598         * modules/obstack (Makefile.am): Likewise.
111600 2006-10-12  Bruno Haible  <bruno@clisp.org>
111602         * modules/acl (Makefile.am): Distribute all files in lib/ through
111603         EXTRA_DIST.
111604         * modules/arcfour (Makefile.am): Likewise.
111605         * modules/arctwo (Makefile.am): Likewise.
111606         * modules/argmatch (Makefile.am): Likewise.
111607         * modules/argz (Makefile.am): Likewise.
111608         * modules/atexit (Makefile.am): Likewise.
111609         * modules/backupfile (Makefile.am): Likewise.
111610         * modules/c-strtod (Makefile.am): Likewise.
111611         * modules/c-strtold (Makefile.am): Likewise.
111612         * modules/calloc (Makefile.am): Likewise.
111613         * modules/canon-host (Makefile.am): Likewise.
111614         * modules/canonicalize (Makefile.am): Likewise.
111615         * modules/chdir-long (Makefile.am): Likewise.
111616         * modules/chdir-safer (Makefile.am): Likewise.
111617         * modules/check-version (Makefile.am): Likewise.
111618         * modules/chown (Makefile.am): Likewise.
111619         * modules/cloexec (Makefile.am): Likewise.
111620         * modules/close-stream (Makefile.am): Likewise.
111621         * modules/closeout (Makefile.am): Likewise.
111622         * modules/crc (Makefile.am): Likewise.
111623         * modules/cycle-check (Makefile.am): Likewise.
111624         * modules/des (Makefile.am): Likewise.
111625         * modules/dirfd (Makefile.am): Likewise.
111626         * modules/dirname (Makefile.am): Likewise.
111627         * modules/dup2 (Makefile.am): Likewise.
111628         * modules/euidaccess (Makefile.am): Likewise.
111629         * modules/exclude (Makefile.am): Likewise.
111630         * modules/exitfail (Makefile.am): Likewise.
111631         * modules/fcntl-safer (Makefile.am): Likewise.
111632         * modules/file-type (Makefile.am): Likewise.
111633         * modules/fileblocks (Makefile.am): Likewise.
111634         * modules/filemode (Makefile.am): Likewise.
111635         * modules/filenamecat (Makefile.am): Likewise.
111636         * modules/fnmatch (Makefile.am): Likewise.
111637         * modules/fopen-safer (Makefile.am): Likewise.
111638         * modules/fpending (Makefile.am): Likewise.
111639         * modules/fprintftime (Makefile.am): Likewise.
111640         * modules/free (Makefile.am): Likewise.
111641         * modules/fsusage (Makefile.am): Likewise.
111642         * modules/ftruncate (Makefile.am): Likewise.
111643         * modules/fts (Makefile.am): Likewise.
111644         * modules/gc (Makefile.am): Likewise.
111645         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111646         * modules/getaddrinfo (Makefile.am): Likewise.
111647         * modules/getcwd (Makefile.am): Likewise.
111648         * modules/getdelim (Makefile.am): Likewise.
111649         * modules/getdomainname (Makefile.am): Likewise.
111650         * modules/getgroups (Makefile.am): Likewise.
111651         * modules/gethostname (Makefile.am): Likewise.
111652         * modules/gethrxtime (Makefile.am): Likewise.
111653         * modules/getline (Makefile.am): Likewise.
111654         * modules/getloadavg (Makefile.am): Likewise.
111655         * modules/getlogin_r (Makefile.am): Likewise.
111656         * modules/getopt (Makefile.am): Likewise.
111657         * modules/getpass (Makefile.am): Likewise.
111658         * modules/getpass-gnu (Makefile.am): Likewise.
111659         * modules/getsubopt (Makefile.am): Likewise.
111660         * modules/gettime (Makefile.am): Likewise.
111661         * modules/gettimeofday (Makefile.am): Likewise.
111662         * modules/getugroups (Makefile.am): Likewise.
111663         * modules/getusershell (Makefile.am): Likewise.
111664         * modules/glob (Makefile.am): Likewise.
111665         * modules/group-member (Makefile.am): Likewise.
111666         * modules/hard-locale (Makefile.am): Likewise.
111667         * modules/hash (Makefile.am): Likewise.
111668         * modules/hmac-md5 (Makefile.am): Likewise.
111669         * modules/hmac-sha1 (Makefile.am): Likewise.
111670         * modules/human (Makefile.am): Likewise.
111671         * modules/idcache (Makefile.am): Likewise.
111672         * modules/imaxabs (Makefile.am): Likewise.
111673         * modules/imaxdiv (Makefile.am): Likewise.
111674         * modules/inet_ntop (Makefile.am): Likewise.
111675         * modules/inet_pton (Makefile.am): Likewise.
111676         * modules/inttostr (Makefile.am): Likewise.
111677         * modules/isapipe (Makefile.am): Likewise.
111678         * modules/lchown (Makefile.am): Likewise.
111679         * modules/long-options (Makefile.am): Likewise.
111680         * modules/lstat (Makefile.am): Likewise.
111681         * modules/malloc (Makefile.am): Likewise.
111682         * modules/mathl (Makefile.am): Likewise.
111683         * modules/mbchar (Makefile.am): Likewise.
111684         * modules/md2 (Makefile.am): Likewise.
111685         * modules/md4 (Makefile.am): Likewise.
111686         * modules/md5 (Makefile.am): Likewise.
111687         * modules/memcasecmp (Makefile.am): Likewise.
111688         * modules/memchr (Makefile.am): Likewise.
111689         * modules/memcmp (Makefile.am): Likewise.
111690         * modules/memcoll (Makefile.am): Likewise.
111691         * modules/memcpy (Makefile.am): Likewise.
111692         * modules/memmem (Makefile.am): Likewise.
111693         * modules/memmove (Makefile.am): Likewise.
111694         * modules/mempcpy (Makefile.am): Likewise.
111695         * modules/memrchr (Makefile.am): Likewise.
111696         * modules/memset (Makefile.am): Likewise.
111697         * modules/memxor (Makefile.am): Likewise.
111698         * modules/mkancesdirs (Makefile.am): Likewise.
111699         * modules/mkdir (Makefile.am): Likewise.
111700         * modules/mkdir-p (Makefile.am): Likewise.
111701         * modules/mkdtemp (Makefile.am): Likewise.
111702         * modules/mkstemp (Makefile.am): Likewise.
111703         * modules/mktime (Makefile.am): Likewise.
111704         * modules/modechange (Makefile.am): Likewise.
111705         * modules/mountlist (Makefile.am): Likewise.
111706         * modules/nanosleep (Makefile.am): Likewise.
111707         * modules/openat (Makefile.am): Likewise.
111708         * modules/pagealign_alloc (Makefile.am): Likewise.
111709         * modules/physmem (Makefile.am): Likewise.
111710         * modules/poll (Makefile.am): Likewise.
111711         * modules/posixtm (Makefile.am): Likewise.
111712         * modules/posixver (Makefile.am): Likewise.
111713         * modules/putenv (Makefile.am): Likewise.
111714         * modules/quote (Makefile.am): Likewise.
111715         * modules/quotearg (Makefile.am): Likewise.
111716         * modules/raise (Makefile.am): Likewise.
111717         * modules/read-file (Makefile.am): Likewise.
111718         * modules/readline (Makefile.am): Likewise.
111719         * modules/readlink (Makefile.am): Likewise.
111720         * modules/readtokens (Makefile.am): Likewise.
111721         * modules/readutmp (Makefile.am): Likewise.
111722         * modules/realloc (Makefile.am): Likewise.
111723         * modules/regex (Makefile.am): Likewise.
111724         * modules/rename (Makefile.am): Likewise.
111725         * modules/rename-dest-slash (Makefile.am): Likewise.
111726         * modules/rijndael (Makefile.am): Likewise.
111727         * modules/rmdir (Makefile.am): Likewise.
111728         * modules/rpmatch (Makefile.am): Likewise.
111729         * modules/safe-read (Makefile.am): Likewise.
111730         * modules/safe-write (Makefile.am): Likewise.
111731         * modules/same (Makefile.am): Likewise.
111732         * modules/save-cwd (Makefile.am): Likewise.
111733         * modules/savedir (Makefile.am): Likewise.
111734         * modules/setenv (Makefile.am): Likewise.
111735         * modules/settime (Makefile.am): Likewise.
111736         * modules/sha1 (Makefile.am): Likewise.
111737         * modules/sig2str (Makefile.am): Likewise.
111738         * modules/snprintf (Makefile.am): Likewise.
111739         * modules/stdlib-safer (Makefile.am): Likewise.
111740         * modules/stpcpy (Makefile.am): Likewise.
111741         * modules/stpncpy (Makefile.am): Likewise.
111742         * modules/strcase (Makefile.am): Likewise.
111743         * modules/strcasestr (Makefile.am): Likewise.
111744         * modules/strchrnul (Makefile.am): Likewise.
111745         * modules/strcspn (Makefile.am): Likewise.
111746         * modules/strdup (Makefile.am): Likewise.
111747         * modules/strerror (Makefile.am): Likewise.
111748         * modules/strftime (Makefile.am): Likewise.
111749         * modules/strndup (Makefile.am): Likewise.
111750         * modules/strnlen (Makefile.am): Likewise.
111751         * modules/strpbrk (Makefile.am): Likewise.
111752         * modules/strsep (Makefile.am): Likewise.
111753         * modules/strstr (Makefile.am): Likewise.
111754         * modules/strtod (Makefile.am): Likewise.
111755         * modules/strtoimax (Makefile.am): Likewise.
111756         * modules/strtok_r (Makefile.am): Likewise.
111757         * modules/strtol (Makefile.am): Likewise.
111758         * modules/strtoll (Makefile.am): Likewise.
111759         * modules/strtoul (Makefile.am): Likewise.
111760         * modules/strtoull (Makefile.am): Likewise.
111761         * modules/strtoumax (Makefile.am): Likewise.
111762         * modules/strverscmp (Makefile.am): Likewise.
111763         * modules/time_r (Makefile.am): Likewise.
111764         * modules/timegm (Makefile.am): Likewise.
111765         * modules/tmpfile-safer (Makefile.am): Likewise.
111766         * modules/unistd-safer (Makefile.am): Likewise.
111767         * modules/unlinkdir (Makefile.am): Likewise.
111768         * modules/userspec (Makefile.am): Likewise.
111769         * modules/utime (Makefile.am): Likewise.
111770         * modules/utimecmp (Makefile.am): Likewise.
111771         * modules/utimens (Makefile.am): Likewise.
111772         * modules/vasnprintf (Makefile.am): Likewise.
111773         * modules/vasprintf (Makefile.am): Likewise.
111774         * modules/vsnprintf (Makefile.am): Likewise.
111775         * modules/xalloc (Makefile.am): Likewise.
111776         * modules/xgetcwd (Makefile.am): Likewise.
111777         * modules/xnanosleep (Makefile.am): Likewise.
111778         * modules/xreadlink (Makefile.am): Likewise.
111779         * modules/xstrtod (Makefile.am): Likewise.
111780         * modules/xstrtol (Makefile.am): Likewise.
111781         * modules/xstrtold (Makefile.am): Likewise.
111782         * modules/yesno (Makefile.am): Likewise.
111784 2006-10-12  Jim Meyering  <jim@meyering.net>
111786         * m4/getloadavg.m4: Revert the change below.
111788         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111789         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111790         fail with a symlink, which is what coreutils' ./bootstrap now
111791         creates by default.
111793 2006-10-12  Bruno Haible  <bruno@clisp.org>
111795         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111796         mingw.
111797         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111798         MSVC and mingw explicitly.
111800 2006-10-11  Simon Josefsson  <jas@extundo.com>
111801             Bruno Haible  <bruno@clisp.org>
111803         Add support for multiple gnulib-tool invocations in the scope of a
111804         single configure.ac file.
111805         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111806         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111807         with the same contents as the _LIBADD variable.
111808         (func_emit_initmacro_start, func_emit_initmacro_end,
111809         func_emit_initmacro_done): New functions.
111810         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111811         gl_LIBOBJS and gl_LTLIBOBJS.
111813 2006-10-11  Bruno Haible  <bruno@clisp.org>
111815         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111816         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111817         autoreconf. Instead, invoke autopoint explicitly but move back the
111818         *.m4 files from gnulib.
111820 2006-10-11  Bruno Haible  <bruno@clisp.org>
111822         * gnulib-tool (func_usage): Make module names after --create-testdir
111823         optional.
111824         (func_create_testdir): If no module was specified, use nearly all
111825         modules.
111827 2006-10-12  Jim Meyering  <jim@meyering.net>
111829         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111830         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111831         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111832         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111833         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111834         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111835         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111836         (fts_set_stat_required): New function.
111837         (fts_open): Defer the calls to fts_stat, if possible or requested.
111838         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111839         into fts_stat itself.
111840         (fts_read): Perform any required (deferred) fts_stat call.
111841         (fts_build): Likewise, for the directory we're about to open and read.
111842         In the readdir loop, carefully decide whether each entry will require
111843         an eventual call to fts_stat, using dirent.d_type info if available.
111844         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111845         a command line argument into this function.  Update all callers.
111846         Map a return value of FTS_DOT to FTS_D for a command line argument.
111847         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111848         Thanks to Miklos Szeredi for his tenacity and for the initial
111849         bug report about "find" failing on a FUSE-based file system.
111851         * lib/fts.c (fts_open): Use consistent indentation.
111853 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111855         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111856         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111857         reported by Jim Meyering.  All uses of cache variables renamed
111858         to match Autoconf's.
111859         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111860         the other one.
111862         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111863         Fix misspelling in diagnostic.
111865 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111867         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111868         defined.  Problem reported by Matthew Woehlke.
111870         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111871         Add support for Tandem NonStop R series.
111872         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111873         Use new macro.
111875         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111876         (has_trailing_slash): Omit size arg; all callers changed.
111877         Omit 'inline', since it doesn't help performance and we'd
111878         need to configure it.
111879         Don't count //, ///, etc. as having a trailing slash.
111880         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111881         (rpl_rename_dest_slash): On failure, use rename's errno rather
111882         than (in some cases) an incorrect or junk errno.
111883         Simplify code by removing need to compute length; this does
111884         cause it to make two passes instead of one over the file name,
111885         but it's worth it.
111887         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111888         change, since Autoconf's version may no longer be appropriate now
111889         that we are using CVS Autoconf's version.  Add support for Tandem.
111891 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111892             Bruno Haible  <bruno@clisp.org>
111894         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111895         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111896         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111897         gl_AC_TYPE_LONG_LONG.
111899         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111900         instead of HAVE_LONG_LONG.
111901         * lib/printf-args.c (printf_fetchargs): Likewise.
111902         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111903         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111904         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111905         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111906         gl_AC_TYPE_LONG_LONG.
111908 2006-10-11  Bruno Haible  <bruno@clisp.org>
111910         * m4/longlong.m4: Add comments.
111911         * m4/ulonglong.m4: Likewise.
111913 2006-10-10  Bruno Haible  <bruno@clisp.org>
111915         Make it possible to #define stpcpy, strdup to aliases.
111916         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111917         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111919 2006-10-10  Bruno Haible  <bruno@clisp.org>
111921         Make it possible to #define gcd to an alias.
111922         * lib/gcd.c: Include config.h.
111924 2006-10-10  Bruno Haible  <bruno@clisp.org>
111926         Make it possible to #define c_isascii to an alias.
111927         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111928         defined. Undefine the macros before defining them, to avoid gcc
111929         warnings.
111930         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111931         define NO_C_CTYPE_MACROS early.
111933 2006-10-10  Bruno Haible  <bruno@clisp.org>
111935         Make it possible to #define set_program_name to an alias.
111936         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111937         ENABLE_RELOCATABLE early.
111939 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111941         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111942         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111943         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111944         More generally, don't assume that 64-bit signed int is available
111945         if unsigned int is, and vice versa.
111946         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111947         unsigned symbols, not on their signed counterparts.
111948         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111949         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111950         (UINT64_C, UINTMAX_C):
111951         Likewise.
111952         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111953         unsigned counterparts.
111954         (Have_long_long, Unsigned): New macros.
111955         (Int): Renamed from INT.
111956         (strtoimax): Use the new macros.
111957         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111958         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111959         * modules/inttypes (inttypes.h): Substitute
111960         HAVE_UNSIGNED_LONG_LONG_INT.
111961         * modules/stdint (stdint.h): Likewise.
111962         (Files): Add m4/ulonglong.m4.
111964 2006-10-10  Bruno Haible  <bruno@clisp.org>
111966         Fix a gcc -Wshadow warning.
111967         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111968         to 'bucket'.
111969         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111970         gl_linked_indexof_from_to): Likewise.
111971         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111972         Likewise.
111973         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111974         Likewise.
111975         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111976         Reported by Eric Blake.
111978 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111980         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111981         for NetBSD.  Problem reported by Bruno Haible.
111983 2006-10-09  Jim Meyering  <jim@meyering.net>
111985         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111986         Patch from Bruno Haible.
111988 2006-10-09  Jim Meyering  <jim@meyering.net>
111990         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111991         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111992         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111994 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111996         Don't include <config.h> twice; this doesn't work in some cases,
111997         e.g., when config.h has "#define intmax_t long long int" and
111998         we include <config.h>, <inttypes.h>, <config.h> in that order.
111999         Problem reported by Matthew Woehlke in:
112000         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
112001         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
112002         * lib/fts-cycle.c: Don't include config.h.
112003         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
112004         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
112005         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
112006         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
112007         inttypes.h.
112008         * lib/xstrtoumax.c: Likewise.
112009         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
112010         __strtol and the like, so that this module is more like its siblings.
112011         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
112012         Remove; no longer needed now that we assume gnulib inttypes.h.
112014 2006-10-08  Bruno Haible  <bruno@clisp.org>
112016         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
112017         option.
112019 2006-10-07  Jim Meyering  <jim@meyering.net>
112021         * modules/inttypes (inttypes.h): Revert what seems to have been
112022         an inadvertent part of today's change: use "|", not "/" in the
112023         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
112025 2006-10-07  Bruno Haible  <bruno@clisp.org>
112027         * modules/sublist: New file.
112029 2006-10-07  Bruno Haible  <bruno@clisp.org>
112031         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
112032         * modules/argz (argz.h): Likewise.
112033         * modules/arpa_inet (arpa/inet.h): Likewise.
112034         * modules/byteswap (byteswap.h): Likewise.
112035         * modules/configmake (configmake.h): Likewise.
112036         * modules/fcntl (fcntl.h): Likewise.
112037         * modules/fnmatch (fnmatch.h): Likewise.
112038         * modules/getopt (getopt.h): Likewise.
112039         * modules/glob (glob.h): Likewise.
112040         * modules/inttypes (inttypes.h): Likewise.
112041         * modules/netinet_in (netinet/in.h): Likewise.
112042         * modules/poll (poll.h): Likewise.
112043         * modules/stdbool (stdbool.h): Likewise.
112044         * modules/stdint (stdint.h): Likewise.
112045         * modules/sys_select (sys/select.h): Likewise.
112046         * modules/sys_socket (sys/socket.h): Likewise.
112047         * modules/sys_stat (sys/stat.h): Likewise.
112048         * modules/sysexits (sysexits.h): Likewise.
112049         * modules/unistd (unistd.h): Likewise.
112050         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112051         Add a "DO NOT EDIT" comment to the generated file.
112052         (func_import): Likewise for gnulib-comp.m4.
112054 2006-10-07  Bruno Haible  <bruno@clisp.org>
112056         * lib/gl_sublist.h: New file.
112057         * lib/gl_sublist.c: New file.
112059 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
112061         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
112062         name (relative to the original working directory) and the file
112063         name component (relative to the temporary working directory).  All
112064         callers changed.
112065         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
112066         * lib/mkdir-p.c (make_dir_parents): Likewise.
112067         * lib/mkdir-p.h (make_dir_parents): Likewise.
112069 2006-10-06  Eric Blake  <ebb9@byu.net>
112071         Define several macros for use by the clean-temp module.
112072         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
112073         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
112074         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
112076         * lib/clean-temp.h (close_stream_temp): New declaration.
112077         * lib/clean-temp.c (includes): Pull in headers according to what
112078         other modules are in use.
112079         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
112081 2006-10-06  Bruno Haible  <bruno@clisp.org>
112083         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
112084         instead of fopen, fwriteerror.
112086 2006-10-06  Bruno Haible  <bruno@clisp.org>
112088         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
112089         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
112090         int.
112091         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
112092         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
112093         Return an error indicator.
112094         Suggested by Eric Blake.
112096 2006-10-06  Bruno Haible  <bruno@clisp.org>
112098         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
112099         Reported by Eric Blake.
112101 2006-10-06  Bruno Haible  <bruno@clisp.org>
112103         * modules/closeout (Description): Mention stderr too.
112105 2006-10-06  Bruno Haible  <bruno@clisp.org>
112106         and Paul Eggert  <eggert@cs.ucla.edu>
112108         * lib/closeout.c (close_stdout): Also close stderr.
112109         * lib/closeout.h: Update comment.
112111 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
112113         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
112114         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
112115         * lib/dirchownmod.c: Include lchown.h.
112116         * lib/lchown.c: Don't include files that lchown.h now includes.
112117         Don't declare chown, since lchown.h now does that.
112118         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
112119         (lchown): Define to rpl_chown if lchown is declared but
112120         does not exist.  Declare using a prototype if lchown is not
112121         declared.  Add a copyright notice.
112122         * lib/mkstemp.h: Include <unistd.h>.
112123         * lib/openat.c: Include lchown.h.
112125         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
112126         we now test for that separately.
112127         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
112128         rather than O_NOFOLLOW, when testing whether it's possible to
112129         avoid a race condition reliably.
112130         * lib/savewd.c (savewd_chdir): Likewise.
112132         Remove macros that are no longer needed now that stdint.h is
112133         reliable.
112134         * lib/fsusage.c (UINTMAX_MAX): Remove.
112135         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
112136         * lib/utimecmp.c (SIZE_MAX): Remove.
112138         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
112140         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
112141         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
112142         O_NOATIME works.
112144 2006-10-05  Bruno Haible  <bruno@clisp.org>
112146         * lib/gl_list.h (gl_sortedlist_search_from_to,
112147         gl_sortedlist_indexof_from_to): New declarations.
112148         (gl_list_implementation): New fields sortedlist_search_from_to,
112149         sortedlist_indexof_from_to.
112150         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
112151         inline functions.
112152         * lib/gl_list.c (gl_sortedlist_search_from_to,
112153         gl_sortedlist_indexof_from_to): New functions.
112154         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
112155         function.
112156         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
112157         (gl_array_sortedlist_search_from_to): New function.
112158         (gl_array_list_implementation): Update.
112159         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
112160         function.
112161         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
112162         (gl_carray_sortedlist_search_from_to): New function.
112163         (gl_carray_list_implementation): Update.
112164         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
112165         gl_linked_sortedlist_indexof_from_to): New functions.
112166         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112167         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112168         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
112169         gl_tree_sortedlist_indexof_from_to): New functions.
112170         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112171         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112172         Update.
112173         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112174         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112175         Update.
112177 2006-10-05  Bruno Haible  <bruno@clisp.org>
112179         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
112180         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
112181         (struct gl_list_implementation): Add fields search_from_to,
112182         indexof_from_to. Remove fields search, indexof.
112183         (gl_list_search): Use the search_from_to method.
112184         (gl_list_search_from, gl_list_search_from_to): New functions.
112185         (gl_list_indexof): Use the indexof_from_to method.
112186         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112187         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
112188         (gl_list_search_from, gl_list_search_from_to): New functions.
112189         (gl_list_indexof): Use the indexof_from_to method.
112190         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112191         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
112192         gl_array_indexof. Add start_index, end_index arguments.
112193         (gl_array_search_from_to): Renamed from gl_array_search. Add
112194         start_index, end_index arguments.
112195         (gl_array_remove, gl_array_list_implementation): Update.
112196         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
112197         gl_carray_indexof. Add start_index, end_index arguments.
112198         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
112199         start_index, end_index arguments.
112200         (gl_carray_remove, gl_carray_list_implementation): Update.
112201         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
112202         gl_linked_search. Add start_index, end_index arguments.
112203         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
112204         start_index, end_index arguments.
112205         (gl_linked_remove): Update.
112206         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112207         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112208         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
112209         field to 'size_t'.
112210         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
112211         gl_tree_search. Add start_index, end_index arguments.
112212         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112213         start_index, end_index arguments.
112214         (gl_tree_remove): Update.
112215         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112216         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112217         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
112218         function.
112219         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
112220         gl_tree_search. Add start_index, end_index arguments.
112221         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112222         start_index, end_index arguments.
112223         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112224         Update.
112225         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
112227 2006-10-05  Bruno Haible  <bruno@clisp.org>
112229         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
112231         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
112232         fwriteerror_temp): New declarations.
112233         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
112234         (descriptors): New variable.
112235         (cleanup): First, close the descriptors.
112236         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
112237         fclose_temp, fwriteerror_temp): New functions.
112239 2006-10-04  Jim Meyering  <jim@meyering.net>
112241         * lib/fts.c (fts_open): Tiny comment change.
112243 2006-10-04  Bruno Haible  <bruno@clisp.org>
112245         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
112246         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
112247         gl_LOCK_BODY.
112248         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
112249         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
112250         gl_LOCK_EARLY_BODY.
112251         (gl_LOCK): Require gl_LOCK_BODY.
112253 2006-10-04  Bruno Haible  <bruno@clisp.org>
112255         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
112256         (gl_oset_search_atleast): New declaration.
112257         (struct gl_oset_implementation): Add field 'search_atleast'.
112258         (gl_oset_search_atleast): New inline function.
112259         * lib/gl_oset.c (gl_oset_search_atleast): New function.
112260         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
112261         (gl_array_oset_implementation): Update.
112262         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
112263         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
112264         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
112266 2006-10-04  Bruno Haible  <bruno@clisp.org>
112268         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
112270 2006-10-03  Bruno Haible  <bruno@clisp.org>
112272         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
112273         from gl_avltreehash_list_implementation.
112275 2006-10-03  Bruno Haible  <bruno@clisp.org>
112277         * lib/gl_oset.c (gl_oset_add): Fix return type.
112279 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
112281         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
112283 2006-10-02  Eric Blake  <ebb9@byu.net>
112285         * modules/strnlen (Depends-on): Add extensions.
112287 2006-10-02  Eric Blake  <ebb9@byu.net>
112289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
112290         definition in 2.60+.
112292 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
112294         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
112295         checks.
112297 2006-10-02  Bruno Haible  <bruno@clisp.org>
112299         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
112300         to the AUTOMAKE_OPTIONS.
112301         Reported by Jim Meyering.
112303 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
112305         Work around bug in Solaris 10 /proc file system:
112306         /proc/self/fd/NNN/.. isn't the parent directory of
112307         the directory whose file descriptor is NNN.  This needs to
112308         be worked around at run time, not compile time, since a
112309         program might be built on Solaris 8, where things work, and
112310         run on Solaris 10.
112311         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
112312         to use the following interface instead:
112313         (OPENAT_BUFFER_SIZE): New macro.
112314         (openat_proc_name): New function.
112315         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
112316         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
112317         Likewise.
112318         * lib/openat-proc.c: New file.
112319         * modules/openat (Files): Add lib/openat-proc.c.
112320         (Depends-on): Add same-inode, stdbool.
112321         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
112323 2006-09-29  Bruno Haible  <bruno@clisp.org>
112325         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
112326         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
112327         argument. Set stdout_closed before testing for ferror, not after.
112328         (fwriteerror, fwriteerror_no_ebadf): New functions.
112330 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112332         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
112334 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
112336         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
112337         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
112339 2006-09-28  Jim Meyering  <jim@meyering.net>
112341         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112342         Include <unistd.h>.
112344 2006-09-28  Bruno Haible  <bruno@clisp.org>
112346         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112347         * modules/linkedhash-list (Depends-on): Likewise.
112348         * modules/rbtreehash-list (Depends-on): Likewise.
112350 2006-09-28  Bruno Haible  <bruno@clisp.org>
112352         * lib/strndup.h: Simplify the redefinition of strndup.
112353         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112354         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112356 2006-09-28  Bruno Haible  <bruno@clisp.org>
112358         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112359         * lib/gl_linkedhash_list.c: Likewise.
112360         * lib/gl_rbtreehash_list.c: Likewise.
112362 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112364         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112365         getaddrinfo.
112367         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112368         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112369         it causes <stdio_ext.h> to cause a compile-time error.
112370         Problem reported by Nelson H. F. Beebe.
112371         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112372         of HAVE_DECL___PENDING.
112374         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112375         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112376         declaration.
112378 2006-09-27  Jim Meyering  <jim@meyering.net>
112380         This file could end up with a definition for a function
112381         named __strndup, rather than rpl_strndup on a system with
112382         incomplete weak_alias support.
112383         * lib/strndup.c (strndup): Rename from __strndup.
112384         Remove #defines that used to map __strndup to strndup.
112385         Don't use K&R prototypes.
112386         Remove LIBC-related code, since this file is not sync'd with glibc.
112387         * lib/strndup.h: Revamp, accordingly.
112388         * m4/strndup.m4: Modernize.
112390 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112392         * modules/savewd (Depends-on): Add 'raise'.
112393         * lib/savewd.c: Include <signal.h>, for 'raise'.
112395 2006-09-26  Jim Meyering  <jim@meyering.net>
112397         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112398         when we detect Darwin 8.7.0's acl_get_file bug.
112399         Rearrange to perform the new (below) run-test while $LIBS
112400         contains any acl-related library.  Set USE_ACL at the end.
112401         (gl_ACL_GET_FILE): New function.
112403 2006-09-26  Eric Blake  <ebb9@byu.net>
112405         * lib/verror.c: Include <config.h> unconditionally.
112407 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112409         * modules/clock-time (Maintainer): Add self.
112410         * modules/getlogin_r (Depends-on): Add extensions.
112412 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112414         * modules/clock-time: New module.
112415         * modules/nanosleep (Depends-on): Add clock-time.
112416         * modules/gethrxtime (Depends-on): Likewise.
112417         * modules/gettime (Depends-on): Likewise.
112418         * modules/settime (Depends-on): Likewise.
112420         * modules/fts-lgpl: Depend on openat.
112421         * modules/mkancesdirs: Depend on savewd.
112422         * modules/mkdir-p: Likewise.
112424 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112426         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112428         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112429         `gl_have_arbitrary_file_name_length_limit' to
112430         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112431         actually works between configure runs.
112433 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112434             Bruno Haible  <bruno@clisp.org>
112436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112438 2006-09-25  Jim Meyering  <jim@meyering.net>
112440         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112441         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112443 2006-09-25  Eric Blake  <ebb9@byu.net>
112445         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112446         exec's in 2006-09-18 patch when shuffling fds.
112448 2006-09-25  Bruno Haible  <bruno@clisp.org>
112450         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112451         Reported by Jim Meyering.
112453 2006-09-24  Jim Meyering  <jim@meyering.net>
112455         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
112456         compare a pointer against a literal "0".  That caused failures with
112457         at least HP-UX's hpcc.
112459 2006-09-22  Simon Josefsson  <jas@extundo.com>
112461         * modules/gc-sha1:
112462         * modules/gc-md4:
112463         * modules/gc-hmac-sha1:
112464         * modules/gc-hmac-md5:
112465         * modules/gc-des:
112466         * modules/gc-arcfour: Distribute more files.
112468 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112470         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
112471         (gl_linked_iterator_from_to): Initialize struct completely.
112472         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
112473         (gl_tree_iterator_from_to): Likewise
112474         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
112475         * lib/gl_array_list.c [lint] (gl_array_iterator)
112476         (gl_array_iterator_from_to): Likewise.
112477         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
112478         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
112479         (gl_carray_iterator_from_to): Likewise.
112481         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
112482         * lib/md4.c (md4_process_block): Remove unused variable.
112483         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
112484         parentheses for clarity.
112486 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112488         * modules/bison-i18n (Depends-on): Add gettext.
112490 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112492         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
112493         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
112494         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
112495         also add missing comma that caused broken test.
112496         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
112497         stdlib.h, for `abort'.
112498         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
112499         variables.
112500         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
112501         include unistd.h if present, for `rmdir'.
112502         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
112503         variables.
112504         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
112505         in the process include standard headers for prototypes.
112506         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
112507         gets declared on GNU/Linux.
112508         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
112509         unistd.h, for `rmdir'.
112510         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
112512         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
112513         always true.
112514         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
112516         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
112518 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112520         * gnulib-tool (func_version): Create output all at once.  This
112521         may help avoid triggering unnecessary SIGPIPEs, and at any
112522         rate it doesn't hurt.
112524 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112525             Bruno Haible  <bruno@clisp.org>
112527         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
112528         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
112529         * m4/signed.m4 (bh_C_SIGNED): Likewise.
112531         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
112532         (gl_FUNC_VASPRINTF): Invoke it.
112534 2006-09-22  Bruno Haible  <bruno@clisp.org>
112536         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
112537         getloadavg.c as first argument.
112539 2006-09-22  Bruno Haible  <bruno@clisp.org>
112541         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
112542         at the beginning of the gl_INIT macro.
112543         * modules/getloadavg (configure.ac): Pass $gl_source_base to
112544         gl_GETLOADAVG.
112546 2006-09-22  Bruno Haible  <bruno@clisp.org>
112548         * gnulib-tool (func_create_megatestdir): Don't include the config-h
112549         module.
112550         Suggested by Ralf Wildenhues.
112552 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
112554         Import this patch from libc:
112556         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
112558         * lib/regex_internal.c (re_string_reconstruct): Handle
112559         offset < pstr->valid_raw_len && pstr->offsets_needed case.
112560         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
112561         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
112562         re_string_context_at.
112564         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
112565         now requires it.
112566         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
112567         gl_REGEX now does it for us.
112568         (gl_REGEX): Add test taken from
112569         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
112571         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
112572         Check that large offsets work.  Modernize Autoconf usages.
112573         Prefer "yes" to mean a good thing rather than a bad.
112574         Don't put "#define mkstemp" in config.h, as this might interfere
112575         with standard system headers that "#define mkstemp mkstemp64".
112577         * modules/mkstemp (Depends-on): Add extensions, so that
112578         mkstemp is visible on some platforms.
112579         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
112580         (Include): Change to "mkstemp.h" from <stdlib.h>.
112581         (Files): Add mkstemp.h.
112583         * lib/mkstemp.h: New file, since some standard headers
112584         #define mkstemp.
112585         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
112586         Include "mkstemp.h".
112587         Make the _LIBC code resemble glibc original more,
112588         e.g., use K&R style.
112589         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112590         (mkstemp): Remove, since mkstemp.h does this for us.
112591         * lib/stdlib--.h: Include mkstemp.h.
112593         Import this patch from libc:
112595         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112597         * lib/tempname.c (__gen_tempname): Change attempts_min
112598         into a macro.  Use preprocessor to decide how to initialize
112599         attempts [Coverity CID 67].
112601 2006-09-20  Bruno Haible  <bruno@clisp.org>
112603         * lib/mkdtemp.c: Import from libc.
112604         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112605                 * sysdeps/posix/tempname.c (__gen_tempname): Change
112606                 attempts_min into a macro.  Use preprocessor to decide how to
112607                 initialize attempts [Coverity CID 67].
112608         2001-11-27  Paul Eggert  <eggert@twinsun.com>
112609                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
112610                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
112612 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112614         * gnulib-tool (func_exit): New function, to allow to pass the
112615         exit status portably through the trap.  Use everywhere.
112616         (--help, --version): Signal a write error.
112617         (trap): catch SIGPIPE, for write errors.
112618         Exit at the end of the trap, with the correct exit status.
112620 2006-09-19  Karl Berry  <karl@gnu.org>
112622         * doc/gnulib.texi: note about the license texinfo files.
112624 2006-09-19  Eric Blake  <ebb9@byu.net>
112626         * gnulib-tool: Avoid space-tab.
112628 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112630         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
112631         that prevented coreutils 6.1 from building.  Problem reported
112632         by Petter Reinholdtsen.
112634 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112636         * gnulib-tool (avoidlist): Fix typo that broke options like
112637         --avoid=lock that are used by coreutils bootstrap.
112639 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
112641         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
112642         more systematically.
112644 2006-09-18  Jim Meyering  <jim@meyering.net>
112646         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
112648 2006-09-18  Bruno Haible  <bruno@clisp.org>
112650         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
112652 2006-09-18  Bruno Haible  <bruno@clisp.org>
112654         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
112655         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
112656         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
112657         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
112658         * m4/gettext.m4: Require autoconf >= 2.52.
112659         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
112660         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112661         of gl_cv_header_inttypes_h.
112663 2006-09-18  Bruno Haible  <bruno@clisp.org>
112665         * lib/javaversion.c: Include configmake.h.
112667 2006-09-18  Bruno Haible  <bruno@clisp.org>
112669         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112670         avoid that the while loops be executed in a subshell.
112672 2006-09-18  Bruno Haible  <bruno@clisp.org>
112674         * MODULES.html.sh (func_module): Break long lines.
112675         Suggested by Bruce Korb <bkorb@gnu.org>.
112677 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112679         Speed up by a factor of 1.12.
112680         * gnulib-tool (nl): New variable.
112681         (func_import): Rewrite include directive extraction to only read each
112682         directive once.
112684 2006-09-17  Bruno Haible  <bruno@clisp.org>
112686         * modules/javaversion (Makefile.am): Remove DEFS setting.
112687         (Depends-on): Add configmake, for PKGDATADIR definition.
112689 2006-09-17  Bruno Haible  <bruno@clisp.org>
112691         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112693 2006-09-17  Bruno Haible  <bruno@clisp.org>
112695         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112696         (func_modules_transitive_closure, func_modules_add_dummy,
112697         func_modules_to_filelist, func_import, func_create_testdir,
112698         func_create_megatestdir, ...): Use it wherever possible.
112699         Suggested by Ralf Wildenhues.
112701 2006-09-16  Karl Berry  <karl@gnu.org>
112703         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112704         to avoid sectioning errors.
112705         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112706         [ifinfo]: blank line after @center-ed titles.
112707         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112708         Spell FSF address consistently with others.
112709         (These changes approved by rms.)
112711 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112713         Speed up by a factor of 1.61.
112714         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112715         already checked module names again.
112717 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112719         Speed up by a factor of 1.13.
112720         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112721         for new_files, and the input to func_add_or_update.
112723 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112725         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112726         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112728 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112730         * modules/mkancesdirs (Depends-on): Add fcntl.
112731         * modules/savewd: New file.
112732         * MODULES.html.sh (File system functions): Add savewd.
112734         * modules/configmake (Makefile.am): Add support for the
112735         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112737 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112739         * m4/savewd.m4: New file.
112741 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112743         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112744         (dirchownmod): New arg FD.  All callers changed.
112745         Use FD rather than opening the directory ourself, as opening is
112746         now the caller's responsibility.
112747         * lib/dirchownmod.h: Likewise.
112748         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112749         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112750         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112751         (test_dir): Remove.
112752         (mkancesdirs): Return length of prefix of FILE that has already
112753         been made, or -2 if there is a child doing the work.  Redo
112754         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112755         ".", and treat ".." specially since it might stray back into
112756         already-created areas.  Use a subprocess if necessary.  New arg
112757         WD; all users changed.  MAKE_DIR function should now return 1
112758         if it creates a directory that is not readable.  Return -2 if
112759         a child process is spun off.
112760         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112761         Adjust signature to match code.
112762         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112763         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112764         all users changed.
112765         * lib/savewd.c, lib/savewd.h: New files.
112767 2006-09-15  Jim Meyering  <jim@meyering.net>
112769         * modules/rename-dest-slash: New module.
112770         * MODULES.html.sh (posix_compat): Add it here.
112772         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112774 2006-09-15  Jim Meyering  <jim@meyering.net>
112776         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112777         file.
112779         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112781 2006-09-15  Jim Meyering  <jim@meyering.net>
112783         * lib/rename-dest-slash.c (has_trailing_slash): Use
112784         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112785         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112786         test before testing whether SRC is a directory.
112787         Suggestions from Bruno Haible.
112789         Avoid a warning about an unused variable.
112790         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112791         into the #ifdef block where it's used.
112793         * lib/rename-dest-slash.c: New file.
112795 2006-09-14  Bruno Haible  <bruno@clisp.org>
112797         * lib/allocsa.c: Include <config.h> unconditionally.
112798         * lib/asnprintf.c: Likewise.
112799         * lib/asprintf.c: Likewise.
112800         * lib/c-strcasecmp.c: Likewise.
112801         * lib/c-strcasestr.c: Likewise.
112802         * lib/c-strncasecmp.c: Likewise.
112803         * lib/c-strstr.c: Likewise.
112804         * lib/classpath.c: Likewise.
112805         * lib/clean-temp.c: Likewise.
112806         * lib/concatpath.c: Likewise.
112807         * lib/copy-file.c: Likewise.
112808         * lib/csharpcomp.c: Likewise.
112809         * lib/csharpexec.c: Likewise.
112810         * lib/execute.c: Likewise.
112811         * lib/fatal-signal.c: Likewise.
112812         * lib/findprog.c: Likewise.
112813         * lib/fwriteerror.c: Likewise.
112814         * lib/gl_array_list.c: Likewise.
112815         * lib/gl_array_oset.c: Likewise.
112816         * lib/gl_avltree_list.c: Likewise.
112817         * lib/gl_avltree_oset.c: Likewise.
112818         * lib/gl_avltreehash_list.c: Likewise.
112819         * lib/gl_carray_list.c: Likewise.
112820         * lib/gl_linked_list.c: Likewise.
112821         * lib/gl_linkedhash_list.c: Likewise.
112822         * lib/gl_list.c: Likewise.
112823         * lib/gl_oset.c: Likewise.
112824         * lib/gl_rbtree_list.c: Likewise.
112825         * lib/gl_rbtree_oset.c: Likewise.
112826         * lib/gl_rbtreehash_list.c: Likewise.
112827         * lib/imaxabs.c: Likewise.
112828         * lib/imaxdiv.c: Likewise.
112829         * lib/javacomp.c: Likewise.
112830         * lib/javaexec.c: Likewise.
112831         * lib/javaversion.c: Likewise.
112832         * lib/linebreak.c: Likewise.
112833         * lib/localcharset.c: Likewise.
112834         * lib/lock.c: Likewise.
112835         * lib/mbchar.c: Likewise.
112836         * lib/mbswidth.c: Likewise.
112837         * lib/mkdtemp.c: Likewise.
112838         * lib/pipe.c: Likewise.
112839         * lib/printf-args.c: Likewise.
112840         * lib/printf-parse.c: Likewise.
112841         * lib/progname.c: Likewise.
112842         * lib/progreloc.c: Likewise.
112843         * lib/readlink.c: Likewise.
112844         * lib/sh-quote.c: Likewise.
112845         * lib/stpcpy.c: Likewise.
112846         * lib/stpncpy.c: Likewise.
112847         * lib/strcasecmp.c: Likewise.
112848         * lib/strcasestr.c: Likewise.
112849         * lib/strcspn.c: Likewise.
112850         * lib/striconv.c: Likewise.
112851         * lib/strncasecmp.c: Likewise.
112852         * lib/strnlen1.c: Likewise.
112853         * lib/strstr.c: Likewise.
112854         * lib/strtok_r.c: Likewise.
112855         * lib/tls.c: Likewise.
112856         * lib/tmpdir.c: Likewise.
112857         * lib/unicodeio.c: Likewise.
112858         * lib/unsetenv.c: Likewise.
112859         * lib/vasnprintf.c: Likewise.
112860         * lib/vasprintf.c: Likewise.
112861         * lib/wait-process.c: Likewise.
112862         * lib/xallocsa.c: Likewise.
112863         * lib/xsetenv.c: Likewise.
112864         * lib/xstriconv.c: Likewise.
112866 2006-09-13  Simon Josefsson  <jas@extundo.com>
112868         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112869         that internally, suggested by Ralf Wildenhues
112870         <Ralf.Wildenhues@gmx.de>.
112872 2006-09-13  Simon Josefsson  <jas@extundo.com>
112874         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112875         @LIBOBJS@.
112876         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112878 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112880         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112881         longer worry about uses that don't define HAVE_CONFIG_H.
112882         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112883         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112884         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112885         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112886         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112887         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112888         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112889         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112890         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112891         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112892         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112893         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112894         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112895         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112896         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112897         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112898         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112899         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112900         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112901         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112902         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112903         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112904         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112905         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112906         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112907         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112908         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112909         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112910         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112911         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112912         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112913         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112914         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112915         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112916         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112917         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112918         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112919         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112920         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112921         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112922         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112923         Likewise.
112925 2006-09-13  Eric Blake  <ebb9@byu.net>
112927         * lib/getopt.c: Fix typo in last commit.
112929 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112931         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112932         dgettext.
112934 2006-09-12  Jim Meyering  <jim@meyering.net>
112936         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112937         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112938         Reported by Nelson H. F. Beebe.
112940 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112942         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112943         program_invocation_name and program_invocation_short_name are
112944         initialized.
112945         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112946         and program_invocation_short_name to argp.h, so they are visible
112947         to user programs.
112948         * lib/argp.h: Likewise
112950 2006-09-10  Bruno Haible  <bruno@clisp.org>
112952         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112953         m4/inttypes_h.m4, m4/uintmax_t.m4.
112955 2006-09-10  Bruno Haible  <bruno@clisp.org>
112957         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112958         gl_AC_TYPE_UINTMAX_T.
112960 2006-09-10  Bruno Haible  <bruno@clisp.org>
112962         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112964 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112966         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112967         convention.  Text proposed by Bruno Haible.
112968         (struct argp_option): Document the use of N_() wrappers.
112970         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112971         '\v', and translate the two parts separately, instead of feeding
112972         the whole string to gettext.  This allows to exclude
112973         '\v' from the strings visible to the translator by writing doc
112974         strings as N_("..") "\v" N_("..").
112976 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112978         * config/srclist.txt: Undo latest change; the bug was fixed.
112980 2006-09-09  Bruno Haible  <bruno@clisp.org>
112982         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112983         assignments if building a library without libtool.
112984         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112985         in func_emit_lib_Makefile_am.
112986         (func_import): When building a static library libfoo.a, arrange to
112987         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112988         (func_create_testdir): Likewise.
112989         * modules/gc (configure.ac, Makefile.am): If building statically,
112990         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112991         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112992         * modules/striconv (configure.ac, Makefile.am): Likewise.
112993         Based on a suggestion by Ralf Wildenhues.
112995 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112997         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112998         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112999         Also:
113001         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113002         Add year_2050_test to catch glibc bug 2821
113003         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113005         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113006         Prefer #ifdef to #if.
113008         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
113009         Return from 'main' instead of calling 'exit'.
113011 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113013         * lib/mktime.c (guess_time_tm): Fix bug where mktime
113014         returned the maximum time_t value rather than (time_t) -1.
113015         Problem originally reported by William Bardwell
113016         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113018         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113019         Moved to here ...
113020         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113021         ... from here.
113023 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113025         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
113026         2821 is fixed.
113028 2006-09-08  Jim Meyering  <jim@meyering.net>
113030         Don't make generated files read-only.  That would bother too many
113031         people.  However, do retain the ability to work when targets are
113032         read-only: remove the destination and temporary files before writing
113033         them (when generated via sed or echo), or by using the -f option for
113034         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
113035         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113036         * modules/byteswap, modules/configmake, modules/fcntl:
113037         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113038         * modules/localcharset, modules/netinet_in, modules/poll:
113039         * modules/stdbool, modules/stdint, modules/sys_select:
113040         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113042 2006-09-08  Jim Meyering  <jim@meyering.net>
113044         Avoid new build failure on FreeBSD 6.0.
113045         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
113046         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
113047         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
113049 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113051         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
113053 2006-09-07  Jim Meyering  <jim@meyering.net>
113055         Fix global typo in last change: use chmod u-w, not chmod u-x.
113056         Spotted by Paul Eggert and Bruce Korb.
113057         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113058         * modules/byteswap, modules/configmake, modules/fcntl:
113059         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113060         * modules/localcharset, modules/netinet_in, modules/poll:
113061         * modules/stdbool, modules/stdint, modules/sys_select:
113062         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113064 2006-09-06  Jim Meyering  <jim@meyering.net>
113066         Make generated files be read-only.
113067         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
113068         Ensure that each generated file is now read-only.
113069         * modules/argz: Likewise.
113070         * modules/arpa_inet: Likewise.
113071         * modules/byteswap: Likewise.
113072         * modules/configmake: Likewise.
113073         * modules/fcntl: Likewise.
113074         * modules/fnmatch: Likewise.
113075         * modules/getopt: Likewise.
113076         * modules/glob: Likewise.
113077         * modules/inttypes: Likewise.
113078         * modules/netinet_in: Likewise.
113079         * modules/poll: Likewise.
113080         * modules/stdbool: Likewise.
113081         * modules/stdint: Likewise.
113082         * modules/sys_select: Likewise.
113083         * modules/sys_socket: Likewise.
113084         * modules/sys_stat: Likewise.
113085         * modules/sysexits: Likewise.
113086         * modules/localcharset: Same as above, but continue using temporary
113087         file named "t-$@" (why different?) rather than the "$@-t" used
113088         everywhere else.
113090         * modules/sysexits (Makefile.am): Replace literal occurrences
113091         of "sysexit.h" more readable, and more consistent, "$@".
113093 2006-09-06  Bruno Haible  <bruno@clisp.org>
113095         * modules/striconv: New file.
113096         * modules/xstriconv: New file.
113097         * MODULES.html.sh (Internationalization functions): Add striconv,
113098         xstriconv.
113100 2006-09-06  Bruno Haible  <bruno@clisp.org>
113102         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
113103         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
113104         not using libtool correctly.
113106 2006-09-06  Bruno Haible  <bruno@clisp.org>
113108         * lib/striconv.h: New file.
113109         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
113110         iconvstring.c.
113111         * lib/xstriconv.h: New file.
113112         * lib/xstriconv.c: New file.
113114 2006-09-06  Bruno Haible  <bruno@clisp.org>
113116         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
113117         lib_..._LDFLAGS.
113119 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113121         * lib/argz_.h: Sync from Libtool.
113123         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
113124                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113126         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
113128 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113130         * modules/trim: New file.
113132 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113134         * lib/trim.h: New file.
113135         * lib/trim.c: New file.
113137 2006-09-05  Bruno Haible  <bruno@clisp.org>
113139         * MODULES.html.sh (String handling): Add trim.
113141 2006-09-04  Karl Berry  <karl@gnu.org>
113143         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
113144         until next release.
113146 2006-09-03  Bruno Haible  <bruno@clisp.org>
113148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
113149         correctly.
113151 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113153         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
113154         not gl_GETLOADAVG.  Omit unneeded semicolons.
113155         Problems reported by Ralf Wildenhues in
113156         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113157         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
113158         at the end, which is the usual gnulib style.
113160         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
113161         of doing all the work ourselves.
113162         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
113163         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
113165 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113167         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
113168         Problem reported by Ralf Wildenhues in
113169         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113171         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113172         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113174 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113176         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
113177         yesterday's patch by changing test -n to test -z.
113179 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113181         * modules/getloadavg (Files): Add m4/getloadavg.m4.
113182         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
113183         the former is now obsolescent.
113185         * modules/chdir-long (Depends-on): Add fcntl.
113187 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113189         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
113190         obsolescent, and programs should use gnulib instead.
113191         * m4/getloadavg.m4: New file, with contents taken from Autoconf
113192         but with prefixes changed.
113194 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113196         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
113197         or stdbool.h, because they might not exist while configuring.
113199         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
113200         Don't include unistd.h or limits.h; not needed, since chdir-long.h
113201         does that for us.
113202         (O_DIRECTORY): Remove.
113204 2006-08-31  Eric Blake  <ebb9@byu.net>
113206         * gnulib-tool: Don't let emacs change spaces to TAB.
113208 2006-08-31  Bruno Haible  <bruno@clisp.org>
113210         * gnulib-tool: When calling func_import more than once, do it in a
113211         subshell.
113212         Reported by Eric Blake <ebb9@byu.net>.
113214 2006-08-31  Bruno Haible  <bruno@clisp.org>
113216         * gnulib-tool (nl): Remove variable.
113217         (sed_transform_lib_file): Use more robust test for config-h module.
113218         (func_import): Fix typo in 2006-08-25 patch.
113220 2006-08-31  Bruno Haible  <bruno@clisp.org>
113222         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
113223         specified, augment Makefile.am variables instead of assigning them.
113225 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113227         Work around a bug in both the Linux and SunOS 64-bit kernels:
113228         nanosleep mishandles sleeps for longer than 2**31 seconds.
113229         Problem reported by Frank v Waveren in
113230         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
113232         Check for nanosleep bug.
113233         (LIB_NANOSLEEP): Append clock_gettime library if needed.
113235 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113237         Work around a bug in both the Linux and SunOS 64-bit kernels:
113238         nanosleep mishandles sleeps for longer than 2**31 seconds.
113239         Problem reported by Frank v Waveren in
113240         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113241         * lib/nanosleep.c (BILLION): New constant.
113242         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
113243         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
113244         implementation.
113246 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113248         * modules/nanosleep (Depends-on): Add gettime.
113250 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113251         and Simon Josefsson  <jas@extundo.com>
113252         and Oskar Liljeblad  <oskar@osk.mine.nu>
113254         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
113255         * gnulib-tool (func_import): New license type 'unmodifiable license
113256         text'.
113257         * modules/fdl: Use it.  Longer description.
113258         * module/gpl, module/lgpl: New files.
113260 2006-08-30  Jim Meyering  <jim@meyering.net>
113262         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
113263         shadowing the parameter.
113265 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113267         Sync from Libtool:
113269         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113271         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
113272         sharing with gnulib.  Report by Eric Blake.
113274 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113276         * modules/isapipe: New file.
113277         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
113279 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113281         * modules/configmake (Makefile.am): Add a comment, and omit
113282         the CONFIGMAKE_ prefix from generated macro names.  Suggested
113283         by Bruno Haible.
113285 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113287         * m4/isapipe.m4: New file.
113289 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113291         * lib/isapipe.c, lib/isapipe.h: New files.
113293 2006-08-29  Jim Meyering  <jim@meyering.net>
113295         * modules/configmake (Makefile.am): Make configmake.h depend on
113296         Makefile.  Otherwise, a stale configmake.h could hang around.
113298 2006-08-29  Eric Blake  <ebb9@byu.net>
113300         * lib/error.c (error_at_line, print_errno_message): Match libc, after
113301         resolution of upstream bug 3044.
113303 2006-08-29  Bruno Haible  <bruno@clisp.org>
113305         * modules/localcharset (Depends-on): Add configmake.
113306         (Makefile.am): Remove setting of LIBDIR through DEFS.
113308 2006-08-29  Bruno Haible  <bruno@clisp.org>
113310         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
113311         defined.
113313 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113315         * modules/fcntl: New file.
113316         * modules/chdir-safer (Depends-on): Add fcntl.
113317         * modules/fts: Likewise.
113318         * modules/mkdir-p: Likewise.
113320         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
113321         This undoes the most recent change, since we're now addressing the
113322         problem in a different way.
113324         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
113325         into output, since the output might be called Makefile.am even
113326         if $makefile_name is something different.
113327         (func_import): Use $makefile_am rather than
113328         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
113329         empty.
113331         * modules/inttypes (Files): Add m4/inttypes-h.m4.
113333 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113335         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
113336         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
113337         recent change to stdint.m4, since we're now addressing the problem in a
113338         different way.
113340 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113342         * m4/fcntl_h.m4: New file.
113344 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113346         * lib/fcntl_.h: New file.
113347         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113348         the fcntl module.
113349         * lib/dirchownmod.c: Likewise.
113350         * lib/fts.c: Likewise.
113352         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113353         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113354         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113355         just before including <inttypes.h>, to avoid circular inclusion.
113357 2006-08-28  Jim Meyering  <jim@meyering.net>
113359         * doc/visibility.texi: Actually read and correct the grammar of the
113360         sentence affected by yesterday's change.
113362 2006-08-28  Eric Blake  <ebb9@byu.net>
113364         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113365         needs wrapper.
113367 2006-08-28  Eric Blake  <ebb9@byu.net>
113369         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113371 2006-08-28  Eric Blake  <ebb9@byu.net>
113373         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113375 2006-08-28  Bruno Haible  <bruno@clisp.org>
113377         * modules/c-strstr: New file, from GNU gettext.
113378         * MODULES.html.sh (String handling): Add c-strstr.
113380 2006-08-28  Bruno Haible  <bruno@clisp.org>
113382         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113383         macros.
113384         Reported by Eric Blake.
113386 2006-08-28  Bruno Haible  <bruno@clisp.org>
113388         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113389         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113390         * lib/vasprintf.c: Include errno.h, limits.h.
113391         (EOVERFLOW): New fallback definition.
113392         (vasprintf): Test here whether the string length is > INT_MAX.
113393         * lib/vsnprintf.c: Include errno.h, limits.h.
113394         (EOVERFLOW): New fallback definition.
113395         (vsnprintf): Fix bug when generated string was too long for the buffer.
113396         Test here whether the string length is > INT_MAX.
113398 2006-08-28  Bruno Haible  <bruno@clisp.org>
113400         * lib/inttypes_.h (SCNX*): Remove definitions.
113401         Reported by Eric Blake.
113403 2006-08-28  Bruno Haible  <bruno@clisp.org>
113405         * lib/c-strstr.h: New file, from GNU gettext.
113406         * lib/c-strstr.c: New file, from GNU gettext.
113408 2006-08-28  Bruno Haible  <bruno@clisp.org>
113410         * gnulib-tool: Reorder some statements.
113412 2006-08-28  Bruno Haible  <bruno@clisp.org>
113414         * gnulib-tool: New option --makefile-name.
113415         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113416         $makefile_name.
113417         (func_import): Write $makefile_name to the cache file, and read it from
113418         there unless explicitly specified. Use $makefile_name as file name
113419         instead of Makefile.am. Adjust the recommendations accordingly.
113421 2006-08-28  Bruno Haible  <bruno@clisp.org>
113423         * gnulib-tool (func_verify_module): Check against misapplying patch.
113425 2006-08-28  Bruno Haible  <bruno@clisp.org>
113427         * gnulib-tool (func_relativize, func_relconcat): New functions.
113428         Give an error if --local-dir is given with --update.
113429         Remove trailing slashes from $local_gnulib_dir.
113430         (func_import): Store the relativized $local_gnulib_dir in
113431         gnulib-cache.m4, and read it from there if not specified explicitly.
113433 2006-08-28  Bruno Haible  <bruno@clisp.org>
113435         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113436         is the current directory. Respect also $local_gnulib_dir.
113438 2006-08-28  Bruno Haible  <bruno@clisp.org>
113439             Simon Josefsson  <jas@extundo.com>
113441         BeOS portability.
113442         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113444 2006-08-27  Jim Meyering  <jim@meyering.net>
113446         * doc/visibility.texi: Remove duplicate word: "pointer".
113448 2006-08-26  Bruno Haible  <bruno@clisp.org>
113450         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113451         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113452         (Makefile.am): Create inttypes.h from inttypes_.h.
113453         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
113455         * modules/imaxabs: New file.
113457         * modules/imaxdiv: New file.
113459 2006-08-26  Bruno Haible  <bruno@clisp.org>
113461         * m4/inttypes.m4: New file.
113462         * m4/_inttypes_h.m4: Remove file.
113463         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
113464         PRI_MACROS_BROKEN.
113465         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
113467         * m4/imaxabs.m4: New file.
113469         * m4/imaxdiv.m4: New file.
113471 2006-08-26  Bruno Haible  <bruno@clisp.org>
113473         * lib/inttypes_.h: New file.
113474         * lib/inttypes.h: Remove file.
113475         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
113477         * lib/imaxabs.c: New file.
113479         * lib/imaxdiv.c: New file.
113481 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113483         New config-h module, so that "make" output needn't be cluttered
113484         by -DHAVE_CONFIG_H.
113485         * MODULES.html.sh (Support for building libraries and executables):
113486         Add config-h.
113487         * modules/config-h: New file.
113488         * gnulib-tool (nl, sed_transform_lib_file): New vars.
113489         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
113490         the config-h module is used.
113492         New configmake module, so that "make" output needn't be cluttered
113493         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
113494         * MODULES.html.sh (Support for building libraries and executables):
113495         Add configmake.
113496         * modules/configmake: New file.
113498 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113500         * m4/config-h.m4: New file.
113502 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113504         * config/srclist.txt: Add elisp-comp.
113506 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113508         * MODULES.html.sh (Support for building libraries and executables):
113509         Add elisp-comp.
113510         * build-aux/elisp-comp: New file.
113511         * modules/elisp-comp: New file.
113513 2006-08-24  Bruno Haible  <bruno@clisp.org>
113515         * gnulib-tool (func_create_testdir): Use non-default values of
113516         sourcebase and m4base.
113518 2006-08-24  Bruno Haible  <bruno@clisp.org>
113520         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
113521         HTML structure.
113523 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
113525         * modules/openat (Depends-on): Add lchown.
113527 2006-08-23  Bruno Haible  <bruno@clisp.org>
113529         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
113530         of gl_LOCK_EARLY instead of gl_LOCK.
113532 2006-08-23  Bruno Haible  <bruno@clisp.org>
113534         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
113535         on OSF/1 to no.
113536         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
113538 2006-08-23  Bruno Haible  <bruno@clisp.org>
113540         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
113541         as unusable.
113543         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
113544         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
113545         (gl_LOCK): New macro.
113547 2006-08-22  Simon Josefsson  <jas@extundo.com>
113549         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
113550         to md5 module.
113552 2006-08-22  Simon Josefsson  <jas@extundo.com>
113554         * MODULES.html.sh: Add "Support for maintaining and release
113555         projects".
113557         * build-aux/gnupload: New file, from coreutils.
113559 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113561         Avoid the need for AC_LIBSOURCES in m4 macros.
113562         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
113563         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
113564         * modules/check-version (EXTRA_DIST): Add check-version.h.
113565         * modules/crc (EXTRA_DIST): Add crc.h.
113566         * modules/des (EXTRA_DIST): Add des.h.
113567         * modules/gc (EXTRA_DIST): Add gc.h.
113568         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
113569         * modules/getline (EXTRA_DIST): Add getline.h.
113570         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
113571         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
113572         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
113573         * modules/md2 (EXTRA_DIST): Add md2.h.
113574         * modules/md4 (EXTRA_DIST): Add md4.h.
113575         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
113576         * modules/read-file (EXTRA_DIST): Add read-file.h.
113577         * modules/readline (EXTRA_DIST): Add readline.h.
113578         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
113579         rijndael-api-fst.h.
113581 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113583         * m4/rijndael.m4 (gl_ARCFOUR):
113584         * m4/arctwo.m4 (gl_ARCTWO):
113585         * m4/check-version.m4 (gl_CHECK_VERSION):
113586         * m4/crc.m4 (gl_CRC):
113587         * m4/des.m4 (gl_DES):
113588         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113589         * m4/gc.m4 (gl_GC):
113590         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113591         * m4/getline.m4 (gl_FUNC_GETLINE):
113592         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113593         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113594         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113595         * m4/md2.m4 (gl_MD2):
113596         * m4/md4.m4 (gl_MD4):
113597         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
113598         * m4/read-file.m4 (gl_FUNC_READ_FILE):
113599         * m4/readline.m4 (gl_FUNC_READLINE):
113600         * m4/rijndael.m4 (gl_RIJNDAEL):
113601         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113602         to get the necessary .h files and whatnot.
113604 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113606         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
113607         gnulib rather than the other way around.
113608         * config/srclistvars.sh (COREUTILS): Remove.
113610 2006-08-22  Jim Meyering  <jim@meyering.net>
113612         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
113614         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
113616 2006-08-22  Eric Blake  <ebb9@byu.net>
113618         * modules/regexprops-generic: New file.
113619         * MODULES.html.sh (Support for building documentation): List it.
113621 2006-08-22  Eric Blake  <ebb9@byu.net>
113623         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
113624         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
113625         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
113626         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
113628 2006-08-22  Bruno Haible  <bruno@clisp.org>
113630         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
113631         and lib_LTLIBRARIES like the other lib_* variables.
113633 2006-08-22  Bruno Haible  <bruno@clisp.org>
113635         * build-aux/x-to-1.in: New file, from GNU gettext.
113637 2006-08-22  Bruno Haible  <bruno@clisp.org>
113639         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
113640         <utmpx.h> exists.
113642 2006-08-22  Bruno Haible  <bruno@clisp.org>
113644         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
113645         <utmpx.h> exists.
113647 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113649         BeOS portability.
113650         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
113651         exist.
113652         Problem reported by Bruno Haible.
113654 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113656         Avoid the need for AC_LIBSOURCES in m4 macros.
113657         * modules/acl (EXTRA_DIST): Add acl.h.
113658         * modules/argmatch (Files): Add m4/argmatch.m4.
113659         (configure.ac): Add gl_ARGMATCH.
113660         (EXTRA_DIST): Renamed from lib_SOURCES, for
113661         consistency with the other modules.  Remove argmatch.c.
113662         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113663         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113664         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113665         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113666         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113667         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113668         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113669         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113670         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113671         * modules/closeout (EXTRA_DIST): Add closeout.h.
113672         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113673         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113674         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113675         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113676         dirname.h; remove basename.c and stripslash.c.
113677         * modules/exclude (EXTRA_DIST): Add exclude.h.
113678         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113679         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113680         * modules/file-type (EXTRA_DIST): Add file-type.h.
113681         * modules/filemode (EXTRA_DIST): Add filemode.h.
113682         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113683         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113684         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113685         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113686         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113687         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113688         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113689         * modules/getdate (EXTRA_DIST): Add getdate.c.
113690         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113691         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113692         * modules/getpass (EXTRA_DIST): Add getpass.h.
113693         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113694         * modules/group-member (EXTRA_DIST): Add group-member.h.
113695         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113696         * modules/hash (EXTRA_DIST): Add hash.h.
113697         * modules/human (EXTRA_DIST): Add human.h.
113698         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113699         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113700         * modules/lchown (EXTRA_DIST): Add lchown.h.
113701         * modules/long-options (EXTRA_DIST): Add long-options.h.
113702         * modules/lstat (EXTRA_DIST): Add lstat.h.
113703         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113704         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113705         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113706         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113707         * modules/memxor (EXTRA_DIST): Add memxor.h.
113708         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113709         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113710         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113711         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113712         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113713         * modules/physmem (EXTRA_DIST): Add physmem.h.
113714         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113715         * modules/posixver (EXTRA_DIST): Add posixver.h.
113716         * modules/quote (EXTRA_DIST): Add quote.h.
113717         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113718         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113719         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113720         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113721         regex_internal.h regexec.c.
113722         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113723         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113724         * modules/same (EXTRA_DIST): Add same.h.
113725         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113726         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113727         * modules/savedir (EXTRA_DIST): Add savedir.h.
113728         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113729         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113730         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113731         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113732         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113733         * modules/strdup (EXTRA_DIST): Add strdup.h.
113734         * modules/strftime (EXTRA_DIST): Add strftime.h.
113735         * modules/strndup (EXTRA_DIST): Add strndup.h.
113736         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113737         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113738         * modules/time_r (EXTRA_DIST): Add time_r.h.
113739         * modules/timespec (EXTRA_DIST): Add timespec.h.
113740         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113741         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113742         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113743         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113744         * modules/userspec (EXTRA_DIST): Add userspec.h.
113745         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113746         * modules/utimens (EXTRA_DIST): Add utimens.h.
113747         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113748         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113749         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113750         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113751         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113752         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113753         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113754         * modules/yesno (EXTRA_DIST): Add yesno.h.
113756 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113758         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113760         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113761         * m4/dev-ino.m4, same-inode.m4: Remove.
113763         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113764         * m4/acl.m4 (AC_FUNC_ACL):
113765         * m4/backupfile.m4 (gl_BACKUPFILE):
113766         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113767         * m4/canon-host.m4 (gl_CANON_HOST):
113768         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113769         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113770         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113771         * m4/cloexec.m4 (gl_CLOEXEC):
113772         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113773         * m4/closeout.m4 (gl_CLOSEOUT):
113774         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113775         * m4/dirname.m4 (gl_DIRNAME):
113776         * m4/exclude.m4 (gl_EXCLUDE):
113777         * m4/exitfail.m4 (gl_EXITFAIL):
113778         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113779         * m4/file-type.m4 (gl_FILE_TYPE):
113780         * m4/filemode.m4 (gl_FILEMODE):
113781         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113782         * m4/fpending.m4 (gl_FUNC_FPENDING):
113783         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113784         * m4/fts.m4 (gl_FUNC_FTS):
113785         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113786         * m4/getdate.m4 (gl_GETDATE):
113787         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113788         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113789         * m4/getpass.m4 (gl_FUNC_GETPASS):
113790         * m4/gettime.m4 (gl_GETTIME):
113791         * m4/getugroups.m4 (gl_GETUGROUPS):
113792         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113793         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113794         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113795         * m4/hash.m4 (gl_HASH):
113796         * m4/idcache.m4 (gl_IDCACHE):
113797         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113798         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113799         * m4/long-options.m4 (gl_LONG_OPTIONS):
113800         * m4/lstat.m4 (gl_FUNC_LSTAT):
113801         * m4/md5.m4 (gl_MD5):
113802         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113803         * m4/memcoll.m4 (gl_MEMCOLL):
113804         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113805         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113806         * m4/memxor.m4 (gl_MEMXOR):
113807         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113808         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113809         * m4/modechange.m4 (gl_MODECHANGE):
113810         * m4/mountlist.m4 (gl_MOUNTLIST):
113811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113812         * m4/openat.m4 (gl_FUNC_OPENAT):
113813         * m4/pathmax.m4 (gl_PATHMAX):
113814         * m4/physmem.m4 (gl_PHYSMEM):
113815         * m4/posixtm.m4 (gl_POSIXTM):
113816         * m4/posixver.m4 (gl_POSIXVER):
113817         * m4/quote.m4 (gl_QUOTE):
113818         * m4/quotearg.m4 (gl_QUOTEARG):
113819         * m4/readtokens.m4 (gl_READTOKENS):
113820         * m4/readutmp.m4 (gl_READUTMP):
113821         * m4/regex.m4 (gl_REGEX):
113822         * m4/safe-read.m4 (gl_SAFE_READ):
113823         * m4/safe-write.m4 (gl_SAFE_WRITE):
113824         * m4/same.m4 (gl_SAME):
113825         * m4/save-cwd.m4 (gl_SAVE_CWD):
113826         * m4/savedir.m4 (gl_SAVEDIR):
113827         * m4/settime.m4 (gl_SETTIME):
113828         * m4/sha1.m4 (gl_SHA1):
113829         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113830         * m4/stat-macros.m4 (gl_STAT_MACROS):
113831         * m4/stat-time.m4 (gl_STAT_TIME):
113832         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113833         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113834         * m4/strdup.m4 (gl_FUNC_STRDUP):
113835         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113836         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113837         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113838         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113839         * m4/time_r.m4 (gl_TIME_R):
113840         * m4/timespec.m4 (gl_TIMESPEC):
113841         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113842         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113843         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113844         * m4/userspec.m4 (gl_USERSPEC):
113845         * m4/utimecmp.m4 (gl_UTIMECMP):
113846         * m4/utimens.m4 (gl_UTIMENS):
113847         * m4/xalloc.m4 (gl_XALLOC):
113848         * m4/xgetcwd.m4 (gl_XGETCWD):
113849         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113850         * m4/xreadlink.m4 (gl_XREADLINK):
113851         * m4/xstrtod.m4 (gl_XSTRTOD):
113852         * m4/yesno.m4 (gl_YESNO):
113853         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113854         to get the necessary .h files and whatnot.
113856 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113857             Bruno Haible  <bruno@clisp.org>
113859         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113860         /bin/sh understanding of '!' conditional negation.
113862 2006-08-21  Jim Meyering  <jim@meyering.net>
113864         * modules/openat (Depends-on): Really alphabetize.
113866         * modules/acl (Depends-on): Add error and quote.
113868         * check-module (find_included_lib_files): Add at-func.c to the
113869         ok-to-include-more-than-once white list.
113871         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113873 2006-08-21  Bruno Haible  <bruno@clisp.org>
113875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113876         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113877         Reported by Martin Lambers <marlam@marlam.de>.
113879 2006-08-21  Bruno Haible  <bruno@clisp.org>
113881         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113882         specify an installation location, don't emit a noinst_LIBRARIES or
113883         noinst_LTLIBRARIES assignment.
113885 2006-08-21  Bruno Haible  <bruno@clisp.org>
113887         BeOS portability.
113888         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113889         BeOS has mbrtowc() but no <wctype.h>.
113891 2006-08-21  Bruno Haible  <bruno@clisp.org>
113893         BeOS portability.
113894         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113895         exist.
113897 2006-08-21  Bruno Haible  <bruno@clisp.org>
113899         BeOS portability.
113900         * lib/mbchar.h: Include <wctype.h> only if it exists.
113902 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113904         Remove files that are no longer needed by their respective modules.
113905         * m4/obstack.m4: Remove.
113906         * m4/strerror_r.m4: Remove.
113907         * m4/uint32_t.m4: Remove.
113908         * m4/uintptr_t.m4: Remove.
113909         * m4/ullong_max.m4: Remove.
113910         * m4/xstrtoimax.m4: Remove.
113911         * m4/xstrtoumax.m4: Remove.
113913         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113914         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113915         dependencies now capture this.
113917         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113918         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113919         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113920         * m4/human.m4 (gl_HUMAN): Likewise.
113921         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113922         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113924         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113926         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113927         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113928         stdint.
113929         * m4/human.m4 (gl_HUMAN): Likewise.
113930         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113931         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113932         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113933         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113934         * m4/xstrtol (gl_XSTRTOL): Likewise.
113936         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113937         AC_TYPE_LONG_LONG_INT.
113938         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113939         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113940         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113941         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113943         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113944         on stdbool.
113946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113947         (gl_PREREQ_XSTRTOUL): Remove.
113949         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113951         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113952         mode.
113954 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113956         Add and change modules to make it easier for coreutils to use
113957         gnulib-tool.
113958         * modules/backupfile (Files): Remove m4/d-ino.m4.
113959         (Depends-on): Add d-ino.
113960         * modules/cycle-check (Depends-on): Add stdint.
113961         (lib_SOURCES): Add cycle-check.h.
113962         * modules/d-ino: New module.
113963         * modules/d-type: New module.
113964         * modules/error (Files): Remove m4/strerror_r.m4.
113965         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113966         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113967         m4/inttypes_h.m4, m4/uintmax_t.m4.
113968         (Depends-on): Add stdint.
113969         (lib_SOURCES): Add fsusage.h.
113970         * modules/getcwd (Files): Remove d-ino.m4.
113971         (Depends-on): Add d-ino.
113972         * modules/getndelim2 (Depends-on): Add stdint.
113973         * modules/glob (Files): Remove m4/d-type.m4.
113974         (Depends-on): Add d-type.
113975         * modules/host-os: New module.
113976         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113977         m4/inttypes_h.m4, m4/uintmax_t.m4.
113978         * Depends-on: Add stdint.
113979         (lib_SOURCES): Add human.h.
113980         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113981         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113982         m4/uintmax_t.m4, m4/ulonglong.m4.
113983         (Depends-on): Add stdint.
113984         (EXTRA_DIST): Add inttostr.h.
113985         * modules/lchmod: New module.
113986         * modules/link-follow: New module.
113987         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113988         (Depends-on): Add lchmod.
113989         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113990         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113991         (Depends-on): Add stdint.
113992         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113993         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113994         (Depends-on): Add stdint.
113995         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113996         * modules/perl: New module.
113997         * modules/regex (Depends-on): Add stdint.
113998         * modules/rmdir-errno: New module.
113999         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114000         m4/intmax_t.m4.
114001         (Depends-on): Add stdint.
114002         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114003         m4/uintmax_t.m4.
114004         (Depends-on): Add stdint.
114005         * modules/unlink-busy: New module.
114006         * modules/utimecmp (Depends-on): Add stdint.
114007         * modules/uptime: New module.
114008         * modules/winsz-ioctl: New module.
114009         * modules/winsz-termios: New module.
114010         * modules/xnanosleep (Depends-on): Add nanosleep.
114011         * modules/ullong_max: Remove.
114012         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
114013         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
114014         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
114015         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
114016         (Depends-on): Add inttypes.
114017         (lib_SOURCES): Add xstrtol.h.
114018         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
114019         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
114020         * MODULES.html.sh: Move 'assert' into the assert section.
114021         Move 'dummy' into the linking section.
114022         Remove ullong_max.
114023         Add section for compatibility checks for POSIX:2001 functions,
114024         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
114025         winsz-ioctl, and winsz-termios into it.
114026         Add lchmod.
114027         Add top-level Misc section and put host-os, perl, and uptime
114028         into it.
114030 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114032         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
114033         now assume the stdint module.  Do not include inttypes.h.
114034         * lib/fsusage.h: Likewise.
114035         * lib/getndelim2.c: Likewise.
114036         * lib/human.h: Likewise.
114037         * lib/inttostr.h: Likewise.
114038         * lib/obstack.c: Likewise.
114039         * lib/regex_internal.h: Likewise.
114040         * lib/tempname.c: Likewise.
114041         * lib/utimecmp.c: Likewise.
114042         * lib/xstrtol.h: Likewise.
114044         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
114046         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
114047         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
114048         * lib/xtime.h: Likewise.
114050 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114052         * modules/openat (Files): Add lib/fchmodat.c.
114053         Fixes problem reported by Jay Youngman.
114055 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114057         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
114058         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
114060 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
114061             Bruno Haible  <bruno@clisp.org>
114063         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
114064         and is a script that invokes bison. Tighten the code. Add comments.
114066 2006-08-18  Jim Meyering  <jim@meyering.net>
114068         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
114069         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
114070         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
114071         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
114073 2006-08-18  Bruno Haible  <bruno@clisp.org>
114075         * modules/bison-i18n: New file.
114076         * MODULES.html.sh (Internationalization functions): Add it.
114078 2006-08-18  Bruno Haible  <bruno@clisp.org>
114080         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
114081         sys/statvfs.h. When getmntinfo was found, check its declaration and
114082         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
114084 2006-08-18  Bruno Haible  <bruno@clisp.org>
114086         * m4/bison-i18n.m4: New file, from bison.
114088 2006-08-18  Bruno Haible  <bruno@clisp.org>
114090         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
114091         (ME_DUMMY): Treat "kernfs" as a dummy.
114092         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
114094 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114096         Update from coreutils.
114098         2006-08-15  Jim Meyering  <jim@meyering.net>
114100         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
114102         2006-01-17  Jim Meyering  <jim@meyering.net>
114104         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
114106         2006-01-11  Jim Meyering  <jim@meyering.net>
114108         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
114109         Check for the lchmod function.
114111 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114113         Update from coreutils.
114115         * lib/__fpending.h: Add copyright notice.
114116         * lib/fprintftime.h: Likewise.
114117         * lib/savedir.c: Use (C) in copyright notice.
114118         * lib/savedir.h: Likewise.
114120         2006-08-15  Jim Meyering  <jim@meyering.net>
114122         * lib/at-func.c: New file, with the logic of all emulated at-functions.
114123         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
114124         in support of the EXPECTED_ERRNO macro.
114125         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
114126         definitions.  Instead, define the appropriate symbols and include
114127         "at-func.c".
114128         * lib/mkdirat.c (mkdirat): Likewise.
114129         * lib/fchmodat.c (fchmodat): Likewise.
114130         (ENOSYS): Remove definition.
114131         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
114132         it.  Don't include "unistd--.h" -- it wasn't ever used.
114134         2006-01-17  Jim Meyering  <jim@meyering.net>
114136         Rewrite fts.c not to change the current working directory,
114137         by using openat, fstatat, fdopendir, etc..
114139         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
114140         (HAVE_OPENAT_SUPPORT): Define.
114141         [_LIBC] (fchdir): Don't undef or define; no longer used.
114142         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
114143         Now, this `function' always succeeds, and consumes its file descriptor
114144         parameter -- so callers must not close such FDs.  Update callers.
114145         (diropen_fd, opendirat, cwd_advance_fd): New functions.
114146         (diropen): Add parameter, SP.  Adjust all callers.
114147         Implement using diropen_fd, rather than open.
114148         (fts_open): Initialize new member, fts_cwd_fd.
114149         Remove fts_rft-setting code.
114150         (fts_close): Close fts_cwd_fd, if necessary.
114151         (__opendir2): Define in terms of opendir or opendirat,
114152         depending on whether the FST_NOCHDIR flag is set.
114153         (fts_build): Since fts_safe_changedir consumes its FD, and since
114154         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
114155         and close the dup'd file descriptor upon failure.
114156         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
114157         (fts_safe_changedir): Tweak semantics to reflect that this function
114158         now calls cwd_advance_fd and hence consumes its FD argument.
114159         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
114160         [struct FTS] (fts_rft): Remove now-unused member.
114161         [struct FTS] (fts_cycle.state): Improve comment.
114163         * lib/openat.c (openat_needs_fchdir): New function.
114164         * lib/openat.h (openat_needs_fchdir): Declare it.
114166 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
114168         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
114169         Problem and fix reported by Pádraig Brady in
114170         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114172 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114174         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114176 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114178         * lib/memcoll.c (memcoll): Optimize for the common case where the
114179         arguments are bytewise equal.
114181 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114183         * doc/regexprops-generic.texi: Add a copyright notice.
114185 2006-08-15  Bruno Haible  <bruno@clisp.org>
114187         * modules/tmpdir (License): Change to LGPL.
114189 2006-08-15  Bruno Haible  <bruno@clisp.org>
114191         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
114192         module.
114194 2006-08-14  Simon Josefsson  <jas@extundo.com>
114196         * config/srclist.txt: Add gnupload.
114198 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114200         Change copyright notice from LGPL 2 to GPL 2, since that's the
114201         standard form used in the gnulib repository.
114202         * tests/test-lock.c: Likewise.
114203         * tests/test-stdint.c: Likewise.
114204         * tests/test-tls.c: Likewise.
114206         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
114207         prelude-manager.  User shorter URLs for GNU projects, without '?'.
114208         Add copyright notice.
114210         * check-module: Add copyright notice.  Output a copyright
114211         notice if "--version" is specified.
114212         * modules/COPYING: New file.
114213         * tests/test-getaddrinfo.c: Add copyright notice.
114214         * tests/test-verify.c: Likewise.
114216 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114218         Change copyright notice from LGPL 2 to GPL 2, since that's the
114219         standard form used in the gnulib repository.
114220         * lib/lock.c: LGPL -> GPL.
114221         * lib/lock.h: Likewise.
114222         * lib/strnlen1.c: Likewise.
114223         * lib/strnlen1.h: Likewise.
114224         * lib/tls.c: Likewise.
114225         * lib/tls.h: Likewise.
114226         * lib/tmpdir.c: Likewise.
114228         * lib/TODO: Remove; this belongs only in coreutils.
114230 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114232         Add copyright notices to long-enough files that lack them, since
114233         otherwise the files aren't clearly free.  Use the same notice that
114234         getdate.texi already uses.
114235         * doc/alloca-opt.texi: Add copyright notice.
114236         * doc/alloca.texi: Likewise.
114237         * doc/ctime.texi: Likewise.
114238         * doc/functions.texi: Likewise.
114239         * doc/gcd.texi: Likewise.
114240         * doc/gnulib-tool.texi: Likewise.
114241         * doc/inet_ntoa.texi: Likewise.
114242         * doc/visibility.texi: Likewise.
114244         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
114245         * doc/quote.texi: Add copyright notice.
114247         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
114248         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
114249         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
114250         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
114251         is now obsolete, and give a pointer to the Sun list.
114252         Add copyright notice.
114254 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114256         * config/srclistvars.sh: Add copyright notice.
114258 2006-08-14  Eric Blake  <ebb9@byu.net>
114260         Import the following change from libc:
114262         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
114264         Upstream bug 2997.
114265         * lib/misc/error.c: Add space between program name and message if file
114266         name is missing.
114268 2006-08-12  Karl Berry  <karl@gnu.org>
114270         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
114271         remove, these originate in gnulib now.
114273 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114275         * doc/Makefile (standards.info standards.html standards.dvi):
114276         Also depend on make-stds.texi.
114278 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114280         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
114281         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
114283         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
114284         in wchar_t.  Problem reported by Eric Blake.
114286         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
114287         LEN is smaller than SIZE.  Suggested by Bruno Haible.
114288         Also, help the compiler to keep LEN in a register.
114290 2006-08-11  Eric Blake  <ebb9@byu.net>
114292         * users.txt: Sort.  Add tar.
114294 2006-08-11  Bruno Haible  <bruno@clisp.org>
114296         * users.txt: New file.
114298 2006-08-11  Bruno Haible  <bruno@clisp.org>
114300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
114301         before <wchar.h>. Needed for OSF/1 and BSD/OS.
114303 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114305         * modules/snprintf (Depends-on): Remove minmax.
114306         (Maintainer): Add self and Bruno.
114308 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114310         * lib/.cppi-disable: Add snprintf.h, socket_.h.
114311         * lib/snprintf.c: Include <errno.h> and <limits.h>.
114312         (EOVERFLOW): Define if the system does not.
114313         Do not include "minmax.h"; it wasn't used.
114314         (snprintf): Don't assume size_t promotes to an unsigned type.
114315         Fix bug when generated string was too long for the buffer: the
114316         buffer's contents are supposed to be the initial prefix of the
114317         output.  Don't assume vasnprintf returns EOVERFLOW if the size
114318         exceeds INT_MAX; do the check ourselves.
114320         Import the following changes from libc:
114322         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
114324         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
114325         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
114326         set wc to the byte which couldn't be converted.
114327         (re_string_reconstruct): Don't clear valid_raw_len before calling
114328         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
114329         tip_context using re_string_context_at.
114331         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
114333         * lib/posix/regex.h: g++ still cannot handled [restrict].
114335         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
114337         * lib/posix/regex.h: Remove special handling for VMS.
114339 2006-08-10  Jim Meyering  <jim@meyering.net>
114341         * modules/same-inode: New module.
114342         * modules/dev-ino: New module.
114343         * modules/cycle-check: Depend on these modules, rather than simply
114344         including their .h files.
114345         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114346         required via m4/cycle-check.m4.
114347         * modules/same: Depend on new same-inode module, rather than
114348         including same-inode.h.
114349         * modules/chdir-safer: New file.
114351         * modules/chown (Depends-on): Add stat-macros.
114353 2006-08-10  Jim Meyering  <jim@meyering.net>
114355         * m4/cycle-check.m4: New file.
114356         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114357         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114359 2006-08-10  Eric Blake  <ebb9@byu.net>
114361         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114362         in from original proposal.
114364 2006-08-10  Eric Blake  <ebb9@byu.net>
114365         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114367         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114368         namespace.
114370 2006-08-10  Bruno Haible  <bruno@clisp.org>
114372         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114373         as well.
114375 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114377         Sync from coreutils.
114379         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114381         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114382         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114384 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114386         * modules/restrict: Remove; no longer needed now that we assume
114387         Autoconf 2.59 or later.
114388         * MODULES.html.sh: Remove 'restrict'.
114389         * modules/argp (Depends-on): Remove 'restrict'.
114390         * modules/base64 (Depends-on): Likewise.
114391         * modules/gc (Depends-on): Likewise.
114392         * modules/getaddrinfo (Depends-on): Likewise.
114393         * modules/glob (Depends-on): Likewise.
114394         * modules/inet_ntop (Depends-on): Likewise.
114395         * modules/inet_pton (Depends-on): Likewise.
114396         * modules/memxor (Depends-on): Likewise.
114397         * modules/regex (Depends-on): Likewise.
114398         * modules/strtok_r (Depends-on): Likewise.
114399         * modules/time_r (Depends-on): Likewise.
114401 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114403         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114404         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114405         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114406         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114407         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114408         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114409         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114410         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114412         Merge from coreutils.
114413         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114414         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114415         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114416         * m4/time_r.m4 (gl_TIME_R): Likewise.
114418 2006-08-09  Karl Berry  <karl@gnu.org>
114420         * config/srclist.txt: no more gettext-tools, per Bruno.
114422 2006-08-08  Eric Blake  <ebb9@byu.net>
114424         * modules/verror: New module.
114425         * MODULES.html.sh: Document it.
114427 2006-08-08  Eric Blake  <ebb9@byu.net>
114429         * lib/verror.h, lib/verror.c: New files.
114431 2006-08-08  Eric Blake  <ebb9@byu.net>
114433         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114434         verror_at_line output complies with GNU Coding Standards even when
114435         file is NULL.
114437 2006-08-07  Bruno Haible  <bruno@clisp.org>
114439         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114440         versions of AIX.
114441         Reported by Ralf Wildenhues.
114443 2006-08-07  Bruno Haible  <bruno@clisp.org>
114445         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114446         in an AC_DEFUN. Needed so that the autoconf snippets can use
114447         AC_REQUIRE.
114449 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114451         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114452         Initialize pkgdata_DATA.
114453         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
114454         overriding it.
114456 2006-08-06  Eric Blake  <ebb9@byu.net>
114458         * lib/error.h: Fold in some upstream changes from glibc.
114459         * lib/error.c: Likewise.
114461 2006-08-04  Bruno Haible  <bruno@clisp.org>
114463         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114464         Make the mostlyclean-local rule depend on mostlyclean-generic.
114465         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
114467 2006-07-31  Bruno Haible  <bruno@clisp.org>
114469         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
114470         <stdlib.h>, <string.h>.
114472 2006-07-30  Bruno Haible  <bruno@clisp.org>
114474         * modules/readlink (License): Change to LGPL.
114476 2006-07-30  Bruno Haible  <bruno@clisp.org>
114478         * modules/javaversion (Makefile.am): Distribute javaversion.java and
114479         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
114480         set PKGDATADIR to point to it.
114482 2006-07-30  Bruno Haible  <bruno@clisp.org>
114484         * modules/csharpexec (configure.ac): Comment out macro invocation.
114485         * modules/javaexec (configure.ac): Likewise.
114486         * modules/javacomp-script (configure.ac): Likewise.
114488         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
114490 2006-07-30  Bruno Haible  <bruno@clisp.org>
114492         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
114493         linked-list.
114495 2006-07-30  Bruno Haible  <bruno@clisp.org>
114497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
114499 2006-07-30  Bruno Haible  <bruno@clisp.org>
114501         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114502         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
114503         get removed.
114505 2006-07-29  Bruno Haible  <bruno@clisp.org>
114507         Make it possible for gnulib-tool to work with locally modified or
114508         augmented gnulib repositories.
114509         * gnulib-tool (func_usage): Document --local-dir option.
114510         (local_gnulib_dir): New variable.
114511         Handle --local-dir option.
114512         (func_lookup_file): New function.
114513         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
114514         (func_get_description, func_get_filelist, func_get_description,
114515         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
114516         func_get_automake_snippet, func_get_include_directive,
114517         func_get_license, func_get_maintainer): Use func_lookup_file.
114518         (func_import, func_create_testdir): Use func_lookup_file.
114520 2006-07-29  Bruno Haible  <bruno@clisp.org>
114522         * modules/setenv (Depends-on): Add unistd.
114524 2006-07-29  Bruno Haible  <bruno@clisp.org>
114526         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
114528 2006-07-29  Bruno Haible  <bruno@clisp.org>
114530         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
114532 2006-07-29  Bruno Haible  <bruno@clisp.org>
114534         * gnulib-tool (import, update): If there is no Makefile.am, look at
114535         aclocal.m4, instead of bailing out.
114537 2006-07-29  Bruno Haible  <bruno@clisp.org>
114539         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
114540         Categorize the options by when they are useful.
114542 2006-07-29  Bruno Haible  <bruno@clisp.org>
114544         * gnulib-tool (func_usage): Document option --no-libtool.
114545         Handle option --no-libtool.
114546         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
114547         for changed semantics of $libtool variable.
114548         (func_import): Likewise. If libtool is not used, show this through
114549         an option --no-libtool.
114550         (func_create_testdir): Update.
114552 2006-07-29  Bruno Haible  <bruno@clisp.org>
114554         * gnulib-tool (func_import): Extend error message about missing
114555         --doc-base.
114557 2006-07-29  Bruno Haible  <bruno@clisp.org>
114559         * gnulib-tool (func_import): Don't create the $docbase directory if
114560         there is no file to store there.
114562 2006-07-29  Bruno Haible  <bruno@clisp.org>
114564         * gnulib-tool (autoconf_minversion): If a --dir option is given and
114565         relevant, look for configure.ac there, not in the current directory.
114566         Also use a simple search for AC_PREREQ, not "autoconf --trace".
114568 2006-07-29  Bruno Haible  <bruno@clisp.org>
114570         * gnulib-tool (SORT): New variable.
114571         (func_usage): Undocument --assume-autoconf option.
114572         Remove --assume-autoconf option handling.
114573         (autoconf_minversion): Determine from the contents of configure.ac.
114574         (func_import): Remove autoconf_minversion handling.
114575         Suggested by Eric Blake.
114577 2006-07-29  Bruno Haible  <bruno@clisp.org>
114579         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
114581 2006-07-29  Bruno Haible  <bruno@clisp.org>
114583         * config/srclist.txt (*setenv.[ch]): Remove rules.
114585 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114587         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114589 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114591         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114592         arpa/inet.h.
114594 2006-07-28  Simon Josefsson  <jas@extundo.com>
114596         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
114597         * modules/inet_pton (Depends-on): Likewise.
114599 2006-07-28  Simon Josefsson  <jas@extundo.com>
114601         * m4/netinet_in_h.m4: New file.
114603 2006-07-28  Simon Josefsson  <jas@extundo.com>
114605         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
114606         #include's.
114608 2006-07-28  Simon Josefsson  <jas@extundo.com>
114610         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
114611         #include's.
114613 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
114615         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
114616         setgid on directories only if they set these bits.
114617         * lib/modechange.h: Remove obsolete comment about masks.
114619 2006-07-28  Eric Blake  <ebb9@byu.net>
114621         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
114622         macro expansion.
114624 2006-07-28  Bruno Haible  <bruno@clisp.org>
114626         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
114628 2006-07-28  Bruno Haible  <bruno@clisp.org>
114630         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
114632 2006-07-28  Bruno Haible  <bruno@clisp.org>
114634         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
114635         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
114636         Define fallbacks.
114637         Avoids link error on FreeBSD 4.x.
114638         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114640         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
114641         encoding.
114642         * lib/mbswidth.c (iswcntrl): Likewise.
114644 2006-07-27  Bruno Haible  <bruno@clisp.org>
114646         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
114647         test.
114649 2006-07-27  Bruno Haible  <bruno@clisp.org>
114651         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
114652         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
114653         defined.
114655 2006-07-26  Eric Blake  <ebb9@byu.net>
114657         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
114659 2006-07-26  Eric Blake  <ebb9@byu.net>
114661         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114662         like mingw that lack mkstemp.
114663         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114664         avoid compilation warning on mingw.
114666 2006-07-26  Bruno Haible  <bruno@clisp.org>
114668         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114669         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114670         INT_FAST*_MIN, INTPTR_MIN.
114672 2006-07-25  Bruno Haible  <bruno@clisp.org>
114674         * modules/version-etc (Depends-on): Add stdarg.
114676 2006-07-25  Bruno Haible  <bruno@clisp.org>
114678         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114679         complex commands.
114681 2006-07-25  Bruno Haible  <bruno@clisp.org>
114683         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114684         defined in <stdarg.h> or config.h.
114686 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114688         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114689         (gl_STDIO_SAFER): Remove.
114691 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114693         * MODULES.html.sh (File stream based Input/Output):
114694         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114695         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114696         * modules/fopen-safer, modules/tmpfile-safer: New files.
114697         * modules/stdio-safer: Remove.
114699 2006-07-24  Bruno Haible  <bruno@clisp.org>
114701         * modules/tmpdir: New file.
114702         * MODULES.html.sh (File system functions): Add it.
114704 2006-07-24  Bruno Haible  <bruno@clisp.org>
114706         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114707         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114709 2006-07-24  Bruno Haible  <bruno@clisp.org>
114711         * modules/clean-temp: New file.
114713 2006-07-24  Bruno Haible  <bruno@clisp.org>
114715         * m4/tmpdir.m4: New file, from GNU gettext.
114717 2006-07-24  Bruno Haible  <bruno@clisp.org>
114719         * lib/tmpdir.h: New file, from GNU gettext.
114720         * lib/tmpdir.c: New file, from GNU gettext.
114722 2006-07-24  Bruno Haible  <bruno@clisp.org>
114724         * lib/clean-temp.h: New file, from GNU gettext.
114725         * lib/clean-temp.c: New file, from GNU gettext.
114727 2006-07-23  Eric Blake  <ebb9@byu.net>
114729         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114730         (Depends-on): Add binary-io.
114732 2006-07-23  Eric Blake  <ebb9@byu.net>
114734         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114736 2006-07-23  Eric Blake  <ebb9@byu.net>
114738         * lib/tmpfile-safer.c: New file.
114739         * lib/stdio-safer.h (fopen_safer): Add prototype.
114740         * lib/stdio--.h (tmpfile): Make safer.
114742 2006-07-23  Bruno Haible  <bruno@clisp.org>
114744         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114745         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114746         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114747         gl_linked_remove_at): Use it.
114749 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114750         and Simon Josefsson <jas@extundo.com>
114752         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114754         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114756 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114758         * modules/close-stream: New file.
114759         * modules/closeout (Description): Make it clear that it exits
114760         with a diagnostic on error.
114761         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114762         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114764 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114766         * m4/close-stream.m4: New file.
114768 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114770         * lib/close-stream.c, lib/close-stream.h: New files.
114772 2006-07-22  Bruno Haible  <bruno@clisp.org>
114774         Merge from GNU gettext 0.15.
114776         2006-05-01  Bruno Haible  <bruno@clisp.org>
114778                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114780         2006-07-22  Bruno Haible  <bruno@clisp.org>
114782                 * modules/javaversion: New file.
114783                 * MODULES.html.sh (Java): Add javaversion.
114785         2006-03-12  Bruno Haible  <bruno@clisp.org>
114787                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114789         2005-12-04  Bruno Haible  <bruno@clisp.org>
114791                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114792                 (untested).
114794         2006-06-21  Bruno Haible  <bruno@clisp.org>
114796                 Avoid warnings from recent versions of mcs.
114797                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114798                 -o, -L, -r any more. Use options documented since mcs-1.0
114799                 instead. Similarly for -g.
114801         2005-12-04  Bruno Haible  <bruno@clisp.org>
114803                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114804                 .resources, not .resource.
114806         2005-07-09  Bruno Haible  <bruno@clisp.org>
114808                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114809                 add a .dll suffix.
114810                 Reported by Mark Junker <mjscod@gmx.de>.
114812         2006-07-22  Bruno Haible  <bruno@clisp.org>
114814                 * modules/gettext: Upgrade to gettext-0.15.
114815                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114816                 m4/visibility.m4.
114817                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114819 2006-07-22  Bruno Haible  <bruno@clisp.org>
114821         Merge from GNU gettext 0.15.
114823         2006-03-25  Bruno Haible  <bruno@clisp.org>
114825                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114827         2006-07-21  Bruno Haible  <bruno@clisp.org>
114829                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114830                 "1.1".
114832         2006-05-09  Bruno Haible  <bruno@clisp.org>
114834                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114835                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114836                 for the conftestver execution.
114838         2006-05-01  Bruno Haible  <bruno@clisp.org>
114840                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114841                 optional target-version argument. Verify that the compiler
114842                 groks source of the specified source-version, or add -source
114843                 option as necessary. Verify that the compiler produces
114844                 bytecode in the specified target-version, or add -target and
114845                 -source options as necessary. Make the result of the test
114846                 available as variable CONF_JAVAC. Also log error output in
114847                 config.log.
114849         2006-03-11  Bruno Haible  <bruno@clisp.org>
114851                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114853         2006-05-09  Bruno Haible  <bruno@clisp.org>
114855                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114856                 CLASSPATH_SEPARATOR to a semicolon.
114858         2006-03-12  Bruno Haible  <bruno@clisp.org>
114860                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114861                 available as variable CONF_JAVA, for subsequent autoconf
114862                 tests. Also log error output in config.log.
114864         2006-07-19  Bruno Haible  <bruno@clisp.org>
114866                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114867                 that getline works on glibc2 systems. Needed to avoid trouble
114868                 in relocatable.c.
114869                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114871         2005-12-04  Bruno Haible  <bruno@clisp.org>
114873                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114874                 launcher (untested).
114876         2005-12-04  Bruno Haible  <bruno@clisp.org>
114878                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114880         2006-07-22  Bruno Haible  <bruno@clisp.org>
114882                 * gettext.m4: Update from GNU gettext-0.15.
114883                 * nls.m4: Likewise.
114884                 * po.m4: Likewise.
114885                 * inttypes-pri.m4: Likewise.
114886                 * inttypes-h.m4: Renamed from inttypes.m4.
114887                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114889 2006-07-22  Bruno Haible  <bruno@clisp.org>
114891         Merge from GNU gettext 0.15.
114893         2005-07-05  Bruno Haible  <bruno@clisp.org>
114895                 * printf-args.c (printf_fetchargs): Work around broken
114896                 definition of wint_t on mingw.
114898         2005-02-12  Bruno Haible  <bruno@clisp.org>
114900                 * xallocsa.h: Add extern "C" for C++.
114902         2006-05-17  Bruno Haible  <bruno@clisp.org>
114904                 Cygwin portability.
114905                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114907         2006-04-30  Bruno Haible  <bruno@clisp.org>
114909                 * progreloc.c: Include <mach-o/dyld.h> if available.
114910                 (find_executable): Use _NSGetExecutablePath when possible.
114912         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114914                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114915                 function.
114917         2005-12-29  Bruno Haible  <bruno@clisp.org>
114919                 * progreloc.c (set_program_name_and_installdir): Fix
114920                 compilation error.
114922         2005-12-04  Bruno Haible  <bruno@clisp.org>
114924                 Cygwin portability.
114925                 * progreloc.c: Include <windows.h> also on Cygwin.
114926                 (find_executable): Add support for Cygwin.
114927                 (set_program_name_and_installdir): Handle also platforms with
114928                 nonempty EXEEXT.
114930         2006-07-11  Bruno Haible  <bruno@clisp.org>
114932                 * javacomp.c: Fix a comment.
114933                 Reported by Jim Meyering.
114935         2006-04-30  Bruno Haible  <bruno@clisp.org>
114937                 * javacomp.h (compile_java_class): Add source_version,
114938                 target_version arguments.
114939                 * javacomp.c: Rewritten to choose only a compiler that
114940                 respects the specified source_version and target_version.
114942         2006-06-27  Bruno Haible  <bruno@clisp.org>
114944                 Assume correct S_ISDIR macro.
114945                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114947         2006-07-22  Bruno Haible  <bruno@clisp.org>
114949                 * javaversion.h: New file, from GNU gettext.
114950                 * javaversion.c: New file, from GNU gettext.
114951                 * javaversion.java: New file, from GNU gettext.
114952                 * javaversion.class: New file, from GNU gettext.
114954         2006-05-17  Bruno Haible  <bruno@clisp.org>
114956                 Cygwin portability.
114957                 * javaexec.c (execute_java_class): Test for jview program
114958                 also on Cygwin.
114960         2006-04-09  Bruno Haible  <bruno@clisp.org>
114962                 * fatal-signal.c: Don't include string.h.
114963                 (at_fatal_signal): Use a copying loop instead of memcpy.
114965         2005-12-04  Bruno Haible  <bruno@clisp.org>
114967                 * csharpexec.c: Add support for 'clix' launcher (untested).
114968                 (execute_csharp_using_sscli): New function.
114969                 (execute_csharp_program): Call it.
114971         2006-06-21  Bruno Haible  <bruno@clisp.org>
114973                 Avoid warnings from recent versions of mcs.
114974                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114975                 -o, -L, -r any more. Use options documented since mcs-1.0
114976                 instead. Similarly for -g.
114978         2005-07-09  Bruno Haible  <bruno@clisp.org>
114980                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114981                 add a .dll suffix.
114982                 Reported by Mark Junker <mjscod@gmx.de>.
114984         2006-06-17  Bruno Haible  <bruno@clisp.org>
114986                 * config.charset: Update for NetBSD 3.0.
114988         2006-05-17  Bruno Haible  <bruno@clisp.org>
114990                 Cygwin portability.
114991                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114993         2006-05-16  Bruno Haible  <bruno@clisp.org>
114995                 * localcharset.c [CYGWIN]: Include <windows.h>.
114996                 (get_charset_aliases): For Cygwin, return the same CPxxx
114997                 aliases list as under WIN32.
114998                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114999                 the environment variables. Fall back to GetACP().
115001         2006-04-05  Bruno Haible  <bruno@clisp.org>
115003                 * config.charset: Update Juan Manuel Guerrero's address.
115005         2005-02-12  Bruno Haible  <bruno@clisp.org>
115007                 * allocsa.h: Add extern "C" for C++.
115009         2005-02-10  Bruno Haible  <bruno@clisp.org>
115011                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
115012                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
115014         2006-07-22  Bruno Haible  <bruno@clisp.org>
115016                 * gettext.h: Update to GNU gettext-0.15.
115018 2006-07-22  Bruno Haible  <bruno@clisp.org>
115020         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
115021         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
115022         lib-prefix.m4, longdouble.m4, ssize_t.m4.
115024 2006-07-21  Eric Blake  <ebb9@byu.net>
115026         * modules/stdlib-safer: New file.
115027         * MODULES.html.sh (File stream based Input/Output): Add
115028         stdlib-safer.
115030 2006-07-21  Eric Blake  <ebb9@byu.net>
115032         * lib/stdlib-safer.h: New file from coreutils, required by
115033         stdlib--.h.
115035 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
115037         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
115039 2006-07-20  Bruno Haible  <bruno@clisp.org>
115041         * gnulib-tool: Recognize new option --assume-autoconf.
115042         (autoconf_minversion): New variable.
115043         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
115045 2006-07-20  Bruno Haible  <bruno@clisp.org>
115047         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
115049 2006-07-19  Derek R. Price  <derek@ximbiot.com>
115051         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
115052         Reindent and repaginate.
115054 2006-07-19  Derek Price  <derek@ximbiot.com>
115056         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
115057         Correct grammar.
115059 2006-07-17  Bruno Haible  <bruno@clisp.org>
115061         * modules/list: New file.
115062         * modules/array-list: New file.
115063         * modules/carray-list, modules/carray-list-tests: New files.
115064         * modules/linked-list, modules/linked-list-tests: New files.
115065         * modules/avltree-list, modules/avltree-list-tests: New files.
115066         * modules/rbtree-list, modules/rbtree-list-tests: New files.
115067         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
115068         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
115069         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
115070         * modules/oset: New file.
115071         * modules/array-oset: New file.
115072         * modules/avltree-oset, modules/avltree-oset-tests: New files.
115073         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
115074         * tests/test-carray_list.c: New file.
115075         * tests/test-linked_list.c: New file.
115076         * tests/test-avltree_list.c: New file.
115077         * tests/test-rbtree_list.c: New file.
115078         * tests/test-linkedhash_list.c: New file.
115079         * tests/test-avltreehash_list.c: New file.
115080         * tests/test-rbtreehash_list.c: New file.
115081         * tests/test-avltree_oset.c: New file.
115082         * tests/test-rbtree_oset.c: New file.
115083         * MODULES.html.sh (Container data structures): New section.
115085 2006-07-17  Bruno Haible  <bruno@clisp.org>
115087         * m4/gl_list.m4: New file.
115089 2006-07-17  Bruno Haible  <bruno@clisp.org>
115091         * lib/gl_list.h: New file.
115092         * lib/gl_list.c: New file.
115093         * lib/gl_array_list.h: New file.
115094         * lib/gl_array_list.c: New file.
115095         * lib/gl_carray_list.h: New file.
115096         * lib/gl_carray_list.c: New file.
115097         * lib/gl_linked_list.h: New file.
115098         * lib/gl_linked_list.c: New file.
115099         * lib/gl_anylinked_list1.h: New file.
115100         * lib/gl_anylinked_list2.h: New file.
115101         * lib/gl_avltree_list.h: New file.
115102         * lib/gl_avltree_list.c: New file.
115103         * lib/gl_anyavltree_list1.h: New file.
115104         * lib/gl_anyavltree_list2.h: New file.
115105         * lib/gl_rbtree_list.h: New file.
115106         * lib/gl_rbtree_list.c: New file.
115107         * lib/gl_anyrbtree_list1.h: New file.
115108         * lib/gl_anyrbtree_list2.h: New file.
115109         * lib/gl_anytree_list1.h: New file.
115110         * lib/gl_anytree_list2.h: New file.
115111         * lib/gl_linkedhash_list.h: New file.
115112         * lib/gl_linkedhash_list.c: New file.
115113         * lib/gl_anyhash_list1.h: New file.
115114         * lib/gl_anyhash_list2.h: New file.
115115         * lib/gl_avltreehash_list.h: New file.
115116         * lib/gl_avltreehash_list.c: New file.
115117         * lib/gl_rbtreehash_list.h: New file.
115118         * lib/gl_rbtreehash_list.c: New file.
115119         * lib/gl_anytreehash_list1.h: New file.
115120         * lib/gl_anytreehash_list2.h: New file.
115122         * lib/gl_oset.h: New file.
115123         * lib/gl_oset.c: New file.
115124         * lib/gl_array_oset.h: New file.
115125         * lib/gl_array_oset.c: New file.
115126         * lib/gl_avltree_oset.h: New file.
115127         * lib/gl_avltree_oset.c: New file.
115128         * lib/gl_rbtree_oset.h: New file.
115129         * lib/gl_rbtree_oset.c: New file.
115130         * lib/gl_anytree_oset.h: New file.
115132 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115134         * m4/mkancesdirs.m4: New file.
115135         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
115136         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
115137         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
115138         it.
115140 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115142         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
115143         * lib/mkancesdirs.h: New files.
115144         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
115145         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
115146         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
115147         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
115148         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
115149         callers changed.  Revamp internals significantly, by not
115150         attempting to create directories that are temporarily more
115151         permissive than the final results.  Do not attempt to use
115152         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
115153         This removes some race conditions, fixes some bugs, and simplifies
115154         things.  Use new dirchownmod function to do owner and mode changes.
115155         * lib/mkdir-p.h: Likewise.
115156         * lib/modechange.c (octal_to_mode): New function.
115157         (struct mode_change): New member mentioned.
115158         (make_node_op_equals): New arg mentioned.  All callers changed.
115159         (mode_compile): Keep track of which mode bits the user has explicitly
115160         mentioned.
115161         (mode_adjust): New arg DIR, so that we implement the X op correctly.
115162         New arg PMODE_BITS, to keep track of which mode bits the user
115163         mentioned; it treats S_ISUID and S_ISGID speciall.
115164         All callers changed.
115165         * lib/modechange.h: Likewise.
115167 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115169         * MODULES.html.sh: Add mkancestors.
115170         * modules/mkancesdirs: New module.
115171         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115172         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115173         The chdir-safer and afs files are now orphans; I'll remove them
115174         unless someone speaks up.
115175         Add lib/dirchownmod.c, lib/dirchownmod.h.
115176         (Depends-on): Remove alloca, chown, save-cwd, dirname.
115177         Add lchown, mkancesdirs.
115178         (Maintainer): Add self.
115180 2006-07-15  Karl Berry  <karl@gnu.org>
115182         * gnulib-tool: help message wording/arrangement.
115184 2006-07-14  Simon Josefsson  <jas@extundo.com>
115186         * doc/gnulib.texi (Libtool and Windows): New section.
115188 2006-07-12  Simon Josefsson  <jas@extundo.com>
115190         * modules/gendocs (License): Fix license, approved by Karl.
115192 2006-07-12  Eric Blake  <ebb9@byu.net>
115194         * MODULES.html.sh: Add gendocs.
115196 2006-07-11  Eric Blake  <ebb9@byu.net>
115198         * modules/fdl: New module, to install doc/fdl.texi.
115199         * MODULES.html.sh: Add new section for documentation modules.
115200         * gnulib-tool: Avoid space-tab.
115201         (--doc-base): New option, to manage files from doc.
115203 2006-07-11  Eric Blake  <ebb9@byu.net>
115205         * m4/absolute-header.m4: Fix comments to match recent change.
115207 2006-07-11  Eric Blake  <ebb9@byu.net>
115209         * gnulib-tool: List --doc-base before --tests-base.
115211 2006-07-11  Derek R. Price  <derek@ximbiot.com>
115213         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
115215 2006-07-11  Bruno Haible  <bruno@clisp.org>
115217         * README: Mention where to put documentation.
115219 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115221         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
115223 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
115226         to stdint.m4.
115228 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115230         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
115231         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
115232         "no/such/file/stdint.h" when there is no such file, so that
115233         the resulting C code can be parsed by dodgy compilers.
115234         Problems reported by Bob Proulx.
115236 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115238         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
115239         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115240         macros into the GNU _D_EXACT_NAMLEN.
115241         * lib/savedir.c:  Likewise.
115242         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
115244 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115245         and Paul Eggert  <eggert@cs.ucla.edu>
115247         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
115248         * m4/savedir.m4:
115249         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115250         macros into the GNU _D_EXACT_NAMLEN.
115252 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115254         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
115255         around the absolute name, to work around a problem with the HP-UX
115256         11.23 native C compiler, reported by Bob Proulx.
115258 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115260         * doc/maintain.texi, make-stds.texi: Sync from
115261         <http://savannah.gnu.org/projects/gnustandards>.
115263 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115265         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
115267 2006-07-09  Jim Meyering  <jim@meyering.net>
115269         * m4/glob.m4: Remove a doubled word in a comment.
115271 2006-07-09  Jim Meyering  <jim@meyering.net>
115273         * lib/argp-pv.c: Remove a doubled word in a comment.
115274         * lib/check-version.c (check_version): Likewise.
115275         * lib/javacomp.c (compile_java_class): Likewise.
115277 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115279         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
115280         for the benefit of people using Autoconf 2.60.  If you want to
115281         support older Autoconf versions you can copy m4/onceonly_2_57.m4
115282         (or m4/onceonly.m4, if pre-2.57) manually.
115284 2006-07-08  Jim Meyering  <jim@meyering.net>
115286         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
115287         comment.
115288         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
115289         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
115290         comment.
115292 2006-07-08  Jim Meyering  <jim@meyering.net>
115294         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
115296 2006-07-07  Simon Josefsson  <jas@extundo.com>
115298         * tests/test-crc.c: Change expected crc value, the test vector
115299         were probably computed using the old broken crc.c?
115301 2006-07-06  Simon Josefsson  <jas@extundo.com>
115303         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
115304         now the canonical place for the M4 file).
115306         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
115307         from the sys_socket dependency now.
115309         * modules/inet_pton (Files): Ditto.
115311         * modules/inet_ntop (Files): Ditto.
115313 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115315         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
115316         not gl_PREREQ_GETUSERSHELL.
115318 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115320         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
115321         with only one argument, for Autoconf 2.60.
115322         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
115323         expand to nothing, so add a shell command to avoid syntax error.
115324         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115326 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115328         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
115330 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115332         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
115333         no longer needed.  Check for isblank decl.
115334         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
115335         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
115336         of existence.
115338 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115340         * lib/getloadavg.c: Use __VMS, not VMS.
115341         * lib/getopt.c: Likewise.
115342         * lib/getpagesize.h: Likewise.
115343         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115344         and probably does not work.
115346 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115348         * lib/.cppi-disable: Add wcwidth.
115349         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115350         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115351         (ISGRAPH): Remove.  All uses changed to isgraph.
115352         (FOLD) [!defined _LIBC]: Remove special case.
115353         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115354         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115355         HAVE_ISBLANK.
115356         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115357         case.
115359 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115361         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115362         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115363         brackets.  Other minor changes to suppress some compiler
115364         warnings.
115366 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115367         and Paul Eggert  <eggert@cs.ucla.edu>
115369         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115370         of invoking obsolescent AC_HEADER_DIRENT macro.
115371         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115372         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115373         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115375         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115376         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115377         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115378         * m4/readdir.m4: Remove; no longer needed.
115380 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115381         and Paul Eggert  <eggert@cs.ucla.edu>
115383         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115384         Don't worry about this obsolete case any more.
115385         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115386         directories.
115387         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115388         worry about this obsolete case any more.
115389         * lib/fts.c: Likewise.
115390         * lib/getcwd.c: Likewise.
115391         * lib/glob.h: Likewise.
115392         * lib/savedir.c: Likewise.
115394 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115396         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115397         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115398         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115399         needed.
115400         All uses removed.
115401         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115402         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115403         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115404         needed.
115405         * m4/getdate.m4 (gl_GETDATE): Likewise.
115406         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115407         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115408         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115409         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115410         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115411         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115412         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115413         needed.
115415 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115417         * lib/memcasecmp.c: Include <limits.h>.
115418         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115419         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115420         Don't assume isdigit succeeds only on '0' through '9'.
115422 2006-07-05  Eric Blake  <ebb9@byu.net>
115424         * modules/getaddrinfo (Depends-on): Add snprintf.
115426 2006-07-05  Eric Blake  <ebb9@byu.net>
115428         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115429         to avoid 'header present but could not be compiled' on cygwin.
115431 2006-07-05  Eric Blake  <ebb9@byu.net>
115433         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115434         missing from netdb.h.
115435         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115437 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115439         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115440         no longer needed.
115441         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115442         * m4/getdate.m4 (gl_GETDATE): Likewise.
115443         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115444         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115445         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115446         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115447         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115449 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115451         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115452         All uses of is_space replaced by isspace.
115453         * lib/exit.h: Don't talk about STDC_HEADERS.
115454         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
115455         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
115456         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
115457         replaced by isprint etc.
115458         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
115459         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115460         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
115461         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
115462         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
115463         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115465 2006-07-05  Bruno Haible  <bruno@clisp.org>
115467         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
115468         the function exists, before testing against AIX.
115469         Reported by Martin Lambers <marlam@marlam.de>.
115471 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115473         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
115474         From Mark D. Baushke.
115476 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
115479         to the absolute name, not just one, to bypass Sun C 5.8's
115480         "warning: #include of /usr/include/... may be non-portable".
115482 2006-07-04  Eric Blake  <ebb9@byu.net>
115484         * modules/dirname-tests: New test module.
115485         * tests/test-dirname.c: New file, replacing dirname.c
115486         TEST_DIRNAME section that was recently deleted.
115488 2006-07-04  Bruno Haible  <bruno@clisp.org>
115490         Assume ANSI C header files and <ctype.h> functions.
115491         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
115492         (mbsnwidth): Use isprint, iscntrl instead.
115494 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115496         Merge from coreutils.
115497         * MODULES.html.sh: Add xstrtold.
115498         * modules/xstrtold: New file.
115499         * modules/cycle-check (Files): Add lib/same-inode.h.
115500         * modules/dirname (Files): Add m4/double-slash-root.m4.
115501         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
115502         * modules/mkdir-p (Files): Add lib/same-inode.h.
115503         * modules/same (Files): Add lib/same-inode.h.
115505 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115507         * m4/absolute-header.m4: Renamed from full-header-path.m4.
115508         This is to keep the terminology clean; POSIX talks about
115509         "absolute pathnames", not "full pathnames", but the GNU
115510         Coding Standards say to use "path" for something else;
115511         so use "absolute" to keep both sides happy.
115512         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
115513         Set gl_absolute_header, not gl_full_header_path.
115514         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
115515         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
115516         All uses changed.
115518         Merge from coreutils.
115520         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115522         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
115523         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
115524         want to require the building of c-strtod.o.
115525         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
115526         needs -lm directly.
115527         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
115529         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115531         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
115532         --as-needed option if available.  Problem reported by Albert Chin in
115533         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
115534         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
115535         cc merely issues a bunch of annoying warnings for --as-needed
115536         (this problem was reported by Bob Proulx).  Also, try linking with
115537         -lm to detect a bug in binutils 2.16 (this problem was reported
115538         by Ralf Wildenhues).
115540         2006-06-18  Jim Meyering  <jim@meyering.net>
115542         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
115543         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
115544         macro.
115545         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
115546         also check for glibc-2.4's abort-inducing bug.
115548         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
115549         Low-probability clean-up should be to use rmdir to get rid of
115550         the just-created directory, not unlink.
115552         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
115553         configure fail, and request a bug report to inform us about it.
115554         Add a comment that, barring reports to the contrary, in 2007 we'll
115555         assume ftruncate is universally available.
115557         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115559         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
115561         2006-03-12  Jim Meyering  <jim@meyering.net>
115563         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
115564         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
115565         * m4/same.m4 (gl_SAME): Likewise.
115566         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
115568         2006-03-11  Eric Blake  <ebb9@byu.net>
115570         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
115571         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
115572         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
115573         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
115575 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115577         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
115578         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
115579         reported by Mark D. Baushke, one in
115580         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
115582         Merge from coreutils.
115584         * lib/.cppi-disable: Add stdint_.h.
115585         * lib/.cvsignore: Add stdint.h.
115587         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115589         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115590         both double and long double versions.
115591         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115592         * lib/xstrtold.c: New file.
115593         * lib/xstrtod.h (xstrtold): New decl.
115595         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115597         * lib/filemode.c (setst): Remove.
115598         (strmode): Rewrite to avoid setst.  This makes the code shorter,
115599         (arguably) clearer, and the generated code is a bit smaller on my
115600         Debian GNU/Linux stable x86 host.
115602         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115604         * lib/filemode.c: Include "filemode.h" first, to test the interface.
115605         Assume that filemode.h includes sys/types.h and sys/stat.h.
115606         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
115607         (ftypelet): Reorder to put common cases first, for efficiency.
115608         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
115609         to do 'M'.
115610         (strmode): Renamed from mode_string, and now stores 12 bytes instead
115611         of 10, for compatibility with FreeBSD.  All callers changed.
115612         (filemodestring): Now stores 12 bytes instead of 10, and sets file
115613         types that can't be deduced solely from st_mode.  First arg is now a
115614         const pointer.
115615         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
115616         (strmode): Renamed from mode_string.
115617         (filemodestring): New decl.
115618         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
115619         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
115620         needed.
115621         (S_ISPORT, S_ISWHT): New macros, if not already defined.
115623         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
115625         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
115626         fsusage.h now does that.  Include fsusage.h first, to test interface.
115627         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
115628         at most one method (the old code could have generated decls that
115629         didn't conform to C89, not that this was ever exercised).
115630         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
115632         2006-03-19  Jim Meyering  <jim@meyering.net>
115634         Work even in a chroot where d_ino values for entries in "/"
115635         don't match the stat.st_ino values for the same names.
115636         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
115637         number, iterate through all entries again, using lstat instead.
115638         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
115639         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
115641         * lib/getcwd.c (__getcwd): Clarify a comment.
115642         Use memcpy in place of a call to strcpy.
115644         2006-03-12  Jim Meyering  <jim@meyering.net>
115646         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
115647         matches that of the current directory (which we're about to chdir ".."
115648         out of), then save the dev-ino of the parent, instead.
115650         * lib/same-inode.h (SAME_INODE): New file/macro.
115651         * lib/chdir-safer.c (SAME_INODE): Remove definition.
115652         Include "same-inode.h", instead.
115653         * lib/same.c: Likewise.
115654         * lib/cycle-check.h: Include "same-inode.h".
115655         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
115656         * lib/cycle-check.c (SAME_INODE): Remove definition.
115657         * lib/root-dev-ino.h: Include "same-inode.h".
115659         2006-03-11  Eric Blake  <ebb9@byu.net>
115661         * lib/same.c (same_name): s/base_name/last_component/
115662         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115663         * lib/filenamecat.c (file_name_concat): Likewise.
115665         2006-03-11  Eric Blake  <ebb9@byu.net>,
115666                     Paul Eggert  <eggert@cs.ucla.edu>
115668         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115669         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115670         drive prefix.
115671         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115672         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115673         (last_component): New method.
115674         * lib/dirname.c (dir_len): Determine when drive letters need a
115675         subsequent slash.  Preserve // when it is special.
115676         (dir_name): Don't append dot when drive letter is absolute.
115677         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115678         * lib/basename.c (base_name): New semantics - malloc the result.
115679         Preserve // when it is special.  Preserve relative files that look
115680         like drive letters.
115681         (base_len): Preserve // when it is special.
115682         (last_component): New method, similar to old base_name semantics.
115683         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115684         base_name.  Strip redundant slashes from ///.
115686 2006-07-03  Jim Meyering  <jim@meyering.net>
115688         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115689         macro is used before the first cycle_check call.
115691 2006-07-03  Eric Blake  <ebb9@byu.net>
115693         * modules/dirname (Depends-on): Add xstrndup.
115695 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115697         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115698         test cases, so that config.log is a bit easier to follow.
115700 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115702         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115703         both are 64 bits, since this seems to be the tradition, and this
115704         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115705         we ever run into a host that prefers long long to long in this
115706         case, we'll need another configure-time test.  Problem reported by
115707         Jim Meyering.
115709 2006-07-02  Eric Blake  <ebb9@byu.net>
115711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115713 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115715         * modules/inttypes (Depends-on): No longer depends on stdint.
115716         * modules/stdint (Description): Say more about assumptions.
115717         Say that the fast types might differ.  Say macros are used.
115718         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115719         (Makefile.am): Revise list of substituted symbols to match
115720         new stdint.m4.
115721         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115722         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115723         * tests/test-stdint.c (verify_same_types)
115724         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115725         the code conforms to C99/C89.
115726         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115727         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115729 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115731         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115732         but fix a bug, by requiring at least 64 bits.
115733         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115734         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115735         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115736         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115738         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115739         changes.  Make 2.59 a prerequisite.  Check and substitute for
115740         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115741         inttypes.h.  Do not use special include files; just use the
115742         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115743         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115744         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115745         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115746         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115747         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115748         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115749         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115750         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115751         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115752         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115753         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115754         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115755         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115756         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115757         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115758         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115759         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115760         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115761         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115762         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115763         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115764         not check for things that C99 does not require, e.g., int8_t.  If
115765         a test isn't needed unless <stdint.h> isn't working, and is
115766         unlikely to be needed for any other reason, then don't do it
115767         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115768         size_t, since we assume C89 freestanding at least.  Do not check
115769         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115770         the right thing even if the types are not defined.  Instead use:
115771         (gl_STDINT_TYPE_PROPERTIES): New macro.
115772         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115773         testing whether <sys/types.h> clashes, as Autoconf does this for
115774         us now.  All uses removed.
115775         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115776         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115777         (gl_CHECK_TYPE_SAME):
115778         Remove; no longer needed.
115779         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115780         exists, since we'll return 0 anyway in that case.
115781         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115783 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115785         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115786         possible collision with system files.
115787         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115788         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115789         WCHAR_MIN and WCHAR_MAX in this case.
115790         (<stddef.h>): Do not include; no longer needed.
115791         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115792         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115793         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115794         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115795         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115796         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115797         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115798         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115799         !defined(__c99))]: Include in this case too, since it's harmless
115800         now.
115801         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115802         dangerous to do so.
115803         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115804         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115805         (_STDINT_MIN, _STDINT_MAX): New macros.
115806         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115807         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115808         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115809         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115810         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115811         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115812         macros, not typedefs; this simplifies things quite a bit.
115813         Use long int for all types narrower than int64_t.
115814         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115815         Define in terms of long long int or int64_t or long int,
115816         not int64_t or int32_t.  This saves some compile-time testing.
115817         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115818         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115819         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115820         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115821         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115822         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115823         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115824         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115825         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115826         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115827         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115828         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115829         undef any previous version and define our own version, for
115830         simplicity and consistency with the new macros for types.
115831         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115832         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115833         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115834         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115835         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115836         @WINT_T_SUFFIX@ to keep things simple here.
115837         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115838         Simplify by assuming typical 8/16/32/64 host, since we're
115839         already doing that elsewhere anyway.
115840         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115841         and assume long long int is 64 bits if available.  This
115842         speeds up 'configure'.
115844 2006-07-01  Eric Blake  <ebb9@byu.net>
115846         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115847         Reported by Andreas Buening.
115849 2006-07-01  Eric Blake  <ebb9@byu.net>
115851         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115853 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115855         * lib/getaddrinfo.c: fixed typo
115857 2006-06-29  Jim Meyering  <jim@meyering.net>
115859         * modules/strftime (Maintainer): Add my name, since with the
115860         FPRINTFTIME changes strftime.c has forked from glibc.
115862 2006-06-29  Eric Blake  <ebb9@byu.net>
115864         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115866 2006-06-29  Eric Blake  <ebb9@byu.net>
115868         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115870 2006-06-29  Eric Blake  <ebb9@byu.net>
115872         * lib/stat_.h: New file.
115874 2006-06-29  Eric Blake  <ebb9@byu.net>
115876         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115877         unused static function.
115879 2006-06-29  Eric Blake  <ebb9@byu.net>
115881         * doc/functions.texi (Function Portability): Document missing lstat
115882         on mingw.
115884 2006-06-29  Eric Blake  <ebb9@byu.net>
115886         * MODULES.html.sh: Add sys_stat.
115887         * modules/sys_stat: New module.
115888         * modules/mkstemp (Depends-on): Add sys_stat.
115890 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115892         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115894 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115896         * m4/c-bs-a.m4: Removed.
115898 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115900         * lib/strftime.c: Assume strftime() exists.
115902 2006-06-29  Derek Price  <derek@ximbiot.com>
115904         * modules/c-bs-a: Removed - \a is C89.
115905         * MODULES.html.sh: Remove c-bs-a.
115907 2006-06-29  Bruno Haible  <bruno@clisp.org>
115909         * modules/wcwidth (License): Change to LGPL.
115911 2006-06-28  Simon Josefsson  <jas@extundo.com>
115913         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115914         on _WIN32.
115916         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115917         getnameinfo.
115919 2006-06-28  Simon Josefsson  <jas@extundo.com>
115921         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115923 2006-06-28  Simon Josefsson  <jas@extundo.com>
115925         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115926         functions there.  It will succeed on Windows XP, but on Windows
115927         2000 and (presumably) earlier, it will fail, and use the internal
115928         re-implementation.
115929         (use_win32_p): New function.
115930         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115931         Support AI_NUMERICSERV to disable getservbyname.
115932         (getnameinfo): New function, only supports
115933         NI_NUMERICHOST|NI_NUMERICSERV for now.
115935         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115936         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115937         getnameinfo.
115939 2006-06-28  Eric Blake  <ebb9@byu.net>
115941         * modules/wcwidth: New file.
115942         * modules/mbchar (Depends-on): Add wcwidth.
115943         * modules/mbswidth (Depends-on): Add wcwidth.
115944         * MODULES.html.sh: Add wcwidth.
115946 2006-06-28  Eric Blake  <ebb9@byu.net>
115948         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115951 2006-06-28  Eric Blake  <ebb9@byu.net>
115953         * lib/xvasprintf.h: Fix comments.
115955 2006-06-28  Eric Blake  <ebb9@byu.net>
115957         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115958         * lib/mbswidth.c (wcwidth): Move from here...
115959         * lib/wcwidth.h: ...to this new file.
115961 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115963         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115965         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115966         it's obsolete.
115967         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115969 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115971         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115972         Autoconf 2.60 says this stuff was obsolete.
115974 2006-06-28  Bruno Haible  <bruno@clisp.org>
115976         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115978 2006-06-28  Bruno Haible  <bruno@clisp.org>
115980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115981         gt_TYPE_WCHAR_T.
115983 2006-06-28  Bruno Haible  <bruno@clisp.org>
115985         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115986         declaration for wcwidth.
115987         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115989 2006-06-28  Bruno Haible  <bruno@clisp.org>
115991         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115992         (mkdir): Define using _mkdir.
115994 2006-06-28  Bruno Haible  <bruno@clisp.org>
115996         * lib/getaddrinfo.h: Fix POSIX URL.
115997         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115998         _WIN32.
115999         (use_win32_p): Make static.
116000         (getaddrinfo): Reject service name if it is empty or does not consist
116001         solely of decimal digits, or if its value is > 65535.
116002         (getnameinfo): Remove useless casts.
116004 2006-06-27  Simon Josefsson  <jas@extundo.com>
116006         * modules/sys_select: New file, suggested by Bruno Haible, Paul
116007         Eggert and Martin Lambers.
116009 2006-06-27  Simon Josefsson  <jas@extundo.com>
116011         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
116012         Eggert and Martin Lambers.
116014 2006-06-27  Bruno Haible  <bruno@clisp.org>
116016         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
116017         result to 0, not to empty.
116018         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
116020 2006-06-27  Bruno Haible  <bruno@clisp.org>
116022         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
116024 2006-06-26  Simon Josefsson  <jas@extundo.com>
116026         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
116027         present.
116029 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
116031         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
116032         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
116033         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
116035 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
116037         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
116039 2006-06-26  Bruno Haible  <bruno@clisp.org>
116041         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
116043 2006-06-26  Bruno Haible  <bruno@clisp.org>
116045         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
116047 2006-06-26  Bruno Haible  <bruno@clisp.org>
116049         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
116050         SGI C compiler in pre-C99 mode.
116051         Suggested by Mark D. Baushke and Larry Jones.
116053 2006-06-26  Bruno Haible  <bruno@clisp.org>
116055         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
116056         WCHAR_MAX.
116057         Reported by Mark D. Baushke and Larry Jones.
116059 2006-06-26  Bruno Haible  <bruno@clisp.org>
116061         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
116062         in pre-C99 mode.
116063         Suggested by Mark D. Baushke and Larry Jones.
116065 2006-06-23  Simon Josefsson  <jas@extundo.com>
116066             Bruno Haible  <bruno@clisp.org>
116068         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
116069         Emit mostlyclean-local rule.
116070         (func_emit_tests_Makefile_am): Likewise.
116071         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
116073 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
116075         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
116077 2006-06-23  Bruno Haible  <bruno@clisp.org>
116079         * tests/test-stdint.c: Update to match ISO C 99 Technical
116080         Corrigendum 1.
116082 2006-06-23  Bruno Haible  <bruno@clisp.org>
116084         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
116086 2006-06-23  Bruno Haible  <bruno@clisp.org>
116088         * lib/stdint_.h: Treat IRIX like OpenBSD.
116090 2006-06-23  Bruno Haible  <bruno@clisp.org>
116092         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
116093         ISO C 99 Technical Corrigendum 1.
116095 2006-06-22  Simon Josefsson  <jas@extundo.com>
116097         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
116098         MinGW.
116100 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116102         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
116103         needed.  Some compiler complained about some of them.  Problem reported
116104         by Larry Jones in
116105         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
116107 2006-06-21  Simon Josefsson  <jas@extundo.com>
116109         * tests/test-getaddrinfo.c: New file.
116111         * modules/getaddrinfo-tests: New file.
116113         * MODULES.html.sh: Add inet_pton.
116115         * modules/inet_pton: New file.
116117 2006-06-21  Simon Josefsson  <jas@extundo.com>
116119         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
116120         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
116121         of using the (limited) gnulib implementation on Windows XP.
116123         * m4/inet_pton.m4: New file.
116125 2006-06-21  Simon Josefsson  <jas@extundo.com>
116127         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
116128         variable.
116130         * lib/socket_.h: Don't define WINVER.
116132         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
116133         slightly modified to work in gnulib.
116135 2006-06-21  Simon Josefsson  <jas@extundo.com>
116137         * doc/gnulib.texi (Windows sockets): Add.
116139 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
116141         * lib/read-file.c (fread_file): Start with buffer allocation of
116142         0 bytes rather than 1 byte; this simplifies the code.
116143         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
116144         code to free buffer and save/restore errno.
116145         (internal_read_file): Remove unused local.
116147 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
116149         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
116150         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
116151         Problem reported by Denis Excoffier in
116152         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
116154 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116156         * modules/sys_socket, modules/socklen: Include sys/types since
116157         FreeBSD 4.x's sys/socket.h needs it.
116159 2006-06-19  Simon Josefsson  <jas@extundo.com>
116161         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
116163 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116165         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
116167 2006-06-19  Bruno Haible  <bruno@clisp.org>
116169         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
116170         and FULL_PATH_INTTYPES_H in angle brackets.
116171         Reported by Mark D. Baushke <mdb@gnu.org>.
116173 2006-06-17  Eric Blake  <ebb9@byu.net>
116175         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116176         errno.
116178 2006-06-17  Bruno Haible  <bruno@clisp.org>
116180         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
116181         <sys/inttypes.h>.
116183 2006-06-17  Bruno Haible  <bruno@clisp.org>
116185         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
116186         whether errno is declared. Assume <errno.h> declares errno.
116188 2006-06-17  Bruno Haible  <bruno@clisp.org>
116190         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
116192 2006-06-17  Bruno Haible  <bruno@clisp.org>
116194         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
116195         problem on Solaris 2.5.1.
116197 2006-06-16  Eric Blake  <ebb9@byu.net>
116199         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
116200         * lib/unicodeio.c [!defined errno]: Likewise.
116201         * lib/strtol.c [!defined errno]: Likewise.
116202         * lib/strtod.c [!defined errno]: Likewise.
116204 2006-06-15  Eric Blake  <ebb9@byu.net>
116206         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
116208 2006-06-15  Eric Blake  <ebb9@byu.net>
116210         * config/srclist.txt (ssize_t.m4): Lose sync.
116212 2006-06-15  Bruno Haible  <bruno@clisp.org>
116214         * modules/stdint (Files): Include m4/full-header-path.m4,
116215         m4/size_max.m4, m4/wchar_t.m4.
116216         (Makefile.am): Many more substitutions.
116217         * modules/stdint-tests: New file.
116218         * tests/test-stdint.c: New file.
116220 2006-06-15  Bruno Haible  <bruno@clisp.org>
116222         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
116223         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
116224         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
116225         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
116226         gl_CHECK_TYPE_SAME): New macros.
116228 2006-06-15  Bruno Haible  <bruno@clisp.org>
116230         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
116232 2006-06-15  Bruno Haible  <bruno@clisp.org>
116234         * lib/stdint_.h: Rewritten to be fully auto-configured.
116235         Fixes bug on HP-UX/IA64.
116237 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
116239         * lib/getdate.y (__attribute__): Don't define if already defined.
116240         Problem reported by Larry Jones.
116241         * lib/utimens.c (__attribute__): Likewise.
116243 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
116245         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
116246         reported by Andreas Schwab.
116248 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116249             Bruno Haible  <bruno@clisp.org>
116251         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
116252         check for the declaration of strnlen and a run test that exposes the
116253         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
116254         rpl_strndup.
116256 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116257             Bruno Haible  <bruno@clisp.org>
116259         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
116261 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116263         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
116264         compile test, for Tru64 4.0D.
116266 2006-05-28  Karl Berry  <karl@gnu.org>
116268         * config/srclist.txt (printf-args.c): lose sync.
116270 2006-05-26  Martin Lambers  <marlam@marlam.de>
116272         * lib/getpass.c: Updates the test for the native W32 API, and adds
116273         missing includes, thus fixing compilation warnings.
116275 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116277         * lib/exclude.c (exclude_fnmatch): New function.
116278         (excluded_file_name): Call exclude_fnmatch.
116279         * lib/exclude.h (excluded_file_name): New prototype
116281 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
116283         * lib/tempname.c (small_open, large_open): New macros.
116284         (__open, __open64) [!_LIBC]: Remove.
116285         (__gen_tempname): Use small_open and large_open instead of __open
116286         and __open64.  This fixes a portability bug on HP-UX 11.11i
116287         reported by Simon Wing-Tang in
116288         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
116290 2006-05-24  Bruno Haible  <bruno@clisp.org>
116292         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
116293         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
116294         Reported by Thorsten Maerz <torte@netztorte.de> via
116295         Aaron Stone <aaron@serendipity.cx>.
116297 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
116300         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
116301         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
116302         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
116303         not really conditional on the cache.
116304         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
116306 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116308         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
116309         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
116310         (my_usleep): Don't mishandle maximum value.
116312 2006-05-19  Jim Meyering  <jim@meyering.net>
116314         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
116316 2006-05-17  Bruno Haible  <bruno@clisp.org>
116318         Cygwin portability.
116319         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
116321 2006-05-17  Bruno Haible  <bruno@clisp.org>
116323         * lib/stdint_.h: Fix recognition of Cygwin.
116325 2006-05-15  Bruno Haible  <bruno@clisp.org>
116327         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
116328         on libtool patch by Ralf Wildenhues.
116330 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
116333         test for C99 conformance; (bool) 0.5 is an integer constant
116334         expression, but (bool) -0.5 is not.  Problem reported by Fedor
116335         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
116337 2006-05-11  Simon Josefsson  <jas@extundo.com>
116339         * m4/xvasprintf.m4: Fix obvious typo.
116341 2006-05-11  Jim Meyering  <jim@meyering.net>
116343         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116344         James Lemley.
116346 2006-05-10  Simon Josefsson  <jas@extundo.com>
116348         * lib/md4.c: Typo fix, update copyright years.
116349         (K1, K2): Don't use L because it turn computations into 64-bit on
116350         64-bit platforms.
116352 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116354         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116355         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116356         unwanted sign propagation, e.g., on hosts with 64-bit int.
116357         There still are some problems with reeelly weird theoretical hosts
116358         (e.g., 33-bit int) but it's not worth worrying about now.
116359         * lib/sha1.c (rol): Likewise.
116360         (K1, K2, K3, K4): Remove unnecessary L suffix.
116362 2006-05-10  Bruno Haible  <bruno@clisp.org>
116364         * lib/des.c: Cast to avoid warnings.
116366 2006-05-09  Bruno Haible  <bruno@clisp.org>
116368         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116369         (Depends-on): Depend also on xsize, stdarg.
116370         (configure.ac): Add gl_XVASPRINTF.
116372 2006-05-09  Bruno Haible  <bruno@clisp.org>
116374         * m4/xvasprintf.m4: New file.
116376 2006-05-09  Bruno Haible  <bruno@clisp.org>
116378         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116379         (EOVERFLOW): Define fallback value.
116380         (xstrcat): New function.
116381         (xvasprintf): Recognize the special case of a string concatenation.
116383 2006-05-08  Eric Blake  <ebb9@byu.net>
116385         * gnulib-tool (func_version): Base copyright year on CVS date.
116386         (func_emit_copyright_notice): New function.
116387         (func_emit_lib_Makefile_am): Use it.
116388         (func_emit_tests_Makefile_am): Likewise.
116389         (func_import): Likewise.
116391 2006-05-08  Bruno Haible  <bruno@clisp.org>
116393         * modules/stdarg: New file.
116394         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116396 2006-05-08  Bruno Haible  <bruno@clisp.org>
116398         * m4/stdarg.m4: New file, from GNU gettext.
116400 2006-05-08  Bruno Haible  <bruno@clisp.org>
116402         * config/srclist.txt (build-aux/config.rpath): different from latest
116403         release.
116405 2006-05-08  Bruno Haible  <bruno@clisp.org>
116407         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116409 2006-05-05  Jim Meyering  <jim@meyering.net>
116411         * m4/warning.m4: New file, derived from bison's file by the same name.
116413 2006-05-03  Bruno Haible  <bruno@clisp.org>
116415         * lib/stdint_.h: Shorter URL.
116416         * lib/inttypes.h: Likewise.
116418 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116420         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116422 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116424         * lib/verify.h: Document the internals better.  Most of this change
116425         was written by Bruno Haible.
116427 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116429         * doc/verify.texi: New file, partly based on a proposal by
116430         Bruno Haible.
116432 2006-05-02  Bruno Haible  <bruno@clisp.org>
116434         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116435         test from here...
116436         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116438 2006-04-29  Bruno Haible  <bruno@clisp.org>
116440         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116441         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116443 2006-04-29  Bruno Haible  <bruno@clisp.org>
116445         * gnulib-tool: Make --update option actually work.
116447 2006-04-29  Bruno Haible  <bruno@clisp.org>
116449         * doc/gcd.texi: New file.
116450         * doc/gnulib.texi: Include it.
116452 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
116454         * lib/getdate.y (get_date): When adding relative date, start with the
116455         initial time, not with the result of the first mktime call.
116457 2006-04-25  Bruno Haible  <bruno@clisp.org>
116459         * gnulib-tool (func_import): Output the include directives in three
116460         blocks, sorted separately.
116461         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116463 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116465         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
116466         to define main with arguments, for C++.  Reported by Eric Blake.
116467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
116468         Prefer 'int main ()' to 'int main (void)', for C++.
116469         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
116470         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
116471         for 'main', for C99 and C++.
116473 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
116476         Don't assume that exit status -1 is valid.
116477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116478         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
116479         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
116480         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
116481         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
116482         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
116483         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
116484         functions can be used without declaring them, or that you can
116485         exit with status -1.
116486         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
116488 2006-04-24  Karl Berry  <karl@gnu.org>
116490         * config/srclist.txt (longdouble.m4): sync lost.
116492 2006-04-24  Eric Blake  <ebb9@byu.net>
116494         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
116496 2006-04-24  Bruno Haible  <bruno@clisp.org>
116498         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
116499         poll() implementation in AIX.
116500         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116502 2006-04-24  Bruno Haible  <bruno@clisp.org>
116504         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
116505         assigned exactly once.
116507 2006-04-23  Claudio Fontana  <claudio@gnu.org>
116508             Bruno Haible  <bruno@clisp.org>
116510         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
116511         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
116512         for AM_CPPFLAGS.
116514 2006-04-23  Bruno Haible  <bruno@clisp.org>
116516         * modules/copy-file: Depend on unistd.
116517         * modules/execute: Likewise.
116518         * modules/fatal-signal: Likewise.
116519         * modules/findprog: Likewise.
116520         * modules/mkdtemp : Likewise.
116521         * modules/pipe: Likewise.
116522         * modules/wait-process: Likewise.
116524 2006-04-23  Bruno Haible  <bruno@clisp.org>
116526         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
116527         condition was already detected.
116528         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116530 2006-04-23  Bruno Haible  <bruno@clisp.org>
116532         * lib/copy-file.c: Include <unistd.h> unconditionally.
116533         * lib/execute.c: Likewise.
116534         * lib/fatal-signal.c: Likewise.
116535         * lib/findprog.c: Likewise.
116536         * lib/mkdtemp.c: Likewise.
116537         * lib/pipe.h: Likewise.
116538         * lib/pipe.c: Likewise.
116539         * lib/wait-process.h: Likewise.
116541 2006-04-23  Bruno Haible  <bruno@clisp.org>
116543         * gnulib-tool (func_usage): Fix --import description. Document
116544         --update.
116545         (func_import): Create temporary file in a temporary directory, if
116546         --dry-run is specified. Silence errors from 'grep' when there are no
116547         m4 files in $m4dir.
116548         (func_create_testdir): Silence errors from 'grep' when there are no
116549         m4 files in $m4dir.
116550         Reported by Karl Berry <karl@freefriends.org>.
116552 2006-04-20  Bruno Haible  <bruno@clisp.org>
116554         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
116555         one argument, so that the code will be portable to Autoconf 2.60.
116556         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
116557         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116558         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
116560 2006-04-19  Derek Price  <derek@ximbiot.com>
116561             Eric Blake  <ebb9@byu.net>
116563         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
116564         rather than "/full/path.h".  Update comment to match.  Shorten &
116565         generalize m4_translit call via AS_TR_CPP.
116567 2006-04-19  Derek Price  <derek@ximbiot.com>
116568             Eric Blake  <ebb9@byu.net>
116570         * lib/inttypes.h: Correct grammar in comment.
116572 2006-04-18  Derek Price  <derek@ximbiot.com>
116573             Paul Eggert  <eggert@cs.ucla.edu>
116575         * modules/inttypes: New file.
116576         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
116578 2006-04-18  Derek Price  <derek@ximbiot.com>
116579             Paul Eggert  <eggert@cs.ucla.edu>
116581         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
116582         New files.
116584 2006-04-18  Derek Price  <derek@ximbiot.com>
116585             Paul Eggert  <eggert@cs.ucla.edu>
116587         * lib/inttypes.h: New file.
116588         * lib/strtoimax.c: Assume <inttypes.h>.
116590 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116592         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116593         isn't mounted.  Problem reported by Kir Kolyshkin.
116595 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116597         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
116598         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
116599         Derek R. Price.
116600         * lib/regex.h (RE_DUP_MAX): Update comment to match current
116601         implementation.
116603 2006-04-12  Eric Blake  <ebb9@byu.net>
116605         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
116606         is now done automatically by the corresponding Autoconf macro.
116608 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
116610         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
116611         time_r.h.
116613 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116615         Merge regex changes from libc, removing some of our
116616         POSIX-conformance changes that were rejected and redoing them in a
116617         less-intrusive way.
116619         * lib/regcomp.c (re_compile_internal, init_dfa):
116620         Length arg is now size_t, not Idx.  All uses changed.
116621         (peek_token): Forward decl now says internal_function.
116622         (__re_error_msgid, __re_error_msgid_idx):
116623         Now static rather than extern with attribute_hidden.
116624         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
116625         For some reason libc prefers K&R style defns for external functions.
116626         (regerror) [!defined _LIBC]: Likewise.
116627         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
116628         (seek_collating_symbol_entry, lookup_collation_sequence_value):
116629         (build_range_exp, build_collating_symbol):
116630         Use K&R-style defn.
116631         (re_compile_fastmap): Use '\0' to memset, not 0.
116632         (utf8_sb_map): Make the calculations more obvious.
116633         (init_dfa, parse_bracket_exp, build_charclass_op):
116634         Call calloc and cast result, as glibc does.
116635         (init_word_char, fetch_token, peek_token, peek_token_bracket):
116636         (build_range_exp, build_collating_symbol):
116637         Now internal functions.
116639         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
116641         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
116642         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
116643         Don't depend on VMS; depend on __VMS instead, for POSIX
116644         namespace cleanness.
116645         (regoff_t): Define to ssize_t, not long int.
116647         Remove the REG_ macros named below.  Instead, make the old names
116648         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
116649         __USE_GNU_REGEX.
116650         (REG_BACKSLASH_ESCAPE_IN_LISTS):
116651         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
116652         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
116653         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
116654         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
116655         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
116656         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
116657         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
116658         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
116659         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
116660         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116661         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116662         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116663         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116664         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116665         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116666         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116667         (REG_NREGS):
116668         Remove.  All uses replaced by the old RE_* names.
116669         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116670         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116671         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116672         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116673         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116674         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116675         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116676         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116677         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116678         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116679         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116680         Don't bother having these macros be independent of each others'
116681         values, since they no longer exist in the POSIX name space.
116683         Rename the following member names back to their old names,
116684         unless !__USE_GNU_REGEX.  All uses changed back.
116685         (buffer): Renamed from re_buffer.
116686         (allocated): Renamed from re_allocated.
116687         (used): Renamed from re_used.
116688         (syntax): Renamed from re_syntax.
116689         (fastmap): Renamed from re_fastmap.
116690         (translate): Renamed from re_translate.
116691         (can_be_null): Renamed from re_can_be_null.
116692         (regs_allocated): Renamed from re_regs_allocated.
116693         (fastmap_accurate): Renamed from re_fastmap_accurate.
116694         (no_sub): Renamed from re_no_sub.
116695         (not_bol): Renamed from re_not_bol.
116696         (not_eol): Renamed from re_not_eol.
116697         (newline_anchor): Renamed from re_newline_anchor.
116698         (num_regs): Renamed from rm_num_regs.
116699         (start): Renamed from rm_start.
116700         (end): Renamed from rm_end.
116702         (free_state): Move up a bit.
116704         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116705         #define to be empty.
116706         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116707         when that is what is intended.
116708         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116709         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116710         (MAX): New macro.
116711         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116712         All uses changed back to re_malloc, etc.  It's now the caller's
116713         responsibility to check for overflow; all callers changed.
116714         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116715         (re_x2nrealloc): Remove.
116716         (free_state): Remove decl.
116718         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116719         (re_set_registers, re_exec):
116720         Use K&R-style defn.
116722         2006-01-31  Roland McGrath  <roland@redhat.com>
116724         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116725         Reported by Mike Frysinger <vapier@gentoo.org>.
116727         2006-01-15  Andreas Jaeger  <aj@suse.de>
116729         [BZ #1950]
116730         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116731         build_wcs_upper_buffer change.
116732         (build_wcs_upper_buffer): Change return type.
116734         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116736         * lib/regex_internal.h: Include <stdint.h> if available.
116738         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116740         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116742         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116744         * lib/regcomp.c: Adjust for changed secondary hash function.
116746         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116748         * lib/regex.h: Pretty printing.
116749         Clean up namespace a bit.
116751         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116753         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116754         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116756         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116757                     Ulrich Drepper  <drepper@redhat.com>
116759         [BZ #1302]
116760         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116761         changed.
116762         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116764         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116766         [BZ #281]
116767         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116768         * lib/regcomp.c: Remove unnecessary uses of
116769         unsigned RE_TRANSLATE_TYPE.
116770         * lib/regex_internal.h: Likewise.
116771         * lib/regex_internal.c: Likewise.
116772         * lib/regexec.c: Likewise.
116773         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116775         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116777         * lib/regexec.c (find_recover_state): Remove unnecessary
116778         initialization.
116779         (transit_state_bkref): Make DFA a const pointer.
116780         (get_subexp): Likewise.
116781         (check_arrival): Likewise.
116782         (update_cur_sifted_state): Likewise.
116783         (re_search_internal): Likewise.
116784         (prune_impossible_nodes): Likewise.
116785         (acquire_init_state_context): Likewise.
116786         (proceed_next_node): Likewise.
116787         (set_regs): Likewise.
116788         (free_fail_stack_return): Likewise.
116789         (check_arrival_expand_ecl): Mark DFA parameter as const.
116790         (check_arrival_expand_ecl_sub): Likewise.
116791         (check_subexp_limits): Likewise.
116792         (sub_epsilon_src_nodes):  Likewise.
116793         (add_epsilon_src_nodes):  Likewise.
116794         (merge_state_array): Likewise.
116795         (update_regs): Likewise.
116796         (build_trtable): Likewise.
116797         (sift_states_backward): Mark MCTX parameter as const.
116798         (build_sifted_states): Likewise.
116799         (update_cur_sifted_state): Likewise.
116800         (sift_states_mkref): Likewise.
116801         (check_arrival_expand_ecl): Mark eclosure as const.
116802         (check_dst_limits_calc_pos_1): Likewise.
116803         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116804         pointer.
116806         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116808         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116809         (transit_state_sb): Likewise.
116810         (transit_state_mb): Likewise.
116811         (sift_states_iter_mb): Likewise.
116812         (check_arrival_add_next_nodes): Likewise.
116813         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116814         [_LIBC] (re_search_2_stub): Use mempcpy.
116816         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116817         mbrtowc for very simple UTF-8 case.
116819         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116820         a pointer-to-const.
116821         (re_acquire_state_context): Likewise.
116822         * lib/regex_internal.h: Adjust prototypes.
116824         * lib/regex.c: Prevent using C++ compilers.
116826         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116827         (re_acquire_state_context): Likewise.
116829 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116831         * modules/regex (Depends-on): Add ssize_t.
116833 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116835         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116836         translation table.
116838 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116840         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116842 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116843             Bruno Haible  <bruno@clisp.org>
116845         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116846         <sys/types.h> and <inttypes.h>.
116848 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116850         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116851         `__error_t_defined', so argp.h will not typedef the former.
116853 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116855         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116856         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116857         glibc names.  Even if glibc is changed to conform to POSIX, the
116858         traditional names will be available anyway, since regex depends on
116859         the extensions module.  Also, fix a longstanding typo in the
116860         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116861         reported by Emanuele Giaquinta.  Also, change sense of cached
116862         variable, so that the message makes sense.
116864 2006-03-24  Simon Josefsson  <jas@extundo.com>
116866         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116867         including some doc fixes.
116868         (base64_encode_alloc): Fix +1 bug on allocation failures.
116870 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116872         * lib/base64.c (base64_encode): Do not read past end of array with
116873         unsanitized input on systems with CHAR_BIT > 8.
116875 2006-03-24  Eric Blake  <ebb9@byu.net>
116877         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116879 2006-03-22  Karl Berry  <karl@gnu.org>
116881         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116882         * config/srclistvars.sh (COREUTILS): new var.
116884 2006-03-17  Jim Meyering  <jim@meyering.net>
116886         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116887         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116889 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116891         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116892         no longer needs it.  Instead, check that regoff_t is as least
116893         as wide as ptrdiff_t.
116895         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116896         so that our regex.h stays compatible with the installed regex.
116897         This is helpful for installers who configure --without-included-regex.
116898         Problem reported by Emanuele Giaquinta.
116900 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116902         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116903         Typedef to long int, not to off_, as POSIX will likely change
116904         in that direction.
116906 2006-03-15  Eric Blake  <ebb9@byu.net>
116908         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116910 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116912         * lib/argp-help.c (validate_uparams): Fix typo
116913         * lib/argp-parse.c (argp_default_options): Consistently begin help
116914         messages with a lowercase letter.
116916 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116918         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116919         overrun buffers and shouldn't be used (much as gets shouldn't be
116920         used).
116921         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116923 2006-03-08  Simon Josefsson  <jas@extundo.com>
116925         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116926         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116928 2006-03-08  Simon Josefsson  <jas@extundo.com>
116930         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116931         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116933 2006-03-08  Simon Josefsson  <jas@extundo.com>
116935         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116936         signal that configure disabled the device.
116938 2006-03-08  Simon Josefsson  <jas@extundo.com>
116940         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116941         languages.
116943 2006-03-07  Simon Josefsson  <jas@extundo.com>
116945         * modules/getopt (Depends-on): Add unistd.
116947         * modules/unistd: New file.
116949 2006-03-07  Simon Josefsson  <jas@extundo.com>
116951         * modules/gc-random: New file.
116953 2006-03-07  Simon Josefsson  <jas@extundo.com>
116955         * m4/unistd_h.m4: New file.
116957 2006-03-07  Simon Josefsson  <jas@extundo.com>
116959         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116960         test to be side-effect free by storing the result in the cache
116961         variable gl_cv_lib_readline, and moving the assignment of
116962         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116963         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116965 2006-03-07  Simon Josefsson  <jas@extundo.com>
116967         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116968         error on missing devices (the functions will return an error).
116970         * m4/gc.m4: Move random stuff to gc-random.m4
116972 2006-03-07  Simon Josefsson  <jas@extundo.com>
116974         * lib/unistd_.h: New file.
116976 2006-03-07  Simon Josefsson  <jas@extundo.com>
116978         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116980 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116982         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116983         Problem reported by Juan Manuel Guerrero.
116985 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116987         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116988         the unistd module.
116989         * lib/getlogin_r.c: Likewise.
116990         * lib/getlogin_r.h: Likewise.
116991         * lib/glob.c: Likewise.
116992         * lib/pagealign_alloc.c: Likewise.
116993         * lib/unistd_.h: Remove; no longer needed.
116995 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116997         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116998         Add unistd.
116999         * modules/c-stack (Depends-on): Add unistd.
117000         * modules/getlogin_r: Likewise.
117001         * modules/glob: Likewise.
117002         * modules/pagealign_alloc: Likewise.
117003         * modules/unistd (Files): Remove lib/unistd_.h.
117004         (EXTRA_DIST): Remove.
117005         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
117006         need unistd_.h.
117007         (MOSTLYCLEANFILES): Remove unistd.h-t.
117009 2006-03-03  Simon Josefsson  <jas@extundo.com>
117011         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
117013 2006-03-03  Simon Josefsson  <jas@extundo.com>
117015         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
117016         libidn and bison.
117018 2006-03-03  Simon Josefsson  <jas@extundo.com>
117020         * build-aux/maint.mk: Add indent target.
117022 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
117024         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
117025         our replacement poll.h in any case, to avoid a differing
117026         declaration from a system header.  Seen on AIX.
117028 2006-03-01  Simon Josefsson  <jas@extundo.com>
117030         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
117031         <kasal@ucw.cz>.
117033 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117035         * modules/gettime (Depends-on): Add extensions module.
117036         * modules/nanosleep (Depends-on): Likewise.
117037         * modules/settime (Depends-on): Likewise.
117039 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117041         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
117042         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
117043         pedantically.
117044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117045         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
117047         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
117048         not "==".  Reported by Ralf Wildenhues.
117050 2006-03-01  Karl Berry  <karl@gnu.org>
117052         * doc/Copyright/request-*: new files, synced from gnuorg.
117054 2006-03-01  Karl Berry  <karl@gnu.org>
117056         * config/srclist.txt (Copyright/*): new entries.
117058 2006-02-28  Simon Josefsson  <jas@extundo.com>
117060         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
117062 2006-02-27  Simon Josefsson  <jas@extundo.com>
117064         * lib/base64.h: Indent #define's.  From Jim Meyering
117065         <jim@meyering.net>.
117067 2006-02-27  Jim Meyering  <jim@meyering.net>
117069         Revert the change of 2006-02-24, so these files can continue
117070         to be sync'd from gettext.
117071         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
117072         of `config.h'.
117074 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117076         * modules/intprops: New file.
117077         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
117078         Add intprops.
117079         * modules/getloadavg (Files): Remove lib/intprops.h.
117080         (Depends-on): Add intprops.
117081         * modules/human: Likewise.
117082         * modules/inttostr: Likewise.
117083         * modules/openat: Likewise.
117084         * modules/sig2str: Likewise.
117085         * modules/userspec: Likewise.
117086         * modules/utimecmp: Likewise.
117087         * modules/xnanosleep: Likewise.
117088         * modules/xstrtol: Likewise.
117090 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
117092         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
117093         * modules/lock-tests (TESTS): Use $(EXEEXT).
117094         * modules/tls-tests: Likewise.
117095         * modules/argp-tests: Likewise.
117096         (check_PROGRAMS): New var, replacing...
117097         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
117099 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117101         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
117102         `config.h'.
117104 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
117106         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
117108 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117110         Sync from coreutils.
117111         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
117112         gl_CHDIR_SAFER.
117114 2006-02-22  Jim Meyering  <jim@meyering.net>
117116         Sync from coreutils.
117117         * m4/chdir-safer.m4: New file.
117119 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
117121         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
117122         AT_FDCWD exceeds INT_MAX.
117123         * lib/openat.h (AT_FDCWD): Likewise.
117125 2006-02-17  Eric Blake  <address@hidden>
117127         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
117129 2006-02-16  Simon Josefsson  <jas@extundo.com>
117131         * modules/getaddrinfo (Depends-on): Add sys_socket.
117133 2006-02-15  Simon Josefsson  <jas@extundo.com>
117135         * build-aux/maint.mk: Add dsyntax-check rule.
117137 2006-02-15  Eric Blake  <ebb9@byu.net>
117139         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
117140         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
117141         'present but cannot compile' warnings on cygwin.
117142         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
117143         use ws2tcpip.h if sys/socket.h works.
117144         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
117145         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
117147 2006-02-14  Simon Josefsson  <jas@extundo.com>
117149         * modules/maintainer-makefile (Files): Rename.
117151         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
117152         and (the local) Makefile.cfg to maint-cfg.mk.
117154         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
117155         to the latter.
117157         * modules/maintainer-makefile: New module.
117159         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
117160         severaly stripped to make it possible to build it up from scratch
117161         with reliable tests.
117163         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
117164         fixes to permit overriding the default actions when configure and
117165         makefile are not available.
117167 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
117169         Sync from coreutils.
117170         * modules/lstat (Depends-on): Don't depend on xalloc.
117171         (License): Change from GPL to LGPL, since this is now simply a
117172         replacement for a libc function.
117174 2006-02-14  Jim Meyering  <jim@meyering.net>
117176         Sync from coreutils.
117178         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
117179         failure on deficient systems, and simplify gnulib lgpl dependencies.
117180         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
117181         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
117183         * lib/xalloc-die.c: Remove unused definition of N_.
117185 2006-02-14  Jim Meyering  <jim@meyering.net>
117187         Sync from coreutils.
117188         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
117189         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
117190         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
117191         double-quote uses of that variable, to accommodate the rare case in
117192         which getmntent is available in none of the libraries checked.  This
117193         happens at least on FreeBSD 5.0.
117195 2006-02-13  Simon Josefsson  <jas@extundo.com>
117197         * gnulib-tool (Usage): Fix --import, from
117198         karl@freefriends.org (Karl Berry).
117200 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117202         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
117204 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
117206         * lib/argp-namefrob.h: Restore changes accidentally lost during the
117207         "autoupdate" on 2005-12-12.
117209 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117211         * modules/closeout (Depends-on): Remove atexit.
117213 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117215         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
117216         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
117218 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
117220         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
117221         __EXTENSIONS__ if this causes compilation to fail.  Problem
117222         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
117223         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
117225 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
117227         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
117228         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
117229         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
117230         All uses changed.
117232 2006-01-26  Simon Josefsson  <jas@extundo.com>
117234         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
117235         prototype is visible on mingw32.
117237         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
117238         for mingw32.
117240         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
117241         mingw32).
117243 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
117245         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
117246         attempt to open for write; this always fails, at least on POSIX
117247         hosts.  This reinstates the 2006-01-09 change, which was
117248         inadvertently removed.
117250 2006-01-26  Bruno Haible  <bruno@clisp.org>
117252         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
117253         Reported by Paul Eggert.
117255 2006-01-26  Bruno Haible  <bruno@clisp.org>
117256             Paul Eggert  <eggert@cs.ucla.edu>
117258         * lib/stdbool_.h (_Bool)
117259         [(! (defined __cplusplus || defined __BEOS__)
117260           && !defined __GNUC__
117261           && !(defined __HP_cc || defined __xlc__
117262                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
117263                || defined __sgi))]:
117264         #define to signed char in these cases too; this simplifies
117265         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
117266         etc., separately) and makes it more conservative.
117268 2006-01-25  Simon Josefsson  <jas@extundo.com>
117270         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
117271         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
117272         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
117274 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117276         * lib/argp-namefrob.h: Bugfix. Remove stray #
117278 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
117280         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
117281         so that we test the test.
117282         Check for yet another HP-UX cc bug involving *bool |= bool.
117284 2006-01-25  Karl Berry  <karl@gnu.org>
117286         * config/srclist.txt (vasnprintf.c): sync lost.
117288 2006-01-25  Jim Meyering  <jim@meyering.net>
117290         Sync from the stable (b5) branch of coreutils:
117292         * lib/fts.c (fts_children): Don't let close() clobber errno from
117293         failed fchdir().
117295         * lib/fts.c (fts_stat): When following a symlink-to-directory,
117296         don't necessarily interpret stat-fails+lstat-succeeds as indicating
117297         a dangling symlink.  That can also happen at least for ELOOP.
117298         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
117299         FYI, this bug predates the inclusion of fts.c in coreutils.
117301         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
117302         in their own block, so pre-c99 compilers don't object.
117304         Avoid the double-free (first in fts_read, second in fts_close) that
117305         would occur when an `active' directory is made inaccessible (e.g.,
117306         via chmod a-x) during a traversal.
117307         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117308         before returning.  Reproduce this failure by
117309         mkdir -p a/b; cd a; chmod a-x . b
117310         Reported by Stavros Passas.
117312 2006-01-25  Jim Meyering  <jim@meyering.net>
117314         * lib/fileblocks.c: Remove more useless parentheses.
117315         * lib/readutmp.h: Likewise.
117317 2006-01-25  Bruno Haible  <bruno@clisp.org>
117319         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
117320         warnings.
117321         Reported by Paul Eggert.
117323 2006-01-25  Bruno Haible  <bruno@clisp.org>
117325         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
117326         rid of a trap command. For Solaris sh.
117327         Reported by Mark D. Baushke <mdb@gnu.org>.
117329 2006-01-24  Simon Josefsson  <jas@extundo.com>
117331         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
117332         Bruno.
117334 2006-01-24  Karl Berry  <karl@gnu.org>
117336         * config/srclist.txt (argp-namefrob.h): sync lost.
117338 2006-01-24  Jim Meyering  <jim@meyering.net>
117340         * modules/openat (Files): Add lib/intprops.h.
117341         From Mark D. Baushke.
117343 2006-01-24  Jim Meyering  <jim@meyering.net>
117345         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117346         Reported by Mark D. Baushke.
117348 2006-01-24  Jim Meyering  <jim@meyering.net>
117350         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117352 2006-01-24  Bruno Haible  <bruno@clisp.org>
117354         * modules/strnlen (Maintainer): Change from glibc to all.
117356 2006-01-24  Bruno Haible  <bruno@clisp.org>
117358         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117359         Patch by Paul Eggert.
117361 2006-01-24  Bruno Haible  <bruno@clisp.org>
117363         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117364         already has it.
117365         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117366         2005-11-26.
117368         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117369         'signed char' to avoid problems with the built-in _Bool type.
117370         Reported by Paul Eggert on 2005-11-26.
117372 2006-01-24  Bruno Haible  <bruno@clisp.org>
117374         * gnulib-tool (func_import): Avoid constructing complicated sed
117375         expressions inside backquote.
117376         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117378 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117380         These changes imported from libc.
117381         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117382         test and two separate function calls.
117383         * lib/strndup.c (__strndup): Add libc_hidden_def.
117385 2006-01-23  Simon Josefsson  <jas@extundo.com>
117387         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117388         Remove the test_*_SOURCES variable: automake infers it by default.
117389         * modules/tls-tests: Likewise.
117391 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117393         Work around porting bugs reported by Dieter in
117394         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117395         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117396         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117397         Include "getopt.h" first, to check interface.
117398         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117399         !HAVE_DECL_GETENV.
117400         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117401         (__strndup): Revert to K&R-style function dfns, the glibc style.
117402         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117403         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117404         Include strnlen.h first, to get prototype properly.
117405         (strnlen): Renamed from __strnlen.
117406         Remove weak alias.
117408 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117410         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117412 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117414         * config/srclist.txt: Adjust to reflect glibc reorganization.
117415         This affects only comments.
117417 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117419          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117420          Reported by Bruce Korb <bkorb@gnu.org>.
117422 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117424         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117425         to pacify gcc -Wswitch-default.
117427 2006-01-22  Bruno Haible  <bruno@clisp.org>
117429         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117430         temporary buffer for sprintf, take into account the precision also
117431         for 'd', 'i', 'u', 'o', 'x', 'X'.
117433 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117435         * modules/argp-tests: New module
117436         * tests/test-argp.c: New file
117437         * tests/test-argp-2.sh: New file
117439 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117441         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117442         (__argp_base_name): Removed
117443         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117444         typo.
117445         (__argp_base_name): Provide macro definition or extern declaration
117446         depending on the configuration
117448 2006-01-20  Simon Josefsson  <jas@extundo.com>
117450         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117452 2006-01-20  Simon Josefsson  <jas@extundo.com>
117454         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
117456 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117458         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
117459         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
117460         Suggested by Bruno Haible.
117462 2006-01-20  Karl Berry  <karl@gnu.org>
117464         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
117465         until changes propagate, I guess.
117467 2006-01-19  Simon Josefsson  <jas@extundo.com>
117469         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
117471 2006-01-19  Simon Josefsson  <jas@extundo.com>
117473         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
117475 2006-01-19  Simon Josefsson  <jas@extundo.com>
117477         * gnulib-tool: Set check_PROGRAMS.
117479         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117480         modules/des-tests, modules/gc-arcfour-tests,
117481         modules/gc-arctwo-tests, modules/gc-des-tests,
117482         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117483         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117484         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117485         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117486         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117487         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
117488         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
117489         test_*_SOURCES.
117491 2006-01-18  Simon Josefsson  <jas@extundo.com>
117493         * modules/socklen (Depends-on): Depend on sys_socket.
117495 2006-01-18  Simon Josefsson  <jas@extundo.com>
117497         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117498         modules/des-tests, modules/gc-arcfour-tests,
117499         modules/gc-arctwo-tests, modules/gc-des-tests,
117500         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117501         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117502         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117503         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117504         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117505         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
117506         $(EXEEXT) to automake TESTS variable, for mingw32.
117508 2006-01-17  Simon Josefsson  <jas@extundo.com>
117510         * modules/socklen (Include): Need sys/socket.h.
117512 2006-01-17  Bruno Haible  <bruno@clisp.org>
117514         * modules/ssize_t (Include): Add <sys/types.h>.
117516 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
117518         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
117519         it's not portable and it doesn't work with cross-compiles.
117520         Problem reported by Bruno Haible.  Fix missing-$ typo in
117521         'test "gl_cv_ignore_unused_libraries" ...' that prevented
117522         -zignore from being used with Sun's C compiler.
117524 2006-01-12  Simon Josefsson  <jas@extundo.com>
117526         * lib/base64.c: Fix warning, reported by Bruno Haible
117527         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
117529 2006-01-12  Bruno Haible  <bruno@clisp.org>
117531         * modules/ldd: New file.
117532         * build-aux/ldd.sh.in: New file.
117533         * MODULES.html.sh (Support for building libraries and executables): Add
117534         ldd.
117536 2006-01-12  Bruno Haible  <bruno@clisp.org>
117538         * m4/ldd.m4: New file.
117540 2006-01-12  Bruno Haible  <bruno@clisp.org>
117542         * gnulib-tool (func_import, func_create_testdir): Don't go into an
117543         endless loop while replacing $auxdir with build-aux.
117545 2006-01-11  Simon Josefsson  <jas@extundo.com>
117547         * lib/stdint_.h (SIZE_MAX): Add missing (.
117549 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
117551         Sync from coreutils.
117552         * lib/md5.c: Fix commentary typos.
117553         (alignof, UNALIGNED_P): No need for a GCC-specific version.
117554         * lib/md5.h (__attribute__): Remove; unused.
117555         * lib/sha1.c: Fix commentary to match md5 better.
117556         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
117557         so that we don't need to worry about alignment.  All uses changed.
117558         This merges the 2005-10-28 md5 change into sha1.
117560 2006-01-11  Jim Meyering  <jim@meyering.net>
117562         Sync from coreutils.
117563         * lib/md5.c (OP): Fix spacing.
117565 2006-01-11  Bruno Haible  <bruno@clisp.org>
117567         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117568         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
117569         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
117571 2006-01-11  Bruno Haible  <bruno@clisp.org>
117573         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117574         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
117575         the "early" section as well.
117577 2006-01-11  Bruno Haible  <bruno@clisp.org>
117579         Avoid "ar: no archive members specified" error on MacOS X.
117580         * gnulib-tool (func_modules_add_dummy): New function.
117581         (func_import, func_create_testdir): Invoke it.
117583 2006-01-11  Bruno Haible  <bruno@clisp.org>
117585         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
117586         with $auxdir in AC_CONFIG_FILES statements.
117588 2006-01-11  Bruno Haible  <bruno@clisp.org>
117590         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117591         Initialize also noinst_HEADERS to empty.
117593 2006-01-11  Bruno Haible  <bruno@clisp.org>
117595         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117596         variables.
117597         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
117598         autoreconf.
117600 2006-01-11  Bruno Haible  <bruno@clisp.org>
117602         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
117603         overridable by the user.
117604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117606 2006-01-10  Simon Josefsson  <jas@extundo.com>
117608         * modules/sys_socket: New file.
117610 2006-01-10  Simon Josefsson  <jas@extundo.com>
117612         * m4/sys_socket_h.m4: New file.
117614 2006-01-10  Simon Josefsson  <jas@extundo.com>
117616         * lib/socket_.h: New file.
117618 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117620         * modules/readutmp (Maintainer): Add myself.
117622 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117624         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
117625         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
117626         People who are still concerned with buggy memcmp implementations
117627         can invoke gl_FUNC_MEMCMP themselves.
117629 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117631         * lib/regex_internal.h (BITSET_WORD_BITS):
117632         Work around a bug in 64-bit PGC (before version 6.1-2), where the
117633         preprocessor mishandles large unsigned values as if they were signed.
117634         Problem reported by Claudio Fontana in
117635         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
117637 2006-01-10  Jim Meyering  <jim@meyering.net>
117639         Avoid the double-free (first in fts_read, second in fts_close) that
117640         would occur when an `active' directory is made inaccessible (e.g.,
117641         via chmod a-x) during a traversal.
117642         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117643         before returning.  Reproduce this failure by
117644         mkdir -p a/b; cd a; chmod a-x . b
117645         Reported by Stavros Passas.
117647         Sync from coreutils.
117648         * lib/sha1.c: Tweak grammar in a comment.
117650 2006-01-10  Jim Meyering  <jim@meyering.net>
117652         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
117653         Patch by Joerg Sonnenberger.
117655 2006-01-10  Bruno Haible  <bruno@clisp.org>
117657         * modules/readutmp: Depend on module free.
117658         * modules/strtok_r: Depend on module restrict.
117660 2006-01-10  Bruno Haible  <bruno@clisp.org>
117662         * modules/gettext (configure.ac): Add an invocation of
117663         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117665 2006-01-10  Bruno Haible  <bruno@clisp.org>
117667         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117668         Reported by Werner Lemberg <wl@gnu.org>.
117670 2006-01-10  Bruno Haible  <bruno@clisp.org>
117672         * lib/localcharset.c: Update from GNU gettext.
117674 2006-01-10  Bruno Haible  <bruno@clisp.org>
117676         * lib/argp.h (__const): Remove macro. Use const instead.
117677         * lib/argp-fmtstream.h (__const): Likewise.
117678         * lib/glob_.h (__const): Remove macro.
117679         * lib/glob-libc.h: Use const instead of __const.
117681 2006-01-10  Bruno Haible  <bruno@clisp.org>
117683         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117684         variable.
117685         Needed to avoid an automake error regarding the 'gettext' module.
117687 2006-01-09  Simon Josefsson  <jas@extundo.com>
117689         * modules/inet_ntop (Depends-on): Add restrict.
117691 2006-01-09  Simon Josefsson  <jas@extundo.com>
117693         * modules/gc-rijndael-tests (License): Put under LGPL.
117695         * modules/gc-des-tests (License): Likewise.
117697         * modules/gc-arcfour-tests (License): Likewise.
117699         * modules/gc-arctwo-tests (License): Likewise.
117701         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117703         * modules/gc-hmac-sha1-tests (Files): Likewise.
117705         * modules/gc-hmac-md5-tests (License): Likewise.
117707         * modules/gc-sha1-tests (License): Likewise.
117709         * modules/gc-md5-tests (License): Likewise.
117711         * modules/gc-md4-tests (License): Likewise.
117713         * modules/gc-md2-tests (License): Likewise.
117715         * modules/gc-tests (License): Likewise.
117717         * modules/des-tests (License): Likewise.
117719         * modules/md4-tests (License): Likewise.
117721         * modules/md2-tests (License): Likewise.
117723 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117725         Sync from coreutils:
117727         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117728         * modules/lib-ignore: New file.
117729         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117730         chdir-safer.m4, lchmod.m4.
117731         * modules/openat: Add mkdirat.c, openat-priv.h.
117733 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117735         Sync from coreutils.
117736         * m4/lib-ignore.m4: New file.
117737         * m4/lchmod.m4: New file.
117739 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117741         Sync from coreutils.
117742         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117743         for write access: POSIX says that must fail.
117744         * lib/fts.c (diropen): Likewise.
117745         * lib/save-cwd.c (save_cwd): Likewise.
117746         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117747         well, for minor improvements on hosts that lack O_DIRECTORY.
117748         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117749         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117750         Fall back on chown if open failed with EACCES.
117752         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117753         Report an error at compile-time if only a 1-second nominal clock
117754         resolution is found.
117756         * lib/lchmod.h: New file.
117757         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117758         (make_dir_parents): Use lchown rather than chown, and
117759         lchmod rather than chmod.
117761         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117762         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117763         "proc" reported by n0dalus.
117765         * lib/mountlist.c: Include <limits.h>.
117766         (dev_from_mount_options)
117767         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117768         New function.  It no longer assumes "dev=" has the System V meaning
117769         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117770         (read_file_system_list)
117771         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117772         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117773         dev= in that case.
117775         * lib/posixtm.h (PDS_PRE_2000): New macro.
117776         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117777         allow_century.  All usages changed.  Reject dates outside the range
117778         1969-1999 if PDS_PRE_2000 is used.
117780 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117782         Sync from coreutils.
117783         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117784         (Time of day items): Mention the possibility of leap seconds.
117785         Problem reported by Dr. David Alan Gilbert.
117787 2006-01-09  Jim Meyering  <jim@meyering.net>
117789         Sync from coreutils.
117791         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117793         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117795         * lib/modechange.c (mode_compile): Reject an invalid mode string
117796         that starts with an octal digit.  From Andreas Gruenbacher.
117798         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117799         and dup to open_safer and dup_safer, respectively.
117800         (openat_permissive): Fix typo in comment.
117802         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117803         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117804         (_): Remove; no longer needed.
117805         (openat): Renamed from rpl_openat; no need for rpl_openat
117806         since openat.h renames openat for us.
117807         Replace most of the body with a call to openat_permissive,
117808         to avoid duplicate code.
117809         Port to (probably hypothetical) environments were mode_t is
117810         wider than int.
117811         (openat_permissive): Require mode arg, so that we can check
117812         types better.  Put it just after flags.  Change cwd failure
117813         indicator from pointer-to-bool to pointer-to-errno-value.
117814         All callers changed.
117815         Invoke openat_save_fail and/or openat_restore_fail if
117816         cwd_errno is null, so that openat can call us.
117817         (openat_permissive, fdopendir, fstatat, unlinkat):
117818         Simplify errno handling to avoid some duplicate code,
117819         as it's OK to set errno on success.
117820         * lib/openat.h: Revamp code so that function macros depend on
117821         __OPENAT_PREFIX only, not also on AT_FDCWD.
117822         (openat_ro): Remove.  Caller changed to use openat_permissive.
117823         (openat_permissive): Now a macro, if not a function.
117824         (openat_restore_fail, openat_save_fail): Now always functions,
117825         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117827         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117828         and openat.c.
117829         * lib/mkdirat.c: Include openat-priv.h.
117830         Remove definitions of macros defined therein.
117831         * lib/openat.c: Likewise.
117833         * lib/mkdirat.c (mkdirat): New file and function.
117834         * lib/openat.h (mkdirat): Declare.
117836         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117838         * lib/openat.h (openat_permissive): Declare.
117839         (openat_ro): Define.
117841         * lib/openat.c (EXPECTED_ERRNO): New macro.
117842         (openat_permissive): New function -- used in remove.c rewrite.
117843         (all functions): Set errno just before returning, only if there
117844         was an actual failure.
117845         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117847         Emulate openat-family functions using Linux's procfs, if possible.
117848         Idea and some code based on Ulrich Drepper's glibc changes.
117850         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117851         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117852         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117853         before falling back on save_cwd and restore_cwd.
117854         (fdopendir, fstatat, unlinkat): Likewise.
117856         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117857         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117859         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117860         as second argument to va_arg.  Otherwise, some versions of gcc
117861         warn that `if this code is reached, the program will abort'.
117863 2006-01-09  Jim Meyering  <jim@meyering.net>
117865         Sync from coreutils.
117866         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117867         Require openat-priv.h.
117869 2006-01-09  Bruno Haible  <bruno@clisp.org>
117871         * modules/strnlen (Include): Use strnlen.h.
117873 2006-01-09  Bruno Haible  <bruno@clisp.org>
117875         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117877 2006-01-09  Bruno Haible  <bruno@clisp.org>
117879         * lib/sysexit_.h (EX_OK): New macro.
117880         Suggested by Martin Lambers <marlam@marlam.de>.
117882 2006-01-09  Bruno Haible  <bruno@clisp.org>
117884         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117885         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117887 2006-01-09  Bruno Haible  <bruno@clisp.org>
117889         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117890         numbers.
117892 2006-01-09  Bruno Haible  <bruno@clisp.org>
117894         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117895         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117896         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117897         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117899 2006-01-09  Bruno Haible  <bruno@clisp.org>
117901         * build-aux/javacomp.sh.in: New file, moved from lib/.
117902         * modules/javacomp-script (Files): Update.
117903         (configure.ac): Add AC_CONFIG_FILES invocation.
117904         (EXTRA_DIST): Remove variable.
117906         * build-aux/javaexec.sh.in: New file, moved from lib/.
117907         * modules/javaexec (Files): Update.
117908         (configure.ac): Add AC_CONFIG_FILES invocation.
117909         (EXTRA_DIST): Remove javaexec.sh.in.
117911         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117912         * modules/csharpcomp-script (Files): Update.
117913         (configure.ac): Add AC_CONFIG_FILES invocation.
117914         (EXTRA_DIST): Remove variable.
117916         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117917         * modules/csharpexec (Files): Update.
117918         (configure.ac): Add AC_CONFIG_FILES invocation.
117919         (EXTRA_DIST): Remove csharpexec.sh.in.
117921 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117923         Sync from coreutils.
117925         Add POSIX ACL support
117926         * lib/acl.h (copy_acl, set_acl): Add declarations.
117927         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117928         systems other than Linux.
117929         (chmod_or_fchmod): New function: use fchmod when possible,
117930         and chmod otherwise.
117931         (file_has_acl): Add a POSIX ACL implementation, with a
117932         Linux-specific subcase.
117933         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117934         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117935         acls are unsupported.
117936         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117937         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117938         are unsupported.
117940 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117942         Sync from coreutils.
117943         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117945 2006-01-07  Bruno Haible  <bruno@clisp.org>
117947         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117948         gl_EARLY.
117950 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117952         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117953         Problem reported for Mingw by Mark Junker.
117955 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117957         * README: Gnulib normally doesn't generate a tarball.
117959 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117961         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117962         long int, not int, for nanosecond counts, so that people who are
117963         used to POSIX struct timespec won't be surprised.  Reported by Jim
117964         Meyering.
117966 2005-12-28  Bruno Haible  <bruno@clisp.org>
117968         * build-aux/config.rpath: Update from GNU gettext.
117970 2005-12-16  Jim Meyering  <jim@meyering.net>
117972         * modules/fprintftime: New module.
117973         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117975 2005-12-16  Jim Meyering  <jim@meyering.net>
117977         * m4/fprintftime.m4: New file.
117979 2005-12-16  Jim Meyering  <jim@meyering.net>
117981         * lib/fprintftime.c, lib/fprintftime.h: New files.
117983 2005-12-15  Simon Josefsson  <jas@extundo.com>
117985         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117986         new m4/socklen.m4.
117988 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117990         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117991         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117993 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117995         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117996         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117997         struct uparams is valid. Fall back to the default values if it is
117998         not.
118000 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118002         * modules/argp (Files): Add argp-pin.c
118003         (Depends-on): dirname
118004         (lib_SOURCES): Add argp-pin.c
118006 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118008         * m4/argp.m4:  Check if program_invocation_name and
118009         program_invocation_short_name are declared and define appropriate
118010         macros if they are not.
118012 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118014         * lib/argp-help.c (__argp_base_name): New function
118015         (__argp_short_program_name): Rewrite using __argp_base_name
118016         * lib/argp-namefrob.h: Define program_invocation_name and
118017         program_invocation_short_name if requested
118018         (__argp_base_name): Add prototype
118019         * lib/argp-parse.c (argp_def): Use gettext wrappers
118020         (argp_default_parser): Use __argp_base_name
118021         * lib/argp-pin.c: New file. Defines program_invocation_name and
118022         program_invocation_short_name on systems that lack them.
118024 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118026         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
118027         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118028         porting problem reported by Georg Schwarz in
118029         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118031 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118033         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
118034         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118035         porting problem reported by Georg Schwarz in
118036         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118038 2005-12-05  Bruno Haible  <bruno@clisp.org>
118040         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
118041         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
118042         Reported by Mark Junker <mjscod@gmx.de>.
118044 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118046         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
118047         Use implementation from Albert Chin, with some
118048         comments/corrections by Stepan Kasal and myself.
118050 2005-12-02  Bruno Haible  <bruno@clisp.org>
118052         * gnulib-tool (func_import): Accept GPLed build tool modules when
118053         --lgpl is given.
118054         * modules/csharpcomp-script: New file.
118055         * modules/csharpcomp: Depend on it.
118056         * modules/javacomp-script: New file.
118057         * modules/javacomp: Depend on it.
118058         Suggested by Simon Josefsson.
118060 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
118062         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
118063         statement, to work around an HP-UX 10.20 compiler bug reported by
118064         Peter O'Gorman.
118066 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118068         * modules/savedir (Depends-on): Add openat.
118070 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118072         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
118073         (uintmax_t) [defined uintmax_t]: Do not declare.
118074         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
118075         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
118076         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
118077         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
118078         sake of portability to weird hosts that C allows (though we don't
118079         know of any practical examples).
118081         * lib/savedir.h (fdsavedir): New decl.
118082         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
118083         contains most of the former guts of savedir.
118084         (savedir): Use savedirstream.
118085         Include "openat.h".
118087 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118089         * modules/obstack (Files): Add m4/ulonglong.m4.
118090         Problem reported by Davide Angelocola.
118092 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118094         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
118095         coreutils no longer futzes with rounding modes.
118097 2005-11-14  Jim Meyering  <jim@meyering.net>
118099         * lib/mkstemp-safer.c: Include <config.h>, required for possible
118100         replacement of mkstemp.
118102 2005-11-10  Simon Josefsson  <jas@extundo.com>
118104         * lib/readline.c: Remove EOL.
118106 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118108         * modules/gethrxtime (Depends-on): Add gettime.
118110 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118112         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
118113         or gettimeofday; no longer needed.
118115 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118117         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
118118         time business.
118119         (gethrxtime) [! (HAVE_NANOUPTIME
118120         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
118121         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
118122         our own approximation.
118124 2005-11-08  Eric Blake  <ebb9@byu.net>
118126         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118128 2005-11-08  Eric Blake  <ebb9@byu.net>
118130         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118132 2005-11-04  Bruno Haible  <bruno@clisp.org>
118134         * gnulib-tool: Implement --update mode.
118136 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118138         Fix porting problem reported by Theodoros V. Kalamatianos.
118139         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
118140         Don't assume that futimes failing means we must fail.
118142 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118144         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
118145         variables to suggest the intended function of the PATH_MAX check.
118147 2005-10-30  Kean Johnston  <jkj@sco.com>
118149         Trivial changes to support SCO systems.
118150         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
118151         as PATH_MAX.
118152         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
118153         where __ptr is null when no I/O is pending.
118155 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118157         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
118158         leave errno alone.  Problem reported by Dmitry V. Levin.
118160 2005-10-28  Simon Josefsson  <jas@extundo.com>
118162         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
118163         Test more.
118165         * tests/test-gc-md2.c, tests/test-md2.c: New files.
118167         * modules/md2, modules/md2-tests: New files.
118169 2005-10-28  Simon Josefsson  <jas@extundo.com>
118171         * m4/inet_ntop.m4: More tests.
118173         * m4/gc-md2.m4, md2.m4: New file.
118175 2005-10-28  Simon Josefsson  <jas@extundo.com>
118177         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
118178         "restrict" keywords, as per POSIX.  Protect the function
118179         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
118180         Don't use K&R prototypes.  Check the sprintf return values.
118181         Re-define EAFNOSUPPORT if not present.  Indent.
118183         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
118184         suggested by Bruno Haible <bruno@clisp.org>.
118186         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
118188         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
118190         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
118191         libgcrypt).
118193         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
118195         * lib/md2.h, lib/md2.c: New files.
118197 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
118199         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
118200         errno alone.  Problem reported by Frederic Jolliton.
118202 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
118204         * modules/verify (License): Change from GPL to LGPL.  This is a
118205         tiny module and there are apparently near-equivalents that are
118206         under the BSD license.
118208 2005-10-24  Simon Josefsson  <jas@extundo.com>
118210         * modules/sha1: Relicense to LGPL.
118212 2005-10-24  Simon Josefsson  <jas@extundo.com>
118214         * lib/md4.h: Shrink buffer size, now that we changed the type.
118216 2005-10-23  Simon Josefsson  <jas@extundo.com>
118218         * gnulib-tool (func_import): Fix --tests-base.
118220 2005-10-22  Simon Josefsson  <jas@extundo.com>
118222         * modules/arcfour (Depends-on): Need stdint.
118224 2005-10-22  Simon Josefsson  <jas@extundo.com>
118226         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
118227         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
118229 2005-10-22  Simon Josefsson  <jas@extundo.com>
118231         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
118232         suggested by Bruno Haible <bruno@clisp.org>.
118234 2005-10-22  Simon Josefsson  <jas@extundo.com>
118236         * lib/crc.h: Include stddef.h, for size_t.
118238 2005-10-22  Simon Josefsson  <jas@extundo.com>
118240         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
118241         arcfour_context struct (simplify test vector testing in GNU
118242         Shishi).
118244 2005-10-21  Simon Josefsson  <jas@extundo.com>
118246         * modules/des, modules/des-tests: New files.
118248         * modules/gc-des, modules/gc-des-tests: New files.
118250         * tests/test-des.c, tests/test-gc-des.c: New file.
118252 2005-10-21  Simon Josefsson  <jas@extundo.com>
118254         * modules/arctwo, modules/arctwo-tests: New files.
118256         * tests/test-arctwo.c: New file.
118258         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
118260         * tests/test-gc-arctwo.c: New file.
118262 2005-10-21  Simon Josefsson  <jas@extundo.com>
118264         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
118265         Bruno Haible <bruno@clisp.org>.
118267         * m4/gc-des.m4: New file.
118269 2005-10-21  Simon Josefsson  <jas@extundo.com>
118271         * m4/arctwo.m4: New file.
118273         * m4/gc-arctwo.m4: New file.
118275 2005-10-21  Simon Josefsson  <jas@extundo.com>
118277         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
118278         block.
118280 2005-10-21  Simon Josefsson  <jas@extundo.com>
118282         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
118283         <bruno@clisp.org>.
118285         * lib/hmac-sha1.c (hmac_sha1): Likewise.
118287         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
118288         Bruno Haible <bruno@clisp.org>.
118290         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
118291         <bruno@clisp.org>.
118293 2005-10-21  Simon Josefsson  <jas@extundo.com>
118295         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
118297 2005-10-21  Simon Josefsson  <jas@extundo.com>
118299         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
118301 2005-10-21  Simon Josefsson  <jas@extundo.com>
118303         * lib/des.h, lib/des.c: New files.
118305         * lib/gc-gnulib.c: Support DES.c
118307 2005-10-21  Simon Josefsson  <jas@extundo.com>
118309         * lib/arctwo.h, lib/arctwo.c: New files.
118311         * lib/gc-gnulib.c: Support ARCTWO.
118313 2005-10-21  Simon Josefsson  <jas@extundo.com>
118315         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
118316         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118318 2005-10-21  Simon Josefsson  <jas@extundo.com>
118320         * gnulib-tool (func_import, func_create_testdir): Define automake
118321         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
118322         Makefile.am snippet),
118323         suggested by Bruno Haible <bruno@clisp.org>.
118325         * modules/gc (Makefile.am): Use it.
118327 2005-10-21  Bruno Haible  <bruno@clisp.org>
118329         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
118330         patch.
118332 2005-10-19  Simon Josefsson  <jas@extundo.com>
118334         * tests/test-gc-rijndael.c: New file.
118336         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
118338 2005-10-19  Simon Josefsson  <jas@extundo.com>
118340         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
118341         interface too.
118343 2005-10-19  Simon Josefsson  <jas@extundo.com>
118345         * tests/test-gc-arcfour.c: New file.
118347         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118349 2005-10-19  Simon Josefsson  <jas@extundo.com>
118351         * modules/gc-md4, modules/gc-md4-tests: New file.
118353         * tests/test-gc-md4.c: New file.
118355 2005-10-19  Simon Josefsson  <jas@extundo.com>
118357         * m4/gc-md4.m4: New file.
118359 2005-10-19  Simon Josefsson  <jas@extundo.com>
118361         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118362         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118363         <kasal@ucw.cz>.
118365 2005-10-19  Simon Josefsson  <jas@extundo.com>
118367         * m4/gc-arcfour.m4: New file.
118369         * m4/gc-rijndael.m4: New file.
118371 2005-10-19  Simon Josefsson  <jas@extundo.com>
118373         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118375 2005-10-19  Simon Josefsson  <jas@extundo.com>
118377         * lib/gc-gnulib.c: Support ARCFOUR.
118379 2005-10-19  Simon Josefsson  <jas@extundo.com>
118381         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118382         support.
118384         * lib/gc.h: Add ECB enum type.
118386         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118388 2005-10-18  Simon Josefsson  <jas@extundo.com>
118390         * tests/test-md5.c: New file.
118392         * modules/md5-tests: New file.
118394 2005-10-18  Simon Josefsson  <jas@extundo.com>
118396         * tests/test-md4.c: New file.
118398         * modules/md4, modules/md4-tests: New files.
118400 2005-10-18  Simon Josefsson  <jas@extundo.com>
118402         * m4/md4.m4: New file.
118404 2005-10-18  Simon Josefsson  <jas@extundo.com>
118406         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118408 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118410         * gnulib-tool (func_create_testdir): Omit the second check whether
118411         BUILT_SOURCES in nonempty.
118413 2005-10-17  Simon Josefsson  <jas@extundo.com>
118415         * tests/test-rijndael.c: New file.
118417 2005-10-17  Simon Josefsson  <jas@extundo.com>
118419         * modules/sha1: Depend on stdint instead of md5.
118421         * modules/md5: Depend on stdint, remove uint32_t.
118423 2005-10-17  Simon Josefsson  <jas@extundo.com>
118425         * modules/gc-sha1-tests: New file.
118427         * tests/test-gc-sha1.c: New file.
118429 2005-10-17  Simon Josefsson  <jas@extundo.com>
118431         * m4/md5.m4: Remove call to uint32_t.m4.
118433 2005-10-17  Simon Josefsson  <jas@extundo.com>
118435         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118437         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118438         md5.h.
118440         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118442         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118444 2005-10-17  Simon Josefsson  <jas@extundo.com>
118446         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118448 2005-10-17  Simon Josefsson  <jas@extundo.com>
118450         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118452 2005-10-17  Simon Josefsson  <jas@extundo.com>
118454         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
118456         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
118458 2005-10-17  Bruno Haible  <bruno@clisp.org>
118460         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
118461         that it can also be used in a test.
118463 2005-10-16  Bruno Haible  <bruno@clisp.org>
118465         * gnulib-tool (func_emit_tests_Makefile_am): Also define
118466         TESTS_ENVIRONMENT, so that individual tests can augment it.
118468         * gnulib-tool (func_create_testdir): Use an intermediate target for
118469         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
118470         macros, like $(ALLOCA_H), which cannot be passed through the command
118471         line.
118473 2005-10-15  Simon Josefsson  <jas@extundo.com>
118475         * modules/rijndael-tests: New file.
118477         * modules/rijndael: New file.
118479 2005-10-15  Simon Josefsson  <jas@extundo.com>
118481         * m4/rijndael.m4: New file.
118483 2005-10-15  Simon Josefsson  <jas@extundo.com>
118485         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
118487         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
118489 2005-10-14  Simon Josefsson  <jas@extundo.com>
118491         * tests/test-arcfour.c: New file.
118493         * modules/arcfour, modules/arcfour-tests: New files.
118495 2005-10-14  Simon Josefsson  <jas@extundo.com>
118497         * m4/arcfour.m4: New file.
118499 2005-10-14  Simon Josefsson  <jas@extundo.com>
118501         * lib/arcfour.h, lib/arcfour.c: New files.
118503 2005-10-14  Roland McGrath  <roland@redhat.com>
118505         Import from libc.  [BZ #1331]
118506         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
118507         macro argument.
118508         Reported by Matej Vela <vela@debian.org>.
118510 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118512         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
118513         include <wchar.h>; no longer needed.
118515 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118517         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
118519 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
118520         and  Ulrich Drepper  <drepper@redhat.com>
118522         Import from libc.
118523         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
118524         instead of inline stream orientation test and two separate
118525         function calls.  Pay no attention to USE_IN_LIBIO.
118527 2005-10-13  Simon Josefsson  <jas@extundo.com>
118529         * modules/gc-hmac-md5-tests: New file.
118531         * tests/test-gc-hmac-sha1.c: New file.
118533         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
118535         * modules/gc-hmac-md5-tests: New file.
118537         * tests/test-gc-md5.c: New file.
118539         * modules/gc-md5-tests: New file.
118541 2005-10-13  Simon Josefsson  <jas@extundo.com>
118543         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
118544         Move memory allocation outside of loop.
118546 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
118548         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
118549         intermediate directory is in a read-only file system.  Problem
118550         reported by Eric Blake.
118552 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
118554         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
118556 2005-10-12  Simon Josefsson  <jas@extundo.com>
118558         * tests/test-hmac-sha1.c: New file.
118560         * modules/hmac-sha1-tests: New file.
118562         * modules/hmac-sha1: New file.
118564 2005-10-12  Simon Josefsson  <jas@extundo.com>
118566         * modules/gc-sha1: New file.
118568 2005-10-12  Simon Josefsson  <jas@extundo.com>
118570         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
118572         * tests/test-gc-pbkdf2-sha1.c: New file.
118574 2005-10-12  Simon Josefsson  <jas@extundo.com>
118576         * modules/gc-md5, modules/gc-hmac-md5: New files.
118578         * modules/gc (Files): Remove md5, memxor and hmac files.
118580 2005-10-12  Simon Josefsson  <jas@extundo.com>
118582         * m4/gc-pbkdf2-sha1.m4: New file.
118584         * m4/gc-hmac-sha1.m4: New file.
118586         * m4/gc-sha1: New file.
118588         * m4/hmac-sha1.m4: New file.
118590 2005-10-12  Simon Josefsson  <jas@extundo.com>
118592         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118594         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118596 2005-10-12  Simon Josefsson  <jas@extundo.com>
118598         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
118599         suggested by Bruno Haible <bruno@clisp.org>.
118601 2005-10-12  Simon Josefsson  <jas@extundo.com>
118603         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
118605 2005-10-12  Simon Josefsson  <jas@extundo.com>
118607         * lib/gc-pbkdf2-sha1.c: New file.
118609         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
118611 2005-10-12  Simon Josefsson  <jas@extundo.com>
118613         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
118615         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
118617 2005-10-12  Simon Josefsson  <jas@extundo.com>
118619         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
118620         GC_USE_HMAC_MD5, respectively.
118622         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
118623         (gc_md5): Fix typo.
118625         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
118627         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
118629         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
118631 2005-10-12  Bruno Haible  <bruno@clisp.org>
118633         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
118634         Reported by Stepan Kasal <kasal@ucw.cz>.
118636 2005-10-11  Simon Josefsson  <jas@extundo.com>
118638         * tests/test-crc.c: New file.
118640         * modules/crc, modules/crc-tests: New files.
118642 2005-10-11  Simon Josefsson  <jas@extundo.com>
118644         * m4/crc.m4: New file.
118646 2005-10-11  Simon Josefsson  <jas@extundo.com>
118648         * lib/gc.h: Add gc_hash and gc_hash_buffer.
118650         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
118652         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
118654 2005-10-11  Simon Josefsson  <jas@extundo.com>
118656         * lib/crc.h, lib/crc.c: New files.
118658         * lib/gc.h (gc_hash_buffer): Add doc.
118660 2005-10-11  Bruno Haible  <bruno@clisp.org>
118662         * modules/c-strcasestr: New file.
118663         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118665 2005-10-11  Bruno Haible  <bruno@clisp.org>
118667         * modules/c-strcase: New file.
118668         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118670 2005-10-11  Bruno Haible  <bruno@clisp.org>
118672         * lib/strcasecmp.c: Include limits.h.
118673         (strcasecmp): Avoid integer overflow on exotic platforms.
118674         * lib/strncasecmp.c: Include limits.h.
118675         (strncasecmp): Avoid integer overflow on exotic platforms.
118676         Reported by Paul Eggert.
118678 2005-10-11  Bruno Haible  <bruno@clisp.org>
118680         * lib/c-strcasestr.h: New file, from GNU gettext.
118681         * lib/c-strcasestr.c: New file, from GNU gettext.
118683 2005-10-11  Bruno Haible  <bruno@clisp.org>
118685         * lib/c-strcase.h: New file, from GNU gettext.
118686         * lib/c-strcasecmp.c: New file, from GNU gettext.
118687         * lib/c-strncasecmp.c: New file, from GNU gettext.
118689 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118691         * modules/mempcpy (License): GPL -> LGPL.
118692         * modules/strchrnul (License): Likewise.
118693         * modules/sysexits (License): Likewise.
118695 2005-10-08  Simon Josefsson  <jas@extundo.com>
118697         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118699 2005-10-07  Simon Josefsson  <jas@extundo.com>
118701         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118703 2005-10-06  Simon Josefsson  <jas@extundo.com>
118705         * tests/test-hmac-md5.c: New file.
118707         * modules/hmac-md5-tests: New file.
118709         * modules/hmac-md5: New file.
118711 2005-10-06  Simon Josefsson  <jas@extundo.com>
118713         * m4/hmac-md5.m4: New file.
118715         * m4/memxor.m4: Require gl_C_RESTRICT.
118717 2005-10-06  Simon Josefsson  <jas@extundo.com>
118719         * lib/memxor.c (memxor): Avoid casts and warnings.
118721 2005-10-06  Simon Josefsson  <jas@extundo.com>
118723         * lib/hmac-md5.c: New file.
118725         * lib/hmac.h: New file.
118727 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118729         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118730         promotes to int, not unsigned int, to catch the AIX 5.3
118731         compiler bug.
118733 2005-10-05  Simon Josefsson  <jas@extundo.com>
118735         * modules/memxor: New file.
118737         * modules/iconv (Files): Move config.rpath to havelib, it is used
118738         there.
118740         * modules/havelib (Files): Add config.rpath.
118742 2005-10-05  Simon Josefsson  <jas@extundo.com>
118744         * m4/memxor.m4: New file.
118746 2005-10-05  Simon Josefsson  <jas@extundo.com>
118748         * lib/memxor.c (memxor): Fix compiler error.
118750         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118751         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118753         * lib/memxor.h, lib/memxor.c: New files.
118755         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118756         we assume all systems have it, suggested by Jim Meyering
118757         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118758         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118759         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118760         same reasons.
118762 2005-10-05  Simon Josefsson  <jas@extundo.com>
118764         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118766 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118768         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118769         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118770         needed, since the source code now assumes these .h files.
118772 2005-10-05  Derek Price  <derek@ximbiot.com>
118774         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118776 2005-10-05  Bruno Haible  <bruno@clisp.org>
118778         * modules/stdint (License): Change to LGPL.
118780 2005-10-04  Simon Josefsson  <jas@extundo.com>
118782         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118783         D. Baushke" <mdb@gnu.org>.
118785 2005-10-04  Bruno Haible  <bruno@clisp.org>
118787         * lib/verify.h (verify_true): Provide alternative definition for C++.
118789 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118791         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118792         (SSIZE_MAX): New macro, if not already defined.
118793         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118794         than 2 GiB.
118796 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118798         Sync from coreutils.
118799         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118800         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118801         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118802         ULLONG_MAX doesn't work with 2.7.2.1.
118804 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118806         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118807         From Ben Pfaff.
118809         * modules/exclude (Depends-on): Depend on verify.
118810         * modules/strtoimax (Depends-on): Likewise.
118811         * modules/utimecmp (Depends-on): Likewise.
118813 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118815         * lib/exclude.c: Include verify.h.
118816         (verify): Remove.  All callers changed to use verify.h's version.
118817         * lib/strtoimax.c: Likewise.
118818         * lib/utimecmp.c: Likewis.e
118820         Sync from coreutils.
118821         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118822         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118823         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118824         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118825         bother returning ENOSYS if settimeofday or stime fails; just let
118826         them return whatever errno they want to return.
118827         * lib/utimens.c: Include unistd.h, for dup2.
118828         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118829         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118831 2005-10-02  Jim Meyering  <jim@meyering.net>
118833         Sync from coreutils.
118834         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118835         from glibc-2.2.5 that fails for read-only files.
118837 2005-10-02  Jim Meyering  <jim@meyering.net>
118839         Sync from coreutils.
118840         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118841         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118842         `#if HAVE_CONFIG_H'.
118843         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118844         Remove AT_FDCWD test.
118845         Do not consume the fd unless successful.
118846         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118847         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118848         block, so that we don't even try to compile it if settimeofday is
118849         available.  This works around a compilation failure on OSF1 V5.1,
118850         due to stime requiring a `long int*' while tv_sec is `int'.
118852 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118854         Sync from coreutils.
118855         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118856         against `yes', rather than just testing for nonempty.
118858 2005-10-01  Simon Josefsson  <jas@extundo.com>
118860         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118861         and Darwin.
118863         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118864         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118865         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118866         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118867         Check if struct addrinfo is declared.
118869 2005-10-01  Simon Josefsson  <jas@extundo.com>
118871         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118872         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118873         AI_* and EAI_* definitions.  Protect function declarations.
118875 2005-10-01  Jim Meyering  <jim@meyering.net>
118877         Sync from coreutils.
118879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118880         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118881         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118883         in the inet and nsl libraries.  Required on Solaris 5.7.
118885 2005-10-01  Jim Meyering  <jim@meyering.net>
118887         Sync from coreutils.
118888         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118889         in the inet and nsl libraries.  Required on Solaris 5.7.
118891 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118893         * lib/getdelim.c (getdelim): Remove unused variables.
118895 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118897         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118898         so that the code works even with ancient cpp.  Portability problem
118899         with GCC 2.7.2.1 reported by Thomas M.Ott.
118901 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118903         * modules/regex (Depends-on): Add strcase.
118905         * modules/gethostname (Licence): Change from GPL to LGPL, since
118906         gethostname.c is a trivial implementation of a standard library
118907         function.
118908         * modules/poll (License): Change from GPL to LGPL, since it's
118909         derived from LGPL code.
118911 2005-09-27  Jim Meyering  <jim@meyering.net>
118913         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118914         HAVE_CONFIG_H.
118916         * lib/intprops.h (signed_type_or_expr__): Define.
118917         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118918         for unsigned types.
118920 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118922         * lib/verify.h (verify_expr): Remove, replacing with:
118923         (verify_true): New macro that returns true instead of void.
118924         (verify_type__): Remove.
118925         (verify): Use verify_true rather than verify_type__.
118927 2005-09-26  Bruno Haible  <bruno@clisp.org>
118929         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118930         is necessary.
118931         (lib_SOURCES): Remove mbchar.c.
118932         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118933         (Files): Add m4/mbrtowc.m4.
118934         * modules/mbiter: Likewise.
118935         * modules/mbuiter: Likewise.
118937 2005-09-26  Bruno Haible  <bruno@clisp.org>
118939         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118940         compile mbchar.c if they are not both present.
118941         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118942         * m4/mbiter.m4 (gl_MBITER): Likewise.
118943         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118944         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118945         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118947 2005-09-25  Jim Meyering  <jim@meyering.net>
118949         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118950         also uses socklen_t.
118952 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118954         * lib/utimens.c (ENOSYS): Define if not already defined.
118955         (futimens): Support having a null PATH if the file descriptor
118956         is nonnegative.
118958         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118959         Remove.
118960         (__attribute): Define to empty unless GCC 3.1 or later.
118961         This works around a core dump on OpenBSD 3.4, which has GCC
118962         2.95.3, which dumps core when given __attribute__(()).  It also
118963         simplifies other tests, since we really don't want to bother with
118964         worrying about which ancient version of GCC supported what.
118965         Original problem reported by Yoann Vandoorselaere, with part of
118966         the fix suggested by Derek Price.
118968 2005-09-24  Jim Meyering  <jim@meyering.net>
118970         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118971         so we can once again use a positive bitfield width of 1 -- now we
118972         don't have to explain why we were using a bitfield width of 2.
118974 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118976         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118977         and similarly for the other external symbols.  Problem reported
118978         by James Gallager.
118980         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118981         bug reported by Jim Meyering.
118983         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118984         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118985         not needed, since socklen is a prerequisite module.
118987 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118989         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118990         Problem reported by Eric Blake.
118991         (getaddrinfo): Initialize se so that it's not garbage.
118992         Redo internal storage allocation so that it doesn't make unportable
118993         assumptions about alignment.
118994         Fix a memory leak.
118996         * lib/utimens.c (futimens): Use futimesat if available.
118997         Prefer it to futimes since it doesn't have the futimes bug.
118999         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
119000         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
119001         Instead, declare a function that returns a pointer to an array,
119002         and use verify_type__ to declare the size of the array.
119003         Problem and germ of a solution reported by Bruno Haible.
119004         (verify_type__): Use 2, not 1, for bitfield size, to avoid
119005         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
119007 2005-09-23  Jim Meyering  <jim@meyering.net>
119009         Sync from coreutils.
119010         Correct build failure (socklen_t not defined) on at least
119011         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
119012         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
119014 2005-09-23  Jim Meyering  <jim@meyering.net>
119016         * modules/getaddrinfo (Depends-on): Add socklen.
119018 2005-09-23  Bruno Haible  <bruno@clisp.org>
119020         * tests/test-verify.c: New file.
119022 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119024         Sync from coreutils.
119026         * modules/argmatch (Depends-on): Add verify.
119027         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
119028         unistd-safer.
119029         * modules/save-cwd (Depends-on): Likewise.
119031         * modules/openat (Files): Add lib/openat-die.c.
119032         (Depends-on): Remove error, exitfail.
119033         Add dirname.
119035         * modules/verify: New file.
119036         * MODULES.html.sh (Diagnostics <assert.h>): New section,
119037         with "verify" module.
119039 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119041         Sync from coreutils.
119043         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
119044         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
119045         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
119046         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
119047         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
119048         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
119049         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
119050         Don't bother checking for string.h, stdlib.h, unistd.h.
119051         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
119052         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
119053         module's job.
119054         * m4/jm-macros.m4 (gl_MACROS): Likewise.
119055         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
119057         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
119058         (gl_GETDATE): Use it.
119060         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
119062 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119064         Sync from coreutils.
119066         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
119067         stat-time.h.
119068         * lib/argmatch.h: Include verify.h
119069         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
119070         (ARGMATCH_ASSERT): Remove; unused.
119071         * lib/canonicalize.c: Assume STDC_HEADERS.
119072         * lib/exclude.c: Include "strcase.h".
119073         * lib/regex_internal.h [!defined _LIBC]: Likewise.
119074         * lib/getusershell.c: Include stdio--.h rather than stdio.h
119075         and stdio-safer.h.
119076         (getusershell): Call fopen, not fopen_safer.
119077         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
119078         Do not include unistd-safer.h.
119079         (save_cwd): Don't call fd_safer; no longer needed
119080         now that we include fcntl--.h.
119082         * lib/getdate.y (relative_time): New type.
119083         (RELATIVE_TIME_0): New constant.
119084         (parser_control): Use relative_time instead of doing it ourselves.
119085         (%union): Add new relative_time rel member.
119086         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
119087         Now typeless.
119088         (relunit, relunit_snumber): Now of type rel.
119089         (zone, rel, relunit, get_date): Adjust to above changes.
119091         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
119092         Do not include unistd-safer.h.
119093         (getloadavg): Don't call fd_safer; no longer needed
119094         now that we include fcntl--.h.
119096         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
119097         (make_dir_parents): Treat ENOSYS like EEXIST.
119099         Improve quality of diagnostics on restore_cwd failure.
119100         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
119101         (make_dir_parents): Last arg is now int * (for errno), not bool *.
119102         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
119103         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
119104         each time through the loop.  Do not diagnose restore_cwd failure;
119105         that is the caller's job (and perhaps the caller does not care).
119107         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
119108         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
119109         If the file already exists but is not a directory, don't bother
119110         to try to make its parents.
119111         Close potential file descriptor leak if we can't chdir("/") (!).
119112         Don't always return true if chdir($PWD) fails; return true only
119113         if the requested action was done successfully (except for the
119114         chdir($PWD)).
119115         Don't log final directory unless we actually made it.
119116         Refactor to avoid duplicate code to fix up permissions.
119117         Don't attempt to fix up parent permissions if chdir($PWD) fails.
119119         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
119120         to make it a bit faster and (I hope) clearer.
119121         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
119122         Fix bug in formats like %2N.
119124         * lib/verify.h: New file.
119126 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119128         Sync from coreutils.
119129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
119131 2005-09-22  Jim Meyering  <jim@meyering.net>
119133         Sync from coreutils.
119135         * m4/lstat.m4 (gl_FUNC_LSTAT):
119136         Use AC_LIBSOURCES to require lstat.c and lstat.h.
119137         Remove obsolete comment.
119138         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
119139         * m4/xstrtod.m4: Likewise.
119141         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
119143 2005-09-22  Jim Meyering  <jim@meyering.net>
119145         Sync from coreutils.
119147         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
119149         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
119150         the .tm_year member, since otherwise gcc-4.0 would now warn about
119151         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
119153         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
119154         order to avoid an unsuppressible warning from gcc on 64-bit systems.
119156         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
119157         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
119158         when run in a time zone for which daylight savings time is in effect
119159         for the starting date.
119161         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
119162         stop us from restricting permissions of just-created absolute-named
119163         directories.
119164         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
119165         to restore initial working directory.
119166         * lib/mkdir-p.c (make_dir_parents): New parameter:
119167         different_working_dir, to tell caller if/when we change the working
119168         directory and are unable to return to the initial one.
119169         * lib/mkdir-p.h (make_dir_parents): Update prototype.
119170         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
119171         `return false'.  This fixes a bug introduced on 2004-07-30.
119173         * lib/openat.c (fdopendir): Be sure to close the supplied
119174         file descriptor before returning.  This makes our replacement
119175         implementation a little closer to Solaris's, where fdopendir
119176         ties the file descriptor to the returned DIR* pointer.
119177         * lib/openat.c (unlinkat): New function.
119178         * lib/openat.h (unlinkat): Add prototype.
119179         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
119180         (openat_restore_fail): Rename from openat_restore_die.
119181         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
119183         Provide an alternative to exiting immediately upon save_cwd or
119184         restore_cwd failure.  Now, an application can arrange e.g.,
119185         to perform a longjump in that case.
119186         * lib/openat.c: Include dirname.h.
119187         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
119188         (rpl_openat, fdopendir, fstatat): Call openat_save_die
119189         and openat_restore_die rather than calling error directly.
119190         Don't include "error.h" or "exitfail.h"; they're no longer needed.
119192         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
119193         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
119194         define.
119196         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
119197         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
119198                             int utc, int nanoseconds);
119199         Background:
119200         date should not have to allocate a megabyte of virtual memory to
119201         handle a format argument like +%1048575T.  When implemented with
119202         strftime, it must allocate such a buffer, use strftime to fill it
119203         in, print it, then free it.
119204         With fprintftime, it simply prints everything and exits.
119205         With no need for memory allocation, that's one fewer way to fail.
119206         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
119207         optional field width, not before, so we accept %9:z, not %:9z.
119208         (my_strftime): Be sure to use L_('x') for literals.
119210         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
119211         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
119212         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
119213         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
119214         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
119215         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
119216         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
119217         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
119218         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
119219         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
119220         * lib/xgethostname.c, lib/xreadlink.c:
119221         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
119223         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
119224         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
119225         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
119226         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119227         and don't include <sys/file.h>).
119229 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
119231         Sync from coreutils.
119233         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
119234         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
119235         [!LDAV_DONE]: Avoid unused variable warning.
119237 2005-09-21  Bruno Haible  <bruno@clisp.org>
119239         * lib/unicodeio.h (unicode_to_mb): New declaration.
119241 2005-09-20  Derek Price  <derek@ximbiot.com>
119243         * lib/getaddrinfo.c: Don't include <netdb.h> included from
119244         getaddrinfo.h.
119246 2005-09-20  Bruno Haible  <bruno@clisp.org>
119248         * gnulib-tool: Remove trailing slashes from the values specified for
119249         --source-base, --m4-base, --tests-base, --aux-dir.
119250         Suggested by Simon Josefsson <jas@extundo.com>.
119252 2005-09-20  Bruno Haible  <bruno@clisp.org>
119254         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
119255         func_modules_to_filelist, func_import, func_create_testdir): Make all
119256         sorting results locale-independent, so that gnulib-cache.m4 doesn't
119257         change when gnulib-tool is invoked in a different locale.
119259 2005-09-19  Simon Josefsson  <jas@extundo.com>
119261         * m4/socklen.m4: Fix typo.
119263 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119265         Use a consistent style for including <config.h>.
119266         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
119267         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
119268         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
119269         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
119270         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
119271         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
119272         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
119273         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
119274         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
119275         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
119276         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
119277         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
119278         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
119279         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
119280         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
119281         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
119282         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
119283         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
119284         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
119285         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
119286         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
119287         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
119288         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
119289         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
119290         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
119291         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
119292         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
119293         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
119294         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
119295         lib/xstrtoumax.c, lib/yesno.c:
119296         Standardize inclusion of config.h.
119297         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
119298         lib/inttostr.h:  Removed inclusion of config.h from header files.
119299         * lib/inttostr.c:  Adjusted in-tree users.
119300         * lib/timespec.h: Remove superfluous warning to include config.h.
119301         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
119302         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
119303         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
119304         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
119305         config.h with HAVE_CONFIG_H.
119307 2005-09-19  Jim Meyering  <jim@meyering.net>
119309         * modules/pathmax (License): Change to LGPL.
119311 2005-09-19  Derek Price  <derek@ximbiot.com>
119313         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
119315 2005-09-19  Bruno Haible  <bruno@clisp.org>
119317         * gnulib-tool (import): Provide default for --tests-base.
119319 2005-09-19  Bruno Haible  <bruno@clisp.org>
119321         * doc/quote.texi: New file, extracted from gnulib.texi.
119322         * doc/ctime.texi: New file, extracted from gnulib.texi.
119323         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
119324         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
119325         * doc/gnulib.texi: Include them.
119327 2005-09-18  Bruno Haible  <bruno@clisp.org>
119329         Portability fix.
119330         * gnulib-tool (func_readlink): New function.
119331         (func_ln_if_changed): Use it.
119333 2005-09-18  Bruno Haible  <bruno@clisp.org>
119335         * gnulib-tool: Support --with-tests also with --import.
119336         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
119337         (func_import): Use variables $testsbase and $inctests. Emit a
119338         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
119339         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
119340         SUBDIRS += $testsdir.
119341         (func_create_testdir): Update.
119343 2005-09-18  Bruno Haible  <bruno@clisp.org>
119345         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119346         instead of $dry_run.
119347         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119348         (func_ln_if_changed): Don't handle dry-run here.
119349         (func_import): In dry-run mode, detect more precisely which actions
119350         would be performed, and don't use "...ing" verbs.
119352 2005-09-18  Bruno Haible  <bruno@clisp.org>
119354         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119355         (func_import): Use join on two temporary files instead of three nested
119356         loops, in order to determine which files are new or old.
119358 2005-09-18  Bruno Haible  <bruno@clisp.org>
119360         * gnulib-tool (func_import): Comment out code that spits out the
119361         new files with --dry-run.
119363 2005-09-18  Bruno Haible  <bruno@clisp.org>
119365         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119367 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119369         * lib/stat-time.h: New file.
119370         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119371         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119372         in a different way.
119373         (timespec_cmp): New function.
119374         * lib/utimecmp.c: Include stat-time.h.
119375         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119376         members exist, not on the obsolescent ST_MTIM_NSEC.
119377         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119379 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119381         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119383 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119385         * MODULES.html.sh (File system functions): Add stat-time.
119386         * modules/stat-time: New file.
119387         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119388         is now done in a different way, by the stat-time module.
119389         * modules/utimecmp (Depends-on): Add stat-time.
119391 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119393         * m4/st_mtim.m4: Remove.  Superseded by...
119394         * m4/stat-time.m4: New file.
119395         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119396         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119398 2005-09-15  Derek Price  <derek@ximbiot.com>
119400         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119402 2005-09-15  Derek Price  <derek@ximbiot.com>
119404         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119405         * lib/regex_internal.c: Ditto, using this...
119406         (__GNUC_PREREQ): ...new macro.
119407         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119408         using...
119409         (__GNUC_PREREQ): ...this new macro.
119411         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119413 2005-09-15  Derek Price  <derek@ximbiot.com>
119414             Paul Eggert  <eggert@cs.ucla.edu>
119416         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119417         changes, consolidating in...
119418         * lib/regex_internal.h: ...this file.
119420 2005-09-13  Jim Meyering  <jim@meyering.net>
119422         * lib/canon-host.c: Filter through gnu indent and reword comments
119423         slightly.
119424         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119426 2005-09-13  Derek Price  <derek@ximbiot.com>
119428         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119429         failure.
119430         Reported by Jim Meyering  <jim@meyering.net>.
119432 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119434         * lib/base64.c: Typo.
119435         (base64_encode): Put b64str in initialized data section.
119437 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119439         Merge glibc and coreutils changes into gnulib, plus a few
119440         extra fixes.
119441         * lib/md5.c: Use #error rather than a string.
119442         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119443         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119444         (__attribute__): Define to empty for non recent-GCC.
119445         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119446         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119447         Renamed from their non-__ counterparts, with new macros replacing
119448         them if not _LIBC.  Add __THROW attribute.
119449         (rol): Remove.
119450         (struct md5_ctx): Align buffer if using GCC.
119451         * lib/sha1.h (struct sha1_ctx): Likewise.
119452         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
119453         The old name was backwards.
119454         (NOTSWAP): Remove; not used.
119455         (rol): New macro, moved here from md5.h.
119456         (sha1_process_block): Remove a FIXME that doesn't make sense.
119458 2005-09-12  Derek Price  <derek@ximbiot.com>
119460         Return usable errors from canon-host.
119461         * lib/canon-host.h: New file.
119462         * lib/canon-host.c (canon_host): Wrap...
119463         (canon_host_r): ...this new function, which now relies exclusively on
119464         getaddrinfo.
119465         (ch_strerror): New function.
119466         (last_cherror): New global.
119467         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
119468         interface.
119469         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
119470         void *.
119471         (freeaddrinfo): Free ai->ai_canonname when set.
119473 2005-09-12  Derek Price  <derek@ximbiot.com>
119475         Make canon-host require getaddrinfo.
119476         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
119477         AC_LIBSOURCE canon-host.h.  Call...
119478         (gl_PREREQ_CANON_HOST): ...this new function, which requires
119479         gl_GETADDRINFO.
119480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
119482 2005-09-12  Derek Price  <derek@ximbiot.com>
119484         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
119485         LGPL.
119486         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
119488 2005-09-12  Derek Price  <derek@ximbiot.com>
119490         * lib/gai_strerror.c: Include config.h when available.  Include
119491         getaddrinfo.h before other headers to test interface.
119492         Reported by Larry Jones <lawrence.jones@ugs.com>.
119494 2005-09-12  Derek Price  <derek@ximbiot.com>
119495             Paul Eggert  <eggert@cs.ucla.edu>
119497         * modules/glob (Files): Add glob-libc.h.
119499 2005-09-12  Derek Price  <derek@ximbiot.com>
119500             Paul Eggert  <eggert@cs.ucla.edu>
119502         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
119503         glob_.h, glob-libc.h.
119504         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
119506 2005-09-12  Derek Price  <derek@ximbiot.com>
119507             Paul Eggert  <eggert@cs.ucla.edu>
119509         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
119510         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
119511         protecting things that should be done only in gnulib contexts.
119512         * lib/glob_.h: New file, containing only the glob things needed for
119513         gnulib.
119514         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
119515         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
119516         (glob, globfree, glob_pattern_p): Now defined simply in terms of
119517         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
119518         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
119519         and to respect the namespace rules better.
119521 2005-09-08  Simon Josefsson  <jas@extundo.com>
119523         * modules/socklen: New file.
119525 2005-09-08  Simon Josefsson  <jas@extundo.com>
119527         * m4/socklen.m4: New file.
119529 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119531         * modules/utimens (Files): Add m4/utimbuf.m4, since
119532         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
119533         Reported by Sergey Poznyakoff.
119535 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119537         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
119538         definitions, since that's the preferred style in glibc.
119539         Fix a minor spacing issue, and update copyright notice to match
119540         glibc's.
119542 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119544         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
119546 2005-09-06  Simon Josefsson  <jas@extundo.com>
119548         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
119549         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
119551 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119553         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
119554         warning.
119556 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119558         * config/srclist.txt: Add glibc bug 1302.
119560 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
119562         Change bitset word type from unsigned int to unsigned long int,
119563         as this has better performance on typical 64-bit hosts.
119564         Port bitset code to hosts with unusual word sizes.
119565         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
119566         (build_collating_symbol):
119567         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
119568         argument is a bitset.  This is merely a style issue, but it makes
119569         it clearer that an entire array is expected.
119570         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
119571         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
119572         Port to the case where bitset_word is not the same as unsigned int.
119573         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119574         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
119575         Likewise.
119576         * lib/regexec.c (check_dst_limits_calc_pos_1,
119577         check_subexp_matching_top):
119578         (build_trtable, group_nodes_into_DFAstates):
119579         Likewise.
119580         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
119581         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
119582         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
119583         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
119584         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
119585         * lib/regcomp.c (optimize_subexps, lower_subexp):
119586         Work even if bitset_word has holes in its bitwise representation.
119587         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
119588         * lib/regexec.c (check_dst_limits_calc_pos_1,
119589         check_subexp_matching_top):
119590         Likewise.
119591         * lib/regex_internal.c (re_string_reconstruct):
119592         Don't assume UCHAR_MAX == 255.
119593         * lib/regex_internal.h (bitset_set_all): Likewise.
119594         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119595         All uses changed.
119596         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
119597         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
119598         All uses changed.
119599         (BITSET_WORD_MAX): New macro.
119600         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
119601         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
119602         (bitset_empty, bitset_copy):
119603         Prefer sizeof (bitset) to multiplying it out ourselves.
119604         (bitset_not_merge): Remove; unused.
119605         (bitset_contain): Return bool, not unsigned int with one bit on.
119606         All callers changed.
119607         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
119608         alignment than re_node_set; do this by defining a new internal
119609         type struct dests_alloc and using it to allocate memory.
119611 2005-09-05  Bruno Haible  <bruno@clisp.org>
119613         * gnulib-tool (func_import): Fix comparison in handling of symbolic
119614         links.
119616 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
119618         * modules/size_max (Makefile.am): Add size_max.h
119620 2005-09-04  Derek Price  <derek@ximbiot.com>
119622         * gnulib-tool (func_import): Fix reversed $symbolic logic.
119624 2005-09-03  Simon Josefsson  <jas@extundo.com>
119626         * gnulib-tool: Fix typo.
119628 2005-09-03  Simon Josefsson  <jas@extundo.com>
119630         * config/srclist.txt: Add glibc bug 1293.
119632 2005-09-03  Derek Price  <derek@ximbiot.com>
119634         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
119635         From Larry Jones <lawrence.jones@ugs.com>.
119637 2005-09-02  Simon Josefsson  <jas@extundo.com>
119639         * modules/socklen: New file.
119641 2005-09-02  Simon Josefsson  <jas@extundo.com>
119643         * modules/havelib: New module.
119645         * modules/gettext, modules/iconv, modules/lock, modules/readline:
119646         Use havelib.
119648 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119650         Check for arithmetic overflow when calculating sizes, to prevent
119651         some buffer-overflow issues.  These patches are conservative, in the
119652         sense that when I couldn't determine whether an overflow was possible,
119653         I inserted a run-time check.
119654         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
119655         macros.
119656         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
119657         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
119658         (re_xnrealloc, re_x2nrealloc): New inline functions.
119659         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
119660         parse_bracket_exp):
119661         (build_equiv_class, build_charclass): Check for arithmetic overflow
119662         in size expression calculations.
119663         * lib/regex_internal.c (re_string_realloc_buffers):
119664         (build_wcs_upper_buffer, re_node_set_add_intersect):
119665         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119666         (re_dfa_add_node, register_state): Likewise.
119667         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119668         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119669         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119670         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119672 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119674         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119675         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119677 2005-09-02  Bruno Haible  <bruno@clisp.org>
119679         Support for lib vs. lib64 distinction on biarch platforms.
119680         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119681         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119684 2005-09-02  Bruno Haible  <bruno@clisp.org>
119686         * gnulib-tool (import): In the other first-use case, provide defaults
119687         as well.
119689 2005-09-02  Bruno Haible  <bruno@clisp.org>
119691         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119692         patches not yet found in the latest gettext release.
119694 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119696         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119697         to avoid a collision with bits/local_lim.h in glibc.
119698         All uses changed.  Problem reported by Dmitry V. Levin in
119699         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119701         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119702         bugs in int versus size_t comparisons.
119703         (re_string_context_at): Fix bug where the code assumed that
119704         Idx is signed.
119706         Use bool where appropriate.
119707         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119708         All callers changed.
119709         (calc_eclosure_iter): Likewise, for ROOT arg.
119710         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119711         (build_charclass_op): Likewise, for NON_MATCH arg.
119712         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119713         (re_string_construct_common): Likewise, for ICASE arg.
119714         * lib/regexec.c (re_search_2_stub, re_search_stub):
119715         Likewise, for RET_LEN arg.
119716         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119717         (set_regs): Likewise, for FL_BACKTRACK arg.
119718         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119719         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119720         (calc_eclosure_iter, parse_bracket_exp):
119721         Use bool for internal variables that are booleans.
119722         * lib/regexec.c (re_search_internal, check_matching,
119723         proceed_next_node):
119724         (set_regs, build_sifted_states, sift_states_bkref):
119725         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119726         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119727         (find_collation_sequence_value):
119728         Likewise.
119729         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119730         (re_node_set_compare):
119731         Return bool, not int. All callers changed.
119732         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119733         (build_trtable, check_node_accept): Likewise.
119734         * lib/regex_internal.h: Include stdbool.h.
119736         Fix bugs uncovered when converting to bool.
119737         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119738         failure instead of charging ahead blindly.
119739         * lib/regex_internal.c (register_state): Likewise.
119740         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119741         for freeing internal storage.
119742         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119743         bitset pieces used as boolean, to avoid undefined behavior
119744         on hosts that do int overflow checking.
119746 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119748         * config/srclist.txt: Add glibc bugs 1285-1287.
119750 2005-09-01  Jim Meyering  <jim@meyering.net>
119752         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119753         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119754         Require gl_STAT_MACROS, too.
119756 2005-09-01  Bruno Haible  <bruno@clisp.org>
119758         * gnulib-tool (import): In the first-use case, provide defaults.
119760 2005-09-01  Bruno Haible  <bruno@clisp.org>
119762         * gnulib-tool (func_import): Remove the .tmp files.
119764 2005-09-01  Bruno Haible  <bruno@clisp.org>
119766         * gnulib-tool (func_import): Fix handling of symbolic links.
119768 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119770         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119771         old glibc regex code mishandles strings longer than 2**31 bytes.
119772         This patch fixes this when the regex code is used in gnulib
119773         (i.e., outside glibc).
119775         This patch should not affect the use of the regex code inside
119776         glibc.  No doubt this problem also needs to be handled for glibc
119777         as well, but the result will be an incompatible change to the
119778         glibc ABI, and the old ABI will have to be supported too.  That
119779         can be the subject for another patch.
119781         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119782         governing whether the rest of this patch is active.  By default,
119783         the macro is disabled and the patch has no effect.
119784         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119785         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119786         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119787         (re_match_2, re_set_registers): Use the new types.
119788         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119789         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119790         New macros.
119791         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119792         (re_string_context_at, bin_tree_t, re_dfastate_t):
119793         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119794         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119795         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119796         (re_string_char_size_at, re_string_wchar_at):
119797         (re_string_elem_size_at):
119798         Use the new types and macros to port to 64-bit hosts.
119799         Use unsigned types for internal values, so that the code
119800         mostly works even for arrays larger than SSIZE_MAX.
119801         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119802         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119803         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119804         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119805         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119806         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119807         (calc_inveclosure, parse_dup_op, build_range_exp):
119808         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119809         (fetch_number, create_token_tree, mark_opt_subexp):
119810         Likewise.
119811         * lib/regex_internal.c (re_string_construct_common,
119812         create_ci_newstate):
119813         (create_cd_newstate, re_string_allocate, re_string_construct):
119814         (re_string_realloc_buffers, build_wcs_upper_buffer):
119815         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119816         (re_string_reconstruct, re_string_peek_byte_case):
119817         (re_string_fetch_byte_case, re_string_context_at):
119818         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119819         (re_node_set_init_copy, re_node_set_add_intersect):
119820         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119821         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119822         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119823         (re_acquire_state, re_acquire_state_context, register_state):
119824         Likewise.
119825         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119826         search_cur_bkref_entry):
119827         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119828         (re_search_internal, re_search_2_stub, re_search_stub)
119829         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119830         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119831         (update_cur_sifted_state, check_dst_limits):
119832         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119833         (check_subexp_limits, sift_states_bkref, merge_state_array):
119834         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119835         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119836         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119837         (expand_bkref_cache, check_node_accept_bytes):
119838         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119839         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119840         (acquire_init_state_context, check_halt_node_context):
119841         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119842         (sift_states_backward, clean_state_log_if_needed):
119843         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119844         (find_recover_state, transit_state_sb, transit_state_mb):
119845         (transit_state_bkref, build_trtable, match_ctx_clean):
119846         Likewise.
119847         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119848         to work around an assumption that REG_MISSING is negative.
119850         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119851         (seek_collating_symbol_entry) [defined _LIBC]:
119852         (lookup_collation_sequence_value) [defined _LIBC]:
119853         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119854         Use prototypes rather than old-style function definitions.
119855         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119856         (transit_state_sb) [0]:
119857         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119859         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119860         rm_eo.
119862         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119863         (optimize_subexps, lower_subexp):
119864         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119865         since the signed shift might overflow.  Use 1u<<31 instead.
119866         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119867         Likewise.
119868         * lib/regexec.c (check_dst_limits_calc_pos_1,
119869         check_subexp_matching_top): Likewise.
119871         * lib/regcomp.c (optimize_subexps, lower_subexp):
119872         Use CHAR_BIT rather than 8, for clarity.
119873         * lib/regexec.c (check_dst_limits_calc_pos_1):
119874         (check_subexp_matching_top): Likewise.
119875         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119876         have to worry about portability issues when shifting it left.
119877         Remove no-longer-needed test for table_size > 0.
119878         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119879         in a word, as the resulting behavior is undefined.
119880         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119881         in one case, a <= should have been an <, and in another case the
119882         whole test was missing.
119883         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119884         the standard name CHAR_BIT.
119885         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119886         this is not true on one's complement and signed-magnitude hosts.
119888         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119889         next_last_offset.
119890         (struct re_dfa_t): Remove unused member states_alloc.
119891         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119893 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119895         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119896         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119897         and large-file glibc and in 32-bit large-file Solaris.
119899 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119901         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119902         lengths fit in regoff_t; this isn't true if regoff_t is the same
119903         width as size_t.
119904         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119905         (= START + RANGE) instead of RANGE.  This avoids overflow
119906         problems when regoff_t is the same width as size_t.
119907         All callers changed.
119908         (re_search_2_stub): Check for overflow when adding the
119909         sizes of the two strings.
119910         (re_search_stub): Check for overflow when adding START
119911         to RANGE; if it occurs, substitute the extreme value.
119913 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119915         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119917 2005-08-31  Jim Meyering  <jim@meyering.net>
119919         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119920         a pointer-to-const.
119921         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119922         (register_state): Likewise.
119923         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119924         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119925         (group_nodes_into_DFAstates): Likewise.
119927 2005-08-31  Jim Meyering  <jim@meyering.net>
119929         * check-module: Add a FIXME comment.
119931 2005-08-31  Eric Blake  <ebb9@byu.net>
119933         * modules/unistd-safer (Files): Add unistd--.h.
119934         * modules/stdio-safer (Files): Add stdio--.h.
119936 2005-08-31  Derek Price  <derek@ximbiot.com>
119938         * lib/getdelim.c (getdelim): Return EOF on EOF.
119939         Reported by Larry Jones <lawrence.jones@ugs.com>.
119941 2005-08-31  Bruno Haible  <bruno@clisp.org>
119943         Avoid unnecessary diffs in the generated lib/Makefile.am.
119944         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119945         the generated files.
119946         (func_import): Don't set cmd.
119948 2005-08-31  Bruno Haible  <bruno@clisp.org>
119950         * lib/strstr.c: Include <stddef.h>, for NULL.
119951         * lib/strcasestr.c: Likewise.
119952         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119954 2005-08-31  Bruno Haible  <bruno@clisp.org>
119956         * gnulib-tool: New option --macro-prefix.
119957         (func_import): Use macro_prefix.
119958         (import): Handle option --macro-prefix.
119960 2005-08-31  Bruno Haible  <bruno@clisp.org>
119962         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119963         Also use new variables cached_lgpl, cached_libtool.
119965 2005-08-31  Bruno Haible  <bruno@clisp.org>
119967         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119968         always instantiating them.
119970 2005-08-31  Bruno Haible  <bruno@clisp.org>
119972         * gnulib-tool (func_import): Read the previous cached settings
119973         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119974         earlier added by gnulib but are now dropped. Warn when a gnulib file
119975         overwrites a non-gnulib file.
119977 2005-08-31  Bruno Haible  <bruno@clisp.org>
119979         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119980         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119981         projects that don't keep autogenerated files in CVS. Put into
119982         actioncmd only the specified modules, not the transitive closure.
119984 2005-08-31  Bruno Haible  <bruno@clisp.org>
119986         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119987         Create directories that shall be filled.
119988         (import): Don't look for gl_* macros in configure.ac. Recurse across
119989         all directories containing a gnulib-cache.m4 files, if meaningful.
119991 2005-08-31  Bruno Haible  <bruno@clisp.org>
119993         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119994         (import): Set seen_libtool when we see gl_LIBTOOL.
119996 2005-08-31  Bruno Haible  <bruno@clisp.org>
119998         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119999         declaration macro definitions from generated gnulib.m4.
120001 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
120003         * lib/iconvme.h: Add prototype for iconv_alloc.
120005 2005-08-29  Simon Josefsson  <jas@extundo.com>
120007         * lib/iconvme.c: Fix errno.
120009 2005-08-29  Bruno Haible  <bruno@clisp.org>
120011         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
120012         that it works when the directory contains spaces.
120014 2005-08-29  Bruno Haible  <bruno@clisp.org>
120016         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
120018 2005-08-29  Bruno Haible  <bruno@clisp.org>
120020         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
120021         Emit more advice.
120023 2005-08-29  Bruno Haible  <bruno@clisp.org>
120024         and Stepan Kasal  <kasal@ucw.cz>
120026         * check-module: If more parameters are given, check each of them
120027         separately; add more exceptions, as noted by Jim Meyering.
120028         (check_module): New procedure.
120029         (%exempt_header): Now contains all exceptions.
120031 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
120033         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
120035 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120037         * lib/iconvme.c: Split iconv_string into iconv_alloc.
120039 2005-08-28  Bruno Haible  <bruno@clisp.org>
120041         * m4/gnulib-tool.m4: New file.
120043 2005-08-27  Jim Meyering  <jim@meyering.net>
120045         * modules/unistd-safer (Files): Add pipe-safer.c.
120046         * modules/fcntl-safer (Files): Add creat-safer.c.
120048 2005-08-27  Jim Meyering  <jim@meyering.net>
120050         * m4/stdlib-safer.m4: New file.  From coreutils.
120051         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
120052         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
120053         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
120054         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
120055         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
120057 2005-08-27  Jim Meyering  <jim@meyering.net>
120059         * lib/fopen-safer.c: Merge minor changes from coreutils.
120060         * lib/dup-safer.c: Likewise.
120061         * lib/fd-safer.c: Likewise.
120063         Merge from coreutils.
120064         * lib/stdio--.h: New file.
120065         * lib/stdlib--.h: New file.
120066         * lib/mkstemp-safer.c: New file.
120068         GNU tar needs these.
120069         * lib/pipe-safer.c: New file.
120070         * lib/creat-safer.c: New file.
120071         * lib/fcntl--.h (creat): Define to creat_safer.
120072         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
120073         * lib/unistd--.h (pipe): Define to pipe_safer.
120074         * lib/unistd-safer.h: Declare pipe_safer.
120076 2005-08-26  Simon Josefsson  <jas@extundo.com>
120078         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
120079         Haible <bruno@clisp.org>.
120081 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
120083         * lib/regex_internal.h: Remove all references to
120084         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
120085         or better.
120086         (bitset_not, bitset_merge, bitset_not_merge):
120087         (bitset_mask, re_string_allocate, re_string_construct):
120088         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
120089         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
120090         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
120091         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
120092         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120093         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120094         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
120095         (re_acquire_state_context):
120096         Remove unnecessary forward decls.
120097         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
120098         Put __attribute at function definition,
120099         now that the function decl has been removed.
120100         * lib/regex_internal.c (re_string_peek_byte_case):
120101         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
120102         Likewise.
120104 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
120106         * m4/regex.m4: Add AC_PREREQ(2.50).
120107         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
120109 2005-08-25  Simon Josefsson  <jas@extundo.com>
120111         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
120112         __fsetlocking.
120114 2005-08-25  Simon Josefsson  <jas@extundo.com>
120116         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
120117         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
120118         GLIBC specific code.
120120 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120122         Make regex safe for g++.  This fixes one real bug (an "err"
120123         that should have been "*err").  g++ problem reported by
120124         Sam Steingold.
120125         * lib/regex_internal.h (re_calloc): New macro, consistent with
120126         re_malloc etc.  All callers of calloc changed to use re_calloc.
120127         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
120128         not int.  All callers changed.
120129         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
120130         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
120131         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
120132         (find_recover_state): Change "err" to "*err"; this fixes what
120133         appears to be a real bug.
120134         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
120135         versus int.
120137 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120139         * modules/regex (Depends-on): Add malloc, since the code
120140         assumes that !malloc(0) means failure.
120142 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120144         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
120146         alloca modernization/simplification for regex.
120147         * lib/regex.c: Remove portability cruft for alloca.  This no longer
120148         needs to be at the start of the file, and can be moved into
120149         regex_internal.h and simplified.
120150         * lib/regex_internal.h: Include <alloca.h>.
120151         (__libc_use_alloca) [!defined _LIBC]: New macro.
120152         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
120153         now works outside glibc.
120155 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120157         * config/srclist.txt: Add glibc bugs 1241, 1245.
120159 2005-08-25  Jim Meyering  <jim@meyering.net>
120161         * lib/open-safer.c: Include <config.h>.
120162         Otherwise, we'd lose LARGEFILE support in any file using
120163         e.g. "fcntl--.h"
120165 2005-08-25  Bruno Haible  <bruno@clisp.org>
120167         * m4/minmax.m4: Require autoconf 2.52.
120168         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
120169         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
120170         alternatives of translit over the alphabet.
120171         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120173 2005-08-24  Simon Josefsson  <jas@extundo.com>
120175         * tests/test-getpass.c: New file.
120177 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120179         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
120180         for GNU regex features.
120182 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120184         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
120185         * lib/regex.h (regerror): Likewise.
120187         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
120188         requires this.  (The code never needed it.)
120190         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
120191         All uses of recently-renamed identifiers changed to use the new,
120192         POSIX-compliant names.  The code will build and run just fine
120193         without these changes, but it's better to eat our own dog food
120194         and use the standard-conforming names.
120196         * lib/regex.h: Fix a multitude of POSIX name space violations.
120197         These changes have an effect only for programs that define
120198         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
120199         do not change anything for programs compiled in the normal way.
120200         Also, there is no effect on the ABI.
120202         (_REGEX_SOURCE): New macro.
120203         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
120204         defined and _GNU_SOURCE is not; this fixes a name space violation.
120206         Rename the following macros to obey POSIX requirements.
120207         The old names are still visible as macros if _REGEX_SOURCE is defined.
120208         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
120209         RE_BACKSLASH_ESCAPE_IN_LISTS.
120210         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
120211         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
120212         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
120213         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
120214         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
120215         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
120216         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
120217         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
120218         (REG_INTERVALS): renamed from RE_INTERVALS.
120219         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
120220         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
120221         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
120222         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
120223         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
120224         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
120225         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
120226         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
120227         RE_UNMATCHED_RIGHT_PAREN_ORD.
120228         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
120229         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
120230         (REG_DEBUG): renamed from RE_DEBUG.
120231         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
120232         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
120233         unusual, since we can't clash with the POSIX REG_ICASE.
120234         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
120235         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
120236         (REG_NO_SUB): renamed from RE_NO_SUB.
120237         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
120238         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
120239         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
120240         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
120241         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
120242         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
120243         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
120244         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
120245         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
120246         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
120247         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
120248         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
120249         RE_SYNTAX_POSIX_MINIMAL_BASIC.
120250         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
120251         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
120252         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
120253         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
120254         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
120255         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
120256         (REG_FIXED): Renamed from REGS_FIXED.
120257         (REG_NREGS): Renamed from RE_NREGS.
120259         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
120260         of other REG_* macros, since POSIX says the user is allowed to
120261         #undef these macros selectively.
120263         (reg_errcode_t): Update comment stating what other tables need
120264         to be consistent.
120266         Rename the following enum values to obey POSIX requirements.
120267         The old names are still visible as macros.
120268         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
120269         is not defined, since GNU is supposed to be a superset of POSIX as
120270         much as possible, and since we want reg_errcode_t to be a signed
120271         type for implementation consistency.
120272         (_REG_NOERROR): Renamed from REG_NOERROR.
120273         (_REG_NOMATCH): Renamed from REG_NOMATCH.
120274         (_REG_BADPAT): Renamed from REG_BADPAT.
120275         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
120276         (_REG_ECTYPE): Renamed from REG_ECTYPE.
120277         (_REG_EESCAPE): Renamed from REG_EESCAPE.
120278         (_REG_ESUBREG): Renamed from REG_ESUBREG.
120279         (_REG_EBRACK): Renamed from REG_EBRACK.
120280         (_REG_EPAREN): Renamed from REG_EPAREN.
120281         (_REG_EBRACE): Renamed from REG_EBRACE.
120282         (_REG_BADBR): Renamed from REG_BADBR.
120283         (_REG_ERANGE): Renamed from REG_ERANGE.
120284         (_REG_ESPACE): Renamed from REG_ESPACE.
120285         (_REG_BADRPT): Renamed from REG_BADRPT.
120286         (_REG_EEND): Renamed from REG_EEND.
120287         (_REG_ESIZE): Renamed from REG_ESIZE.
120288         (_REG_ERPAREN): Renamed from REG_ERPAREN.
120289         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
120290         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
120291         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
120292         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
120294         (_REG_RE_NAME, _REG_RM_NAME): New macros.
120295         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
120296         changed.  But support the old name if the new one is not defined
120297         and if _REGEX_SOURCE.
120299         Change the following member names in struct re_pattern_buffer.
120300         The old names are still supported if !_REGEX_SOURCE.
120301         The new names are always supported, regardless of _REGEX_SOURCE.
120302         (re_buffer): Renamed from buffer.
120303         (re_allocated): Renamed from allocated.
120304         (re_used): Renamed from used.
120305         (re_syntax): Renamed from syntax.
120306         (re_fastmap): Renamed from fastmap.
120307         (re_translate): Renamed from translate.
120308         (re_can_be_null): Renamed from can_be_null.
120309         (re_regs_allocated): Renamed from regs_allocated.
120310         (re_fastmap_accurate): Renamed from fastmap_accurate.
120311         (re_no_sub): Renamed from no_sub.
120312         (re_not_bol): Renamed from not_bol.
120313         (re_not_eol): Renamed from not_eol.
120314         (re_newline_anchor): Renamed from newline_anchor.
120316         Change the following member names in struct re_registers.
120317         The old names are still supported if !_REGEX_SOURCE.
120318         The new names are always supported, regardless of _REGEX_SOURCE.
120319         (rm_num_regs): Renamed from num_regs.
120320         (rm_start): Renamed from start.
120321         (rm_end): Renamed from end.
120323         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
120324         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
120325         Prepend __ to parameter names.
120327         Undo yesterday's changes.
120329 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120331         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
120332         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
120333         lib/regex.c.
120335 2005-08-24  Jim Meyering  <jim@meyering.net>
120337         Sync from coreutils.
120338         * m4/fcntl-safer.m4: New file.
120340         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
120341         and object files for this module.
120343 2005-08-24  Jim Meyering  <jim@meyering.net>
120345         Sync from coreutils.
120346         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120348 2005-08-24  Jim Meyering  <jim@meyering.net>
120350         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120351         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120353 2005-08-24  Jim Meyering  <jim@meyering.net>
120355         * modules/fcntl-safer: New module.
120356         * modules/fts (Depends-on): Add fcntl-safer.
120357         * MODULES.html.sh (File descriptor based Input/Output):
120358         Add fcntl-safer.
120360 2005-08-24  Bruno Haible  <bruno@clisp.org>
120362         Support for unit test modules.
120363         * modules/README: Mention tests modules.
120364         * modules/TEMPLATE-TESTS: New file.
120365         * gnulib-tool: New options --extract-tests-module, --with-tests and
120366         --tests-base (unused for the moment).
120367         (testsbase, inctests): New variables.
120368         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120369         (func_verify_module): Exclude TEMPLATE-TESTS.
120370         (func_verify_nontests_module, func_verify_tests_module): New functions.
120371         (func_get_dependencies): Add implicit dependency for tests modules.
120372         (func_get_tests_module): New function.
120373         (func_modules_transitive_closure): When --with-tests was specified,
120374         include the unit tests as well, unless explicitly avoided.
120375         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120376         (func_emit_tests_Makefile_am): New function.
120377         (func_create_testdir): When --with-tests was specified, emit a
120378         tests/ directory.
120379         * MODULES.html.sh (Future developments): Update.
120381 2005-08-24  Bruno Haible  <bruno@clisp.org>
120383         * modules/tls-tests: New file.
120384         * tests/test-tls.c: New file, from GNU gettext.
120386 2005-08-24  Bruno Haible  <bruno@clisp.org>
120388         * modules/lock-tests: New file.
120389         * tests/test-lock.c: New file, from GNU gettext.
120391 2005-08-24  Bruno Haible  <bruno@clisp.org>
120393         * lib/lock.h: Add multiple inclusion guard.
120394         * lib/tls.h: Add multiple inclusion guard.
120396 2005-08-24  Bruno Haible  <bruno@clisp.org>
120398         * gnulib-tool: Add support for the --aux-dir option to
120399         --create-testdir, --create-megatestdir, --test, --megatest.
120400         (func_create_testdir, func_create_megatestdir): Optionally emit a
120401         AC_CONFIG_AUX_DIR directive.
120402         (create-testdir, create-megatestdir, test, megatest): Provide a
120403         default value for $auxdir.
120405 2005-08-24  Bruno Haible  <bruno@clisp.org>
120407         * gnulib-tool (import): Use compound statement instead of subshell
120408         where possible.
120410 2005-08-24  Bruno Haible  <bruno@clisp.org>
120412         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120414 2005-08-24  Bruno Haible  <bruno@clisp.org>
120416         * gnulib-tool (func_version): Update.
120418 2005-08-24  Bruno Haible  <bruno@clisp.org>
120420         * gnulib-tool (func_import, func_create_testdir,
120421         func_create_megatestdir): Quote all autoconf macro arguments.
120423 2005-08-24  Bruno Haible  <bruno@clisp.org>
120425         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120426         option --force, because --force causes the aclocal.m4 of each
120427         subdirectory to be newer than the corresponding config.h.in.
120429 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120431         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120432         All contents moved to gl_REGEX.
120433         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120434         assume that it does.
120436 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120438         * lib/regex.h (REG_NOSYS)
120439         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120440         Define, since POSIX requires it as of 2001.
120441         (_REG_ENOSYS)
120442         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120443         New private symbol, used to keep the enum signed in all cases.
120444         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120445         Youngman in
120446         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120448         * lib/regex_internal.c (re_string_skip_chars, register_state):
120449         (calc_state_hash):
120450         Remove forward decls; no longer needed now that we use prototypes.
120451         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120452         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
120453         (clean_state_log_if_needed): Likewise.
120455 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120457         * config/srclist.txt: Add glibc bugs 1231-1233.
120459 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120461         Fix problems reported by Sam Steingold in
120462         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
120463         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
120464         assumed that reg_errcode_t is a signed type, which is not
120465         necessarily true if _XOPEN_SOURCE is not defined.
120466         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
120467         since some compilers warn about it otherwise.
120469 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120471         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
120472         (init_word_char, create_initial_state, duplicate_node_closure):
120473         (fetch_token, peek_token_bracket, build_range_exp):
120474         (build_collating_symbol): Remove forward decls; no longer needed
120475         now that we use prototypes.
120477         * lib/regcomp.c:
120478         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
120479         (re_compile_fastmap_iter, regcomp, regerror, regfree):
120480         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
120481         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
120482         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
120483         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
120484         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
120485         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
120486         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
120487         (build_range_exp, build_collating_symbol, parse_bracket_exp):
120488         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
120489         (build_charclass, build_charclass_op, fetch_number, create_tree):
120490         (create_token_tree, mark_opt_subexp, duplicate_tree):
120491         Use prototypes rather than old-style definitions.
120493         * lib/regex_internal.c:
120494         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
120495         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
120496         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120497         (re_string_reconstruct, re_string_peek_byte_case):
120498         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
120499         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120500         (re_node_set_init_copy, re_node_set_add_intersect):
120501         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120502         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120503         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120504         (re_acquire_state, re_acquire_state_context, register_state):
120505         (create_ci_newstate, create_cd_newstate, free_state):
120506         Likewise.
120507         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
120508         re_search_2):
120509         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
120510         (re_search_internal, prune_impossible_nodes):
120511         (acquire_init_state_context, check_matching, static):
120512         (check_halt_node_context, check_halt_state_context, proceed_next_node):
120513         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
120514         (update_regs, sift_states_backward, build_sifted_states):
120515         (clean_state_log_if_needed, merge_state_array):
120516         (update_cur_sifted_state, add_epsilon_src_nodes):
120517         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
120518         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
120519         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
120520         (find_recover_state, check_subexp_matching_top, transit_state_mb):
120521         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
120522         (check_arrival, check_arrival_add_next_nodes):
120523         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120524         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120525         (check_node_accept_bytes, check_node_accept, extend_buffers):
120526         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
120527         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
120528         (sift_ctx_init):
120529         Likewise.
120531         * lib/regex_internal.h:
120532         (re_string_allocate, re_string_construct, re_string_reconstruct):
120533         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
120534         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
120535         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
120536         (re_string_context_at, re_string_peek_byte_case):
120537         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
120538         is defined, since we now use prototypes always.
120540         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
120541         C89 or better.  All uses removed.
120543 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120545         * config/srclist.txt: Add glibc bugs 1220-1227.
120547 2005-08-20  Jim Meyering  <jim@meyering.net>
120549         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
120550         of unused local, dfa.
120552 2005-08-20  Bruno Haible  <bruno@clisp.org>
120554         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
120556 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120558         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
120559         (re_node_set_insert_last, re_dfa_add_node):
120560         Rename local variables to avoid GCC shadowing warnings.
120562 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120564         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
120565         [defined lint]: Suppress bogus uninitialized-variable warnings.
120567         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
120568         and let the caller return REG_ESPACE if out of space.  This
120569         removes an uninitialied-variable warning with GCC 4.0.1, and also
120570         avoids taking the address of a local variable.  All callers
120571         changed.
120573 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120575         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
120576         $LIBCSRC/posix/regexec.c.
120577         Add glibc bug 1217 for regcomp.c.
120579 2005-08-19  Jim Meyering  <jim@meyering.net>
120581         * lib/regexec.c (proceed_next_node): Redo local variables to
120582         avoid GCC shadowing warnings.
120584 2005-08-18  Bruno Haible  <bruno@clisp.org>
120586         * lib/strstr.c (strstr): Fix return value in multibyte case.
120587         * lib/strcasestr.c (strcasestr): Likewise.
120589 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120591         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120593 2005-08-17  Jim Meyering  <jim@meyering.net>
120595         Make the %s format (seconds since the epoch) work for a negative
120596         number and when used with a zero-padded field width, e.g. %015s.
120598         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
120599         label so that it precedes the code to set `digits'.  Otherwise,
120600         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
120601         print `00-22'.  Now, it prints `-0022', as it should.
120603 2005-08-17  Bruno Haible  <bruno@clisp.org>
120605         * modules/strstr (Files): Add m4/mbrtowc.m4.
120606         (Depends-on): Add mbuiter.
120608 2005-08-17  Bruno Haible  <bruno@clisp.org>
120610         * modules/strcasestr: New file.
120611         * MODULES.html.sh (String handling, based on ANSI C 89): Add
120612         strcasestr.
120614 2005-08-17  Bruno Haible  <bruno@clisp.org>
120616         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
120618 2005-08-17  Bruno Haible  <bruno@clisp.org>
120620         * modules/mbuiter: New file.
120621         * MODULES.html.sh (Extended multibyte and wide character utilities):
120622         Add mbuiter.
120624 2005-08-17  Bruno Haible  <bruno@clisp.org>
120626         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
120627         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
120629 2005-08-17  Bruno Haible  <bruno@clisp.org>
120631         * m4/strcasestr.m4: New file.
120633 2005-08-17  Bruno Haible  <bruno@clisp.org>
120635         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
120636         * lib/strstr.c: Completely rewritten, with multibyte locale support.
120638 2005-08-17  Bruno Haible  <bruno@clisp.org>
120640         * lib/strcasestr.h: New file.
120641         * lib/strcasestr.c: New file.
120643 2005-08-17  Bruno Haible  <bruno@clisp.org>
120645         * lib/strcasecmp.c: Use mbuiter.h.
120647 2005-08-17  Bruno Haible  <bruno@clisp.org>
120649         * lib/mbuiter.h: New file.
120651 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
120653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
120654         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
120655         and gl_GETOPT are both invoked via different paths (as happens
120656         with GNU tar CVS because it uses both argp and getopt), the former
120657         wins.
120659 2005-08-16  Bruno Haible  <bruno@clisp.org>
120661         * modules/tls: New file.
120662         * MODULES.html.sh (Multithreading): Add tls.
120664 2005-08-16  Bruno Haible  <bruno@clisp.org>
120666         * modules/strnlen1: New file.
120667         * MODULES.html.sh (String handling): Add strnlen1.
120669 2005-08-16  Bruno Haible  <bruno@clisp.org>
120671         * modules/strcase (Files): Add m4/mbrtowc.m4.
120672         (Depends-on): Add strnlen1, mbchar.
120674 2005-08-16  Bruno Haible  <bruno@clisp.org>
120676         * modules/mbiter: New file.
120677         * MODULES.html.sh (Extended multibyte and wide character utilities):
120678         Add mbiter.
120680 2005-08-16  Bruno Haible  <bruno@clisp.org>
120682         * modules/mbfile: New file.
120683         * MODULES.html.sh (Extended multibyte and wide character utilities):
120684         Add mbfile.
120686 2005-08-16  Bruno Haible  <bruno@clisp.org>
120688         * modules/mbchar: New file.
120689         * MODULES.html.sh (Extended multibyte and wide character utilities):
120690         New section.
120692 2005-08-16  Bruno Haible  <bruno@clisp.org>
120694         * m4/tls.m4: New file, from GNU gettext.
120696 2005-08-16  Bruno Haible  <bruno@clisp.org>
120698         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120699         always.
120700         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120702 2005-08-16  Bruno Haible  <bruno@clisp.org>
120704         * m4/mbiter.m4: New file.
120706 2005-08-16  Bruno Haible  <bruno@clisp.org>
120708         * m4/mbfile.m4: New file.
120710 2005-08-16  Bruno Haible  <bruno@clisp.org>
120712         * m4/mbchar.m4: New file.
120714 2005-08-16  Bruno Haible  <bruno@clisp.org>
120716         * lib/tls.h: New file, from GNU gettext.
120717         * lib/tls.c: New file, from GNU gettext.
120719 2005-08-16  Bruno Haible  <bruno@clisp.org>
120721         * lib/strnlen1.h: New file.
120722         * lib/strnlen1.c: New file.
120724 2005-08-16  Bruno Haible  <bruno@clisp.org>
120726         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120727         (mbi_init): Update.
120728         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120729         NUL byte, not after it.
120731 2005-08-16  Bruno Haible  <bruno@clisp.org>
120733         * lib/strcase.h (strcasecmp): Add note in comments.
120734         * lib/strncasecmp.c: Use code from strcasecmp.c.
120735         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120736         (strcasecmp): Work correctly in multibyte locales.
120738 2005-08-16  Bruno Haible  <bruno@clisp.org>
120740         * lib/mbiter.h: New file.
120742 2005-08-16  Bruno Haible  <bruno@clisp.org>
120744         * lib/mbfile.h: New file.
120746 2005-08-16  Bruno Haible  <bruno@clisp.org>
120748         * lib/mbchar.h: New file.
120749         * lib/mbchar.c: New file.
120751 2005-08-16  Bruno Haible  <bruno@clisp.org>
120753         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120754         the valid ones. Makes the comparison operations transitive:
120755         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120756         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120758 2005-08-15  Simon Josefsson  <jas@extundo.com>
120760         * modules/ssize_t (License): Change to 'unlimited'.
120762         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120764 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120766         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120767         Add comments for each pending glibc patch.
120769 2005-08-15  Bruno Haible  <bruno@clisp.org>
120771         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120772         __cplusplus is defined.
120774 2005-08-14  Jim Meyering  <jim@meyering.net>
120776         Sync from coreutils.
120778         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120779         Use the hash-table-based cycle-detection code not just when
120780         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120781         Reported by James Youngman in
120782         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120783         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120784         FTS_TIGHT_CYCLE_CHECK.
120785         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120786         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120787         once again.
120788         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120789         * lib/fts.c (fd_safer): Remove decl.
120790         Include fcntl--.h rather than unistd-safer.h
120791         (fts_safe_changedir): Don't call fd_safer; no longer needed
120792         now that we include fcntl--.h.
120794 2005-08-12  Simon Josefsson  <jas@extundo.com>
120796         * modules/getndelim2: Use ssize_t module.
120797         * modules/getnline: Likewise.
120798         * modules/safe-read: Likewise.
120799         * modules/xreadlink: Likewise.
120801         * modules/ssize_t: New file.
120803 2005-08-12  Simon Josefsson  <jas@extundo.com>
120805         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120807 2005-08-12  Simon Josefsson  <jas@extundo.com>
120809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120810         ssize_t.
120812 2005-08-12  Simon Josefsson  <jas@extundo.com>
120814         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120815         readline, getdelim and check_version.
120816         (Support for systems lacking ISO C 99: Sizes of integer types):
120817         Add size_max.
120819 2005-08-12  Bruno Haible  <bruno@clisp.org>
120821         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120823 2005-08-11  Simon Josefsson  <jas@extundo.com>
120825         * modules/readline: New file.
120827         * modules/strnlen (Files): Add strnlen.h.
120829 2005-08-11  Simon Josefsson  <jas@extundo.com>
120831         * m4/readline.m4: New file.
120833 2005-08-11  Simon Josefsson  <jas@extundo.com>
120835         * lib/readline.h, readline.c: New file.
120837 2005-08-11  Simon Josefsson  <jas@extundo.com>
120839         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120840         gl_AVOID.
120842 2005-08-11  Bruno Haible  <bruno@clisp.org>
120844         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120846 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120848         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120850 2005-08-10  Simon Josefsson  <jas@extundo.com>
120852         * tests/test-iconvme.c: New file.
120854 2005-08-10  Simon Josefsson  <jas@extundo.com>
120856         * m4/strnlen.m4: New file.
120858         * m4/strndup.m4: Don't check for strnlen declaration, done in
120859         strnlen.m4.
120861 2005-08-10  Simon Josefsson  <jas@extundo.com>
120863         * lib/strndup.c: Use strnlen.h.
120865         * lib/strnlen.h: New file.
120867 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120869         * README: Typos.
120871 2005-08-02  Simon Josefsson  <jas@extundo.com>
120873         * modules/readline: New file.
120875 2005-08-02  Simon Josefsson  <jas@extundo.com>
120877         * modules/getdelim: New file.
120879         * modules/getline: Rewrite, don't use getndelim2.
120881 2005-08-02  Simon Josefsson  <jas@extundo.com>
120883         * m4/getline.m4: Separate out getdelim stuff into separate module.
120885         * m4/getdelim.m4: New file.
120887 2005-08-02  Simon Josefsson  <jas@extundo.com>
120889         * lib/getline.h, getline.c: Rewrite.
120891         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120893 2005-07-31  Bruno Haible  <bruno@clisp.org>
120895         * lib/lock.h (gl_lock_initializer): New macro.
120896         (gl_lock_define_initialized): Use it.
120897         (gl_rwlock_initializer): New macro.
120898         (gl_rwlock_define_initialized): Use it.
120899         (gl_recursive_lock_initializer): New macro.
120900         (gl_recursive_lock_define_initialized): Use it.
120902 2005-07-30  Karl Berry  <karl@gnu.org>
120904         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120905         Report from Ben Pfaff, regarding getopt.
120907 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120909         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120910         normal way.
120911         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120912         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120913         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120914         (gl_GETOPT): Use the new macros.  Most of the implementation
120915         is moved to the new macros.  This is for programs like Emacs
120916         that don't want all the functionality of gl_GETOPT.
120918 2005-07-26  Bruno Haible  <bruno@clisp.org>
120920         * m4/lock.m4: Update from GNU gettext.
120922 2005-07-26  Bruno Haible  <bruno@clisp.org>
120924         * lib/lock.h: Update from GNU gettext.
120925         * lib/lock.c: Update from GNU gettext.
120927 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120929         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120930         obsolescent AC_TRY_RUN.  Include the default includes files, for
120931         'exit'.
120933 2005-07-24  Bruno Haible  <bruno@clisp.org>
120935         * modules/visibility: New file.
120936         * MODULES.html.sh (Misc): Add visibility.
120938 2005-07-24  Bruno Haible  <bruno@clisp.org>
120940         * m4/visibility.m4: New file.
120942 2005-07-24  Bruno Haible  <bruno@clisp.org>
120944         * doc/visibility.texi: New file.
120946 2005-07-22  Bruno Haible  <bruno@clisp.org>
120948         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120949         $(ALLOCA_H), redundant through BUILT_SOURCES.
120950         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120951         redundant through BUILT_SOURCES.
120952         * modules/byteswap (Makefile.am): Remove explicit dependency on
120953         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120954         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120955         $(FNMATCH_H), redundant through BUILT_SOURCES.
120956         * modules/getopt (Makefile.am): Remove explicit dependency on
120957         $(GETOPT_H), redundant through BUILT_SOURCES.
120958         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120959         redundant through BUILT_SOURCES.
120960         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120961         redundant through BUILT_SOURCES.
120962         * modules/stdbool (Makefile.am): Remove explicit dependency on
120963         $(STDBOOL_H), redundant through BUILT_SOURCES.
120964         * modules/stdint (Makefile.am): Remove explicit dependency on
120965         $(STDINT_H), redundant through BUILT_SOURCES.
120966         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120967         Remove explicit dependency on $(SYSEXITS_H).
120968         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120970 2005-07-18  Simon Josefsson  <jas@extundo.com>
120972         * lib/check-version.c (check_version): Accept identical versions too.
120974 2005-07-18  Bruno Haible  <bruno@clisp.org>
120976         * modules/lock: New file.
120977         * MODULES.html.sh (Multithreading): New section.
120979 2005-07-18  Bruno Haible  <bruno@clisp.org>
120981         * m4/lock.m4: New file, from GNU gettext.
120983 2005-07-18  Bruno Haible  <bruno@clisp.org>
120985         * lib/lock.h: New file, from GNU gettext.
120986         * lib/lock.c: New file, from GNU gettext.
120988 2005-07-18  Bruno Haible  <bruno@clisp.org>
120990         * lib/lock.h (gl_once_t): New type.
120991         (gl_once_define, gl_once): New macros.
120992         * lib/lock.c (fresh_once): New variable.
120993         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120994         functions.
120996 2005-07-16  Simon Josefsson  <jas@extundo.com>
120998         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120999         workaround, suggested by Bruno.
121001 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121003         * modules/xalloc (Depends-on): Add xalloc-die.
121004         * modules/xvasprintf (Depends-on): Add xalloc-die.
121006 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121008         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
121009         with a minor change.
121011 2005-07-15  Bruno Haible  <bruno@clisp.org>
121013         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
121014         When using lib/poll.c, define poll as rpl_poll.
121016 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
121018         * modules/argp (Depends-on): Remove unlocked-io.
121020 2005-07-14  Derek Price  <derek@ximbiot.com>
121022         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
121023         for glob symlink bug.
121025 2005-07-14  Bruno Haible  <bruno@clisp.org>
121027         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
121028         Instead, test for *_unlocked function declarations directly.
121030 2005-07-11  Simon Josefsson  <jas@extundo.com>
121032         * modules/size_max: New file.
121034         * modules/xsize: Depend on size_max module for size_max.m4.
121036 2005-07-11  Simon Josefsson  <jas@extundo.com>
121038         * lib/size_max.h: New file.
121040 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
121042         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
121043         copyright symbol and the year.
121044         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
121045         (version_etc_va): Use parameterized copyright notice.
121046         Reword to conform to the current GNU coding standards.
121048 2005-07-11  Karl Berry  <karl@gnu.org>
121050         * doc/gnulib.texi (Quoting): new node.
121051         (Initial import): more info, from Patrice.
121053 2005-07-11  Bruno Haible  <bruno@clisp.org>
121055         * gnulib-tool (func_usage): Document option --avoid.
121056         (Command line options): Handle --avoid.
121057         (func_acceptable): New function.
121058         (func_modules_transitive_closure): Use it.
121060 2005-07-11  Bruno Haible  <bruno@clisp.org>
121062         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
121063         Reported by Jim Meyering.
121065 2005-07-10  Bruno Haible  <bruno@clisp.org>
121067         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
121068         Needed when size_t is smaller than 'unsigned int'.
121069         Reported by Paul Eggert.
121071 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121073         * modules/argp (Depends-on): Add unlocked-io
121075 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121077         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
121078         block of defines.
121080 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
121082         * config/srclist.txt: Comment out regcomp.c, since we have a porting
121083         fix now.
121085 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
121086         and Paul Eggert  <eggert@cs.ucla.edu>
121088         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
121089         in wint_t, not wchar_t.  Remove now-unnecessary cast.
121091 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121093         * modules/regex (Files): Add lib/regex_internal.c,
121094         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
121095         (Depends-on): Add extensions.
121096         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
121098 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121100         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
121101         pathconf.
121102         * m4/same.m4 (gl_SAME): Likewise.
121103         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
121105         * m4/regex.m4: Adjust to new libc regex implementation.
121106         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
121107         all the .c and .h parts of (the new) regex.
121108         Quote the m4 stuff better.
121109         Check for RE_ICASE bug of old gnulib.
121110         Check for REG_STARTEND of recent libc.
121111         Rename local variables from jm_* to gl_*.
121112         Quote operand of "test -f".
121113         Say "recent enough" version of libc, not "version 2".
121114         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
121115         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
121116         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
121117         Remove check for btowc, isascii.
121118         Require AM_LANGINFO_CODESET.
121120 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121122         * lib/regex.c, regex.h: Sync from libc.
121123         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
121124         * lib/regexec.c:
121125         New files, synced from libc, except that regex_internal.h
121126         currently has a small porting fix.
121128 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121130         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
121131         regex_internal.c, regexec.c.
121132         Add regex_internal.h too, but as a comment, since the libc version
121133         is currently broken in gnulib mode.
121135 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
121137         Support programs like Emacs that use gnulib but not gettext.
121138         * MODULES.html.sh (Internationalization functions): Add gettext-h.
121139         * modules/gettext-h: New file.
121140         * modules/gettext (Files): Remove lib/gettext.h.
121141         (Depends-on): Add gettext-h.
121142         (Makefile.am): Remove lib_SOURCES.
121143         * modules/argmatch, modules/c-stack, modules/closeout:
121144         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
121145         * modules/execute, modules/file-type, modules/getaddrinfo:
121146         * modules/getopt, modules/human, modules/javacomp:
121147         * modules/javaexec, modules/mkdir-p, modules/obstack:
121148         * modules/openat, modules/pagealign_alloc, modules/pipe:
121149         * modules/quotearg, modules/regex, modules/rpmatch:
121150         * modules/unicodeio, modules/userspec, modules/version-etc:
121151         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
121152         * modules/xsetenv:
121153         Depend on gettext-h, not gettext.
121155 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
121157         * gnulib-tool (func_import): Add support for 'public domain' license.
121158         * modules/alloca, modules/atexit, modules/memmove:
121159         Now public domain, not GPL.
121160         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
121161         * modules/realloc, modules/strerror, modules/strtod:
121162         Now LGPL, not GPL.
121164 2005-07-05  Bruno Haible  <bruno@clisp.org>
121166         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
121167         autoconf CVS. Needed for mingw.
121169 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121171         Remove the dependency of the strftime module on the tzset module.
121172         * modules/strftime (Depends-on): Remove dependency on tzset.
121174 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121176         Remove the dependency of the strftime module on the tzset module.
121177         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
121178         gl_FUNC_TZSET_CLOBBER.
121180 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121182         Remove the dependency of the strftime module on the tzset module.
121183         * lib/strftime.c (my_strftime)
121184         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
121185         Copy the input structure, to work around some of the bug with
121186         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
121187         Solaris releases, you should also use the tzset module, but we won't
121188         require it as a dependency any more since we don't want LGPLed code
121189         to depend on GPLed code.
121191 2005-07-02  Jim Meyering  <jim@meyering.net>
121193         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
121194         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
121195         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
121196         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
121198 2005-07-02  Jim Meyering  <jim@meyering.net>
121200         * lib/backupfile.c (backup_args): Change a `0' to NULL.
121202 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
121204         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
121205         declares only 'struct timespec;' (!).
121207 2005-07-01  Jim Meyering  <jim@meyering.net>
121209         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
121210         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
121211         * lib/save-cwd.c, tempname.c:
121212         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
121213         and don't include <sys/file.h>).
121215 2005-06-29  Jim Meyering  <jim@meyering.net>
121217         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
121218         type name.  Use the variable name instead.
121219         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
121220         Likewise.
121222 2005-06-28  Simon Josefsson  <jas@extundo.com>
121224         * modules/check-version (Files): Add check-version.m4.
121226 2005-06-28  Simon Josefsson  <jas@extundo.com>
121228         * m4/check-version.m4: New file, suggested by Jim Meyering
121229         <jim@meyering.net>.
121231 2005-06-28  Simon Josefsson  <jas@extundo.com>
121233         * lib/check-version.h, lib/check-version.c: New files.
121235 2005-06-28  Simon Josefsson  <jas@extundo.com>
121237         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
121238         collision with global variable.  Better indentation.  Don't
121239         increment buffer pointer beyond buffer end.  Based on comments
121240         from Paul Eggert <eggert@cs.ucla.edu>.
121242         * lib/base64.h: Indent.
121244 2005-06-28  Simon Josefsson  <jas@extundo.com>
121246         * doc/gnulib.texi (Library version handling): New section.
121248 2005-06-28  Jim Meyering  <jim@meyering.net>
121250         * check-module (find_included_lib_files): Hard-code another
121251         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
121252         but modules/fts-lgpl (correctly) does not list those files.
121254         * modules/canonicalize (Files): Add lib/pathmax.h.
121256 2005-06-25  Simon Josefsson  <jas@extundo.com>
121258         * modules/check-version: New file.
121260 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
121262         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
121263         initializer of struct addrinfo, as an indication that we don't
121264         care how many members the structure has.
121266 2005-06-24  Derek Price  <derek@ximbiot.com>
121267         and Bruno Haible  <bruno@clisp.org>
121269         Remove stat module & update lstat.
121270         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
121271         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
121272         * m4/stat.m4: Remove this file.
121274 2005-06-24  Derek Price  <derek@ximbiot.com>
121275         and Bruno Haible  <bruno@clisp.org>
121277         Remove stat module & update lstat.
121278         * lib/stat.c: Remove this file...
121279         (slash_aware_lstat): ...moving this content and its support...
121280         * lib/lstat.c (rpl_lstat): ...into here.
121281         * lib/lstat.h: New file.
121283 2005-06-24  Derek Price  <derek@ximbiot.com>
121284         and Bruno Haible  <bruno@clisp.org>
121286         Remove stat module & update lstat.
121287         * config/srclist.txt (libc sources): Remove stat.
121289 2005-06-24  Derek Price  <derek@ximbiot.com>
121290         and Bruno Haible  <bruno@clisp.org>
121292         Remove stat module & update lstat.
121293         * MODULES.html.sh (stat): Remove.
121294         * MODULES.html: Regenerated.
121295         * modules/lstat (Description): Correct function name.
121296         (Files): Add "lstat.h".
121297         (Depends-on): Remove stat, add xalloc, stat-macros.
121298         * modules/stat: Remove this file.
121299         (Include): Add "lstat.h", remove <sys/stat.h>.
121301 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
121303         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
121304         (ranged_convert): Don't save conversion in a temporary struct.
121305         This causes a warning with GCC 4.0.0, and anyway in the typical
121306         case it's not worth the extra 100 bytes or so of code.
121307         (ranged_convert, __mktime_internal): When calling a function via a
121308         pointer P, use P () rather than (*P) (), as we now assume C89 or
121309         better.
121311 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121313         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
121314         "who -r" failed to give output.  Problem reported by Tim Waugh.
121316         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
121317         (xcalloc): Use it to avoid needless tests.
121318         Problem reported by Jim Meyering.
121320 2005-06-20  Derek Price  <derek@ximbiot.com>
121322         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
121323         unnecessary for Autoconfs > 2.59c.
121325 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121327         * lib/argp.h (__option_is_short): Check upper limit of
121328         __key. Isprint() requires its argument to have the value
121329         of an unsigned char or EOF.
121331 2005-06-16  Jim Meyering  <jim@meyering.net>
121333         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
121334         when either N or S is zero.
121336 2005-06-16  Derek Price  <derek@ximbiot.com>
121338         * m4/bison.m4: Declare YACC & YFLAGS precious.
121340 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121342         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121343         multibyte string or pattern, fall back on unibyte matching.
121344         Problem reported by James Youngman.
121346 2005-06-08  Bruno Haible  <bruno@clisp.org>
121348         * modules/csharpcomp: New file.
121349         * MODULES.html.sh (C#): Add csharpcomp.
121351 2005-06-08  Bruno Haible  <bruno@clisp.org>
121353         * m4/csharpcomp.m4: New file, from GNU gettext.
121355 2005-06-08  Bruno Haible  <bruno@clisp.org>
121357         * lib/csharpcomp.h: New file, from GNU gettext.
121358         * lib/csharpcomp.c: New file, from GNU gettext.
121359         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121361 2005-06-08  Bruno Haible  <bruno@clisp.org>
121363         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121364         warning on mingw.
121366 2005-06-07  Derek Price  <derek@ximbiot.com>
121368         Sync from CVS.
121369         * lib/glob_.h: Indent nested #ifdef.
121371 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121373         Sync from coreutils.
121374         Use "file name" when talking about file names, instead of "filename"
121375         or "path", as per the GNU coding standards.
121376         * lib/mkdir-p.c: Renamed from makepath.c.
121377         (make_dir_parents): Renamed from make_path.  All callers changed.
121378         * lib/mkdir-p.h: Likewise.  All includers changed.
121379         * lib/filenamecat.c: Renamed from path-concat.c.
121380         (file_name_concat): Renamed from path_concat.  All callers changed.
121381         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121382         * lib/filenamecat.h: Likewise.  All includers changed.
121383         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121384         in comments or local variable names.
121385         * lib/basename.c: Likewise.
121386         * lib/canonicalize.c, canonicalize.h: Likewise.
121387         * lib/dirname.c, dirname.h: Likewise.
121388         * lib/euidaccess.c: Likewise.
121389         * lib/exclude.c: Likewise
121390         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121391         * lib/fsusage.c, fsuage.h: Likewise.
121392         * lib/fts.c, fts_.h: Likewise.
121393         * lib/getcwd.c: Likewise.
121394         * lib/getloadavg.c: Likewise.
121395         * lib/mkstemp.c: Likewise.
121396         * lib/mountlist.c, mountlist.h: Likewise.
121397         * lib/openat.c, openat.h: Likewise.
121398         * lib/readlink-stub.c: Likewise.
121399         * lib/readutmp.c, readutmp.h: Likewise.
121400         * lib/rename.c: Likewise.
121401         * lib/rmdir.c: Likewise.
121402         * lib/same.c: Likewise.
121403         * lib/savedir.c: Likewise.
121404         * lib/stripslash.c: Likewise.
121405         * lib/tempname.c: Likewise.
121406         * lib/xreadlink.c: Likewise.
121407         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121408         All uses changed.
121409         * lib/exclude.h: Likewise.
121411         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121412         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121413         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121414         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121415         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121416         files have been getting away with it for years (MORE/BSD 4.3
121417         is extinct now).
121418         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121419         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121421         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121422         Define to 256, not 255, as per modern POSIX.
121424 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121426         Sync from coreutils.
121427         Use "file name" when talking about file names, instead of "filename"
121428         or "path", as per the GNU coding standards.
121429         * MODULES.html.sh: mkdir-p renamed from makepath.
121430         filenamecat renamed from path-concat.
121431         * modules/filenamecat: Renamed from modules/path-concat.
121432         (Files): filenamecat.h and filenamecat.c renamed from
121433         path-concat.h and path-concat.c.
121434         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121435         (Include): filenamecat.h, not path-concat.h.
121436         * modules/mkdir-p: Renamed from modules/makepath.
121437         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121438         makepath.c.
121439         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121440         (Include): mkdir-p.h, not makepath.h.
121442 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121444         Sync from coreutils.
121445         * m4/mkdir-p.m4: Renamed from makepath.m4.
121446         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121447         Rename files from makepath.c to mkdir-p.c, and from
121448         makepath.h to mkdir-p.h.
121449         * m4/filenamecat.m4: Renamed from path-concat.m4.
121450         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121451         Rename files from path-concat.c to filenamecat.c,
121452         and from path-concat.h to filenamecat.h.
121453         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
121454         "file name" in local variables or comments.
121455         * m4/rename.m4: Likewise.
121457 2005-06-01  Bruno Haible  <bruno@clisp.org>
121459         * modules/csharpexec: New file.
121460         * MODULES.html.sh (C#): New section.
121462 2005-06-01  Bruno Haible  <bruno@clisp.org>
121464         * m4/csharp.m4: New file, from GNU gettext.
121465         * m4/csharpexec.m4: New file, from GNU gettext.
121467 2005-06-01  Bruno Haible  <bruno@clisp.org>
121469         * lib/csharpexec.h: New file, from GNU gettext.
121470         * lib/csharpexec.c: New file, from GNU gettext.
121471         * lib/csharpexec.sh.in: New file, from GNU gettext.
121473 2005-05-31  Derek Price  <derek@ximbiot.com>
121474             Paul Eggert  <eggert@cs.ucla.edu>
121476         Sync from cvs.
121477         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121479 2005-05-31  Derek Price  <derek@ximbiot.com>
121480             Paul Eggert  <eggert@cs.ucla.edu>
121482         Sync from cvs.
121483         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121485 2005-05-29  Derek Price  <derek@ximbiot.com>
121487         * config/srclist.txt (glob_.h, glob.c): Add these files.
121489 2005-05-29  Derek Price  <derek@ximbiot.com>
121491         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
121492         * modules/glob: New file.
121493         * modules/getlogin_r: Add link to POSIX spec in description.
121495 2005-05-29  Derek Price  <derek@ximbiot.com>
121496             Paul Eggert  <eggert@cs.ucla.edu>
121498         * m4/glob.m4: New file.
121500 2005-05-29  Derek Price  <derek@ximbiot.com>
121501             Paul Eggert  <eggert@cs.ucla.edu>
121503         * lib/glob_.h, lib/glob.c: New files.
121505 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121507         * modules/fts (Files): Remove m4/inttypes-pri.m4.
121508         * modules/fts-lgpl (Depends-on): Remove gettext.
121510 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121512         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
121513         and don't require gt_INTTYPES_PRI.
121515 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121517         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
121519         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
121520         the configuration hassle isn't worth it.
121521         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
121522         (LONGEST_MODIFIER, PRIuMAX): Remove.
121524 2005-05-27  Bruno Haible  <bruno@clisp.org>
121526         * lib/getlogin_r.h: Remove second include of <stddef.h>.
121528 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
121530         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
121531         _POSIX_PTHREAD_SEMANTICS for Solaris.
121533 2005-05-25  Derek Price  <derek@ximbiot.com>
121535         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
121537 2005-05-25  Derek Price  <derek@ximbiot.com>
121538             Paul Eggert  <eggert@cs.ucla.edu>
121540         * modules/getlogin_r, m4/getlogin_r.m4: New files.
121541         * lib/getlogin_r.c, getlogin_r.h: New files.
121543 2005-05-25  Bruno Haible  <bruno@clisp.org>
121544             Derek Price  <derek@ximbiot.com>
121546         * lib/getlogin_r.h: Simplify API documentation.
121548 2005-05-23  Derek Price  <derek@ximbiot.com>
121550         * modules/minmax (Files): Add m4/minmax.m4.
121551         (configure.ac): Add gl_MINMAX.
121553 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
121555         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
121556         so that unistd-safer.h (GPL'ed code) need not be included.
121558 2005-05-22  Bruno Haible  <bruno@clisp.org>
121560         * m4/minmax.m4: New file.
121561         Based on a patch by Derek Price <derek@ximbiot.com>.
121563 2005-05-22  Bruno Haible  <bruno@clisp.org>
121565         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
121566         (INT64_MIN): Fix definition.
121567         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
121569         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
121570         NEED_SIGNED_INT_TYPES.
121572         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
121573         HAVE_SYSTEM_INTTYPES.
121575 2005-05-22  Bruno Haible  <bruno@clisp.org>
121577         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
121578         Also include <sys/param.h> if it defines MIN, MAX.
121579         Based on a patch by Derek Price <derek@ximbiot.com>.
121581 2005-05-21  Jim Meyering  <jim@meyering.net>
121583         * modules/fts (Files): Add m4/inttypes-pri.m4.
121584         (Depends-on): Add lstat and remove gettext.  Alphabetize.
121586 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121588         New fts module.
121589         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121590         (setup_dir, free_dir): New functions.
121591         (enter_dir, leave_dir): Define trivial
121592         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121593         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121594         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121595         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121596         Move to fts-cycle.c.
121597         (fts_open): Use setup_dir.
121598         (fts_close): Use free_dir.
121599         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
121600         This adds a label and some gotos, but the alternatives were messier.
121601         Check for memory allocation failure when entering a dir.
121602         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
121603         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
121604         (FTS): New member fts_cycle, that is a union that contains the
121605         old active_dir_ht and cycle_state.  All uses changed to mention
121606         fts_cycle.ht and fts_cycle.state.
121607         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
121608         fts.c, with the following changes:
121609         (setup_dir, free_dir): New functions.
121610         (enter_dir): Now returns bool.  Return true if successful, false
121611         if memory exhausted.  All callers changed.
121612         Do not bother partly cleaning up on
121613         memory allocation failure; that is free_dir's job.
121614         However, free ad if hash_insert fails, to avoid memory leak.
121615         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
121616         fts->fts_options to see which union member to use.
121618 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
121621         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
121623 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121625         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
121627 2005-05-20  Jim Meyering  <jim@meyering.net>
121629         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
121630         Now a macro, to pacify GCC.
121632 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121634         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
121635         of -1.
121637 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121639         * lib/chown.c (rpl_chown): Return -1 on failure.
121641 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121643         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
121644         Don't check for stddef.h.
121645         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
121646         don't use its results.
121647         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
121648         since we include them unconditionally.  Don't require
121649         AM_STDBOOL_H, since stdbool is a prerequisite.
121650         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
121651         since we assume C89 or better.
121652         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
121653         as we don't use their results.
121654         Don't check for fchdir, memmove, memset, strrchr, as we use
121655         them unconditionally.
121656         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
121657         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
121659 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121661         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121662         Include <stddef.h> unconditionally, since we assume C89 now.
121663         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121664         * lib/fts.c: Include fts_.h first, to check interface.
121665         Do not include intprops.h; no longer needed.
121666         Include cycle-check.h and hash.h, since fts_.h no longer does.
121667         Remove unnecessary casts of closedir to void.
121668         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121669         decide whether to decrement nlinks.
121670         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121671         (FTS): Use struct hash_table * instead of Hash_table, so that
121672         we no longer need to include hash.h here.
121674 2005-05-18  Jim Meyering  <jim@meyering.net>
121676         * modules/dirfd (License): Change to LGPL.  Most of the code
121677         is already in the public domain.
121679 2005-05-18  Jim Meyering  <jim@meyering.net>
121681         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121682         Reported by Yoann Vandoorselaere.
121684 2005-05-17  Jim Meyering  <jim@meyering.net>
121686         * m4/fts.m4: New file, from coreutils.
121688 2005-05-17  Jim Meyering  <jim@meyering.net>
121690         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121692 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121694         Sync from coreutils.
121695         * m4/unlinkdir.m4: New file.
121697 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121699         Sync from coreutils.
121700         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121701         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121702         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121703         White space changes only.
121704         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121705         special.
121706         * lib/yesno.c: Include getline.h, not ctype.h.
121707         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121708         Use getline to remove arbitrary restriction on response length.
121710 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121712         * config/srclist-update: Spell out "Street" in FSF postal
121713         mail address; this is the style the FSF seems to prefer.
121715         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121716         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121717         this updates FSF postal mail address.
121719         Sync from coreutils.
121720         * modules/unlinkdir: New file.
121721         * modules/yesno (Depends-on): Add getline.
121722         * MODULES.html.sh (File system functions): Add unlinkdir.
121724 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121726         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121727         lib/strsep.h:
121728         Change the initial comment to refer to GPL, not LGPL.
121729         gnulib-tool will change it to LGPL as needed.
121731         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121732         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121733         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121734         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121735         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121736         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121737         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121738         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121739         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121740         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121741         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121742         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121743         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121744         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121745         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121746         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121747         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121748         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121749         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121750         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121751         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121752         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121753         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121754         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121755         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121756         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121757         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121758         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121759         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121760         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121761         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121762         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121763         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121764         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121765         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121766         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121767         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121768         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121769         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121770         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121771         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121772         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121773         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121774         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121775         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121776         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121777         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121778         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121779         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121780         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121781         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121782         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121783         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121784         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121785         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121786         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121787         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121788         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121789         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121790         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121791         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121792         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121793         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121794         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121795         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121796         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121797         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121798         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121799         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121800         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121801         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121802         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121803         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121804         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121805         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121806         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121807         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121808         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121809         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121810         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121811         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121812         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121813         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121814         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121815         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121816         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121817         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121818         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121819         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121820         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121821         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121822         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121823         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121824         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121825         lib/yesno.c, lib/yesno.h:
121826         Update FSF postal mail address.
121828 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121830         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121831         tests/test-memmem.c, tests/test-stpncpy.c:
121832         Update FSF postal mail address.
121834 2005-05-13  Bruno Haible  <bruno@clisp.org>
121836         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121837         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121838         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121839         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121840         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121841         Add support for 64-bit integers in the MSVC compiler.
121843 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121845         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121847 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121849         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121851 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121853         * doc/getdate.texi (General date syntax): Don't say that date
121854         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121855         Problem reported by Nic Ferrier.
121857 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121859         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121860         specified in ai_socktype. Fix invalid ai_protocol
121861         check. ai_protocol is usually set to 0 or depending on
121862         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121863         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121864         ai_socktype / ai_protocol in the returned addrinfo structure.
121866 2005-05-10  Simon Josefsson  <jas@extundo.com>
121868         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121869         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121871 2005-05-10  Karl Berry  <karl@gnu.org>
121873         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121874         (from http://www.gnu.org/licenses).
121875         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121876         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121877         fdl.texi suffices.
121879 2005-05-10  Karl Berry  <karl@gnu.org>
121881         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121882         (COPYING.DOC): remove.
121884         * config/srclist-update: new FSF address.
121886 2005-05-10  Derek Price  <derek@ximbiot.com>
121888         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121889         possible.
121891 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121892             Bruno Haible  <bruno@clisp.org>
121894         * modules/inet_ntop: New file.
121895         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121896         inet_ntop.
121898 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121899             Bruno Haible  <bruno@clisp.org>
121901         * m4/inet_ntop.m4: New file.
121903 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121904             Bruno Haible  <bruno@clisp.org>
121906         * lib/inet_ntop.h: New file.
121907         * lib/inet_ntop.c: New file, from glibc with modifications.
121909 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121911         * modules/time_r (License): Change to LGPL.
121912         * modules/extensions (License): Change to LGPL.  Actually,
121913         the license is more permissive than that, but currently gnulib-tool
121914         doesn't know how to handle more-permissive licenses.
121916         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121917         Problem reported by Dave Love.
121919 2005-05-08  Jim Meyering  <jim@meyering.net>
121921         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121922         blank.
121924 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121926         * modules/argmatch (Depends-on): Add stdbool.
121927         * modules/backupfile (Depends-on): Likewise.
121928         * modules/chdir-long (Depends-on): Likewise.
121929         * modules/closeout (Depends-on): Likewise.
121930         * modules/cycle-check (Depends-on): Likewise.
121931         * modules/dirname (Depends-on): Likewise.
121932         * modules/fnmatch (Depends-on): Likewise.
121933         * modules/fsusage (Depends-on): Likewise.
121934         * modules/fwriteerror (Depends-on): Likewise.
121935         * modules/getcwd (Depends-on): Likewise.
121936         * modules/getloadavg (Depends-on): Likewise.
121937         * modules/hard-locale (Depends-on): Likewise.
121938         * modules/makepath (Depends-on): Likewise.
121939         * modules/mountlist (Depends-on): Likewise.
121940         * modules/nanosleep (Depends-on): Likewise.
121941         * modules/posixtm (Depends-on): Likewise.
121942         * modules/quotearg (Depends-on): Likewise.
121943         * modules/readtokens (Depends-on): Likewise.
121944         * modules/readtokens0 (Depends-on): Likewise.
121945         * modules/readutmp (Depends-on): Likewise.
121946         * modules/save-cwd (Depends-on): Likewise.
121947         * modules/strftime (Depends-on): Likewise.
121948         * modules/userspec (Depends-on): Likewise.
121949         * modules/utimecmp (Depends-on): Likewise.
121950         * modules/xgetcwd (Depends-on): Likewise.
121951         * modules/xnanosleep (Depends-on): Likewise.
121952         * modules/xstrtod (Depends-on): Likewise.
121953         * modules/yesno (Depends-on): Likewise.
121955 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121957         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121958         needless checks.
121960 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121962         Merge from coreutils.  Among other things,
121963         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121964         * lib/fd-safer.c: New file.
121965         * lib/fcntl-safer.h, open-safer.c: Remove.
121966         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121967         * lib/dup-safer.c: Include unistd-safer.h first.
121968         Don't include errno.h.
121969         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121970         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121971         * lib/file-type.c: Rely on file-type.h change.
121972         * lib/getloadavg.c: Include unistd-safer.h.
121973         (getloadavg): Use safer open.
121974         * lib/getusershell.c: Include "stdio-safer.h".
121975         (getusershell): Use safer fopen.
121976         * lib/long-options.c (long_options): Use NULL rather than 0.
121977         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121978         'free'.
121979         * lib/modechange.c: Likewise.
121980         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121981         (MODE_DONE): New constant.
121982         (struct mode_change): Remove 'next' member.
121983         (make_node_op_equals): New function; like the old one of the
121984         same name, except it allocates an array.
121985         (mode_compile, mode_create_from_ref): Use it.
121986         (mode_compile): Allocate result as an array, not a linked list.
121987         Parse octal string ourself, so that we catch mistakes like "+0".
121988         (mode_adjust): Arg is an array, not a linked list.
121989         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121990         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121991         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121992         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121993         Remove.  This is now stat-macros.h's job.
121994         (talloc): Remove.  All callers replaced by xalloc, so that
121995         our invokers don't have to worry about reporting memory failures.
121996         (make_node_op_equals): Remove.
121997         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121998         New constants.
121999         (struct mode_change): Moved here from modechange.h.
122000         (mode_append_entry): Remove.
122001         (mode_compile): Remove MASKED_OPS arg, since it encouraged
122002         apps to have incorrect behavior.  Use simpler algorithm for head
122003         and tail.  Don't futz with umask; that's now the job of mode_adjust.
122004         Detect more invalid usages rather than having somewhat-random behavior.
122005         Don't insert an "a=" action, as that leads to incorrect behavior.
122006         (mode_compile, mode_create_from_ref): Return NULL on error instead
122007         of an enum, since now there's only one way to have an error.  All
122008         callers changed.
122009         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
122010         at the correct time.  Simplify calculation of "+u" and its ilk.
122011         Don't mishandle "+X".
122012         (mode_free): Remove "register" and localize decls.
122013         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122014         (struct mode_change): Move to modechange.c; callers don't
122015         need to see this stuff.
122016         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
122017         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
122018         (mode_change, mode_adjust): Reflect the new signatures noted above.
122019         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
122020         that might redefine system include files.
122021         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
122022         (my_usleep): Use NULL rather than (void *) 0.
122023         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
122024         Use siginterrupt to specify that system calls should be interrupted.
122025         (rpl_nanosleep): Move initialization of suspended closer to call of
122026         my_usleep.
122027         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
122028         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
122029         (desirable_utmp_entry): New function.
122030         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
122031         using x2nrealloc, to simplify logic.
122032         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
122033         size calculation.  Do not assume utmp file is a regular file.
122034         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
122035         (READ_UTMP_CHECK_PIDS): New constant.
122036         * lib/save-cwd.c: Include unistd-safer.h.
122037         (save_cwd): Use fd_safer.
122038         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
122039         [!_LIBC] Include "stat-macros.h" instead.
122040         * lib/unistd-safer.h (fd_safer): New decl.
122042 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122044         * modules/getloadavg (Depends-on): Add unistd-safer.
122045         * modules/getusershell (Depends-on): Add stdio-safer.
122046         * modules/lstat (Depends-on): Remove xalloc.
122047         * modules/mkstemp (Depends-on): Add stat-macros.
122048         * modules/modechange (Depends-on): Remove xstrtol.
122049         Add stat-macros, xalloc.
122050         * modules/save-cwd (Depends-on): Add unistd-safer.
122051         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
122052         * modules/unistd-safer (Files): Add lib/fd-safer.c
122053         (Makefile.am): Remove lib_SOURCES.
122055         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
122056         Remove fcntl-safer; unistd-safer supersedes it.
122058 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122060         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
122061         AC_HEADER_STAT.
122062         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
122063         (gl_PREREQ_CHOWN): Remove.
122064         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
122065         it.  Don't require AC_HEADER_STAT.
122066         (gl_PREREQ_LSTAT): Remove.
122067         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
122068         Don't require AC_HEADER_STAT.
122069         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
122070         (gl_PREREQ_RMDIR): Remove.
122071         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
122072         mention stat-macros.h or AC_HEADER_STAT, since we'll make
122073         the stat-macros module a prerequisite.
122074         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
122075         * m4/filemode.m4 (gl_FILEMODE): Likewise.
122076         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
122077         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
122078         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
122079         variable names.
122080         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
122081         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
122082         variable prefixes.
122083         * m4/fcntl-safer.m4: Remove.
122084         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
122085         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
122086         Invoke gl_PREREQ_FD_SAFER.
122087         (gl_PREREQ_FD_SAFER): New macro.
122088         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
122089         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
122090         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
122091         Remove duplicate call to AC_LIBOBJ(readutmp).
122092         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
122094         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
122095         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
122097 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122099         * MODULES.html.sh (Misc): Add byteswap.
122101 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122103         * modules/getcwd (Depends-on): Add extensions.
122104         * modules/openat (Depends-on): Likewise.
122106 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122108         * modules/byteswap: New file.
122110 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122112         * m4/byteswap.m4: New file.
122114 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122116         * lib/byteswap_.h: New file.
122118 2005-04-25  Karl Berry  <karl@gnu.org>
122120         * m4/gettext.m4: Update from GNU gettext 0.14.4.
122122 2005-04-25  Albert Chin  <china@thewrittenword.com>
122124         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
122125         Toolkit C bug.
122127 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
122129         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
122130         (func_ln_if_changed): Remove forcibly for no error message
122131         in case file does not exist.
122133 2005-04-19  Simon Josefsson  <jas@extundo.com>
122135         * gnulib-tool (Options): Make --symlink mean --symbolic.
122137 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
122139         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
122141 2005-04-16  Simon Josefsson  <jas@extundo.com>
122143         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
122145 2005-04-15  Simon Josefsson  <jas@extundo.com>
122147         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
122149 2005-04-15  Simon Josefsson  <jas@extundo.com>
122151         * gnulib-tool: Rename --symlink to --symbolic.
122153 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
122155         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
122156         symbolic links to files instead of copying/moving.  Add --aux-dir,
122157         specifying directory relative --dir where auxiliary build tools
122158         are placed.
122160 2005-04-14  Bruno Haible  <bruno@clisp.org>
122162         * modules/allocsa (License): Change to LGPL.
122163         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
122165 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
122167         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
122168         that "UTC +1 second" continues to work.  Problem reported
122169         by Dmitry V. Levin.
122170         (relunit_snumber): New rule.
122171         (relunit): Use it.
122173 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122175         * lib/getdate.y (universal_time_zone_table): New constant.
122176         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
122177         universal_time_zone_table.
122178         (lookup_zone): Prefer universal_time_zone_table to
122179         local_time_zone_table, so that "GMT" time stamps are allowed in
122180         London during the summer.  Problem reported by Ian Abbott.
122182 2005-04-12  Jim Meyering  <jim@meyering.net>
122184         * lib/human.c (humblock): Set *options even when returning due to
122185         xstrtoumax conversion failure.  Thanks to a used-uninitialized
122186         warning from gcc-4.
122188 2005-04-09  Jim Meyering  <jim@meyering.net>
122190         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
122191         -Wuninitialized: initialize tm0.tm_year.
122193 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
122195         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
122196         count, since there's no maximum.  All uses changed.
122197         Add member dsts_seen.
122198         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
122199         not being INT_MAX.
122200         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
122201         Use pc_rels_seen to decide whether a date is absolute.
122203         * lib/getdate.y (number): Don't overwrite year.
122204         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
122205         check.
122207 2005-04-02  Simon Josefsson  <jas@extundo.com>
122209         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
122210         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
122212 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
122214         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
122215         where no absolute path name can be longer than PATH_MAX.
122217 2005-03-27  Jim Meyering  <jim@meyering.net>
122219         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
122221 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
122223         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
122224         "one's complement" -> "ones' complement" in comment, as per Knuth.
122225         "value of type" -> "type or expression" in comment.
122226         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
122228 2005-03-26  Jim Meyering  <jim@meyering.net>
122230         Comment nits.
122231         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
122232         Correct typos: s/or/of/.
122234 2005-03-26  Jim Meyering  <jim@meyering.net>
122236         * modules/check-include-files: Move to ../ and rename to...
122237         * check-module: ...this.
122239 2005-03-25  Jim Meyering  <jim@meyering.net>
122241         * modules/xvasprintf (Files): Add xalloc.h.
122243 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
122245         * modules/gettext (Files): config/config.rpath ->
122246         build-aux/config.rpath
122247         * modules/iconv (Files): Likewise.
122248         Problem reported by Oskar Liljeblad.
122250 2005-03-23  Jim Meyering  <jim@meyering.net>
122252         * modules/check-include-files: New script to check for
122253         missing dependencies, multiple includes, etc.
122255         * modules/c-strtold (Depends-on): Add xalloc.
122256         * modules/c-strtod (Depends-on): Add xalloc.
122257         * modules/hash (Depends-on): Add xalloc.
122258         (Files): Remove lib/xalloc.h.
122260         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
122261         * modules/userspec (Files): Add lib/inttostr.h.
122263 2005-03-23  Jim Meyering  <jim@meyering.net>
122265         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
122267 2005-03-22  Jim Meyering  <jim@meyering.net>
122269         * modules/stat-macros: New module.
122270         * modules/canonicalize, modules/euidaccess, modules/file-type,
122271         * modules/filemode, modules/lchown, modules/makepath,
122272         * modules/rmdir, modules/stat: Depend on new stat-macros module
122273         rather than listing lib/stat-macros.h manually.
122274         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
122276 2005-03-22  Jim Meyering  <jim@meyering.net>
122278         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
122280 2005-03-22  Bruno Haible  <bruno@clisp.org>
122282         * config/srclist.txt: Replace target directory 'config' with
122283         'build-aux'.
122284         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
122285         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
122286         ../build-aux/.
122288 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
122290         * modules/chdir-long (Depends-on): Add mempcpy.
122292         * modules/acl, modules/backupfile, modules/c-strtod,
122293         modules/c-strtold, modules/canon-host, modules/canonicalize,
122294         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
122295         modules/exclude, modules/exitfail, modules/file-type,
122296         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
122297         modules/getdate, modules/getline, modules/getpagesize,
122298         modules/getpass, modules/getugroups, modules/group-member,
122299         modules/hard-locale, modules/hash, modules/human, modules/idcache,
122300         modules/inttostr, modules/long-options, modules/makepath,
122301         modules/md5, modules/memcasecmp, modules/memcoll,
122302         modules/modechange, modules/mountlist, modules/path-concat,
122303         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
122304         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
122305         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
122306         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
122307         modules/strftime, modules/strndup, modules/strverscmp,
122308         modules/timespec, modules/unlocked-io, modules/userspec,
122309         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
122310         modules/yesno:
122311         Remove lib_SOURCES line from Makefile.am section, as this is now
122312         done automatically by the corresponding Autoconf macro.
122314 2005-03-21  Jim Meyering  <jim@meyering.net>
122316         Changes imported from coreutils.
122318         * lib/cycle-check.c: Don't include xalloc.h.
122320         * lib/path-concat.c: Don't include assert.h.
122321         (path_concat): Remove assertion that would have triggered
122322         for ABASE starting with more than one slash.
122323         Reported by Andreas Schwab.
122325         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
122326         properly when ABASE is an absolute file name.
122327         Correct the description of this function.
122328         Include <assert.h>.
122329         Add an assertion and a test driver.
122330         This fixes a bug introduced on 2004-07-02.
122331         Andreas Schwab reported the resulting failure of cp --parents:
122332         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
122334 2005-03-21  Jim Meyering  <jim@meyering.net>
122336         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
122337         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
122339 2005-03-21  Jim Meyering  <jim@meyering.net>
122340         and  Paul Eggert  <eggert@cs.ucla.edu>
122342         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122343         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122344         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122345         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122346         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122347         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122348         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122349         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122350         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122351         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122352         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122353         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122354         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122355         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122356         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122357         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122358         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122359         for these modules.
122361 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122363         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122364         (which shouldn't happen), generate nothing instead of returning 0
122365         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122367 2005-03-16  Bruno Haible  <bruno@clisp.org>
122369         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122370         HAVE_LONGLONG_64BIT.
122372 2005-03-16  Bruno Haible  <bruno@clisp.org>
122374         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122375         HAVE_LONGLONG_64BIT.
122377 2005-03-16  Bruno Haible  <bruno@clisp.org>
122379         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122380         HAVE_LONGLONG_64BIT.
122382 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122384         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122385         reliably distinguish strftime failure from empty output on POSIX
122386         hosts.
122388 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122390         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122391         (iconv_string): Don't guess a size-zero buffer, as that might cause
122392         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122393         result would be 'too large', where 'too large' is (heuristically)
122394         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122395         overflow concerns.  This will prevent some unwanted malloc failures
122396         when the inputs are very large.
122398 2005-03-15  Karl Berry  <karl@gnu.org>
122400         * config/srclist.txt (config.rpath): from gettext.
122401         * config/config.rpath: update.
122403 2005-03-15  Bruno Haible  <bruno@clisp.org>
122405         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122406         to 'negate'.
122408         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122409         variable.
122411         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122412         results.
122414 2005-03-14  Simon Josefsson  <jas@extundo.com>
122416         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122417         <fx@gnu.org>.
122419 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122421         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122422         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122423         intprops.h.
122424         * lib/strtol.c: Likewise.
122426 2005-03-14  Jim Meyering  <jim@meyering.net>
122428         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122429         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122430         to be nonzero so that we (and caller) can detect the difference
122431         between a valid zero-length expansion and an error return, even
122432         when the underlying strftime fails before writing anything into
122433         that location.
122435 2005-03-14  Bruno Haible  <bruno@clisp.org>
122437         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122438         Update from GNU gettext 0.14.3.
122440 2005-03-10  Jim Meyering  <jim@meyering.net>
122442         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122444 2005-03-10  Jim Meyering  <jim@meyering.net>
122446         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122447         so that this module works on systems without fchdir.
122449 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122451         Factor int-properties macros into a single file, except for
122452         glibc-related files.
122453         * lib/intprops.h: New file.
122454         * lib/getloadavg.c: Include it instead of limits.h.
122455         (INT_STRLEN_BOUND): Remove.
122456         * lib/human.c: Include intprops.h.
122457         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
122458         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
122459         302/1000.
122460         * lib/inttostr.h: Include intprops.h instead of limits.h.
122461         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
122462         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
122463         for consistency with intprops.h.
122464         (time_t_is_integer, twos_complement_arithmetic): Use them.
122465         * lib/sig2str.h: Include <signal.h>, intprops.h.
122466         (INT_STRLEN_BOUND): Remove.
122467         * lib/strftime.c (TYPE_SIGNED): Remove.
122468         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
122469         * lib/strtol.c: Adjust comments to match intprops.h.
122470         * lib/userspec.c: Include intprops.h.
122471         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
122472         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
122473         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
122474         instead of rolling our own expressions.
122475         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
122477         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
122478         instead of int.
122479         (my_strftime): Do not mishandle years close to INT_MAX, by doing
122480         the right thing even if adding 1900 would overflow.  Similarly
122481         for tm_mon + 1 and tm_yday + 1.
122482         Make %Y always equivalent to %C%y, and similarly for %G and %g.
122483         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
122484         (DO_SIGNED_NUMBER): New macro.
122485         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
122487 2005-03-07  Bruno Haible  <bruno@clisp.org>
122489         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
122491 2005-03-07  Bruno Haible  <bruno@clisp.org>
122493         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
122495 2005-03-04  Derek R. Price  <derek@ximbiot.com>
122497         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
122498         (func_import): Only replace files via --import when they have actually
122499         changed.
122501 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122503         * m4/mmap-anon.m4: New file.
122504         * m4/pagealign_alloc.m4: New file.
122506 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122507             Bruno Haible  <bruno@clisp.org>
122509         * modules/pagealign_alloc: New file.
122510         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
122512 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122513             Bruno Haible  <bruno@clisp.org>
122515         * lib/pagealign_alloc.h: New file.
122516         * lib/pagealign_alloc.c: New file.
122518 2005-03-03  Bruno Haible  <bruno@clisp.org>
122520         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
122521         Use an all-permissive copyright notice, recommended by RMS.
122523 2005-03-02  Bruno Haible  <bruno@clisp.org>
122525         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
122526         of AIX, the replacement has to be done only after <string.h> is
122527         included, therefore not in config.h. stpncpy.h does the replacement,
122528         and stpncpy.c uses it.
122530 2005-03-02  Bruno Haible  <bruno@clisp.org>
122532         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
122533         stpncpy.c uses it.
122535 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122537         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
122538         The workaround isn't strictly needed for POSIX conformance, and
122539         it's too much of a pain to configure and maintain.  We'll ask
122540         people to fix their kernels instead.
122541         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
122542         (NANOSLEEP_BUG_WORKAROUND): Remove.
122543         (xnanosleep): Remove the workaround.
122545 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122547         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
122548         Reported by Derek Price.
122549         (Include): Add "timespec.h".
122551         * modules/xnanosleep (Depends-on): Remove gethrxtime.
122553 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122555         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
122556         to detect nanosleep bug.
122558 2005-03-01  Bruno Haible  <bruno@clisp.org>
122560         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
122562 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
122564         * modules/gethrxtime: New file.
122565         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
122566         (Depends-on): Add gethrxtime.
122567         (configure.ac): Add gl_XNANOSLEEP.
122568         (Makefile.am): Remove lib_SOURCES line.
122570 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122572         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
122573         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
122575 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122577         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
122578         * lib/timespec.h (gettime): Return void, since it always
122579         succeeds now.  All uses changed.
122580         * lib/gettime.c (gettime): Likewise.
122581         [HAVE_NANOTIME]: Prefer nanotime.
122582         Assume gettimeofday succeeds, as POSIX requires.
122583         Assime time () succeeds, since other code already does.
122584         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
122585         (timespec_subtract): Remove.
122586         (NANOSLEEP_BUG_WORKAROUND): New constant.
122587         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
122588         things considerably.  Use it only on GNU/Linux hosts, since the
122589         workaround shouldn't be needed elsewhere.
122591 2005-02-24  Bruno Haible  <bruno@clisp.org>
122593         * modules/gettext (Files): Add m4/glibc2.m4.
122595 2005-02-24  Bruno Haible  <bruno@clisp.org>
122597         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
122598         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
122599         * m4/progtest.m4:
122600         Update from GNU gettext 0.14.2.
122601         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
122603 2005-02-24  Bruno Haible  <bruno@clisp.org>
122605         * lib/localcharset.c: Update from GNU gettext 0.14.2.
122606         * lib/config.charset: Update from GNU gettext 0.14.2.
122608 2005-02-24  Bruno Haible  <bruno@clisp.org>
122610         * lib/gettext.h: Update from GNU gettext 0.14.2.
122612 2005-02-23  Simon Josefsson  <jas@extundo.com>
122614         * m4/iconvme.m4: New file.
122616 2005-02-23  Jim Meyering  <jim@meyering.net>
122618         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
122619         change.
122620         Thanks to Bruno Haible for catching it.
122622 2005-02-22  Simon Josefsson  <jas@extundo.com>
122624         * modules/iconvme: New file.
122626         * MODULES.html.sh: Add iconvme.
122628 2005-02-22  Simon Josefsson  <jas@extundo.com>
122630         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
122632 2005-02-22  Simon Josefsson  <jas@extundo.com>
122634         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
122636 2005-02-22  Jim Meyering  <jim@meyering.net>
122638         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
122639         s/ifndef/ifdef/.
122641 2005-02-20  Neil Conway  <neilc@samurai.com>
122643         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
122644         returned by OSX/Darwin if the specified buffer is not large
122645         enough for the hostname.
122647 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122649         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
122650         pass it to _help, otherwise the latter coredumps trying to
122651         dereference state.root_argp.
122653 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122655         * modules/chdir-long (Depends-on): Add memrchr.
122656         * modules/memrchr (Files): Add lib/memrchr.h.
122657         (Include): "memrchr.h".
122659 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122661         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122663 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122665         * lib/memrchr.h: New file.
122666         * lib/chdir-long.c: Include it.
122667         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122668         Don't bother including stddef.h.
122670 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122672         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122673         inclusion.
122674         Include <sys/types.h>, for dev_t.
122675         (ME_DUMMY, ME_REMOTE): Move from here....
122676         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122677         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122678         Dmitry V. Levin.
122679         Include mountlist.h first, to test the interface.
122681 2005-01-29  Bruno Haible  <bruno@clisp.org>
122683         * lib/progname.c (program_name): Initialize.
122684         Needed when linking statically on MacOS X.
122686 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122688         Sync from coreutils.
122689         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122690         (Depends-on): Add c-strtod.
122691         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122693 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122695         Sync from coreutils.
122696         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122698         Remove files that are specific to coreutils.
122699         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122701 2005-01-28  Bruno Haible  <bruno@clisp.org>
122703         * modules/javacomp: New file.
122704         * MODULES.html.sh (Java): Add javacomp.
122706 2005-01-28  Bruno Haible  <bruno@clisp.org>
122708         * m4/javacomp.m4: New file, from GNU gettext.
122710 2005-01-28  Bruno Haible  <bruno@clisp.org>
122712         * lib/javacomp.sh.in: New file, from GNU gettext.
122713         * lib/javacomp.h: New file, from GNU gettext.
122714         * lib/javacomp.c: New file, from GNU gettext.
122716 2005-01-26  Simon Josefsson  <jas@extundo.com>
122718         * lib/gai_strerror.c: Use GPL in header.
122720 2005-01-26  Bruno Haible  <bruno@clisp.org>
122722         * modules/javaexec: New file.
122723         * MODULES.html.sh (Java): Add javaexec.
122725 2005-01-26  Bruno Haible  <bruno@clisp.org>
122727         * m4/javaexec.m4: New file, from GNU gettext.
122729 2005-01-26  Bruno Haible  <bruno@clisp.org>
122731         * lib/javaexec.sh.in: New file, from GNU gettext.
122732         * lib/javaexec.h: New file, from GNU gettext.
122733         * lib/javaexec.c: New file, from GNU gettext.
122735 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122737         * modules/lchown (Depends-on): Remove lchown.h
122739 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122741         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122742         must be defined if the header file was not found, in order
122743         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122745 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122747         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122748         initializers for struct pentry_state.
122749         (__argp_error): Check return value of __asprintf
122750         (__argp_failure): Translate error message
122752         * lib/argp-parse.c: Removed braces around the expansion of N_()
122754 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122756         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122757         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122758         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122759         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122760         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122761         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122762         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122763         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122764         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122765         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122766         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122767         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122768         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122769         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122770         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122771         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122772         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122773         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122774         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122775         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122776         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122777         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122778         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122779         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122780         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122781         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122782         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122783         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122784         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122785         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122786         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122787         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122788         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122789         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122790         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122791         Use an all-permissive copyright notice, recommended by RMS.
122793 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122795         * modules/chdir-long (Depends-on): Remove mempcpy.
122797 2005-01-21  Jim Meyering  <jim@meyering.net>
122799         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122800         same value as for Solaris 9.
122802         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122803         component length.  This included changing the parameter to be
122804         of type `char *' rather than `char const *'.
122805         * lib/chdir-long.h (chdir_long): Update prototype.
122807         * lib/openat.c (fdopendir, fstatat): New functions.
122808         * lib/openat.h: Include headers required for use of DIR and struct
122809         stat.
122810         [AT_SYMLINK_NOFOLLOW]: Define.
122811         (fdopendir, fstatat): Add prototypes.
122813 2005-01-21  Bruno Haible  <bruno@clisp.org>
122815         * modules/classpath: New file.
122816         * MODULES.html.sh (Java): Add classpath.
122818 2005-01-21  Bruno Haible  <bruno@clisp.org>
122820         * lib/classpath.h: New file, from GNU gettext.
122821         * lib/classpath.c: New file, from GNU gettext.
122823 2005-01-20  Simon Josefsson  <jas@extundo.com>
122825         * modules/version-etc-fsf: New file.
122827 2005-01-20  Simon Josefsson  <jas@extundo.com>
122829         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122830         * lib/version-etc.c: Remove version_etc_copyright.
122831         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122832         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122834 2005-01-20  Simon Josefsson  <jas@extundo.com>
122836         * lib/base64.h (isbase64): Add.
122838         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122839         using a unsigned prototype, don't inline.
122840         (base64_decode): Use it.
122842 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122844         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122845         it.
122847 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122849         * lib/save-cwd.c (save_cwd): Remove code to support the case
122850         where fchdir is missing or flaky.
122852 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122854         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122856 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122858         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122859         AC_LIBSOURCES now does this.
122860         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122861         with new ullong_max module.
122863 2005-01-19  Bruno Haible  <bruno@clisp.org>
122865         * modules/sh-quote: New file.
122866         * MODULES.html.sh (Executing programs): Add sh-quote.
122868 2005-01-19  Bruno Haible  <bruno@clisp.org>
122870         * lib/sh-quote.h: New file, from GNU gettext.
122871         * lib/sh-quote.c: New file, from GNU gettext.
122873 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122875         Merge from coreutils.
122876         * m4/ullong_max.m4: New file.
122877         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122878         (gl_MACROS): Assume localeconv exists.
122880 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122882         Merge changes from coreutils, as described below in several
122883         changelogs dated today.
122885         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122886         (O_DIRECTORY): Remove; not needed here, since "." must be
122887         a directory.  All uses removed.
122888         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122889         universal on Suns, and we also need to test for IRIX.
122890         Revamp code to use 'if' rather than '#if'.
122891         Avoid unnecessary comparison of cwd->desc to 0.
122893         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122894         for known valid error numbers rather than observed invalid ones.
122896 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122898         * modules/ullong_max: New file.
122900         * modules/chdir-long, modules/openat: New files.
122901         * modules/save-cwd (Depends-on): Depend on chdir-long.
122902         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122904 2005-01-18  Jim Meyering  <jim@meyering.net>
122906         Merge from coreutils.
122907         * m4/chdir-long.m4, m4/openat.m4: New files.
122908         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122909         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122910         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122911         is sane and DOES follow symlinks.  Besides, testing 20 different
122912         systems found no broken chown implementations.
122913         Prompted by a change in rsync's copy of this macro.
122914         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122916         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122918         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122919         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122920         NULL-means-set-to-current-time semantics.
122921         Remove temporary file immediately, rather than waiting
122922         for configure's at-exit trap code to do it.
122924 2005-01-18  Jim Meyering  <jim@meyering.net>
122926         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122928         * lib/utimens.c (futimens): Account for the fact that futimes
122929         can also fail with errno == ENOSYS or errno == ENOENT.
122930         Patch from Dmitry V. Levin.
122932         Change the name of the robust chdir function from chdir to chdir_long.
122933         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122934         (restore_cwd): Use chdir_long, not chdir.
122935         * lib/chdir-long.c: Renamed from chdir.c.
122936         * lib/chdir-long.h: Renamed from chdir.h.
122937         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122938         Hurd.
122940 2005-01-18  Bruno Haible  <bruno@clisp.org>
122942         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122943         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122944         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122945         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122946         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122947         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122948         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122949         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122950         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122951         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122952         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122953         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122954         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122955         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122956         Use an all-permissive copyright notice, recommended by RMS.
122958 2005-01-18  Bob Proulx  <bob@proulx.com>
122960         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122961         simplify offsetof() macro construct to avoid compile failure with
122962         native HP-UX 11.0 ANSI C compiler.
122964 2005-01-17  Bruno Haible  <bruno@clisp.org>
122966         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122967         redundant because stpncpy.m4 takes care of it.
122969 2005-01-17  Bruno Haible  <bruno@clisp.org>
122971         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122973 2005-01-17  Bruno Haible  <bruno@clisp.org>
122975         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122976         used.
122978 2005-01-17  Bruno Haible  <bruno@clisp.org>
122980         * lib/fwriteerror.h (fwriteerror): Change specification to include
122981         fclose.
122982         * lib/fwriteerror.c: Include <stdbool.h>.
122983         (fwriteerror): At the end, close the file stream. Record whether
122984         stdout was already closed.
122986 2005-01-17  Bruno Haible  <bruno@clisp.org>
122988         * lib/execute.c (environ): Declare if needed.
122989         * lib/pipe.c (environ): Likewise.
122990         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122992 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122994         * modules/argp: Depend on vsnprintf
122996 2005-01-10  Jim Meyering  <jim@meyering.net>
122998         * modules/closeout (Depends-on): Add atexit.
123000 2005-01-06  Bruno Haible  <bruno@clisp.org>
123002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
123004 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
123006         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
123007         definitions to be after all include files, to avoid collisions.
123008         Problem reported by Bob Proulx.
123010 2005-01-04  Jim Meyering  <jim@meyering.net>
123012         Changes imported from coreutils.
123013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
123014         as the mkstemp template, use a temporary directory and an
123015         8.3-friendly template to avoid trouble on systems like DJGPP.
123016         Reported by Juan M. Guerrero via Stepan Kasal.
123017         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
123018         close. Remove the temporary directory right away, rather than waiting
123019         for configure's at-exit trap code to do it.
123020         Suggestion from Stepan Kasal.
123022 2005-01-01  Simon Josefsson  <jas@extundo.com>
123024         * gnulib-tool: Print #include directives when --import'ing.
123026 2004-12-28  Simon Josefsson  <jas@extundo.com>
123028         * tests/test-base64.c: Include required header files.  Remove
123029         unused variables.
123031 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123033         * modules/error (Depends-on): Remove gettext.
123035 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123037         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
123038         not needed.  This removes a dependency on the gettext module.
123039         [defined _LIBC]: Do not include <libintl.h>; not needed.
123041 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123043         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
123044         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
123046 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123048         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
123049         HAVE_DECL_STRTOLD.
123051 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123053         * modules/getdate (Depends-on): Remove alloca-opt.
123055 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123057         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
123059 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123061         * lib/argp-parse.c: Include <stddef.h>.
123062         (alignof, alignto): New macros.
123063         (parser_init): Don't assume that void * is aligned sufficiently
123064         for struct option.
123066         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
123067         need to extend the stack.
123068         (YYINITDEPTH): New macro, so that the initial stack isn't overly
123069         large.
123071 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123073         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
123075 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123077         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
123078         (2004-10-24) change.  Apparently this was a false alarm.
123080         * modules/getdate: Depend on alloca-opt, not alloca.
123082 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123084         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
123085         Remove now-obsolete comment about AIX.
123086         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
123087         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
123088         (YYMAXDEPTH): New macro.
123090 2004-12-18  Simon Josefsson  <jas@extundo.com>
123092         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
123094 2004-12-18  Bruno Haible  <bruno@clisp.org>
123096         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
123098 2004-12-18  Bruno Haible  <bruno@clisp.org>
123100         * lib/fatal-signal.c (fatal_signals): Make non-const.
123101         (init_fatal_signals): New function.
123102         (uninstall_handlers, install_handlers): Ignore signals that were set to
123103         SIG_IGN.
123104         (at_fatal_signal): Call init_fatal_signals.
123105         (init_fatal_signal_set): Likewise. Ignore signals that were set to
123106         SIG_IGN.
123107         Reported by Paul Eggert.
123109 2004-12-18  Bruno Haible  <bruno@clisp.org>
123111         * doc/alloca.texi: New file.
123112         * doc/alloca-opt.texi: New file.
123114 2004-12-17  Jim Meyering  <jim@meyering.net>
123116         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
123117         Otherwise, install-sh could exit with improper exit status when
123118         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
123120 2004-12-16  Simon Josefsson  <jas@extundo.com>
123122         * tests/test-base64.c: Add license.
123124 2004-12-15  Stepan Kasal  <address@hidden>
123126         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
123128 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
123130         * modules/getcwd (Files): Add m4/d-ino.m4.
123131         Suggested by Mark D. Baushke.
123133 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123135         * lib/getdate.y (textint): New member "negative".
123136         (time_zone_hhmm): New function.
123137         Expect 14 shift-reduce conflicts, not 13.
123138         (o_colon_minutes): New rule.
123139         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
123140         (yylex): Set the "negative" member of signed numbers.
123142 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123144         * doc/getdate.texi (Time of day items, Time zone items):
123145         Describe new formats +00:00, UTC+00:00.
123147 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
123149         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
123150         spurious "-l"s.  Problem reported by Stepan Kasal.
123152 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
123154         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
123155         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
123157 2004-12-04  Simon Josefsson  <jas@extundo.com>
123159         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
123160         Vandoorselaere <yoann@prelude-ids.org>.
123162 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123164         Changes imported from coreutils.
123165         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
123166         exist.
123167         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
123169 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123171         Changes imported from coreutils.
123172         * lib/hard-locale.c: Assume <locale.h> exists.
123173         Include "strdup.h".
123174         (GLIBC_VERSION): New macro.
123175         (hard_locale): Assume setlocale exists.
123176         Rewrite to avoid #ifdef.
123177         Use strdup rather than malloc + strcpy.
123178         * lib/human.c: Assume <locale.h> exists.
123179         (human_readable): Assume localeconv exists.
123181 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123183         * modules/hard-locale (Depends-on): Add strdup.
123185 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
123187         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
123188         convert T2, not T.  (Imported from libc.)
123190 2004-11-30  Simon Josefsson  <jas@extundo.com>
123192         * modules/restrict (License): Change to LGPL.
123194 2004-11-30  Simon Josefsson  <jas@extundo.com>
123196         * m4/restrict.m4: Add copyright and copying conditions.
123198 2004-11-30  Simon Josefsson  <jas@extundo.com>
123200         * m4/base64.m4: New file.
123202 2004-11-30  Simon Josefsson  <jas@extundo.com>
123204         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
123205         base64.
123207         * tests/test-base64.c: New file.
123209         * modules/base64: New file.
123211 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123213         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
123214         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
123216         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
123218 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123220         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
123221         (__getcwd.c): Don't restore errno; glibc doesn't.
123222         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
123223         first, falling back to our code only if its results look suspicious.
123224         Ensure that the resulting buffer is only as large as necessary.
123226         * lib/readutmp.c: Include readutmp.h first.
123227         Include <errno.h>, since readutmp.h no longer does that.
123228         * lib/readutmp.h: Don't include <errno.h>,
123229         <sys/param.h>, <time.h>; not needed to establish interface.
123230         (errno): Remove decl.
123231         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
123232         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
123233         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
123235 2004-11-28  Simon Josefsson  <jas@extundo.com>
123237         * lib/base64.h, base64.c: New file.
123239 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
123241         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
123243 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
123245         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
123246         (Depends-on): Remove pathmax, same.  Add mempcpy.
123247         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
123248         (Makefile.am): Append getcwd.h to lib_SOURCES.
123249         (Include): Add getcwd.h.
123250         (Maintainer): Change from Jim Meyering to "all, glibc",
123251         since getdate now uses intended-for-glibc code.
123252         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
123253         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
123255 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123257         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
123258         HP's ANSI C compiler.
123259         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
123260         Declaring int functions causes warnings on some modern systems and
123261         shouldn't be needed to compile on ancient ones.
123262         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
123263         defined.
123265         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
123266         with the following changes.
123267         (__set_errno): Parenthesize properly.
123268         Include <stdbool.h>.
123269         (MIN, MAX, MATCHING_INO): New macros.
123270         (__getcwd): Define with prototype, not K&R form.
123271         Use heuristics to allocate default buffer on stack if possible.
123272         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
123273         behavior, and to avoid the PATH_MAX limit when computing
123274         ../../../../...
123275         Use MATCHING_INO to compare inode number to file.
123276         Check for arithmetic overflow in size calculations.
123277         Fix bug in reallocation of dot array that caused getcwd to fail
123278         on directories nested deeper than 75.
123279         Be more careful about saving errno on error.
123280         Do not use realloc; use only free+malloc, as this is a bit
123281         more flexible and avoids a needless copy operation.
123282         Do not inspect st_dev and st_ino for symbolic links; POSIX
123283         doesn't specify the latter.
123284         Check for closedir errors.
123285         Avoid needless casts.
123286         Use "#ifdef weak_alias" around weak_alias, to be like other
123287         glibc code.
123288         The following changes to getcwd.c have effect only when used in
123289         gnulib; they have no effect inside glibc proper.
123290         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
123291         as alloca isn't used.
123292         (alloca, __alloca): Likewise.
123293         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
123294         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123295         unconditionally, as gnulib assumes C89 or better.
123296         Do not include <sys/param.h>.
123297         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
123298         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
123299         better.
123300         (NULL) [!defined NULL]: Remove; we assume C89 or better.
123301         Include <dirent.h> in a way that is compatible with modern Autoconf.
123302         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
123303         New macros, if not already defined.
123304         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
123305         Use "_LIBC", not "defined _LIBC", for consistency.
123306         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
123307         a mempcpy module.
123308         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
123309         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
123310         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
123311         credit only to Jim Meyering and adjust the copyright dates.
123312         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
123313         <stdlib.h>, <unistd.h>, "pathmax.h".
123314         Instead, include "xgetcwd.h" (first) and "getcwd.h".
123315         (INITIAL_BUFFER_SIZE): Remove.
123316         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
123318 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
123321         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
123322         Use the _ONCE methods, for efficiency.
123323         Check for fcntl.h.  In test program, include <errno.h>
123324         and <fcntl.h> if available.  Remove old K&R cruft from
123325         test program.  Check for common errors in GNU/Linux,
123326         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
123327         don't do AC_LIBOBJ, as that's getcwd.m4's job.
123328         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
123329         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
123330         name accordingly.
123331         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
123332         accommodate new getcwd.c.
123333         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
123334         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
123335         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
123336         that's all we need now.
123338 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123340         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
123341         argp-parse.c depends on getopt internals, that means we should
123342         always use our getopt, to be on the safe side.
123343         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123344         order not to spoil the result of an eventual previous invocation
123345         of gl_GETOPT_SUBSTITUTE.
123347 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123349         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123350         redefinition warnings. To avoid them, include the defines
123351         in `#if !defined __need_getopt ... #endif'. The only place
123352         where __getopt_argv_const is used is in definitions
123353         of getopt_long and getopt_long_only below, which are as well
123354         protected by `#ifndef __need_getopt'.
123355         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123356         __need_getopt after including <stdio.h> and <unistd.h> These
123357         headers might have defined it.
123359 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123361         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123363 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123365         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123366         (futimens): New function, which uses futimes if available.
123367         (futimens, utimens): Support timespec==NULL, with same semantics
123368         as utime and utimens.
123369         * lib/utimens.h (futimens): New decl.
123371 2004-11-23  Jim Meyering  <jim@meyering.net>
123373         * lib/getopt_.h: Remove trailing blanks.
123375 2004-11-23  Jim Meyering  <jim@meyering.net>
123377         * lib/__fpending.c: Add comment.
123379 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123381         * modules/canonicalize (Depends-on): Add xreadlink.
123382         Problem reported by James Youngman.
123384 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123386         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123387         New macros.
123388         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123389         optopt): Use them instead of invoking ## directly; otherwise, the
123390         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123392 2004-11-19  Bruno Haible  <bruno@clisp.org>
123394         * lib/strtok_r.c: Move comments from here...
123395         * lib/strtok_r.h: ... to here.
123397 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123399         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123400         implementations that mishandle size_t overflow.
123402 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123404         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123405         might fail.  Problem reported by Yoann Vandoorselaere.
123406         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123407         implementations that mishandle size_t overflow.
123409 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123411         * modules/canon-host (Depends-on): Add strdup.
123413 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123415         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123417 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123419         * lib/canon-host.c: Include "strdup.h".
123420         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123421         Use strdup instead of malloc/strcpy to duplicate strings.
123423         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123424         (human_space_before_unit): New constant.
123425         * lib/human.c (human_readable): Support it.
123427         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123428         (xgetcwd): Set errno correctly when failing.
123429         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123430         the failure is actually due to a PATH_MAX problem.
123432         Further getopt changes to make it more likely that glibc will
123433         buy the changes back.
123434         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123435         (getopt): Use it, so to preserve glibc semantic
123436         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123437         when compiling for libc.
123438         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123439         (getopt_long, getopt_long_only): Use it.
123441         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123442         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123443         (getopt): Argv is now char * const *, as per standard.
123444         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123445         not char *__getopt_argv_const *.
123446         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123447         _getopt_long_only_r): Likewise.
123448         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123449         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123450         _getopt_long_r, _getopt_long_only_r): Likewise.
123451         * lib/getopt_.h (__getopt_argv_const): Remove.
123452         (getopt): Argv is now char * const *, as per standard.
123454         * lib/getdate.y (tORDINAL): New token.
123455         (day, relunit): Allow it for relative times.
123456         (relative_time_table): Use tORDINAL for ordinals.
123458 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123460         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
123461         Document that "second" isn't allowed as an ordinal number.
123463 2004-11-16  Jim Meyering  <jim@meyering.net>
123465         * modules/closeout (Depends-on): Add fpending.
123467 2004-11-15  Jim Meyering  <jim@meyering.net>
123469         * lib/closeout.c: Include "__fpending.h" once again.
123470         Include <stdbool.h>.
123471         (close_stdout): Don't fail just because stdout was closed initially,
123472         since some programs don't write to stdout in the normal course of
123473         operation (other than --version and --help), and we don't want this
123474         function to make e.g. `touch file >&-' fail.
123475         But do fail if it was closed and someone has tried to write to it.
123476         E.g., `printf foo >&-' must fail.
123478 2004-11-13  Jim Meyering  <jim@meyering.net>
123480         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
123482 2004-11-12  Simon Josefsson  <jas@extundo.com>
123484         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
123485         small doc fix is still pending.
123487 2004-11-11  Simon Josefsson  <jas@extundo.com>
123489         * modules/strtok_r: New file.
123491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123492         strtok_r.
123494 2004-11-11  Simon Josefsson  <jas@extundo.com>
123496         * m4/strtok_r.m4: New file.
123498         * m4/getopt.m4: Replace opterr.
123500 2004-11-11  Simon Josefsson  <jas@extundo.com>
123502         * lib/strtok_r.h, strtok_r.c: New file.
123504 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123506         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
123507         of replacing opterr, getopt, etc.  This should handle the
123508         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
123510 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123512         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
123513         we can stop lying to compilers about the constness of argv when we
123514         are compiled outside glibc.
123515         (getopt, getopt_long, getopt_long_only): Use it.
123516         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123517         _getopt_internal, getopt): Likewise.
123518         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123519         _getopt_long_only_r): Likewise.
123520         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123521         _getopt_long_r, _getopt_long_only_r): Likewise.
123523         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
123524         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
123525         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
123526         the other external symbols.
123527         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
123528         declaration, since the above renaming now works around collisions.
123530 2004-11-11  Jim Meyering  <jim@meyering.net>
123532         * lib/linebreak.c: Remove trailing blanks.
123533         * lib/alloca_.h: Likewise.
123534         * lib/acosl.c: Likewise.
123535         * lib/euidaccess.c: Likewise.
123536         * lib/allocsa.h: Likewise.
123538 2004-11-10  Simon Josefsson  <jas@extundo.com>
123540         * m4/getaddrinfo.m4: New file.
123542 2004-11-10  Simon Josefsson  <jas@extundo.com>
123544         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
123546 2004-11-10  Simon Josefsson  <jas@extundo.com>
123548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123549         getaddrinfo.
123551         * modules/getaddrinfo: New file.
123553 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123555         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
123557 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123559         * lib/mktime.c (SHR): New macro, which is a portable
123560         substitute for >> that should work even on Crays.
123561         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
123562         Problem reported by Mark D. Baushke in
123563         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
123564         * lib/getdate.y (SHR): Likewise.
123565         (tm_diff): Use it.
123566         * lib/strftime.c (SHR): Likewise.
123567         (tm_diff): Use it.
123568         * lib/quotearg.c (struct quoting_options): Use unsigned int for
123569         quote_these_too, so that right shifts are well defined.  All uses
123570         changed.
123572 2004-11-10  Jim Meyering  <jim@meyering.net>
123574         Ensure that no close failure goes unreported.
123575         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
123576         return early when it seems there's nothing to flush.
123577         Don't include __fpending.h.
123579 2004-11-10  Jim Meyering  <jim@meyering.net>
123581         * modules/closeout (Depends-on): Remove fpending.
123583 2004-11-10  Jim Meyering  <jim@meyering.net>
123585         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
123587 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123589         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123590         gl_FUNC_STRFTIME.
123591         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123592         and AC_REQUIRE when possible, to avoid duplicate checks.
123593         Check for <wchar.h>.
123595 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123597         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
123599 2004-11-09  Bruno Haible  <bruno@clisp.org>
123601         * m4/sockpfaf.m4: New file.
123603 2004-11-05  Bruno Haible  <bruno@clisp.org>
123605         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
123606         Reported by Mark D. Baushke <mdb@cvshome.org>.
123608 2004-11-04  Bruno Haible  <bruno@clisp.org>
123610         2004-09-11  Bruno Haible  <bruno@clisp.org>
123611                 * allocsa.valgrind: New file.
123612         2004-02-06  Bruno Haible  <bruno@clisp.org>
123613                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
123614                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
123615                 Reported by Christopher Seip <chris.seip@hp.com>.
123617 2004-11-04  Bruno Haible  <bruno@clisp.org>
123619         * modules/allocsa (Files): Add lib/allocsa.valgrind.
123620         (Makefile.am): Distribute it.
123622 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
123624         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
123625         with errno == ERANGE if the buffer is too small.
123626         Problem reported by Mark D. Baushke.
123628 2004-11-03  Albert Chin  <china@thewrittenword.com>
123629             Paul Eggert  <eggert@cs.ucla.edu>
123631         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
123632         equivalent, substitute $ac_type for equivalent type rather than
123633         blindly using uint32_t *always* which won't work if uint32_t is not
123634         available.  Define _UINT32_T to work around typedef of uint32_t if
123635         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
123636         2.5.1.
123638 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123640         * m4/jm-macros.m4: Sync from coreutils.
123641         (gl_MACROS): Check for mbrlen, for pathchk.
123642         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
123644 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123646         * lib/xreadlink.c (MAXSIZE): New macro.
123647         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
123648         size does not exceed MAXSIZE.  Avoid cast.
123649         As suggested by Mark D. Baushke in
123650         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
123651         if readlink fails with buffer size just under MAXSIZE, try again
123652         with MAXSIZE.
123654 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123656         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
123658 2004-11-02  Derek R. Price  <derek@ximbiot.com>
123659         and  Paul Eggert  <eggert@cs.ucla.edu>
123661         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123662         (get_date): Overparenthesize to avoid GCC warning.
123664 2004-11-02  Bruno Haible  <bruno@clisp.org>
123666         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123667         returns void.
123669 2004-11-02  Bruno Haible  <bruno@clisp.org>
123671         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123672         function returns void.
123674 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123676         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123677         fflush_unlocked, flockfile, funlockfile, funlockfile,
123678         fputs_unlocked, putc_unlocked.
123680 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123682         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123683         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123684         already declared.
123686 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123688         * modules/getdate (Files): Add doc/getdate.texi.
123689         (Depends-on): Add setenv, xalloc.
123691 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123693         * lib/getdate.y: Add support for TZ="foo" within a date string.
123694         Fix some bugs near time_t boundaries.  Reject dates with
123695         out-of-range components, e.g., "Sept 31".
123696         Include <stdlib.h>, "setenv.h", "xalloc.h".
123697         (ISDIGIT_LOCALE): Remove; unused.
123698         Note that the TZ and time functions used here are not reentrant.
123699         (mktime_ok, get_tz): New functions.
123700         (TZBUFSIZE): New constant.
123701         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123702         This requires that we sometimes generate our own TZ="XXX..." setting.
123704 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123706         * doc/getdate.texi: New file, from coreutils with modifications for
123707         the new TZ parsing.
123709 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123711         * lib/mktime.c (not_equal_tm): Remove redundant check.
123713 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123715         * modules/regex (lib_SOURCES): Add regex.c.
123716         Reported by James Youngman in
123717         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123719 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123721         * lib/getdate.y: Use Bison 1.875 features, and some minor
123722         code cleanups.  This change does not affect semantics.
123723         Don't include <stdlib.h>; no longer needed.
123724         Don't include unlocked-io.h; only the "#if TEST" code uses
123725         stdio, and performance isn't crucial there.
123726         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123727         Bison 1.875 features as described below.
123728         All uses of "PC." replaced by "pc->".
123729         (YYSTYPE): Add a forward declaration.
123730         (yylex, yyerror): Use full prototypes in forward decls.
123731         Use "%pure-parser" rather than obsolescent "%pure_parser".
123732         Use %parse-param and %lex-param instead of obsolescent
123733         YYPARSE_PARAM and YYLEX_PARAM.
123734         (meridian_table, month_and_day_table, time_units_table,
123735         relative_time_table, time_zone_table, military_table,
123736         lookup_zone, lookup_word, get_date):
123737         Use NULL instead of 0 where appropriate.
123738         (to_hour): Avoid abort (), to avoid a dependency on
123739         stdlib.h.
123740         (yyerror, yylex): Now accepts parser_control * arg.
123741         (main) [TEST]: Use '\0' rather than 0 for char.
123743 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123745         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123747 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123749         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123750         It's now the caller's responsibility to handle the case where
123751         !HAVE_GETPAGESIZE && !defined getpagesize.
123753         * lib/mktime.c (leapyear): Arg is long int, not int.
123755 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123757         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123759 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123761         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123762         missing.  Problem reported by James Youngman.
123764 2004-10-16  Simon Josefsson  <jas@extundo.com>
123766         * gnulib-tool: Fix comments.  Fix parse problem.
123767         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123769 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123771         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123772         implementation of getopt_long.  Problem reported by Alexander Taler in:
123773         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123775 2004-10-15  Bruno Haible  <bruno@clisp.org>
123777         * gnulib-tool: Untabify. Initialize supplied_libname.
123778         (func_usage): More homogenous output.
123779         (func_modules_transitive_closure, func_modules_to_filelist,
123780         func_emit_lib_Makefile_am): New functions.
123781         (func_import): New function, extracted from big case statement. Use
123782         func_get_license, func_modules_transitive_closure,
123783         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123784         opt_lgpl. Don't use test -a, as it's not portable.
123785         (func_create_testdir): Use func_modules_transitive_closure,
123786         func_modules_to_filelist, func_emit_lib_Makefile_am.
123788 2004-10-15  Bruno Haible  <bruno@clisp.org>
123790         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123792 2004-10-15  Bruno Haible  <bruno@clisp.org>
123794         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123795         the portions belonging to each module.
123796         Suggested by Derek Robert Price <derek@ximbiot.com>.
123798 2004-10-12  Simon Josefsson  <jas@extundo.com>
123800         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123801         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123802         to real functions.
123804 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123806         * modules/vsnprintf: New file.
123808 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123810         * m4/vsnprintf.m4: New file.
123812 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123814         * lib/vsnprintf.h: New file.
123815         * lib/vsnprintf.c: New file.
123817 2004-10-11  Bruno Haible  <bruno@clisp.org>
123819         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123820         vsnprintf.
123822 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123824         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123826 2004-10-07  Bruno Haible  <bruno@clisp.org>
123828         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123829         fits into the provided buffer.
123831 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123833         * lib/diacrit.c, diacrit.h: Add GPL notice.
123835         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123836         notice.
123837         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123838         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123839         This avoids a potential constant-folding bug.
123841 2004-10-05  Bruno Haible  <bruno@clisp.org>
123843         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123844         for the declaration of strsep.
123846 2004-10-05  Bruno Haible  <bruno@clisp.org>
123848         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123850 2004-10-04  Simon Josefsson  <jas@extundo.com>
123852         * modules/memmem: New file.
123853         * tests/test-memmem.c: New file.
123854         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123856 2004-10-04  Simon Josefsson  <jas@extundo.com>
123858         * m4/memmem.m4: New file.
123860 2004-10-04  Simon Josefsson  <jas@extundo.com>
123862         * lib/memmem.h: New file.
123863         * lib/memmem.c: New file, taken from glibc.
123865 2004-10-04  Simon Josefsson  <jas@extundo.com>
123867         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123868         '#ifdef USE_UNLOCKED_IO'.
123870 2004-10-04  Simon Josefsson  <jas@extundo.com>
123872         * config/srclist.txt: Add memmem from glibc.
123874 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123876         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123878         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123879         modules/exclude, modules/getdate, modules/getline,
123880         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123881         modules/getusershell, modules/linebuffer, modules/md5,
123882         modules/mountlist, modules/posixtm, modules/readtokens,
123883         modules/readutmp, modules/regex, modules/sha1,
123884         modules/version-etc, modules/yesno:
123885         Remove dependency on unlocked-io.
123887 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123889         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123891         * m4/unlocked-io.m4: Add copyright notice.
123892         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123894 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123896         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123897         * lib/xmalloc.c (xmemdup): Likewise.
123898         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123899         XFREE): Remove these long-obsolescent macros.
123900         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123901         * lib/xstrdup.c: Remove.
123903         * lib/regex.c (re_comp): Cast gettext return value to char *,
123904         Problem reported by Martin Neitzel via Mark D. Baushke.
123906 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123908         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123909         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123910         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123911         regex.c, sha1.c, version-etc.c, yesno.c:
123912         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123913         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123914         the includer's responsibility.
123916         Sync from coreutils.
123918         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123919         points to the start of a string, as the C Standard says the
123920         resulting behavior is undefined.
123922         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123923         simple -> simple_backups, numbered_existing ->
123924         numbered_existing_backups, numbered -> numbered_backups
123925         to avoid shadowing problems.  All uses changed.
123926         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123927         * lib/backupfile.c (check_extension, numbered_backup):
123928         Rename locals to avoid shadowing 'basename'.
123929         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123930         once.
123932         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123933         * lib/.cvsignore: Add getopt.h.
123935 2004-10-04  Bruno Haible  <bruno@clisp.org>
123937         * modules/README: New file.
123938         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123939         not a module.
123941 2004-10-02  Jim Meyering  <jim@meyering.net>
123943         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123945 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123947         * modules/strsep: New file.
123949 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123951         * m4/strsep.m4: New file.
123953 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123955         * lib/strsep.h: New file.
123956         * lib/strsep.c: New file.
123958 2004-10-01  Simon Josefsson  <jas@extundo.com>
123960         * lib/snprintf.c (snprintf): Handle size==0.
123962 2004-10-01  Simon Josefsson  <jas@extundo.com>
123963             Bruno Haible  <bruno@clisp.org>
123965         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123966         (snprintf): Declare 'args'.
123968 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123970         * lib/snprintf.c: Remove comments as to why each header is needed.
123972 2004-10-01  Bruno Haible  <bruno@clisp.org>
123974         * MODULES.html.sh: Add strsep.
123976 2004-09-30  Simon Josefsson  <jas@extundo.com>
123978         * modules/snprintf: New file.
123980 2004-09-30  Simon Josefsson  <jas@extundo.com>
123982         * m4/snprintf.m4: New file.
123984 2004-09-30  Simon Josefsson  <jas@extundo.com>
123986         * lib/snprintf.h, lib/snprintf.c: New files.
123988 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123990         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123991         (hol_entry_help): Never translate an empty string.
123992         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123993         * lib/argp.h (OPTION_NO_TRANS): New option.
123995 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123997         * modules/argp (Maintainer): Replace Simon Josefsson
123998         by Sergey Poznyakoff.
124000 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124002         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
124003         changes merged back into glibc.
124005 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124007         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
124009 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
124011         * lib/xvasprintf.c: Include xalloc.h.
124012         (xvasprintf): Use xalloc_die, not xmalloc_die.
124014 2004-09-29  Bruno Haible  <bruno@clisp.org>
124016         * modules/alloca-opt: New file, derived from modules/alloca.
124017         * modules/allocsa: Depend on alloca-opt instead of alloca.
124018         * modules/setenv: Likewise.
124019         * modules/vasnprintf: Likewise.
124020         * MODULES.html.sh: Add alloca-opt.
124022 2004-09-28  Simon Josefsson  <jas@extundo.com>
124024         * gnulib-tool: New parameter --lgpl, to asseert that modules are
124025         LGPL, and to replace license template from GPL to LGPL.
124027 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124029         * modules/dummy: Change license to LGPL.
124031 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124033         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
124035 2004-09-24  Simon Josefsson  <jas@extundo.com>
124037         * modules/minmax (License): Change from GPL to LGPL.
124039 2004-09-23  Simon Josefsson  <jas@extundo.com>
124041         * gnulib-tool (--import): Typo.
124043 2004-09-23  Simon Josefsson  <jas@extundo.com>
124045         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
124047 2004-09-22  Bruno Haible  <bruno@clisp.org>
124049         * modules/*: Add 'License' field.
124050         * gnulib-tool: Accept --extract-license option.
124051         (func_get_license): New function.
124053 2004-09-21  Bruno Haible  <bruno@clisp.org>
124055         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
124056         Reported by Simon Josefsson.
124058 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124060         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
124061         gl_AC_TYPE_LONG_LONG.
124063 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124065         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
124067 2004-09-18  Simon Josefsson  <jas@extundo.com>
124068         and  Paul Eggert  <eggert@cs.ucla.edu>
124070         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
124071         calls with autoreconf.  Define GL_LIB.
124073 2004-09-14  Karl Berry  <karl@gnu.org>
124075         * config/srclist.txt: unsync setenv.c, sigh.
124077 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124079         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
124080         Problem reported by Bruno Haible in:
124081         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
124083 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124085         * config/srclist.txt: Comment out argp-pvh.c.
124087 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
124089         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
124090         in case some system header has #define'd it.  Problem reported by
124091         Soeren D. Schulze in
124092         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
124094 2004-09-09  Karl Berry  <karl@gnu.org>
124096         * regex.[ch]: delete from the root.  These were supposed to be
124097                 synced with emacs cvs, but this has not happened for about
124098                 a year, and anyway nothing else uses emacs regex.[ch].
124099                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
124100                 lib/regex[.ch] is untouched.
124102 2004-09-09  Bruno Haible  <bruno@clisp.org>
124104         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
124106 2004-09-09  Bruno Haible  <bruno@clisp.org>
124108         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
124109         modifications.
124110         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
124112 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124114         * modules/xvasprintf: New file.
124115         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
124117 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124119         * lib/xvasprintf.h: New file.
124120         * lib/xvasprintf.c: New file.
124121         * lib/xasprintf.c: New file.
124123 2004-09-08  Bruno Haible  <bruno@clisp.org>
124125         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
124127 2004-09-08  Bruno Haible  <bruno@clisp.org>
124129         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
124130         length is > INT_MAX.
124131         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
124132         more.
124134 2004-09-08  Bruno Haible  <bruno@clisp.org>
124136         * lib/stdint_.h: New file, taken from GNU clisp.
124138 2004-09-08  Bruno Haible  <bruno@clisp.org>
124139             Oskar Liljeblad  <oskar@osk.mine.nu>
124141         * modules/stdint: New file.
124142         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
124144 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124146         Import from coreutils.
124147         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
124148         strings on unbounded length.  alloca's performance benefits aren't
124149         that important here.
124150         (V_STRDUP): Remove.
124151         (parse_with_separator): New function, with most of the internals
124152         of the old parse_user_spec.  Allow user to omit both user and group,
124153         for compatibility with FreeBSD.
124154         Clone only the user name, not the entire spec.
124155         Do not set *uid, *gid unless entirely successful.
124156         Avoid memory leak in some failing cases.
124157         Fix regression for USER.GROUP reported by Dmitry V. Levin in
124158         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
124159         (parse_user_spec): Rewrite to use parse_with_separator.
124161 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124163         * modules/userspec: Don't depend on alloca.
124165 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124167         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
124169 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
124171         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124172         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124173         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124175 2004-08-16  Simon Josefsson  <jas@extundo.com>
124177         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
124178         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
124179         Add --dry-run for --import.
124180         Let user provided command line parameters override configure.ac
124181         settings.
124183 2004-08-12  Simon Josefsson  <jas@extundo.com>
124185         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
124186         as discussed with Paul Eggert in threads rooted at
124187         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
124188         and
124189         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
124190         Before, the test was empty, and relied on ELIDE_CODE in source
124191         code.)
124192         (gl_PREREQ_GETOPT): New macro.
124193         (gl_GETOPT): Use them.
124195 2004-08-12  Simon Josefsson  <jas@extundo.com>
124197         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
124198         * lib/getopt_.h: Renamed from getopt.h.
124200 2004-08-12  Simon Josefsson  <jas@extundo.com>
124202         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
124203         Change default library name from libfoo to libgnu.
124204         Now, if you have a configure.ac that says:
124205                 gl_SOURCE_BASE(gl)
124206                 gl_M4_BASE(gl/m4)
124207                 gl_MODULES(error getopt etcetera)
124208                 gl_INIT
124209         you can import all you need by running:
124210                 ../gnulib/gnulib-tool --import
124212         * modules/getopt (Files): Rename getopt.h to getopt_.h.
124213         (Makefile.am): Rewrite, use logic from argz.
124214         (Include): Use <getopt.h> instead of "getopt.h".
124216 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124218         * modules/argp (Files): Add m4/unlocked-io.m4.
124219         (Depends-on): Add extensions.
124221 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124223         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
124224         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
124225         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
124226         Check for program_invocation_name, program_invocation_short_name,
124227         flockfile, funlockfile, features.h, _getopt_long_only_r.
124229 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124231         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
124232         its complicated substitute.
124233         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
124234         and program_invocation_name.
124235         (__argp_basename) [!_LIBC]: Remove; the only use was
124236         replaced by its body.
124237         (__argp_short_program_name): Change condition from
124238         !defined __argp_short_program_name to
124239         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
124240         to match argp-namefrob.h.
124241         (__argp_failure): Don't assume strerror_r returns char *.
124242         * lib/argp-parse.c (N_): Define unconditionally.
124243         (argp_default_options): Fill out initializers with 0 to avoid
124244         gcc warnings.
124246 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124248         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
124249         getopt1.c.
124251 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124253         Merge from coreutils.
124255         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
124257         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
124258         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
124260 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124262         Merge from coreutils.
124264         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
124265         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
124266         for Reliant Unix 5.43.
124268         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
124269         (union fooround): Use uintmax_t, not long int.
124270         The rest is a merge from libc:
124271         [defined _LIBC]: Include <shlib-compat.h>.
124272         (_obstack) [defined _LIBC]: Remove after 2.3.4.
124274         * lib/settime.c (settime): Recode to avoid warning with
124275         Sun Forte C 6U2.
124277         * lib/strverscmp.c: Convert to UTF-8.
124279 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124281         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
124282         m4/uintmax_t.m4.
124284 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124286         * modules/xalloc-die: New file.
124287         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
124289         * modules/md5 (Files): Add m4/uint32_t.m4.
124290         * modules/sha1: Renamed from modules/sha.
124291         (Files):
124292         Rename lib/sha.h to lib/sha1.h.
124293         Rename lib/sha.c to lib/sha1.c.
124294         Rename m4/sha.m4 to m4/sha1.m4.
124295         (lib_SOURCES): Likewise.
124296         (configure.ac): Rename gl_SHA to gl_SHA1.
124297         (Include): sha.h -> sha1.h.
124299 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124301         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
124302         * m4/sha1.m4: Renamed from sha.m4.
124303         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
124305 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124307         * lib/obstack.h (obstack_empty_p):
124308         Don't assume that chunk->contents is suitably aligned.
124309         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
124310         Likewise. Problem reported by Benno in
124311         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
124313         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
124314         readable.  This could be improved further but it'd take some work.
124316 2004-08-08  Simon Josefsson  <jas@extundo.com>
124318         * modules/xgethostname (Depends-on): Remove exit and error (not
124319         used).
124321         * modules/getpass-gnu: Add getpass.h.
124322         (Depends-on): Add stdbool.
124323         * modules/getpass: Add getpass.h.
124325 2004-08-08  Simon Josefsson  <jas@extundo.com>
124327         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
124328         Check getpass declaration.
124330 2004-08-08  Simon Josefsson  <jas@extundo.com>
124332         * lib/xgethostname.c: Don't include error.h (not used).
124334         * lib/getpass.h: Add.
124335         * lib/getpass.c: Include getpass.h first.
124337 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
124339         * lib/xalloc-die.c: New file.
124340         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
124341         All uses removed.
124342         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124343         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124344         xalloc-die.c.
124345         (_, N_, xalloc_die): Move to xalloc-die.c.
124346         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124347         so that we needn't mess with xalloc_msg_memory_exhausted.
124349         * lib/sha1.h: Renamed from sha.h.
124350         (SHA1_H): Renamed from _SHA_H.
124351         (sha1_ctx): Renamed from sha_ctx.
124352         (sha1_init_ctx): Renamed from sha_init_ctx.
124353         (sha1_process_block): Renamed from sha_process_block.
124354         (sha1_process_bytes): Renamed from sha_process_bytes.
124355         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124356         (sha1_read_ctx): Renamed from sha_read_ctx.
124357         (sha1_stream): Renamed from sha_stream.
124358         (sha1_buffer): Renamed from sha_buffer.
124359         * lib/sha1.c: Likewise; renamed from sha.c.
124360         Do not include <sys/types.h>.
124361         Include <stddef.h> rather than <stdlib.h>.
124363 2004-08-08  Bruno Haible  <bruno@clisp.org>
124365         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124366         FILESYSTEM_PREFIX_LEN.
124367         * lib/progreloc.c: Likewise.
124368         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124370 2004-08-06  Simon Josefsson  <jas@extundo.com>
124372         * modules/progname (Depends-on): Don't depend on stdbool.
124374 2004-08-06  Simon Josefsson  <jas@extundo.com>
124376         * modules/getsubopt: New file.
124377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124378         getsubopt.
124380 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124382         More merge from coreutils.
124384         * m4/utimens.m4, m4/utimecmp.m4: New files.
124385         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124386         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124387         prereq.m4, sha.m4: Import changes from coreutils.
124389 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124391         More merge from coreutils.
124392         * modules/raise, modules/readtokens0, modules/utimens:
124393         * modules/utimecmp, module/xnanosleep: New files.
124394         * modules/strftime: Add lib/strftime.h.
124395         Change include from <time.h> to "strftime.h".
124396         * modules/yesno: Add lib/yesno.h.
124397         * modules/backupfile: Remove lib/addext.c.
124398         * modules/euidaccess: Add stat-macros.h.
124399         * modules/canonicalize, modules/euidaccess,
124400         modules/filemode, modules/lchown, modules/makepath,
124401         modules/rmdir, modules/stat: Likewise.
124403 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124405         Merge from tar.
124406         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124407         SIZE_MAX is a valid preprocessor constant.
124408         (__argp_basename): Change from "#ifndef _LIBC"
124409         to "#ifndef __argp_short_program_name", so that
124410         we don't compile these functions for tar.
124412         More merges from coreutils.
124413         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124414         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124415         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124416         * lib/addext.c: Remove; no longer needed.
124417         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124418         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124419         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124420         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124421         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124422         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124423         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124424         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124425         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124426         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124427         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124428         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124429         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124430         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124431         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124432         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124433         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124434         Import changes from coreutils.
124436 2004-08-05  Simon Josefsson  <jas@extundo.com>
124438         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124440 2004-08-05  Simon Josefsson  <jas@extundo.com>
124442         * m4/getsubopt.m4: New file.
124444 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124446         Merge from coreutils.
124448         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124449         * m4/getcwd-path-max.m4: New files.
124451         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124452         FILESYSTEM_PREFIX_LEN ->
124453         FILE_SYSTEM_PREFIX_LEN.
124454         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
124455         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
124456         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
124457         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
124459         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
124460         prerequisite modules now handle the DOS stuff.
124461         Don't check for unistd.h.
124463 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124465         Merge from coreutils.
124467         * lib/.gdb-history: Remove; this doesn't belong here.
124469         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
124470         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
124471         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
124472         * lib/getcwd.c: New files.
124474         * lib/dirname.h: Include <stdbool.h>.
124475         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
124476         for consistency with POSIX terminology.  All uses changed.
124477         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
124478         (strip_trailing_slashes): Use bool for booleans.
124479         * lib/stripslash.c (strip_trailing_slashes): Likewise.
124481         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
124482         sometimes returns a positive errno value even when it succeeds.
124483         (print_errno_message) [!LIBC]: Fall back on strerror if
124484         __strerror_r fails.
124486         * lib/path-concat.c (mempcpy): Don't define if a system header defines
124487         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
124488         (longest_relative_suffix): New function.
124489         (path_concat): Use it.  Assume first argument is not NULL.
124490         Port to DOS.  Omit redundant separators.
124491         Report an error instead of returning NULL.
124492         Use mempcpy instead of memcpy.
124493         (xpath_concat): Remove: not declared or used.
124495         * lib/same.h: Include <stdbool.h>
124496         (same_name): Return bool, not int.
124497         * lib/same.c (same_name): Likewise.
124498         (errno): Don't declare; we assume C89 or better now.
124500         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
124501         if not already defined.
124503         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
124504         * lib/dup-safer.c (errno): Likewise.
124506 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124508         Merge from coreutils.
124509         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
124510         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
124511         * modules/path-concat: Don't depend on strdup.
124513 2004-08-03  Simon Josefsson  <jas@extundo.com>
124515         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
124516         * lib/progname.h: Don't include stdbool.h.
124518 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124520         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
124521         * MODULES.html.sh (func_all_modules): Remove fatal.
124523 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124525         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
124527 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124529         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
124530         working.
124532 2004-08-02  Simon Josefsson  <jas@extundo.com>
124534         * lib/getsubopt.h: New file, with comments from Bruno Haible.
124535         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
124536         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
124538 2004-08-01  Simon Josefsson  <jas@extundo.com>
124540         * lib/xgetdomainname.c: Include stdlib.h, for free().
124542 2004-07-19  Bruno Haible  <bruno@clisp.org>
124544         * MODULES.html.sh (func_all_modules): Add dummy.
124546 2004-07-16  Simon Josefsson  <jas@extundo.com>
124548         * modules/dummy: New file.
124550 2004-07-16  Simon Josefsson  <jas@extundo.com>
124552         * lib/dummy.c: New file.
124554 2004-07-16  Bruno Haible  <bruno@clisp.org>
124556         * lib/backupfile.h: Add extern "C" for C++.
124557         * lib/closeout.h: Likewise.
124558         * lib/copy-file.h: Likewise.
124559         * lib/findprog.h: Likewise.
124560         * lib/full-write.h: Likewise.
124561         * lib/pathname.h: Likewise.
124562         * lib/progname.h: Likewise.
124563         * lib/stpcpy.h: Likewise.
124564         * lib/stpncpy.h: Likewise.
124565         * lib/strcase.h: Likewise.
124566         * lib/strstr.h: Likewise.
124567         * lib/xalloc.h: Likewise.
124569         * lib/mbswidth.h: Add extern "C" for C++.
124570         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
124572 2004-07-13  Robert Millan  <robertmh@gnu.org>
124574         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
124576 2004-07-09  Simon Josefsson  <jas@extundo.com>
124578         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
124579         failed without this.)
124581 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124583         * modules/chown (Files): Add lib/fchown-stub.c, since
124584         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
124586 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124588         * lib/fchown-stub.c: New file.
124590 2004-06-24  Jim Meyering  <jim@meyering.net>
124592         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124594 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124596         * modules/argz: Omit "#include".
124598         * MODULES.html.sh (func_all_modules): Add calloc, to match
124599         2004-06-01 addition of calloc module.
124601 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124603         * m4/argz.m4: New file, which is autoupdated from libtool.
124605 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124607         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
124608         libtool.
124610 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124612         * config/srclist-update: Don't insist on "USA." before the
124613         close-comment, as libtool omits the period and puts the */ on a
124614         separate line.
124615         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
124616         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
124618 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
124620         * modules/argz: New file.
124621         * MODULES.html.sh (func_all_modules): Add argz.
124623 2004-06-12  Jim Meyering  <jim@meyering.net>
124624         and  Paul Eggert  <eggert@cs.ucla.edu>
124626         * modules/hash (Files): Add lib/xalloc.h.
124627         * modules/pipe (Depends-on): Add wait-process.
124628         * modules/stat (Depends-on): Add xalloc.
124629         * modules/userspec (Files): Add lib/userspec.h.
124630         * modules/xstrto
124632         Upgrade from gettext-0.13.
124633         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
124634         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
124635         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
124637 2004-06-10  Jim Meyering  <jim@meyering.net>
124639         * lib/calloc.c: New file.
124641 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
124643         * lib/getdate.y (yylex): Allow space between sign and number.
124644         Problem reported by Dan Jacobson.
124646 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124648         Merge from coreutils CVS.
124650         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
124651         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
124652         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
124653         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
124654         xstrtol.m4: Fix copyright date and/or serial number.
124656         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
124657         See if we need an fchown replacement.
124658         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
124659         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
124660         and use the replacement function if we detect either defect.
124662         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124663         gl_UTIMECMP.
124665 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124666         and  Jim Meyering  <jim@meyering.net>
124668         Merge from coreutils CVS.
124670         * lib/stat-macros.h: New file, with contents from file-type.h
124671         and coreutils' system.h.
124672         * lib/file-type.c: Include "stat-macros.h".
124673         * lib/file-type.h (file_type): Move all macro definitions to new file,
124674         stat-macros.h.
124676         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124677         Wrap old code with this conditional.
124678         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124679         function that does not dereference symlinks.
124680         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124682         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124683         dependency problems.
124684         (xreadlink): Accept new arg SIZE, for efficiency.
124685         All decls and uses changed.
124686         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124688         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124689         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124691         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124692         sysexits.h.
124694 2004-06-01  Jim Meyering  <jim@meyering.net>
124696         * m4/calloc.m4: New file.
124698 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124701         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124702         Also, fix a typo in a diagnostic.
124704 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124706         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124707         or AC_FUNC_REALLOC.
124709 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124711         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124712         macros to be defined.
124713         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124714         the allocator returns NULL because the requested size is zero.
124716 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124718         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124719         var.  Add comment explaining why libc still defines it.  This
124720         merges the following patch from glibc:
124721         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124723 2004-05-20  Andreas Schwab  <schwab@suse.de>
124725         * m4/free.m4: Replace free if it not known to work, not the other
124726         way round.
124728 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124730         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124731         present in glibc since revision 1.1 of this file.
124732         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124733         obstack_alignment_mask, obstack_alloc, obstack_base,
124734         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124735         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124736         obstack_grow0, obstack_init, obstack_int_grow,
124737         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124738         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124739         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124740         nonexistent functions.
124742 2004-05-18  Karl Berry  <karl@gnu.org>
124744         * config/srclist.txt: break link for vasnprintf.c.
124746 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124748         Port obstack to the AS/400, where pointers are 16 bytes wide and
124749         you cannot cast an integer to a valid pointer.  This patch is
124750         currently waiting to be integrated into glibc; see
124751         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124753         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124754         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124755         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124756         (struct obstack): temp member is now a union of a pointer and
124757         an integer, instead of an integer.  All integer uses changed.
124758         This does not affect the physical layout of struct obstack,
124759         except on hosts (like the AS/400) where the size or alignment of
124760         void * is greater than that of ptrdiff_t.
124761         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124762         __STDC__)]: Store temporary in pointer member of union, not
124763         integer member.
124764         * lib/obstack.c: Include <stddef.h>, for offsetof.
124765         (struct fooalign): Remove; it doesn't need a name.
124766         (union fooround): Change double to long double, and add void *.
124767         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124768         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124769         not a macro.  Hence the values are always int; so remove all
124770         casts-to-int in uses.
124772 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124774         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124775         we can get this patch merged into glibc.
124777 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124778             Paul Eggert  <eggert@cs.ucla.edu>
124780         * m4/argp: Depend on alloca.
124782 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124783             Paul Eggert  <eggert@cs.ucla.edu>
124785         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124786         freecoding.
124788 2004-05-17  Bruno Haible  <bruno@clisp.org>
124790         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124791         precision that consists of a '.' followed by an empty digit string.
124792         Patch by Tor Lillqvist <tml@iki.fi>.
124794 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124796         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124797         for backward compatibility with older code.  We need our own
124798         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124799         it under some other name, and our alloca.h will define it.
124801 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124802             Derek Price  <derek@ximbiot.com>
124804         * lib/alloca.c: Include <alloca.h>, to get our interface.
124805         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124806         include <alloca.h> first.  Use C89 prototype for alloca; this
124807         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124808         Use #elif for simplicity, since we can assume C89 now.
124809         Don't try to source the system alloca.h since it will not be found
124810         and to prevent recursively including its replacement.
124811         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124812         * lib/regex.c: Likewise.
124814 2004-05-16  Derek Price  <derek@ximbiot.com>
124815             Paul Eggert  <eggert@cs.ucla.edu>
124817         getline cleanup.  This changes the getndelim2 API: both order of
124818         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124819         no delimiter).
124821         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124822         interface does that.
124823         (getline): Always use getdelim, so that we don't have two
124824         copies of this code.
124825         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124826         if available.
124827         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124828         (GETNDELIM2_MAXIMUM): New macro.
124829         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124830         instead of the old practice of delim2==0.  All callers changed.
124831         Return -1 on overflow, instead of returning junk.
124832         Do not set *linesize unless allocation succeeds.
124833         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124834         that we include sys/types.h.
124835         * lib/getnline.h: Likewise.
124836         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124837         (getndelim2): Reorder arguments.
124838         * lib/getnline.c (getnline, getndelim):
124839         Don't discard the NMAX argument.
124840         (getnline): Invoke getndelim, to avoid code duplication.
124841         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124842         of (size_t) -1 by callers of the getnline family.
124844 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124846         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124847         Check for gettimeofday.
124848         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124849         Check for settimeofday, stime.
124851 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124853         * lib/nanosleep.c (suspended): Change its type from int to
124854         sig_atomic_t volatile.
124855         (first_call): Make it private to rpl_nanosleep, and have it
124856         be zero initially as that's a bit faster.
124857         (my_usleep): Round up fractional times instead of truncating them,
124858         as this is the usual meaning for 'sleep'.
124860         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124861         doesn't work.
124862         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124863         (ENOSYS): Define if not defined.
124864         (settime): Fall back on stime if it exists and settimeofday fails.
124865         But don't bother with fallbacks if a method fails with errno == EPERM.
124867 2004-05-11  Jim Meyering  <jim@meyering.net>
124869         Prior to this change, the save_cwd caller required read access to the
124870         current directory on most systems (ones with the fchdir function).
124872         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124873         fails, try write-only, and finally, resort to using xgetcwd.
124875 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124877         * lib/obstack.c, obstack.h: Import changes from libc.
124879 2004-04-28  Bruno Haible  <bruno@clisp.org>
124881         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124882         also implicitly appends .exe to executables.
124883         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124884         accepts Windows pathnames.
124885         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124886         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124887         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124888         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124889         Reported by Derek Robert Price <derek@ximbiot.com>.
124891 2004-04-21  Karl Berry  <karl@gnu.org>
124893         * config/srclist.txt (localcharset.c): break sync.
124895 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124897         * m4/host-os.m4: Add a copyright notice.
124899 2004-04-20  Jim Meyering  <jim@meyering.net>
124901         Change UTILS_ to gl_ in AC_DEFINE'd names.
124902         Change utils_- and jm_-prefixed variables, too.
124903         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124904         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124905         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124907         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124908         Don't emit trailing blanks.
124909         Also rename jm_-prefixed variables to have gl_ prefix.
124911         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124912         Also rename jm_-prefixed variables to have gl_ prefix.
124914         * m4/jm-macros.m4: Reflect the renamings.
124915         * m4/prereq.m4: Likewise.
124917 2004-04-20  Jim Meyering  <jim@meyering.net>
124919         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124920         memory.
124922 2004-04-20  Jim Meyering  <jim@meyering.net>
124923             Bruno Haible  <bruno@clisp.org>
124925         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124926         memory when realloc fails.
124928 2004-04-19  Jim Meyering  <jim@meyering.net>
124930         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124931         now that readutmp.c may call `free (0)'.
124933 2004-04-19  Bruno Haible  <bruno@clisp.org>
124935         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124936         * m4/inttypes_h.m4: Likewise.
124937         * m4/stdint_h.m4: Likewise.
124938         * m4/intmax_t.m4: Likewise.
124939         * m4/uintmax_t.m4: Likewise.
124941 2004-04-18  Jim Meyering  <jim@meyering.net>
124943         * m4/prereq.m4: Don't forbid jm_ prefix.
124945         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124946         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124947         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124948         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124949         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124950         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124951         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124952         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124953         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124954         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124955         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124956         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124957         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124958         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124959         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124960         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124961         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124962         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124963         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124965 2004-04-18  Jim Meyering  <jim@meyering.net>
124967         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124968         failure, don't leak memory and do call END_UTMP_ENT.
124970 2004-04-16  Jim Meyering  <jim@meyering.net>
124972         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124973         coreutils' stat program.
124974         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124976 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124978         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124979         C89.
124980         (CHAR_BIT): Remove, since we assume C89.
124981         Include <stdint.h> if available, as per current Autoconf CVS advice.
124983 2004-03-31  Jim Meyering  <jim@meyering.net>
124985         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124986         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124987         * m4/xalloc.m4: Likewise.
124989 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124991         Merge from coreutils.
124993         * m4/inttostr.m4: New file.
124994         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124995         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124996         Require gl_CLOCK_TIME.
124997         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124999 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125001         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
125002         not bool, to be more consistent with Unix conventions.
125003         Suggested by Bruno Haible.
125005         Merge from coreutils.
125007         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
125008         * lib/umaxtostr.c: New files.
125010         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
125011         the usual <time.h> dance.
125012         (get_date): Change signature to support fractional time stamps.
125013         All callers changed.
125014         * lib/getdate.y: Include "getdate.h" first, as we can now
125015         assume C89 and don't need to worry about 'const'.
125016         Similarly, include "unlocked-io.h" near start, not in middle.
125017         Include <limits.h>.
125018         (textint.value): Use long int rather than int.
125019         (textint.digits): Use size_t rather than int.
125020         (BILLION, LOG10_BILLION): New constants.
125021         (parser_control): New member rel_ns.  Members day_ordinal,
125022         time_zone, month, day, hour, minutes, rel_year, rel_month,
125023         rel_day, rel_hour, rel_minutes, rel_seconds
125024         are now long int, not int.  Member seconds is now struct timespec,
125025         not int.  New member timespec_seen.  Members dates_seen, days_seen,
125026         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
125027         not int.
125028         (%union.intval): Now long int, not int.
125029         New member timespec.
125030         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
125031         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
125032         (spec): Now is a timespec or an item list.
125033         (timespec, items): New nonterminals.
125034         (time, rel, relunit, number, get_date):
125035         Add support for fractional seconds.
125036         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
125037         (gmtime, localtime, mktime): Remove decls; not needed with C89.
125038         (to_hour): First arg is now long int, not int.
125039         (to_year): Returns long int, not int.
125040         Don't treat year -70 like 70.
125041         (tm_diff): Returns long int, not int.
125042         (lookup_word): Use bool instead of int when appropriate.
125043         (yylex): Use size_t for count, not int.
125044         Detect overflow when parsing large integer constants.
125045         Add support for fractions.
125046         (get_date): Make pointers 'const' if possible.
125047         Use more-portable code to detect integer overflow.
125048         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
125049         Don't use ctime; it's not reliable if the year has >4 digits.
125051         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
125052         This is for compatibility with BSD.
125054         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
125055         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
125056         From coreutils' system.h.
125058         * lib/userspec.c: Don't include "posixver.h".
125059         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
125060         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
125061         compatible extension.  Simplify code by removing a boolean int
125062         that was always nonzero if a string was nonnull.
125064 2004-03-30  Jim Meyering  <jim@meyering.net>
125066         Merge from coreutils.
125068         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
125069         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
125070         on some systems one must include <grp.h> before it.
125071         Reported by Christian Krackowizer.
125073 2004-03-30  Jim Meyering  <jim@meyering.net>
125075         Merge from coreutils.
125077         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
125079         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
125080         an empty input stream.
125082         * lib/readtokens.c: Include <stdbool.h>.
125083         (readtoken): Use `size_t' rather than int/long.
125084         All callers adjusted.
125085         Use `bool' rather than `int' where appropriate.
125086         Use memset rather than an explicit loop.
125087         Use x2nrealloc rather than xrealloc.
125088         Allow the use of `\0' as a delimiter.
125089         (readtokens): Likewise.
125090         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
125092 2004-03-30  Jim Meyering  <jim@meyering.net>
125094         * m4/realloc.m4: Remove file, since now it does no more than
125095         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
125096         the `configure.ac' section of module/realloc.
125097         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
125099 2004-03-30  Bruno Haible  <bruno@clisp.org>
125101         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
125102         nonnull.
125104 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125106         Merge changes to getloadavg.c from coreutils and Emacs.
125108         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
125109         Define to an expression, not to the empty string.
125110         Include cloexec.h and xalloc.h.
125111         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
125112         Use set_cloexec_flag rather than rolling our own.
125113         * lib/cloexec.c, lib/cloexec.h: New files.
125115 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125117         * m4/cloexec.m4: New file.
125119 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125121         * lib/getopt.h: Sync with libc CVS.
125123 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125124             Bruno Haible  <bruno@clisp.org>
125126         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
125127         mbswidth.
125129 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125130             Bruno Haible  <bruno@clisp.org>
125132         * lib/mbswidth.h: Include <wchar.h> only if
125133         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
125134         <wchar.h>.
125135         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
125137 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125139         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
125140         Sync with libc CVS.
125141         * lib/getopt_int.h: New file, also synced from libc.
125143 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125145         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
125146         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
125147         Bring back getopt.c, getopt.h, getopt1.c.
125149 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125151         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
125152         All uses changed.  Check for sa_sigaction member; this fixes
125153         a bug first reported by Jason Andrade in
125154         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125156 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125158         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
125159         '#if' expressions.  Unlike the code it replaces, it does not
125160         depend on (defined _SC_PAGESIZE).  However, it does depend on
125161         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
125162         first reported by Jason Andrade in
125163         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125165 2004-02-25  Simon Josefsson  <jas@extundo.com>
125167         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
125169 2004-02-25  Simon Josefsson  <jas@extundo.com>
125171         * lib/strdup.h: New file.
125172         * lib/strdup.c: Include it.
125173         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125174         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125176 2004-02-23  Karl Berry  <karl@gnu.org>
125178         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
125179         (from fencepost.gnu.org:/gd/gnuorg).
125181 2004-02-23  Karl Berry  <karl@gnu.org>
125183         * config/srclistvars.sh (GNUORG) [karl]: redefine.
125184         * config/srclist.txt: add maintain/standards documents.
125186 2004-02-18  Bruno Haible  <bruno@clisp.org>
125188         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
125189         Reported by Derek Robert Price <derek@ximbiot.com>.
125191 2004-02-16  Karl Berry  <karl@gnu.org>
125193         * config/mkinstalldirs, install-sh: update from automake.
125195 2004-02-06  Karl Berry  <karl@gnu.org>
125197         * m4/po.m4: update from gettext 0.14.1.
125199 2004-02-06  Karl Berry  <karl@gnu.org>
125201         * lib/config.charset: update from gettext 0.14.1.
125203 2004-02-05  Paul Eggert  <eggert@twinsun.com>
125205         Add comments and code, prompted by suggestions from Bruno Haible
125206         for sh-quote.
125207         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
125208         describing the enum quoting_style values.
125209         * lib/quotearg.c (quotearg_alloc): New function.
125210         (quotearg_buffer_restyled): Treat lone { and } as special.
125211         Treat = as special.  Work around bug with older shells
125212         that "see" a '\' that is really the 2nd byte of a multibyte char.
125213         Quote empty string with shell_quoting_style.
125215 2004-02-03  Bruno Haible  <bruno@clisp.org>
125217         * m4/pipe.m4: New file, from GNU gettext.
125219 2004-02-03  Bruno Haible  <bruno@clisp.org>
125221         * lib/pipe.h: New file, from GNU gettext.
125222         * lib/pipe.c: New file, from GNU gettext.
125224 2004-01-27  Bruno Haible  <bruno@clisp.org>
125226         * m4/execute.m4: New file, from GNU gettext.
125228 2004-01-27  Bruno Haible  <bruno@clisp.org>
125230         * lib/execute.h: New file, from GNU gettext.
125231         * lib/execute.c: New file, from GNU gettext.
125232         * lib/w32spawn.h: New file, from GNU gettext.
125234 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125236         Merge from diffutils.
125238         * lib/file-type.c (file_type): Add typed memory objects.
125239         * lib/file-type.h (S_TYPEISTMO): New macro.
125241         * lib/c-stack.h (c_stack_action): Remove argv argument.
125242         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
125243         (die): Don't calculate message unless segv_action returns.
125244         (get_stack_location, min_address_from_argv, max_address_from_argv,
125245         volatile stack_base, volatile_stack_size): Remove.
125246         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
125247         that every segmentation violation is a stack overflow.  (Ouch!)
125248         See Debian bug 136249 (still outstanding) for more info about why
125249         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
125251 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125253         Exit-status fix from coreutils.
125255         Use exit_failure consistently in place of EXIT_FAILURE,
125256         so that program exit statuses are consistent on failure.
125258         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
125259         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
125260         * lib/argmatch.h: Comment fix to match the above.
125261         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
125262         Now a macro referring to exit_failure, instead of a separate
125263         variable.  Include "exitfail.h" to get it.
125264         * lib/xstrtol.h: Include "exitfail.h".
125265         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
125267         * lib/long-options.c (parse_long_options): Use prototype
125268         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
125269         for clarity.
125271 2004-01-21  Jim Meyering  <jim@meyering.net>
125273         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
125274         so as not to conflict with a different-sized __mktime_internal
125275         function in GNU libc.
125276         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
125277         Problem building statically-linked `ls' reported by Michael Brunnbauer.
125279 2004-01-20  Karl Berry  <karl@gnu.org>
125281         * config/config.guess: update from config.
125283         * config/srclistvars.sh: GNUWWWLICENSES for karl.
125285 2004-01-20  Bruno Haible  <bruno@clisp.org>
125287         Safer stack allocation.
125288         * lib/setenv.c: Include allocsa.h.
125289         (alloca): Remove fallback definition.
125290         (freea): Remove macro.
125291         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
125292         instead of freea.
125294 2004-01-20  Bruno Haible  <bruno@clisp.org>
125296         * m4/eealloc.m4: New file, from GNU gettext.
125298 2004-01-20  Bruno Haible  <bruno@clisp.org>
125300         * m4/allocsa.m4: New file, from GNU gettext.
125302 2004-01-20  Bruno Haible  <bruno@clisp.org>
125304         * lib/xallocsa.h: New file, from GNU gettext.
125305         * lib/xallocsa.c: New file, from GNU gettext.
125307 2004-01-20  Bruno Haible  <bruno@clisp.org>
125309         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
125311 2004-01-20  Bruno Haible  <bruno@clisp.org>
125313         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
125314         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
125315         specially.
125317 2004-01-20  Bruno Haible  <bruno@clisp.org>
125319         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
125320         patch.
125322 2004-01-20  Bruno Haible  <bruno@clisp.org>
125324         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
125326 2004-01-20  Bruno Haible  <bruno@clisp.org>
125328         * lib/eealloc.h: New file.
125330 2004-01-20  Bruno Haible  <bruno@clisp.org>
125332         * lib/binary-io.h: Avoid warnings on Cygwin.
125334 2004-01-20  Bruno Haible  <bruno@clisp.org>
125336         * lib/allocsa.h: New file, from GNU gettext.
125337         * lib/allocsa.c: New file, from GNU gettext.
125339 2004-01-18  Karl Berry  <karl@gnu.org>
125341         * doc/gpl.texi, doc/lgpl.texi: new files.
125343 2004-01-18  Karl Berry  <karl@gnu.org>
125345         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125346         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125348 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125350         Merge from coreutils.
125352         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125353         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125354         (gl_DEFAULT_POSIX2_VERSION): Move
125355         the documentation from 'configure' into 'config.hin',
125356         so that 'configure --help' isn't burdened by it and
125357         we don't have to worry about its formatting there.
125358         Reword the documentation so that it's more succinct
125359         and can be run together into a single paragraph.
125360         * m4/same.m4 (gl_SAME): Check for pathconf.
125362 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125364         Merge from coreutils.
125366         * lib/posixver.c: Include posixver.h.
125368         * lib/same.c: Include <stdbool.h>, <limits.h>.
125369         (_POSIX_NAME_MAX): Define if not defined.
125370         (MIN): New macro.
125371         (same_name): If file names are silently truncated, report
125372         that the file names are the same if they are the same after
125373         the silent truncation.
125375         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125376         conversion function.
125377         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125378         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125379         longer needed.
125381 2004-01-15  Jim Meyering  <jim@meyering.net>
125383         Merge from coreutils.
125385         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125386         if no library is required.
125387         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125388         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125389         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125390         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125391         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125392         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125393         value, $ac_cv_search_crypt, if it's "none required".
125394         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125395         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125396         not gl_FUNC_GETLOADAVG.
125397         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125398         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125400 2004-01-15  Jim Meyering  <jim@meyering.net>
125402         Merge from coreutils.
125404         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125405         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125406         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125408         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125409         optional configure-time default.
125411         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125413         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125415 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125417         Merge from coreutils.
125419         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125420         value, $ac_cv_search_nanosleep, if it's "none required".
125422 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125424         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125425         with like-named macro in fnmatch.c.
125426         (EXT): Use an internal constant instead.
125428         Merge fnmatch patches from glibc.
125429         * lib/fnmatch.c (mbsinit): Remove define.
125430         Add libc_hidden_ver (__fnmatch, fnmatch).
125431         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125432         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125434 2004-01-14  Karl Berry  <karl@gnu.org>
125436         * config/install-sh: update from automake.
125438 2004-01-13  Karl Berry  <karl@gnu.org>
125440         * config/install-sh: update from automake.
125442 2004-01-09  Karl Berry  <karl@gnu.org>
125444         * config/install-sh: update from automake.
125446 2004-01-05  Karl Berry  <karl@gnu.org>
125448         * config/config.{sub,guess}: update from config.
125450 2003-12-31  Karl Berry  <karl@gnu.org>
125452         * config/depcomp: update from automake.
125454 2003-12-14  Karl Berry  <karl@gnu.org>
125456         * lib/config.charset: update from gettext-runtime.
125458 2003-12-03  Paul Eggert  <eggert@twinsun.com>
125460         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
125461         Bug reported by Alfred M. Szmidt.
125463 2003-12-03  Bruno Haible  <bruno@clisp.org>
125465         * m4/gettext.m4: Upgrade from gettext-0.13.
125466         * m4/po.m4: Upgrade from gettext-0.13.
125467         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
125468         * m4/intmax.m4: New file, from gettext-0.13.
125469         * m4/printf-posix.m4: New file, from gettext-0.13.
125471 2003-11-29  Karl Berry  <karl@gnu.org>
125473         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
125475 2003-11-25  Paul Eggert  <eggert@twinsun.com>
125476             Bruno Haible  <bruno@clisp.org>
125478         * lib/printf-parse.h: Don't include sys/types.h.
125479         (ARG_NONE): New macro.
125480         (char_directive): Change type of *arg_index fields to size_t.
125481         * lib/printf-parse.c: Don't include sys/types.h.
125482         (SSIZE_MAX): Remove macro.
125483         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
125484         Remove unnecessary overflow check.
125485         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
125486         fields.
125488 2003-11-25  Bruno Haible  <bruno@clisp.org>
125490         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
125492 2003-11-25  Bruno Haible  <bruno@clisp.org>
125494         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
125495         gt_TYPE_SSIZE_T.
125497 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125499         * modules/alloca: Remove dependency on xalloc.
125501 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125503         * lib/alloca.c: Remove dependency on xalloc module.
125504         (xalloc_die): Remove.
125505         (memory_full) [!defined emacs]: New macro.
125506         [!defined emacs]: Don't include xalloc.h.
125507         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
125508         address arithmetic overflows.  Change datatypes a bit to avoid
125509         unnecessary casts.
125511 2003-11-22  Jim Meyering  <jim@meyering.net>
125513         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
125514         s/size/size_t/.
125516 2003-11-21  Karl Berry  <karl@gnu.org>
125518         * config/config.{sub,guess}: update from config.
125520 2003-11-18  Karl Berry  <karl@gnu.org>
125522         * config/config.{sub,guess}: update from config.
125524         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
125526 2003-11-17  Paul Eggert  <eggert@twinsun.com>
125528         * README: Mention that S+T cannot overflow if S is the size of
125529         an existing object and T is sufficiently small.
125531 2003-11-17  Jim Meyering  <jim@meyering.net>
125533         On systems without utime and without a utimes function capable of
125534         dealing with a NULL struct utimbuf* argument, this utime replacement
125535         could -- in unusual circumstances -- leak a file descriptor.
125536         * lib/utime.c: Include <unistd.h> and <errno.h>.
125537         (utime_null): Be sure to close `fd' and to preserve errno.
125538         Reported by Geoff Collyer via Arnold Robbins.
125540 2003-11-17  Bruno Haible  <bruno@clisp.org>
125542         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
125543         (Depends-on): Add xsize.
125545 2003-11-17  Bruno Haible  <bruno@clisp.org>
125547         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
125549 2003-11-17  Bruno Haible  <bruno@clisp.org>
125551         * lib/vasnprintf.c (alloca): Remove fallback definition.
125552         (freea): Remove definition.
125553         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
125554         Reported by Paul Eggert.
125556 2003-11-16  Paul Eggert  <eggert@twinsun.com>
125557             Bruno Haible  <bruno@clisp.org>
125559         Protect against address arithmetic overflow.
125560         * lib/printf-args.h: Include stddef.h.
125561         (arguments): Change type of field 'count' to size_t.
125562         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
125563         'unsigned int' where appropriate.
125564         * lib/printf-parse.h: Include sys/types.h.
125565         (char_directive): Change type of *arg_index fields to ssize_t.
125566         (char_directives): Change type of fields 'count', max_*_length to
125567         size_t.
125568         * lib/printf-parse.c: Include sys/types.h and xsize.h.
125569         (SSIZE_MAX): Define fallback value.
125570         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
125571         instead of 'int' where appropriate. Check a_allocated, d_allocated
125572         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
125573         * lib/vasnprintf.c: Include xsize.h.
125574         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
125575         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
125576         overflow. Avoid wraparound when converting a width or precision from
125577         decimal to binary.
125579 2003-11-16  Bruno Haible  <bruno@clisp.org>
125581         Update from GNU gettext.
125582         * lib/printf-parse.c: Generalize to it can be compiled for wide
125583         strings.
125584         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
125585         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
125586         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
125587         SNPRINTF): New macros.
125588         Don't include <alloca.h> if the file is used inside libintl.
125589         (local_wcslen): New function, for Solaris 2.5.1.
125590         (VASNPRINTF): Use it instead of wcslen.
125592 2003-11-16  Bruno Haible  <bruno@clisp.org>
125594         * lib/xsize.h (xmax): New function.
125595         (xsum, xsum3, xsum4): Declare as "pure" functions.
125597 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125599         * modules/xalloc (Files): Undo latest change, since xalloc.h
125600         no longer needs SIZE_MAX or PTRDIFF_MAX.
125602 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125604         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
125605         gl_PTRDIFF_MAX.
125607 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125609         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
125610         "return", to pacify some unknown compiler.  Problem reported
125611         by Joerg Schilling.
125613 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125615         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
125616         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
125617         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
125618         heuristic is just as accurate as far as we know, and it removes a
125619         dependency on size_max.m4 and ptrdiff_max.m4.
125621 2003-11-11  Bruno Haible  <bruno@clisp.org>
125623         * modules/xsize (Files): Add m4/size_max.m4.
125624         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
125626 2003-11-11  Bruno Haible  <bruno@clisp.org>
125628         * m4/size_max.m4: New file.
125629         * m4/ptrdiff_max.m4: New file.
125630         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
125631         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
125632         (gl_XALLOC): Invoke it.
125634 2003-11-11  Bruno Haible  <bruno@clisp.org>
125636         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
125637         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
125638         defined.
125640 2003-11-10  Paul Eggert  <eggert@twinsun.com>
125642         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
125643         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
125644         rejected some allocations of exactly SIZE_MAX - 2 bytes.
125645         From Bruno Haible.
125646         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
125647         not (size_t) -1, since it's defined here.
125649 2003-11-09  Karl Berry  <karl@gnu.org>
125651         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
125653 2003-11-06  Paul Eggert  <eggert@twinsun.com>
125655         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
125656         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
125657         Reject sizes of exactly SIZE_MAX bytes.
125658         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
125659         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125661 2003-11-05  Bruno Haible  <bruno@clisp.org>
125663         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125664         SIZE_MAX defined in <limits.h> on Solaris.
125666 2003-11-04  Jim Meyering  <jim@meyering.net>
125668         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125669         variable names, rather than @VAR@.
125670         * modules/poll: Likewise.
125672 2003-11-04  Bruno Haible  <bruno@clisp.org>
125674         * modules/xsize: New file.
125675         * modules/linebreak: Depend on xsize.
125676         * MODULES.html.sh (func_all_modules): Add xsize.
125678 2003-11-04  Bruno Haible  <bruno@clisp.org>
125680         * m4/xsize.m4: New file.
125682 2003-11-04  Bruno Haible  <bruno@clisp.org>
125684         * lib/xsize.h: New file.
125685         * lib/linebreak.c: Include xsize.h.
125686         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125687         argument for overflow.
125688         Suggested by Paul Eggert.
125690 2003-11-03  Karl Berry  <karl@gnu.org>
125692         * config/config.{guess,sub}: update from config.
125694 2003-11-03  Jim Meyering  <jim@meyering.net>
125696         * modules/userspec (lib_SOURCES): Add userspec.h.
125697         (Include): Add "userspec.h".
125698         Improve description.
125700 2003-11-03  Jim Meyering  <jim@meyering.net>
125702         * lib/userspec.c: Include "userspec.h".
125703         * lib/userspec.h: New file.
125705 2003-11-03  Bruno Haible  <bruno@clisp.org>
125707         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125709 2003-11-03  Bruno Haible  <bruno@clisp.org>
125711         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125712         available, to avoid (extremely rare) race condition.
125713         Suggested by Paul Eggert.
125715 2003-11-02  Karl Berry  <karl@gnu.org>
125717         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125719 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125721         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125722         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125723         (read_filesystem_list): Set and use me_type_malloced.
125724         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125725         whatever the type happens to be), for brevity and consistency.
125726         Check for size calculation overflow on Alphas running OSF/1.
125728 2003-10-31  Jim Meyering  <jim@meyering.net>
125730         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125732         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125734 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125735             Bruno Haible  <bruno@clisp.org>
125737         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125738         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125740 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125742         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125743         netbsd*-gnu*.  Suggested by Robert Millan.
125745 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125747         * modules/group-member: Depend on stdbool.
125749 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125751         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125753 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125755         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125756         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125757         after the 'gnu' in these cases.  This fixes some bugs in the
125758         previous change, and is based on suggestions by Robert Millan.
125760 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125762         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125763         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125764         no longer needed.
125765         * lib/quotearg.c (quotearg_n_options): Use it.
125766         * lib/group-member.c: Include <stdbool.h>.
125767         (free_group_info): Arg is now const *; don't free arg.
125768         (get_group_info): Now returns bool and accepts struct group_info *,
125769         rather than returning a malloc'ed struct group_info *.
125770         All uses changed.  Check for overflow in internal size calculation.
125772         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125773         rather than xmalloc/xrealloc.
125774         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125775         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125776         conformance bug: the old code used a pointer after freeing the
125777         storage that it addressed.
125778         * lib/hash.c (hash_initialize): Simplify the code by using
125779         xalloc_oversized rather than doing it by hand.
125780         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125781         the buffer preserved.  Use free and xmalloc instead.
125782         * lib/quotearg.c (quotearg_n_options): Likewise.
125783         Use a simpler test for size overflow.  Don't use xalloc_oversized
125784         because unsigned int might be wider than size_t (!); this suggests
125785         that we should switch from unsigned int to size_t for slot numbers.
125787 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125789         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125790         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125791         NetBSD kernels.  Requested by Richard Stallman.
125793 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125795         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125796         to allocate the returned structure.  Do not allocate a subarray,
125797         as x2nrealloc will do that.
125798         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125799         instead of xnrealloc.
125800         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125802 2003-10-27  Bruno Haible  <bruno@clisp.org>
125804         * lib/stdbool_.h: Better support for BeOS.
125806 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125808         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125809         now uses inline.
125811 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125813         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125814         callers that want to do their own size-overflow checking.  Include
125815         <stdbool.h>, since xalloc_oversized returns bool.
125816         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125817         to use xalloc_oversized.
125819         Add two functions x2realloc, x2nrealloc, for programs that grow
125820         arrays dynamically by doubling their sizes.
125821         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125822         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125823         New functions.
125825         Port to C99 semantics for 'inline' of external functions.
125826         Bug reported by Bruno Haible.
125827         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125828         with the old contents of xnmalloc.
125829         (xnmalloc, xmalloc): Use it.
125830         (xnrealloc_inline): New static inline function,
125831         with the old contents of xnrealloc.
125832         (xnrealloc, xrealloc): Use it.
125834         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125835         that.
125837 2003-10-26  Karl Berry  <karl@gnu.org>
125839         * config/srclist.txt (COPYING.DOC): no longer available from
125840         /gd/gnuorg; don't know where the ultimate source is.
125842 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125844         Fix several address-calculation bugs in the hash modules,
125845         plus some minor code cleanup.
125847         * lib/hash.h: Include <stdbool.h>, for bool.
125848         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125849         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125850         hash_get_n_entries, hash_get_max_bucket_length,
125851         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125852         hash_rehash): Use size_t rather than unsigned.
125853         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125854         hash_get_n_buckets_used, hash_get_n_entries,
125855         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125856         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125857         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125858         Likewise.
125859         (SIZE_MAX): Define if not defined.
125860         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125861         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125862         hash_print):
125863         Use const * when possible.
125864         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125865         (check_tuning): Fix bug: if tuning parameters were very close to
125866         0 or 1, rounding errors could have caused subscript violations.
125867         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125868         (hash_initialize): Add 'fail:' label
125869         to free table and return NULL, and use it to simplify code.
125870         Use calloc rather than clearing the storage ourself.
125871         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125872         buffer size calculations.
125873         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125874         Include <stddef.h>, for size_t.
125875         * lib/hash-pjw.c (hash_pjw): Likewise.
125876         Switch to method described by Bruno Haible.
125877         Include <limits.h>, for CHAR_BIT.
125878         (SIZE_BITS): New macro.
125880 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125882         * m4/getline.m4 (AM_FUNC_GETLINE):
125883         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125884         hosts.  Problem reported by Derek Robert Price in
125885         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125886         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125887         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125889 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125891         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125892         ceiling the allocation at NMAX bytes rather than silently
125893         discarding input bytes before NMAX is reached.  This makes
125894         a difference only if NMAX exceeds SIZE_MAX / 2.
125896         * lib/obstack.c: Merge from glibc.
125897         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125898         Add libc_hidden_def (_obstack_newchunk).
125899         (_obstack_free) [! defined _LIBC]: Remove.
125900         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125901         a clone of the function body.
125902         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125903         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125905         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125906         glibc.
125907         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125908         arg to memcpy.
125910         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125911         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125912         Don't use lvalue casts, as GCC plans to remove support for them
125913         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125914         was also present in the non-GCC version, indicating that this
125915         code had always been buggy and had never been widely used.
125916         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125917         Use the fast variant of each macro, rather than copying the
125918         definiens of the fast variant; that way, we'll be more likely to
125919         catch future bugs in the fast variants.
125921 2003-10-20  Bruno Haible  <bruno@clisp.org>
125923         * modules/wait-process: New file.
125924         * MODULES.html.sh (func_all_modules): Add wait-process.
125926 2003-10-20  Bruno Haible  <bruno@clisp.org>
125928         * m4/wait-process.m4: New file.
125930 2003-10-20  Bruno Haible  <bruno@clisp.org>
125932         * lib/wait-process.h: New file, from GNU gettext.
125933         * lib/wait-process.c: New file, from GNU gettext.
125935 2003-10-19  Jim Meyering  <jim@meyering.net>
125937         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125938         HPUX 10.20.
125940 2003-10-18  Karl Berry  <karl@gnu.org>
125942         * config/config.guess: update from config.
125944 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125946         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125947         (getgroups): First arg is int, not size_t.
125948         Don't let 'free' mangle errno.
125950 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125952         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125954 2003-10-16  Karl Berry  <karl@gnu.org>
125956         * config/config.{guess,sub}: update from config.
125958 2003-10-16  Jim Meyering  <jim@meyering.net>
125960         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125961         memcpy.
125963 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125965         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125966         (SIZE_MAX): Remove.
125967         (new_exclude, add_exclude_file): Initial size no longer needs to
125968         be a power of 2.
125969         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125970         our own address arithmetic overflow checking.
125972         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125973         (fnmatch): Do not alloca more than 2000 wide characters;
125974         instead, use malloc for large buffers.
125975         Check for address arithmetic overflow, and return -1
125976         with errno set to ENOMEM in that case.
125977         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125978         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125979         instead, return -1.  Check for address arithmetic overflow.
125981 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125983         Handle invalid suffixes and overflow independently, so that
125984         callers can treat them independently as needed.  Fix some bugs in
125985         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125986         suffix for a human-readable blocksize.  The major caller-visible
125987         change is the addition of a new
125988         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125989         that both overflow and suffix chars were found.
125991         * lib/human.c (humblock): Don't check separately for invalid suffix
125992         char; that is xstrtoumax's job (now that its bug is fixed).
125993         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125994         INTMAX_MAX]: New macros.
125995         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125996         TYPE_MAXIMUM): New macros.
125997         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125998         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125999         if overflow occurs, as it's what __strtol does and it's more useful
126000         in practice.
126001         (__xstrtol): If __strtol reports some error other than ERANGE,
126002         reflect it to the caller as LONGINT_INVALID.  If it reports
126003         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
126004         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
126005         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
126006         value.
126007         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
126008         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
126009         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
126010         [defined UINTMAX_MAX]: New macros.
126012 2003-10-14  Bruno Haible  <bruno@clisp.org>
126014         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
126016 2003-10-14  Bruno Haible  <bruno@clisp.org>
126018         * m4/sig_atomic_t: New file, from GNU gettext.
126019         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
126021 2003-10-14  Bruno Haible  <bruno@clisp.org>
126023         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
126024         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
126025         Also use volatile where needed.
126027 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126029         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
126030         Change maintainer from Bruno Haible to 'all'.
126032 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126034         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
126036 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126038         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
126039         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
126040         and define in terms of the other primitives.
126041         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
126042         (SIZE_MAX): Define if not already defined.
126043         (array_size_overflow): New function.
126044         (xalloc_die): Abort instead of exiting if 'error' returns.
126045         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
126046         (xmalloc, xrealloc): Use them.
126047         (xcalloc): Check for address arithmetic overflow.
126048         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
126049         a bit faster than strcpy.
126051 2003-10-10  Simon Josefsson  <jas@extundo.com>
126053         * modules/argp (Depends-on): Add restrict and strcase.
126055 2003-10-10  Simon Josefsson  <jas@extundo.com>
126057         * m4/argp.m4: Add AC_C_INLINE.
126059 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126061         Merge getpass from libc, plus a few fixes.
126063         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
126064         Include <stdbool.h>.
126065         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
126066         __fsetlocking to empty.
126067         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
126068         do include <bits/libc-lock.h>.
126069         Do not include <fcntl.h>; not needed.
126070         [_LIBC]: Include <wchar.h>.
126071         (NOTCANCEL_MODE): New macro.
126072         (flockfile, funlockfile) [_LIBC]: New macros.
126073         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
126074         [!_LIBC]: New macros.
126075         (call_fclose): New function.
126076         (getpass): Use it.  Save tty stream separately; this simplifies the
126077         code and makes it more reliable if stdin happens to equal stdout.
126078         Invoke __fsetlocking on tty.
126079         Handle thread cancellation if needed.
126080         Namespace cleanup (use __tcgetattr, __getline).
126081         Use bool for Booleans.
126082         [USE_IN_LIBIO]: Handle wide streams.
126083         [!_LIBC]: Unconditionally do the fseek, since we don't know what
126084         stream might go where.
126086         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
126087         doesn't have to include <stdio.h> before us.
126088         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
126089         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
126090         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
126091         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
126092         if not declared, so that we can use getpass.c code from libc without
126093         rewriting it.
126094         (flockfile, ftrylockfile, funlockfile): New macros.
126096 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126098         * modules/getpass: Depend on stdbool.
126100 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126102         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
126104 2003-10-07  Karl Berry  <karl@gnu.org>
126106         * config/config.{guess,sub}: update from config.
126108 2003-10-06  Jim Meyering  <jim@meyering.net>
126109             Bruno Haible  <bruno@clisp.org>
126111         This lets translators provide better translations for the
126112         "Written by ..." part of --version output.
126113         * lib/version-etc.h: Include stdarg.h.
126114         (version_etc_copyright): Declare as readonly.
126115         (version_etc): Make this function variadic with a NULL-terminated list
126116         of author name strings.
126117         (version_etc_va): New declaration.
126118         * lib/version-etc.c: Include stdarg.h, stdlib.h.
126119         (version_etc_copyright): Declare as readonly.
126120         (version_etc_va): New function. Provide a different translatable string
126121         for each possible number of authors < 10. Abbreviate when there are 10
126122         authors or more.
126123         (version_etc): Make this function variadic. Call version_etc_va.
126124         Suggestion from Gary V. Vaughan.
126126         * lib/long-options.h (parse_long_options): Change prototype: the
126127         authors string is moved to the end and becomes variadic.
126128         * lib/long-options.c: Include stdarg.h.
126129         (parse_long_options): Make this function variadic, too.
126130         Call version_etc_va, not version_etc.
126132 2003-10-06  Bruno Haible  <bruno@clisp.org>
126134         * modules/version-etc-2: Remove file.
126135         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
126137 2003-10-06  Bruno Haible  <bruno@clisp.org>
126139         * modules/fatal-signal: New file.
126140         * MODULES.html.sh (func_all_modules): Add fatal-signal.
126142 2003-10-06  Bruno Haible  <bruno@clisp.org>
126144         * m4/fatal-signal.m4: New file.
126145         * m4/signalblocking.m4: New file, from GNU gettext.
126147 2003-10-06  Bruno Haible  <bruno@clisp.org>
126149         * lib/version-etc-2.h: Remove file.
126150         * lib/version-etc-2.c: Remove file.
126152 2003-10-06  Bruno Haible  <bruno@clisp.org>
126154         * lib/fatal-signal.h: New file, from GNU gettext.
126155         * lib/fatal-signal.c: New file, from GNU gettext.
126157 2003-10-05  Paul Eggert  <eggert@twinsun.com>
126159         * README: Rework advice for preventing empty .o files.
126160         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
126161         not <sys/types.h>.
126163 2003-10-04  Karl Berry  <karl@gnu.org>
126165         * lib/argp*: update from libc.
126167 2003-10-04  Karl Berry  <karl@gnu.org>
126169         * config/config.{guess,sub}: update from config.
126171 2003-10-02  Bruno Haible  <bruno@clisp.org>
126173         * modules/lchown (Include): Add lchown.h.
126174         * modules/time_r (Include): Use "..." syntax.
126175         * modules/xgetdomainname (Include): Add xgetdomainname.h.
126177 2003-10-01  Simon Josefsson  <jas@extundo.com>
126179         * MODULES.html.sh (func_all_modules): Move gethostname from section
126180         'based on' to section 'lacking' POSIX:2001.
126182 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
126184         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
126185         to output mode on the same stream.
126187 2003-09-29  Paul Eggert  <eggert@twinsun.com>
126189         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
126190         Fix arg typo in previous patch.
126192 2003-09-28  Jim Meyering  <jim@meyering.net>
126194         * lib/error.c: Correct cpp indentation.
126196 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126198         * modules/free: New file.
126200 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126202         * m4/free.m4: New file.
126204 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126206         * lib/minmax.h (MIN, MAX)
126207         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
126208         Omit the special code that used __typeof__, since we worry that
126209         it could be more trouble than it's worth.  See:
126210         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
126211         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
126213         * lib/free.c: New file.
126215 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
126217         Trivial fixes to Makefile.am parts of module listings.
126218         * modules/strstr: Append strstr.h to lib_SOURCES.
126219         * modules/strcase: Likewise, for strcase.h.
126221 2003-09-27  Karl Berry  <karl@gnu.org>
126223         * config/mkinstalldirs: update from automake.
126225 2003-09-26  Paul Eggert  <eggert@twinsun.com>
126227         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
126228         (error_tail): Do not loop, reallocating temporary buffer, since
126229         the output cannot contain more wide characters than the input
126230         contains bytes, the size must be big enough already.  This avoids
126231         one potential size overflow calculation.  Check for size overflow
126232         when calculating temporary buffer size.  Free temporary buffer
126233         when done, if it was allocated with malloc; this plugs a memory
126234         leak.  Remove casts from void * to pointers, that are no longer
126235         needed now that we're assuming C89 or better.
126237         Merge error changes from glibc.
126239         * lib/error.c, error.h: Update copyright notice header to match glibc.
126240         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
126241         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
126242         Disable cancellation while printing error.
126243         * lib/error.h: Prepend __ to parameter names.
126245 2003-09-26  Jim Meyering  <jim@meyering.net>
126247         * lib/error.c (error_tail): Move some declarations
126248         into inner scope where the local variables are used.
126250 2003-09-26  Bruno Haible  <bruno@clisp.org>
126252         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
126253         stpncpy().
126254         Don't define stpncpy through config.h; it's now done through stpncpy.h.
126256 2003-09-26  Bruno Haible  <bruno@clisp.org>
126258         * lib/stpncpy.h (gnu_stpncpy): New declaration.
126259         (stpncpy): Define as alias for gnu_stpncpy.
126260         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
126262 2003-09-25  Simon Josefsson  <jas@extundo.com>
126264         * lib/xgetdomainname.h: New file.
126265         * lib/xgetdomainname.c: New file.
126267 2003-09-25  Simon Josefsson  <jas@extundo.com>
126268             Bruno Haible  <bruno@clisp.org>
126270         * modules/getdomainname: New file.
126271         * modules/xgetdomainname: New file.
126272         * MODULES.html.sh (func_all_modules): Add getdomainname,
126273         xgetdomainname.
126275 2003-09-25  Simon Josefsson  <jas@extundo.com>
126276             Bruno Haible  <bruno@clisp.org>
126278         * m4/getdomainname.m4: New file.
126280 2003-09-25  Simon Josefsson  <jas@extundo.com>
126281             Bruno Haible  <bruno@clisp.org>
126283         * lib/getdomainname.h: New file.
126284         * lib/getdomainname.c: New file.
126286 2003-09-25  Karl Berry  <karl@gnu.org>
126288         * lib/argp-fmtstream.c, argp-help.c: update from libc.
126290 2003-09-25  Karl Berry  <karl@gnu.org>
126292         * config/install-sh: update from automake.
126294 2003-09-25  Bruno Haible  <bruno@clisp.org>
126296         * modules/version-etc-2: New file, from modules/version-etc with
126297         modifications.
126298         * MODULES.html.sh (func_all_modules): Add version-etc-2.
126300 2003-09-25  Bruno Haible  <bruno@clisp.org>
126302         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
126303         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
126305 2003-09-24  Simon Josefsson  <jas@extundo.com>
126307         * modules/xgethostname: Add xgethostname.h.
126309 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126311         * lib/linebuffer.c (freebuffer): Don't free the argument, just
126312         the buffer associated with the argument.  Bug reported by
126313         Simon Josefsson.
126315 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126317         * README: Document assumptions that 'int' is at least 32 bits
126318         wide, that integer arithmetic is 2's complement without overflow,
126319         that there are no holes in integer values, that adding sizes of
126320         two nonoverlapping objects can't overflow, and that all-bits-zero
126321         yields scalar zero.  Fix spelling and capitalization typos.
126323 2003-09-19  Karl Berry  <karl@gnu.org>
126325         * lib/argp.h: update from libc.
126327 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
126330         to avoid spurious warnings like "AC_RUN_IFELSE was called before
126331         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
126333 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126335         * gnulib-tool: Use "test -h", not "test -L", for portability
126336         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
126337         (tags_regexp): Remove, since \| doesn't conform to POSIX.
126338         (sed_extract_prog): Issue s commands one-by-one, rather than
126339         using \| in one s command.
126341 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126343         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126344         input error, instead of returning NULL the next time we are called
126345         (and therefore losing track of errno).
126347 2003-09-16  Bruno Haible  <bruno@clisp.org>
126349         * gnulib-tool (func_create_testdir): Warn about duplicated
126350         dependencies.
126352 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126354         * modules/argmatch, modules/fatal, modules/obstack,
126355         modules/xalloc, modules/xgethostname: Sort dependencies by
126356         importance, not alphabetically.
126358 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126360         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126361         fails, so that the caller gets the proper errno.
126363         * lib/readutmp.c (read_utmp): Likewise.
126364         Check for fstat error.  Close stream and free storage
126365         when failing.
126367 2003-09-14  Karl Berry  <karl@gnu.org>
126369         * config/srclist.txt (strdup.c): disable for c89 changes.
126371 2003-09-14  Jim Meyering  <jim@meyering.net>
126373         * lib/getloadavg.c: Correct cpp indentation.
126374         * lib/strdup.c: Likewise.
126375         * lib/vasnprintf.c: Likewise.
126377 2003-09-14  Bruno Haible  <bruno@clisp.org>
126379         * modules/fwriteerror: New file.
126380         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126382 2003-09-14  Bruno Haible  <bruno@clisp.org>
126384         * lib/fwriteerror.h: New file.
126385         * lib/fwriteerror.c: New file.
126387 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126389         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126390         modules/xgethostname, modules/xalloc: Depend on exit.
126392 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126394         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126396         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126397         and AC_MINIX, too, so that their extensions are available.
126399         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126400         This macro has been superseded by gl_BACKUPFILE.
126402         More patches to assume C89 or better.
126404         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126406         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126407         unconditionally.
126408         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126409         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126410         Include <string.h>, <stdlib.h> unconditionally.
126411         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126412         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126413         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126414         headers or for string.h.
126415         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126416         or strtoul.
126418         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126419         headers.
126420         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126421         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126422         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126423         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126424         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126425         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126426         memcpy, memset.
126427         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126428         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126429         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126430         strtol.
126431         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126432         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126433         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126434         strtoul.
126436 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126438         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126439         * lib/obstack.c [!defined _LIBC]: Likewise.
126440         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126441         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126442         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126444         More changes to assume C89 or better.
126446         * lib/error.c (error_tail): Assume vprintf.
126448         * lib/argmatch.c (getenv): Remove decl.
126449         * lib/progreloc.c (get_full_program_name): Define via prototype.
126450         * lib/setenv.c (clearenv): Likewise.
126451         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126452         needed.
126453         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
126454         (malloc, memcpy): Remove decls.
126455         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
126456         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
126457         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126458         (memcpy): Remove macro.
126459         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
126460         (__P): Remove.  All uses removed.
126461         (PTR): Remove.  All uses changed to void *.
126462         (CHAR_BIT, NULL): Remove.
126463         (spaces, zeros, memset_space, memset_zero)
126464         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
126465         Remove.
126466         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
126467         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
126468         Define with prototype.
126469         Remove now-unnecessary prototype decl.
126470         (extra_args_spec): Assume ANSI C.  All uses changed.
126471         (extra_args_spec_iso): Remove.
126472         (my_strftime, emacs_strftimeu): Define via prototype.
126473         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
126474         unconditionally.
126475         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
126476         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
126477         (strtoul, strtol): Remove decls.
126478         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
126479         LONG_MAX): Remove.
126480         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126481         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
126482         (LOCALE_PARAM_PROTO): New macro.
126483         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
126484         (INTERNAL (strtol), strtol): Define with a prototype.
126485         (PARAMS): Remove.  All uses removed.
126486         * lib/tempname.c: Include <string.h> unconditionally.
126487         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
126488         * lib/xgethostname.c (main): Define with a prototype.
126489         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
126490         Include <stdlib.h> unconditionally.
126491         (calloc, malloc, realloc, free): Remove decls.
126492         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
126493         Include <stdlib.h> unconditionally.  Sort include file names.
126494         (strtod): Remove.
126495         (xstrtod): Define with a prototype.
126496         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
126497         (strtol, strtoul): Remove decls.
126499 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126501         More patches to assume C89 or better.
126502         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
126503         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
126504         string.h, memchr, STDC_HEADERS.
126506 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126508         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
126509         Include <stdlib.h>, <string.h> unconditionally.
126510         Remove now-unnecessary cast to char *.
126511         * lib/strnlen.c: Include <string.h> unconditionally.
126512         * lib/yesno.c (yesno): Define with a prototype.
126514 2003-09-11  Bruno Haible  <bruno@clisp.org>
126516         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
126518 2003-09-10  Jim Meyering  <jim@meyering.net>
126520         * lib/error.c: Correct indentation of cpp directives.
126522 2003-09-10  Bruno Haible  <bruno@clisp.org>
126524         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
126525         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
126526         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
126527         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
126528         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
126529         <stdlib.h> and <string.h> checks.
126530         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
126531         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
126533 2003-09-10  Bruno Haible  <bruno@clisp.org>
126535         * lib/strcspn.c: Include <string.h> unconditionally.
126536         * lib/strpbrk.c: Include <string.h> unconditionally.
126537         * lib/strstr.c: Include <string.h> unconditionally.
126538         * lib/unicodeio.c: Include <string.h> unconditionally.
126539         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
126540         * lib/unsetenv.c: Likewise.
126541         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
126542         * lib/yesno.c: Include <stdlib.h> unconditionally.
126543         (rpmatch): Add prototype.
126545 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126547         More patches to assume C89 or better.
126548         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
126549         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
126550         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
126551         or for string.h.
126552         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
126553         stdlib.h.
126554         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
126555         C headers.
126556         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
126557         string.h.
126558         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
126559         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
126560         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
126561         or for string.h.
126562         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
126563         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
126564         C headers.
126565         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
126566         memcpy.
126567         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
126568         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
126569         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
126570         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
126571         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
126572         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
126573         string.h, free.
126574         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
126575         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
126576         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
126577         C headers, or for string.h.
126578         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
126579         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
126580         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
126581         headers, memory.h, stdlib.h, string.h, strings.h.
126582         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
126583         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
126584         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
126585         strchr.
126586         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
126587         headers, memory.h, string.h.
126588         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126589         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126590         free.
126591         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126592         headers.
126593         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126594         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126595         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126596         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
126597         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
126599 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126601         More K&R removal.
126603         * lib/acosl.c (main): Use a prototype.
126604         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
126605         tanl.c: Likewise.
126607         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
126609         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
126610         (getopt, etopt_long, getopt_long_only, _getopt_internal)
126611         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
126612         with a prototype.
126613         * lib/getopt.c (const): Remove macro.
126614         Include <string.h> unconditionally.
126615         (my_index): Remove; all uses changed to strchr.
126616         (strlen): Remove decl.
126617         (exchange): Remove forward decl; no longer needed.
126618         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
126619         Define with prototype.
126620         * lib/getopt1.c (const): Remove macro.
126621         (getopt_long, getopt_long_only, main): Define with prototype.
126623         * lib/getugroups.c: Include <string.h> unconditionally.
126625         * lib/getusershell.c: Include <stdlib.h> unconditionally.
126626         (getusershell, setusershell, endusershell, readname, main):
126627         Define with prototypes.
126629         * lib/group-member.c: Include group-member.h first.
126630         Include <stdlib.h> unconditionally.
126632         * lib/hard-locale.c: Include hard-locale.h first.
126633         Include <stdlib.h>, <string.h> unconditionally.
126635         * lib/hash.c (free, malloc): Remove decls.
126636         Include <stdlib.h> unconditionally.
126638         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
126639         (getenv): Do not declare.
126641         * lib/idcache.c: Include <string.h> unconditionally.
126643         * lib/long-options.c: Include long-options.h first, to test interface.
126644         Include <stdlib.h> unconditionally.
126646         * lib/makepath.c: Include makepath.h first, to test interface.
126647         Include <stdlib.h> and <string.h> unconditionally.
126649         * lib/linebuffer.c: Include <stdlib.h>.
126650         (free): Remove decl.
126652         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
126653         stddef.h. rpl_malloc returns void *, not char *.
126654         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
126655         prototype.
126657         * lib/md5.h: Include <limits.h> unconditionally.
126658         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
126659         (__P): Remove; all uses removed.
126660         * lib/md5.c: Include "md5.h" first.
126661         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126662         md5_buffer, md5_process_bytes, md5_process_block):
126663         Define with prototypes.
126664         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126665         * lib/sha.c: Include "sha.h" first.
126666         Include <stdlib.h>, <string.h> unconditionally.
126668         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126669         * lib/memcmp.c (__ptr_t): Likewise.
126670         * lib/memrchr.c (__ptr_t): Likewise.
126671         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126672         Include <string.h> unconditionally.
126673         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126674         * lib/memchr.c: Include <stdlib.h> unconditionally.
126675         * lib/memchr.c (LONG_MAX): Remove.
126676         * lib/memrchr.c (LONG_MAX): Likewise.
126677         * lib/memchr.c (__memchr): Define via a prototype.
126678         * lib/memrchr.c (__memrchr): Likewise.
126679         * lib/memcmp.c (__P): Remove, and remove all uses.
126680         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126681         Remove forward decls; no longer needed.
126682         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126683         Use types required by C89 in prototype.
126685         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126686         * lib/savedir.c: Likewise.
126687         * lib/mkdir.c (free): Remove decl.
126688         * lib/rmdir.c (rmdir): Define with a prototype.
126689         * lib/savedir.c: Include savedir.h first, to test interface.
126691         * lib/mktime.c (STDC_HEADERS): Remove.
126692         Include <stdlib.h>, <string.h> unconditionally.
126694         * lib/modechange.c: Include <stdlib.h> unconditionally.
126695         (malloc): Remove decl.
126697         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126698         (free): Remove decl.
126700         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126701         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126702         (This type really should be intptr_t, but that's a C99ism.)
126703         (_obstack_memcpy): Remove: all uses changed to memcpy.
126704         Include <string.h> unconditionally.
126705         (struct obstack): Assume __STDC__ for types of members
126706         chunkfun, freefun, extra_arg.
126707         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126708         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126709         obstack_begin, obstack_specify_allocation,
126710         obstack_specify_allocation_with_arg, obstack_chunkfun,
126711         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126712         Remove unprototyped decls and the macros that use them.
126713         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126714         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126715         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126716         (defined __STDC__ && __STDC__)]:
126717         Remove nonprototyped code.
126718         Include <stdlib.h> unconditionally.
126719         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126720         _obstack_allocated_p, _obstack_free, obstack_free,
126721         _obstack_memory_used, print_and_abort):
126722         Define using prototypes.
126723         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126724         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126725         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126726         obstack_next_free, obstack_object_size, obstack_room) [0]:
126727         Remove unused, unprototyped code.
126729         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126731         * lib/physmem.c (physmem_total, physmem_available, main): Define
126732         with prototypes.
126734         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126735         (main): Define with a prototype.
126737         * lib/posixver.c (getenv): Remove decl.
126739         * lib/putenv.c (malloc): Returns void *, not char *.
126740         Include <string.h> unconditionally.
126741         (strchr, memcpy, NULL): Do not define.
126743         * lib/readtokens.c: Include readtokens.h first, to test interface.
126744         Include <stdlib.h>, <string.h> unconditionally.
126745         (init_tokenbuffer): Define with a prototype.
126747         * lib/regex.c (PARAMS): Remove.  All uses removed.
126748         All uses of _RE_ARGS removed, too.
126749         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126750         unconditionally.
126751         (bzero): Assume memset exists.
126752         (memcmp, memcpy, NULL): Remove.
126753         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126754         char, or assignments to local vars of type signed char.
126755         (init_syntax_once, PREFIX(extract_number_and_incr),
126756         PREFIX(print_partial_compiled_pattern),
126757         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126758         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126759         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126760         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126761         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126762         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126763         wcs_compile_range, byte_compile_range, truncate_wchar,
126764         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126765         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126766         count_mbs_length, wcs_re_match_2_internal,
126767         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126768         PREFIX(alt_match_null_string_p),
126769         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126770         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126771         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126772         now-unnecessary declaration, if any.
126773         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126774         regcomp, regexec):
126775         Remove now-unnecessary casts among pointer types.
126776         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126778         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126779         (free): Remove decl.
126781         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126783         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126784         (free): Remove decl.
126786         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126787         * lib/xgetcwd.c: Likewise.
126789         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126790         (free): Remove decl.
126792         * lib/strchrnul.c (strchrnul): Define with a prototype.
126793         Fix bug: c_in was not converted to char before searching.
126795         The following changes are not K&R related:
126797         * lib/group-member.h: Include <sys/types.h>, so that this file is
126798         self-contained.
126799         * lib/makepath.h: Likewise.
126801         * lib/getusershell.c (readname, default_index, line_size, readname):
126802         Use size_t, not int, for sizes.
126803         (readname): If the size overflows, report an error instead of
126804         looping forever.
126806 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126808         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126809         libc.
126811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126813         * README: New section: portability guidelines.
126815 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126817         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126818         C89 spec.
126820 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126822         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126824 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126826         Assume C89 or better; remove K&R cruft.
126827         A few of these changes were first proposed by Derek Robert Price
126828         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126830         * lib/addext.c: Include <string.h> unconditionally.
126831         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126832         Don't declare getenv or malloc.
126834         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126835         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126836         (NULL): Remove.
126837         (find_stack_direction, alloca): Use prototypes.
126839         * lib/atexit.c (atexit): Define using a prototype.
126841         * lib/basename.c, dirname.c, stripslash.c:
126842         Include <string.h> unconditionally.
126844         * lib/bcopy.c: Include <stddef.h>.
126845         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126847         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126849         * lib/error.h (error, error_at_line, error_print_progname)
126850         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126851         * lib/error.c: Include error.h first, to check interface.
126852         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126853         (VA_START): Remove; all uses changeed to va_start.
126854         (exit, strerror): Remove decls.
126855         (error_print_progname): Prototype uncondionally.
126856         Don't include <errno.h>; no longer needed.
126857         (private_strerror): Remove.
126858         (error_tail): Always define.
126859         (error, error_at_line): Assume C89 or better; always use prototypes.
126860         * lib/fatal.c: Include "fatal.h" first, to test interface.
126861         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126862         (VA_START): Remove; all uses changed to va_start.
126863         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126864         this case.
126865         (exit): Remove decl.
126866         (fatal): Prototype unconditionally.  Assume va_start works.
126867         Abort at end, to pacify gcc.
126869         * lib/euidaccess.c (main): Define with a prototype.
126871         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126873         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126875         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126876         prototypes.
126877         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126878         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126879         (getenv): Remove decl.
126880         (fnmatch): Define using a prototype.
126881         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126882         (FCT): Define using a prototype.
126884         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126886         * lib/gethostname.c: Include <stddef.h>.
126887         (gethostname): Define with prototype.  Length is size_t, not int.
126889 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126891         Assume C89 or better; remove K&R cruft.
126892         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126893         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126894         string.h, getenv, malloc.
126895         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126896         headers.
126897         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126898         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126899         do not check for strerror.
126900         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126901         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126902         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126903         do not check for doprnt or vprintf.
126904         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126905         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126907 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126909         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126910         getversion.c should have been removed then, but was accidentally
126911         preserved.
126913         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126914         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126916 2003-09-08  Karl Berry  <karl@gnu.org>
126918         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126919                 config, forget about prep.
126921         * config/depcomp, missing: update from automake.
126923 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126925         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126926         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126928 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126930         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126931         copy_tm_result.  Bug reported by Simon Josefsson in
126932         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126934 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126936         * m4/time_r.m4: New file.
126937         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126938         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126939         is. Check for timegm declaration.
126940         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126941         Do not check for gmtime_r.
126942         Replace mktime if __mktime_internal does not exist and if mktime
126943         hasn't been replaced already.
126945 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126947         * lib/time_r.c, lib/time_r.h: New files.
126949         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126950         __localtime_r.
126951         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126952         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126954         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126955         __gmtime_r.
126956         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126957         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126958         Include <time_r.h>.
126960         * lib/timegm.c: Switch to glibc implementation, with the following
126961         changes:
126962         [defined HAVE_CONFIG_H]: Include <config.h>.
126963         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126964         (__mktime_internal) [!defined _LIBC]: New decl.
126965         (__gmtime_r) [!defined _LIBC]: New macro and function.
126966         (timegm): Use a prototype, since gnulib assumes C89.
126967         Do not bother declaring tmp to be const, as it's not really usefu.
126968         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126969         (timegm): Declare only if HAVE_DECL_TIMEGM.
126971 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126973         * MODULES.html.sh (func_all_modules): Add time_r.
126974         * modules/time_r: New file.
126975         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126976         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126978 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126980         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126981         Bug reported by Lute Kamstra in
126982         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126984         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126985         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126986         course with correspondingly smaller numbers for tomorrow and
126987         yesterday.  From Tadayoshi Funaba.  Originally installed into
126988         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126989         coreutils merge?).
126991 2003-08-31  Simon Josefsson  <jas@extundo.com>
126993         * modules/timegm: New file.
126994         * MODULES.html.sh (func_all_modules): Add timegm.
126996 2003-08-31  Simon Josefsson  <jas@extundo.com>
126998         * m4/timegm.m4: New file.
127000 2003-08-31  Simon Josefsson  <jas@extundo.com>
127002         * lib/timegm.h: New file.
127003         * lib/timegm.c: New file.  Based on
127004         wget-1.8.2/src/http.c:mktime_from_utc.
127006 2003-08-31  Karl Berry  <karl@gnu.org>
127008         * lib/argp.h: update from libc.
127010 2003-08-28  Bruno Haible  <bruno@clisp.org>
127012         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
127013         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
127014         followed by '#define fnmatch fnmatch_posix' gives an error.
127016 2003-08-28  Bruno Haible  <bruno@clisp.org>
127018         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
127019         warning on QNX, which defines O_BINARY to 000000.
127021 2003-08-27  Jim Meyering  <jim@meyering.net>
127023         * m4/mkstemp.m4: Require that the system mkstemp be able to create
127024         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
127025         would fail after 32.  Reported by Danny Levinson.  Details here:
127026         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
127028 2003-08-24  Bruno Haible  <bruno@clisp.org>
127030         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
127031         MSVC7 <stdio.h> is included later.
127033 2003-08-22  Simon Josefsson  <jas@extundo.com>
127035         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
127037 2003-08-20  Karl Berry  <karl@gnu.org>
127039         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
127041 2003-08-20  Bruno Haible  <bruno@clisp.org>
127043         * modules/progname: New file.
127044         * MODULES.html.sh (func_all_modules): Add progname.
127046 2003-08-20  Bruno Haible  <bruno@clisp.org>
127048         * lib/progname.h: New file, from GNU gettext.
127049         * lib/progname.c: New file, from GNU gettext.
127050         * lib/progreloc.c: New file, from GNU gettext.
127052 2003-08-19  Jim Meyering  <jim@meyering.net>
127054         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
127055         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
127057 2003-08-19  Bruno Haible  <bruno@clisp.org>
127059         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
127060         more.
127062 2003-08-19  Bruno Haible  <bruno@clisp.org>
127064         * lib/xstrdup.c: Assume <string.h> exists.
127066 2003-08-18  Paul Eggert  <eggert@twinsun.com>
127068         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
127069         in makefile rules.
127071 2003-08-18  Jim Meyering  <jim@meyering.net>
127073         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
127074         * m4/lib-ld.m4: Likewise.
127076 2003-08-18  Jim Meyering  <jim@meyering.net>
127078         * lib/setenv.h: Indent nested cpp directive.
127079         * lib/vasnprintf.c: Remove trailing blanks.
127081 2003-08-17  Simon Josefsson  <jas@extundo.com>
127083         * modules/xstrndup: New file.
127084         * MODULES.html.sh (func_all_modules): Add xstrndup.
127086 2003-08-17  Simon Josefsson  <jas@extundo.com>
127088         * modules/argp: Fix autoconf macro name. Add more dependencies.
127090 2003-08-17  Simon Josefsson  <jas@extundo.com>
127092         * m4/xstrndup.m4: New file.
127094 2003-08-17  Simon Josefsson  <jas@extundo.com>
127096         * m4/argp.m4: New file.
127098 2003-08-17  Simon Josefsson  <jas@extundo.com>
127099             Bruno Haible  <bruno@clisp.org>
127101         * lib/xstrndup.h: New file.
127102         * lib/xstrndup.c: New file.
127104 2003-08-17  Bruno Haible  <bruno@clisp.org>
127106         * modules/strndup (Files, Include): Add lib/strndup.h.
127108 2003-08-17  Bruno Haible  <bruno@clisp.org>
127110         * modules/euidaccess (Files): Add lib/euidaccess.h.
127112 2003-08-17  Bruno Haible  <bruno@clisp.org>
127114         * lib/strndup.h: New file.
127116 2003-08-17  Bruno Haible  <bruno@clisp.org>
127118         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
127119         like AC_GNU_SOURCE.
127120         * modules/extensions (configure.ac): Comment out the invocation of
127121         gl_USE_SYSTEM_EXTENSIONS.
127123 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127125         Merges from coreutils, etc.
127126         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
127127         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
127128         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
127129         fixing a typo.
127130         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
127131         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
127133 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127135         Document merge from coreutils.
127136         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
127137         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
127138         * modules/utime: Add m4/utimes-null.m4.
127140 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127142         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
127143         space, undoing this 2003-08-12 change:
127144         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127146 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127148         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
127149         strtoul.c from libc, undoing this 2003-08-12 change:
127150         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127152 2003-08-16  Jim Meyering  <jim@meyering.net>
127154         Merges from coreutils.
127155         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
127156         prefix.  Adjust cache variables similarly.  Create 500 rather than
127157         just 300 files, to exercise bug on Darwin6.5, too.
127158         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
127159         $missing_dir.
127160         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
127161         AM_SYS_POSIX_TERMIOS.
127162         Reported by mkc@mathdogs.com.
127163         Also change use of $am_cv_sys_posix_termios
127164         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
127165         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
127166         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
127167         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
127168         in /proc/mounts until it finds one with matching device number.  This
127169         is unnecessary when the FILE argument *is* a mount point.  No stat call
127170         is necessary in that case.  So, disable the statvfs-testing code on
127171         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127172         as RedHat bug# 84846.
127173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127174         to 1MB, so as not to render systems with no stack size limit (e.g.,
127175         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127176         Include <unistd.h>.  On some systems,
127177         it is required for the definition of _SC_PAGESIZE.
127179 2003-08-16  Jim Meyering  <jim@meyering.net>
127181         Merge from coreutils.
127182         * lib/xstrtoimax.c: #else #if -> #elif.
127183         * lib/xstrtoumax.c: Likewise.
127185 2003-08-16  Jim Meyering  <jim@meyering.net>
127187         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
127188         * m4/utimes.m4: Removed.
127189         * m4/utimes-null.m4: Renamed from utimes.m4.
127191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127192         to 1MB, so as not to render systems with no stack size limit (e.g.,
127193         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127194         Include <unistd.h>.  On some systems,
127195         it is required for the definition of _SC_PAGESIZE.
127197 2003-08-16  Jim Meyering  <jim@meyering.net>
127198         and Paul Eggert  <eggert@cs.ucla.edu>
127200         Merges from coreutils, etc.
127202         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
127203         using the latest version from cvs.  This avoids problems with #line
127204         directives using a vendor (Sun) compiler.
127205         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
127206         Don't set GETGROUPS_LIB here; now it's
127207         done via getgroups.m4's wrapper function.
127208         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
127209         rather than just in sh-util/configure.in, so that the
127210         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
127211         same.
127212         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
127213         AC_FUNC_GETLOADAVG where to find getloadavg.c.
127214         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
127215         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
127216         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
127217         Remove code that is now done by the newly-required macros.
127218         Append $(EXEEXT) to DF_PROG.
127219         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
127220         Do not invoke or require the following here,
127221         since prereq.m4 or some gnulib .m4 now does this for us:
127222         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
127223         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
127224         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
127225         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
127226         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
127227         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
127228         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
127229         AC_FUNC_OBSTACK.
127230         Do not replace the following functions, as this is now the job
127231         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
127232         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
127233         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
127234         atexit getpass, strdup, getpagesize.
127235         Replace 'raise'.
127236         Do not check for the following functions, as this is now the job
127237         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
127238         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
127239         setregid.
127240         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
127241         Check for sys/sysctl.h.
127242         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
127243         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
127244         of checking for ssize_t ourselves.
127246         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
127247         Require every macro that gnulib/modules/* suggests for us.
127248         (jm_PREREQ_ADDEXT): New macro.
127249         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
127250         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
127252         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
127253         (gl_PHYSMEM): Use it.
127254         Also check for `table' function.
127255         Check for new headers and functions.
127256         Add check for sys/sysmp.h.
127257         With suggestions from Kaveh Ghazi.
127258         Ignore headers that are present but cannot be compiled.  This
127259         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
127260         C 5.4.
127262 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127264         Document merge from coreutils.
127265         * modules/userspec: Depend on posixver.
127266         * modules/strftime: Depend on tzset.
127268 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127270         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
127271         rather than tab, after '#' in shell-script copyright notices.
127272         Suggested by Bruno Haible.
127274 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127276         * config/srclist-update: Use three spaces, rather than tab, after '#'
127277         in shell-script copyright notices.  Suggested by Bruno Haible.
127278         Remove unnecessary parenthesization in regular expression.
127280 2003-08-15  Jim Meyering  <jim@meyering.net>
127282         Merge from coreutils.
127283         * lib/xgethostname.c: Include <stdlib.h>.
127284         (xghostname): Don't exit for anything other than memory-related
127285         failure; just return NULL.
127286         * lib/userspec.c: Include "posixver.h".
127287         (parse_user_spec): Accept `.' as a separator only
127288         in pre-POSIX-200112 mode.
127289         * lib/strtoimax.c: Use #elif rather than #else #if.
127290         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
127291         Remove function, now that we can rely on a working tzset function.
127292         [!_LIBC]: Ensure that the required autoconf test has been run.
127293         [!defined _NL_CURRENT && HAVE_STRFTIME]:
127294         Use underlying_strftime for %r.
127295         * lib/sha.c: Merge in some clean-up and optimization changes from
127296         glibc.
127297         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
127298         Ensure that it is a multiple of 64.
127299         Rearrange loop exit tests so as to avoid performing an
127300         additional fread after encountering an error or EOF.
127301         * lib/realloc.c: Update copyright date.
127303 2003-08-15  Jim Meyering  <jim@meyering.net>
127304         and Paul Eggert  <eggert@twinsun.com>
127306         Merge from coreutils.
127307         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
127308         member but strut utmpx does not.  Needed for AIX 4.3.3.
127309         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
127311 2003-08-15  Jim Meyering  <jim@meyering.net>
127312         and Paul Eggert  <eggert@cs.ucla.edu>
127314         Merges from coreutils, etc.
127315         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
127316         Require gl_FUNC_TZSET_CLOBBER.
127317         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
127318         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
127319         members.
127321 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127323         Help the merge from coreutils.
127324         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
127325         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
127326         * m4/tzset.m4: Use it too.
127328 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127330         * modules/tzset: New file.
127332 2003-08-14  Jim Meyering  <jim@meyering.net>
127334         Merges from coreutils.
127335         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
127336         variable names, rather than @FNMATCH_H@.
127337         * modules/alloca: Likewise for $(ALLOCA_H).
127339         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
127340         the three copies of the literal target, `fnmatch.h'.
127341         * modules/alloca (alloca.h): Likewise.
127343 2003-08-14  Jim Meyering  <jim@meyering.net>
127345         Merge from coreutils.
127346         * m4/tzset.m4: New file.
127347         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127348         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127349         otherwise, AIX 5.1 systems would end up using the latter.
127350         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127351         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127352         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127353         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127355 2003-08-14  Jim Meyering  <jim@meyering.net>
127357         Merge from coreutils.
127358         * lib/obstack.h: Whitespace changes.
127359         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127360         and xcalloc return values.
127361         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127362         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127363         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127364         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127365         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127366         error from mntctl.
127367         Use mntctl's return value to drive the entry-processing loop, since
127368         we can't rely on the value of the vmt_length member in the last
127369         entry.  On some systems doing so could result in exhausting
127370         virtual memory.  Based in part on a patch from Mike Jetzer.
127372 2003-08-14  Jim Meyering  <jim@meyering.net>
127373         and Paul Eggert  <eggert@twinsun.com>
127375         Merges from coreutils, plus other fixes.
127376         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127377         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127378         for credits and details.  Thanks to Kaveh Ghazi for helping
127379         to keep these files in sync.
127380         (ARRAY_SIZE): Define it.
127381         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127382         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127383         (memcasecmp): Don't assume size_t fits in unsigned int.
127384         Remove casts and duplicate code.
127385         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127386         (memcpy): Remove definition.
127387         Merge in some clean-up and optimization changes from glibc.
127388         [BLOCKSIZE]: Move definition to top of file.
127389         Ensure that it is a multiple of 64.
127390         Rearrange loop exit tests so as to avoid performing an
127391         additional fread after encountering an error or EOF.
127392         * lib/md5.h (md5_uintptr): Define.
127393         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127394         return to the initial working directory.  Preserve errno
127395         for caller.
127396         * lib/idcache.c: Include "xalloc.h".
127397         (xmalloc, xrealloc): Remove decls.
127398         (getuser): Remove casts no longer required in C89.
127399         * lib/human.c: Include stdio.h, for sprintf.
127400         * lib/group-member.c: Include "xalloc.h".
127401         (xmalloc, xrealloc): Remove decls.
127402         (get_group_info): Remove casts no longer required in C89.
127403         * lib/getusershell.c (readname): Remove casts no longer required in
127404         C89.
127405         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127406         * lib/getline.c: Whitespace fix, from coreutils.
127408 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127410         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127411         Check for isascii.
127413         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127414         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127415         Undo previous (whitespace-only) change.
127417 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127419         * lib/exclude.c: Include <ctype.h>
127420         (IN_CTYPE_DOMAIN): New macro.
127421         (is_space): New fn.
127422         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127423         and empty lines.
127425         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127426         Undo previous (whitespace-only) change.
127428 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127430         * config/srclist-update: Change update back to the old behavior,
127431         leaving whitespace alone.  Use one 'sed' command rather than a
127432         pipeline.
127433         (fixlicense): Now a variable, not a function.
127434         (remove_trailing_blanks): Remove.
127435         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127436         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127437         Undo previous (whitespace-only) change.
127439 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127441         Merge from coreutils.
127442         * modules/euidaccess: Add lib_SOURCES, include for new
127443         file euidaccess.h
127445 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127447         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127448         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127449         Normalize leading white space and remove trailing white space.
127451         Merge from coreutils
127452         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
127454         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
127455         0.12.1.  These files are now being upgraded automatically by
127456         ../config/srclist-update.
127458 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127460         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127461         Normalize leading white space and remove trailing white space.
127462         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
127463         notice, as per ../config/srclist-update.
127465         Merge from coreutils.
127466         * lib/euidaccess.h: New file.
127467         * lib/euidaccess.c: Include it.
127468         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
127469         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
127470         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
127472 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127474         * config/srclist-update: Add copyright notice.
127475         (remove_id_lines, remove_trailing_blanks): New constants.
127476         (fixfile): Use them to normalize spacing a bit in copied files.
127477         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127478         Normalize leading white space and remove trailing white space.
127480         * config/texinfo.tex: Sync with texinfo.
127482         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
127483         strtoul.c from libc, to merge coreutils whitespace changes.
127485         * config/srclist.txt: Get the following m4 files from gettext:
127486         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
127487         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
127488         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
127489         wint_t.m4.
127491 2003-08-12  Karl Berry  <karl@gnu.org>
127493         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
127494         been made.
127496 2003-08-11  Paul Eggert  <eggert@twinsun.com>
127498         * modules/gnu-source, m4/gnu-source.m4:
127499         Remove; we're assuming Autoconf 2.54 or later now.
127500         Suggested by Bruno Haible.
127501         * MODULES.html.sh (func_all_modules): Remove gnu-source.
127503 2003-08-11  Bruno Haible  <bruno@clisp.org>
127505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
127507 2003-08-11  Bruno Haible  <bruno@clisp.org>
127509         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
127510         (vasnprintf): Use it instead of wcslen.
127512 2003-08-11  Bruno Haible  <bruno@clisp.org>
127514         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
127515         value to ensure that _Bool promotes to int. Use #define for _Bool when
127516         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
127518 2003-08-10  Karl Berry  <karl@gnu.org>
127520         * lib/regex.h: update from libc (whitespace fix).
127522 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127524         Merge some files from coreutils.  These changes were
127525         originally made by Jim Meyering.
127526         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
127527         many older Unixes require this.
127528         * lib/alloca.c (alloca): Remove cast to argument of free;
127529         no longer needed in C89.
127530         * lib/alloca_.h, regex.h: Fix white space to match
127531         what GNU indent does.
127533 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127535         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
127536         apparently Emacs's Unicode mode got confused before my 2003-08-05
127537         checkin.
127539 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127541         * m4/extensions.m4: New file.
127542         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
127543         Require gl_USE_SYSTEM_EXTENSIONS.
127544         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
127545         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
127547 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127549         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
127550         * modules/extensions, modules/gnu-source: New files.
127551         * modules/timespec, modules/unlocked-io: Depend on extensions.
127553 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127555         * modules/restrict: New file.
127556         * MODULES.html.sh (func_all_modules): Add restrict.
127557         * modules/regex: Depend on restrict.
127559 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127561         * m4/restrict.m4: New file.
127562         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
127564 2003-08-07  Bruno Haible  <bruno@clisp.org>
127566         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
127567         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
127569 2003-08-07  Bruno Haible  <bruno@clisp.org>
127571         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
127572         makes the module 'getndelim2' compatible with the module 'getline'.
127574 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127576         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
127577         byte with "\201" to avoid glitches when editing that source file
127578         with multi-gnome-terminal.
127580 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127582         * lib/bumpalloc.h: Remove.
127584 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127586         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
127587         * modules/bumpalloc: Remove.
127589 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127591         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127592         GNU coding style.
127594         Merge from coreutils.
127595         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127596         1. From glibc.
127597         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
127598         from Karl Berry, implemented by Jim Meyering.
127599         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
127600         from Dmitry V. Levin.
127601         Remove anachronistic cast of xrealloc.
127602         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
127603         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
127604         type. Otherwise, it wouldn't compile with at least /bin/cc on
127605         ymp-cray-unicos9.0.2.X.
127606         Combine two mostly-identical uses of alloca into one.
127607         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
127609 2003-08-04  Dave Love  <d.love@dl.ac.uk>
127611         [From Emacs.]
127613         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
127614         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
127615         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
127616         obsolete NLIST_NAME_UNION.
127617         [__GNU__]: Undef BSD and FSCALE.
127618         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
127620 2003-08-03  Paul Eggert  <eggert@twinsun.com>
127622         * lib/stdbool_.h (_Bool): Make it signed char, instead of
127623         an enum type, so that it's guaranteed to promote to int.  See:
127624         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
127626 2003-08-03  Karl Berry  <karl@gnu.org>
127628         * config/depcomp: update from automake.
127630 2003-07-31  Paul Eggert  <eggert@twinsun.com>
127632         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
127633         (strerror): Don't assume that a printable int fits in 14 bytes.
127635 2003-07-31  Bruno Haible  <bruno@clisp.org>
127637         * modules/getpass-gnu: New file.
127638         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
127640 2003-07-31  Bruno Haible  <bruno@clisp.org>
127642         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
127644 2003-07-24  Karl Berry  <karl@gnu.org>
127646         * config/missing: update from automake.
127648 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
127649             Bruno Haible  <bruno@clisp.org>
127651         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
127652         * lib/getline.c (getline, getdelim): Likewise.
127653         Remove _GNU_SOURCE define; now it's defined in config.h through
127654         m4/getline.m4.
127656 2003-07-23  Karl Berry  <karl@gnu.org>
127658         * config/config.sub: update from prep.
127660 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127662         * modules/xalloc (Depends-on): Add exitfail.
127663         * modules/xmemcoll: Likewise.
127665 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127667         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127668         over-parenthesization in macros.
127670         Sync with coreutils.
127672         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127673         required by C99.
127675         Use `exit_failure' for xalloc and xmemcoll instead of their own
127676         private exit-failure variables.
127677         * lib/xalloc.h (xalloc_exit_failure): Remove.
127678         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127679         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127680         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127681         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127682         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127684 2003-07-20  Jim Meyering  <jim@meyering.net>
127686         * modules/closeout (Depends-on): Add exitfail.
127687         Suggestion from Bruno Haible.
127689 2003-07-19  Karl Berry  <karl@gnu.org>
127691         * config/config.sub: update from prep.
127693 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127695         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127696         Remove.
127697         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127698         to test that it can stand by itself.  Include "exitfail.h".
127699         Clients should set exit_failure instead.
127700         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127702 2003-07-18  Bruno Haible  <bruno@clisp.org>
127704         * modules/getndelim2: New file.
127705         * modules/getline: Share files with module getndelim2.
127706         * modules/getnline: Depend on getndelim2 instead of sharing files with
127707         it. Add getnline.c to lib_SOURCES.
127708         * MODULES.html.sh (func_all_modules): Add getndelim2.
127710 2003-07-18  Bruno Haible  <bruno@clisp.org>
127712         * m4/getndelim2.m4: New file.
127713         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127714         invoke gl_PREREQ_GETNDELIM2.
127715         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127716         gl_PREREQ_GETNDELIM2.
127717         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127718         gl_GETNDELIM2.
127720 2003-07-18  Bruno Haible  <bruno@clisp.org>
127722         * lib/getndelim2.h: New file.
127723         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127724         getndelim2.h.
127725         (getndelim2): Make non-static. Change return type to ssize_t.
127726         * lib/getline.h: Change argument names.
127727         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127728         * lib/getnline.c: Include getndelim2.h.
127730 2003-07-18  Andreas Schwab  <schwab@suse.de>
127732         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127734 2003-07-17  Karl Berry  <karl@gnu.org>
127736         * config/config.sub: update from prep.
127738 2003-07-17  Bruno Haible  <bruno@clisp.org>
127740         * modules/getnline: New file.
127741         * modules/getline: Add lib/getndelim2.c to source file list.
127742         * MODULES.html.sh (func_all_modules): Add getnline.
127744 2003-07-17  Bruno Haible  <bruno@clisp.org>
127746         * m4/getnline.m4: New file.
127748 2003-07-17  Bruno Haible  <bruno@clisp.org>
127750         * m4/Makefile.am.in: Remove file.
127751         * m4/Makefile.am: Remove file.
127752         * m4/Makefile.in: Remove file.
127754 2003-07-17  Bruno Haible  <bruno@clisp.org>
127756         * lib/getnline.h: New file.
127757         * lib/getnline.c: New file.
127758         * lib/getndelim2.c: New file, extracted from getline.c.
127759         (getndelim2): Renamed from getdelim2, with added nmax argument.
127760         * lib/getline.c: Include getndelim2.c.
127761         (getdelim2): Moved out to getndelim2.c.
127762         (getline, getdelim): Update.
127764 2003-07-17  Bruno Haible  <bruno@clisp.org>
127766         * lib/Makefile.am: Remove file.
127767         * lib/Makefile.in: Remove file.
127769 2003-07-17  Bruno Haible  <bruno@clisp.org>
127771         * configure.in: Remove file.
127772         * Makefile.in: Remove file.
127774 2003-07-17  Bruno Haible  <bruno@clisp.org>
127776         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127778 2003-07-16  Karl Berry  <karl@gnu.org>
127780         * config/srclist-update: was running fixlicense twice, which caused
127781                 texinfo.tex to be nullified for some reason.  Simplify,
127782                 $gplsrc is no longer needed as far as I can see?
127784 2003-07-16  Jim Meyering  <jim@meyering.net>
127786         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127788 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127790         * config/srclist.txt: Get the following files from gettext-runtime/intl
127791         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127792         ref-del.sin.  From Bruno Haible.
127793         * config/srclist-update (fixfile): Change grep pattern again, since the
127794         previous fix didn't work (there was another trailing $).  Use
127795         '[$]' to escape the $s.
127797 2003-07-15  Karl Berry  <karl@gnu.org>
127799         * lib/vasnprintf.c: update from gettext.
127801 2003-07-15  Karl Berry  <karl@gnu.org>
127803         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127804         gets expanded when surrounded by '$'.
127806 2003-07-15  Jim Meyering  <jim@meyering.net>
127808         * modules/save-cwd: Don't depend on error.  From Derek Price.
127810 2003-07-15  Jim Meyering  <jim@meyering.net>
127812         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127814 2003-07-14  Simon Josefsson  <jas@extundo.com>
127816         * modules/mempcpy: New file.
127817         * MODULES.html.sh (func_all_modules): Add mempcpy.
127819 2003-07-14  Simon Josefsson  <jas@extundo.com>
127821         * m4/mempcpy.m4: New file.
127823 2003-07-14  Simon Josefsson  <jas@extundo.com>
127825         * lib/mempcpy.h: New file.
127826         * lib/mempcpy.c: New file.
127828 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127830         * modules/getdate, modules/posixtm: Depend on mktime.
127832 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127834         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127835         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127836         unicodeio.c, unicodeio.h, unlocked-io.h:
127837         Switch from LGPL to GPL.
127839 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127841         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127842         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127843         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127844         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127845         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127846         updated automatically by ../config/srclist-update.  This changes
127847         their license from LPGL to GPL.
127849 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127851         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127852         assumed to refer to the root of the most recent stable gettext version.
127853         * config/srclistvars.sh: Add defaults for eggert.
127854         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127855         Match "This program" as well as "The program".  This is needed
127856         for gettext.
127858 2003-07-14  Jim Meyering  <jim@meyering.net>
127860         Don't emit diagnostics.  Let callers do that.
127861         * lib/save-cwd.c: Don't include "error.h".
127862         (save_cwd): Don't call error.  Ensure that errno is valid
127863         when returning nonzero.
127865         * lib/save-cwd.h (restore_cwd): Update prototype.
127866         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127867         Simplify.  Don't call error upon failure.  Let callers do that.
127868         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127869         when auditing is enabled.  But don't bother updating the #if.
127871 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127873         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127874         it breaks C++ compilation.
127875         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127877 2003-07-10  Simon Josefsson  <jas@extundo.com>
127879         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127881 2003-07-10  Jim Meyering  <jim@meyering.net>
127883         * m4/clock_time.m4: Remove trailing blank.
127884         * m4/intmax_t.m4: Likewise.
127886 2003-07-10  Jim Meyering  <jim@meyering.net>
127888         * lib/vasnprintf.c: Remove trailing blanks.
127889         Make cpp indentation consistent.
127891 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127893         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127894         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127895         Switch from LGPL to GPL.
127897 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127899         * config/srclist.txt: Sort sublists.  Add
127900         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127901         that differ from gnulib for one reason or another; we'd like this list
127902         to be smaller but for now let's document what we have.
127904 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127906         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127907         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127908         and sweeter "eval x=$x".
127909         * config/srclist.txt: Get lib/argp* from glibc.
127911 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127913         * lib/mktime.c: Fix some boundary cases and remove need for floating
127914         point.
127916         Issue a compile-time diagnostic if time_t is floating point, or if
127917         two's complement arithmetic is not in effect, or if arithmetic
127918         right shift does not propagate the sign.  These assumptions were
127919         all in the original code but they weren't checked.
127921         (TIME_T_MIDPOINT, verify): New macros.
127922         (__isleap): Remove; it has integer overflow problems.
127923         (leapyear): New function, without those problems.
127924         (ydhms_tm_diff): Remove; splitting into two parts.
127925         (ydhms_diff): New function, containing the arithmetic part of
127926         the old ydhms_tm_diff function.  Issue a compile-time
127927         diagnostic if we are not using C99 integer division.
127928         Avoid casts when possible.
127929         (guess_time_tm): New function, containing the checking part of
127930         the old ydhms_tm_diff function.  Return the new value, rather than
127931         the difference between it and the old.  Accept a new argument T
127932         so that *T specifies the old value.  Check for overflow in the result.
127934         (__mktime_internal): Use a time_t offset, not a long int offset.
127935         This undoes the 2003-06-04 change, which is no longer needed now
127936         that we have better overflow checking.
127937         (localtime_offset): Likewise.
127939         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127940         and long are 64-bit but int is only 32-bit.
127941         (ydhms_diff): Use long int to store year1 and yday1.
127942         Issue a compile-time diagnostic if long int is not wide enough.
127944         (__mktime_internal): Use long int to store adjusted year and yday.
127945         Use plain C rather than preprocessor commands, if that doesn't
127946         affect efficiency.
127947         Check for overflow (and try to repair) after each probe
127948         rather than checking only at the very end.  This avoids some bugs
127949         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127950         does not equal GMT offset at maximum time).
127951         Use integer to check for overflow rather than floating point; this
127952         is more portable to non-IEEE hosts, and is a tad faster.
127953         When we detect that we are oscillating between two values,
127954         don't check whether tm_isdst has the requested value, since
127955         we already know the answer.  When tm_isdst has the wrong value,
127956         use a different heuristic to find the right one, based on the
127957         extreme values actually observed in practice in tz2003a,
127958         rather than the (overly optimistic) "previous 3 calendar quarters".
127960         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127961         "T const" to accommodate glibc style.
127962         (check_result): Use less-confusing report format.  "long" -> "long int.
127963         (main): Likewise.
127964         Don't loop if the iteration overflows time_t.
127965         Allow a negative step in the iteration.
127967 2003-07-06  Karl Berry  <karl@gnu.org>
127969         * config/depcomp: update from automake.
127970         * config/config.sub: update from prep.
127972 2003-07-03  Karl Berry  <karl@gnu.org>
127974         * config/config.guess: update from prep.
127976 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127978         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127979         xreadlink.c now includes it unconditionally.
127981 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127983         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127984         having it depend on HAVE_SYS_TYPES_H.
127986 2003-07-01  Bruno Haible  <bruno@clisp.org>
127988         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127989         <sys/types.h> should be sufficient.
127990         Reported by Paul Eggert.
127992 2003-06-26  Karl Berry  <karl@gnu.org>
127994         * config/depcomp: update from automake.
127996 2003-06-26  Bruno Haible  <bruno@clisp.org>
127998         * modules/human: Depend on module stdbool.
128000 2003-06-25  Bruno Haible  <bruno@clisp.org>
128002         * modules/readlink: New file.
128003         * modules/xreadlink: Depend on it.
128004         * MODULES.html.sh (func_all_modules): Add readlink.
128006 2003-06-25  Bruno Haible  <bruno@clisp.org>
128008         * m4/readlink.m4: New file.
128010 2003-06-25  Bruno Haible  <bruno@clisp.org>
128012         * lib/readlink.c: New file.
128014 2003-06-22  Karl Berry  <karl@gnu.org>
128016         * config/srclist.txt: update mkinstalldirs from automake.
128017         * config/mkinstalldirs: update.
128019 2003-06-22  Bruno Haible  <bruno@clisp.org>
128021         Portability to mingw32.
128022         * m4/ssize_t.m4: New file, from GNU gettext.
128023         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
128024         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
128026 2003-06-22  Bruno Haible  <bruno@clisp.org>
128028         * modules/safe-read: Add m4/ssize_t.m4.
128029         * modules/xreadlink: Add m4/ssize_t.m4.
128031 2003-06-20  Bruno Haible  <bruno@clisp.org>
128033         Assume C89, so PARAMS isn't needed.
128034         * lib/unicodeio.h (PARAMS): Remove.
128035         * lib/unicodeio.c: Don't use PARAMS.
128037 2003-06-18  Karl Berry  <karl@gnu.org>
128039         * config/config.{guess,sub}: update from prep.
128041 2003-06-18  Jim Meyering  <jim@meyering.net>
128043         Merge changes from coreutils.
128044         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
128045         Remove explicit declarations of xmalloc and realloc.
128046         Include xalloc.h.
128047         (read_utmp): Remove anachronistic cast of xmalloc.
128049 2003-06-17  Paul Eggert  <eggert@twinsun.com>
128051         Assume C89, so PARAMS isn't needed.
128052         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
128053         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
128054         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
128055         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
128056         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
128057         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
128058         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
128059         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
128060         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
128061         lib/xstrtod.h, lib/xstrtol.h: Likewise.
128062         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
128063         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
128064         no longer needed. Anyway, config.h should always be included before any
128065         other file.
128067 2003-06-11  Simon Josefsson  <jas@extundo.com>
128069         * modules/sysexits: New file.
128070         * MODULES.html.sh (func_all_modules): Add sysexits.
128072 2003-06-11  Simon Josefsson  <jas@extundo.com>
128074         * lib/sysexit_.h: New file.
128076 2003-06-11  Derek Price  <derek@ximbiot.com>
128078         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
128079         necessary.
128081 2003-06-11  Bruno Haible  <bruno@clisp.org>
128083         * m4/sysexits.m4: New file.
128085 2003-06-10  Simon Josefsson  <jas@extundo.com>
128087         * lib/argp.h: New file, from glibc.
128088         * lib/argp-ba.c: New file, from glibc.
128089         * lib/argp-eexst.c: New file, from glibc.
128090         * lib/argp-fmtstream.c: New file, from glibc.
128091         * lib/argp-fmtstream.h: New file, from glibc.
128092         * lib/argp-fs-xinl.c: New file, from glibc.
128093         * lib/argp-help.c: New file, from glibc.
128094         * lib/argp-namefrob.h: New file, from glibc.
128095         * lib/argp-parse.c: New file, from glibc.
128096         * lib/argp-pv.c: New file, from glibc.
128097         * lib/argp-pvh.c: New file, from glibc.
128098         * lib/argp-xinl.c: New file, from glibc.
128100 2003-06-10  Simon Josefsson  <jas@extundo.com>
128102         * modules/strchrnul: New file.
128104 2003-06-10  Simon Josefsson  <jas@extundo.com>
128106         * modules/argp: New file.
128108 2003-06-10  Simon Josefsson  <jas@extundo.com>
128110         * m4/strchrnul.m4: New file.
128112 2003-06-10  Simon Josefsson  <jas@extundo.com>
128114         * lib/strchrnul.h: New file.
128115         * lib/strchrnul.c: New file.
128117 2003-06-10  Bruno Haible  <bruno@clisp.org>
128119         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
128121 2003-06-07  Karl Berry  <karl@gnu.org>
128123         * config/config.{guess,sub}: update from prep.
128125 2003-06-07  Jim Meyering  <jim@meyering.net>
128127         * modules/strtod: Use $(...) notation, not @...@ for
128128         AC_REPLACE'd variables.
128129         * modules/localcharset: Likewise.
128131 2003-06-07  Jim Meyering  <jim@meyering.net>
128133         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
128134         in place of my name in the copyright comment.
128135         Remove definition and uses of __P.
128137         From coreutils.
128138         * lib/stat.c: Don't declare xmalloc explicitly.
128139         Instead, include "xalloc.h".
128140         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
128141         xrealloc, and xcalloc return values.
128142         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
128143         Improve comment.
128144         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
128146 2003-06-07  Bruno Haible  <bruno@clisp.org>
128148         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
128149         avoid AC_CONFIG_LINKS.
128150         * modules/fnmatch (Makefile.am): Use explicit creation rule for
128151         fnmatch.h, to avoid AC_CONFIG_LINKS.
128152         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
128154 2003-06-07  Bruno Haible  <bruno@clisp.org>
128156         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
128157         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
128158         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128159         directory.
128160         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
128161         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128162         directory.
128164 2003-06-06  Jim Meyering  <jim@meyering.net>
128166         Merge from coreutils.
128167         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
128168         Consolidate declarations and initializations of *_base* locals.
128170         Merge from coreutils.
128171         This avoids a core dump on systems without GNU putenv,
128172         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128173         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128174         (unsetenv): New static function, from GNU libc.
128175         (rpl_putenv): Use it.
128177         * lib/modechange.c: Remove trailing blanks.
128179         Merge from coreutils.
128180         * lib/fsusage.c: Remove declaration of statfs.
128181         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
128183         * lib/posixtm.c: Include <stdbool.h> unconditionally.
128185 2003-06-06  Jim Meyering  <jim@meyering.net>
128187         * lib/stdbool_.h: Renamed from stdbool.h.in.
128189 2003-06-06  Jim Meyering  <jim@meyering.net>
128190             Bruno Haible  <bruno@clisp.org>
128192         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
128193         Adjust Makefile.am snippet not to redirect directly to target.
128194         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
128196 2003-06-05  Paul Eggert  <eggert@twinsun.com>
128198         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
128199         mismatch, look in future quarters as well as past.  This fixes a
128200         bug when processing fall-backwards gaps immediately after a long
128201         period of daylight-saving time.
128203         * lib/mktime.c: Assume freestanding C89 or better.
128204         (HAVE_LIMITS_H): Remove.  Assume it's 1.
128205         (__P): Remove; not used.
128206         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
128207         (mktime, not_equal_tm, print_tm, check_result,
128208         main): Use prototypes.  Use const * where appropriate.
128209         (main): Fix typo in testing code that uncovered by above changes.
128210         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
128212 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128214         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
128215         locale.h, localeconv.  This merges changes from coreutils.
128217         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
128218         It can be removed after the next Autoconf is released.
128219         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
128220         needed.
128222 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128224         * lib/mktime.c: Fix Debian bug 177940
128225         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
128226         (localtime_offset): Now long int, not time_t, because we want it
128227         to be guaranteed to be signed.  All uses changed.
128228         (__mktime_internal): If overflow would occur when adding offset,
128229         don't add it.
128231         Merge 'human' changes from coreutils.  Rewrite to support
128232         locale-specific notations like thousands separators.
128233         * lib/human.c: Simplify authorship notice.
128234         Include human.h immediately after config.h.
128235         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
128236         <limits.h>: Do not include, since human.h does.
128237         (SIZE_MAX, UINTMAX_MAX): New macros.
128238         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
128239         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
128240         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
128241         (power_letter): Renamed from suffixes.
128242         (generate_suffix_backwards): Remove.
128243         (adjust_value): Now takes int style (because of human.h changes)
128244         and long double value (for greater precision on some platforms).
128245         (group_number): New function.
128246         (human_readable): Use it.  Use integer options, not enum.
128247         Put the options before the sizes in the arg list.
128248         Support all the new options.
128249         The old human_readable function has been removed;
128250         use inttostr.h instead.
128251         (human_readable, default_block_size, humblock):
128252         Use uintmax_t, not int, for block sizes.
128253         (human_readable_inexact, block_size_types): Remove.
128254         (block_size_opts): New constant.
128255         (human_options): Renamed from human_block_size, with new signature
128256         that allows block sizes up to UINTMAX_MAX.  All callers changed.
128257         * lib/human.h: Add copyright and authorship notice.
128258         Include <limits.h> and <stdbool.h> unconditionally.
128259         (PARAMS): Remove.  All uses removed.
128260         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
128261         (enum human_inexact_style): Remove tag; now a nameless enum.
128262         (human_floor, human_ceiling, human_round_to_even): Now have
128263         values 2, 0, 1 rather than -1, 1, 0.
128264         (human_group_digits, human_suppress_point_zero, human_autoscale,
128265         human_base_1024, human_SI, human_B): New constants.
128266         (human_readable_inexact, human_block_size): Remove.
128267         (human_readable): Size args are now uintmax_t, not int.
128268         (human_options): New decl.
128270         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
128271         unnecessary now that we assume C89 or better.  This change
128272         imported from coreutils.
128274         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128275         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
128276         in the 2003-05-30 sync from glibc.
128278         .h files should stand alone, but we shouldn't include <sys/types.h>
128279         if we can get away with just <stddef.h>.
128281         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
128282         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
128283         rather than <sys/types.h>, as we merely need size_t.
128284         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
128285         to get size_t.
128286         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
128287         Include <stdio.h>, to get FILE.
128288         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
128289         memcasecmp.h has included <stddef.h> and all we need is size_t.
128290         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
128291         our interface, instead of including <sys/types.h>
128293 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128295         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
128296         now, as glibc mktime is buggy on non-glibc systems.
128298 2003-06-03  Karl Berry  <karl@gnu.org>
128300         * config/config.sub: update from prep.
128302 2003-06-02  Paul Eggert  <eggert@twinsun.com>
128304         [from coreutils]
128305         Fix some minor time-related bugs with POSIX time arguments.
128306         Some valid time stamps were being rejected (notably -1, and
128307         time stamps before 1900 on 64-bit hosts).  And some invalid
128308         time stamps were being accepted, e.g. September 31.
128310         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
128311         that we can return (time_t) -1 successfully.
128312         * lib/posixtm.c: Likewise.
128313         [HAVE_STDBOOL_H]: Include <stdbool.h>.
128314         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
128315         (t): Remove static var.
128316         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
128317         of static var.  All uses changed.
128318         (year): Do not reject years before 1900; they can occur with
128319         64-bit time_t.
128320         (posix_time_parse): Do not check for out-of-range components;
128321         that is now the caller's responsibility, since our checks were
128322         only approximations.
128323         (posixtime): Use mktime to check for out-of-range components,
128324         since it knows them exactly.
128325         If mktime returns (time_t) -1, check whether an error actually occurred
128326         by invoking localtime on -1.
128327         (main) [TEST_POSIXTIME]: Check for input data errors, and report
128328         posixtime failures better.
128329         Improve the test data (in comments only).
128331 2003-06-02  Karl Berry  <karl@gnu.org>
128333         * config/mkinstalldirs (version): new variable.
128334         (--version): new option.
128335         (usage): improve message.
128337 2003-05-30  Karl Berry  <karl@gnu.org>
128339         * lib/mktime.c: update from libc.
128341 2003-05-30  Bruno Haible  <bruno@clisp.org>
128343         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128344         * config/config.rpath: Upgrade to gettext-0.12.1.
128346 2003-05-30  Bruno Haible  <bruno@clisp.org>
128348         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128349         * m4/nls.m4: New file, from gettext-0.12.1.
128350         * m4/po.m4: New file, from gettext-0.12.1.
128351         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128353 2003-05-30  Bruno Haible  <bruno@clisp.org>
128355         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128356         * lib/localcharset.h: Likewise.
128357         * lib/localcharset.c: Likewise.
128359 2003-05-29  Karl Berry  <karl@gnu.org>
128361         * config/config.rpath: update from gettext.
128363 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128365         Assume the headers required for C89 freestanding compilers.
128366         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128367         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128368         * m4/human.m4 (gl_HUMAN): Likewise.
128369         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128370         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128371         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128372         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128373         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128374         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128376 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128378         Assume the headers required for C89 freestanding compilers.
128379         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128380         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128381         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128382         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128383         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128384         define, since <limits.h> is guaranteed to do that.
128385         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128386         * lib/exclude.c: Include <stdbool.h> unconditionally.
128387         * lib/tempname.c: Include <stddef.h> unconditionally.
128388         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128389         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128390         <stddef.h> does that.
128391         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128392         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128393         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128394         needed.
128395         * lib/xstrtol.c: Likewise.
128396         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128397         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128399         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128400         warnings on some platforms.
128402         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128403         arbitrarily.
128405 2003-05-26  Jim Meyering  <jim@meyering.net>
128407         Merge in a change from coreutils:
128408         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128409         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128410         that condition, rather than `-1' which is slightly misleading.
128411         Change the name of the cache variable to have the gl_ prefix.
128412         Prompted by a patch from Richard Dawe for DJGPP.
128414 2003-05-24  Karl Berry  <karl@gnu.org>
128416         * config/config.guess: update from prep.
128418 2003-05-22  Karl Berry  <karl@gnu.org>
128420         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128422 2003-05-20  Karl Berry  <karl@gnu.org>
128424         * config/config.guess: update from prep.
128426 2003-05-18  Karl Berry  <karl@gnu.org>
128428         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128429         might actually be set by the user.
128431         * config/depcomp, install-sh, mdate-sh: update from automake.
128433 2003-05-17  Bruno Haible  <bruno@clisp.org>
128435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128436         invalid expansion for AC_EGREP_CPP.
128437         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128438         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128439         Suggested by Akim Demaille <akim@epita.fr> in
128440         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128442 2003-05-12  Jim Meyering  <jim@meyering.net>
128444         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128445         the space-padded-by-default conversion specifiers, %e, %k, %l.
128447 2003-05-12  Bruno Haible  <bruno@clisp.org>
128449         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128450         the string is longer than 4 KB.
128452 2003-05-11  Karl Berry  <karl@gnu.org>
128454         * config/config.{guess,sub}: update from prep.
128456 2003-05-09  Bruno Haible  <bruno@clisp.org>
128458         * modules/error: Add m4/strerror_r.m4 to file list.
128460 2003-05-03  Bruno Haible  <bruno@clisp.org>
128462         Upgrade to Unicode-4.0.
128463         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
128464         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
128465         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
128466         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
128467         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
128468         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
128469         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
128470         Change width of U+E0100..U+E01EF from 1 to 0.
128472 2003-04-25  Jim Meyering  <jim@meyering.net>
128474         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
128475         of type size_t, not int.
128477 2003-04-25  Bruno Haible  <bruno@clisp.org>
128479         * lib/copy-file.c: Include <stddef.h>, for size_t.
128481 2003-04-21  Paul Eggert  <eggert@twinsun.com>
128483         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
128484         code which expansion is under static control.  Patch imported from
128485         Akim Demaille's patch to Bison; see
128486         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
128488 2003-04-14  Bruno Haible  <bruno@clisp.org>
128490         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
128492 2003-04-11  Jim Meyering  <jim@meyering.net>
128494         Merge changes from Coreutils.
128496         2003-03-22  Jim Meyering  <jim@meyering.net>
128498         * lib/strftime.c (widen): Cast alloca return value to proper type.
128500         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
128502         From GNU libc.
128503         * lib/strftime.c (my_strftime): Handle very large width
128504         specifications for numeric values correctly.  Improve checks for
128505         overflow.
128507         2003-01-19  Jim Meyering  <jim@meyering.net>
128509         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
128510         definitions.
128511         (nl_get_alt_digit) [! defined my_strftime]: Define.
128512         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
128513         _nl_get_alt_digit and _nl_get_walt_digit.
128515         * lib/strftime.c (my_strftime): Merge in locale-related changes from
128516         libc. These changes have no effect outside of _LIBC.
128518 2003-04-10  Bruno Haible  <bruno@clisp.org>
128520         * modules/findprog: New file.
128521         * MODULES.html.sh (func_all_modules): Add it.
128523 2003-04-10  Bruno Haible  <bruno@clisp.org>
128525         * m4/findprog.m4: New file.
128526         * m4/eaccess.m4: New file.
128528 2003-04-10  Bruno Haible  <bruno@clisp.org>
128530         * lib/findprog.h: New file, from GNU gettext.
128531         * lib/findprog.c: New file, from GNU gettext.
128533 2003-04-05  Jim Meyering  <jim@meyering.net>
128535         Merge changes from Coreutils.
128537         * lib/exclude.h (PARAMS): Remove definition and uses.
128538         * lib/exclude.c: Remove uses of `PARAMS'.
128540         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
128541         Add test-cases for DOS filenames. Declare program_name.
128542         (main): Set up program_name.  Patch by Rich Dawe.
128544         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128545         error from mntctl.
128546         Use mntctl's return value to drive the entry-processing loop, since
128547         we can't rely on the value of the vmt_length member in the last
128548         entry.  On some systems doing so could result in exhausting
128549         virtual memory.  Based in part on a patch from Mike Jetzer.
128551 2003-04-04  Bruno Haible  <bruno@clisp.org>
128553         * modules/linebreak: New file.
128554         * MODULES.html.sh (func_all_modules): Add it.
128556 2003-04-04  Bruno Haible  <bruno@clisp.org>
128558         * m4/linebreak.m4: New file.
128560 2003-04-04  Bruno Haible  <bruno@clisp.org>
128562         * lib/linebreak.h: New file, from GNU gettext.
128563         * lib/linebreak.c: New file, from GNU gettext with slight
128564         modifications.
128565         * lib/lbrkprop.h: New file, from GNU gettext.
128567 2003-04-03  Bruno Haible  <bruno@clisp.org>
128569         * modules/utf8-ucs4: New file.
128570         * modules/utf16-ucs4: New file.
128571         * modules/ucs4-utf8: New file.
128572         * modules/ucs4-utf16: New file.
128573         * MODULES.html.sh (func_all_modules): Add them.
128575 2003-04-03  Bruno Haible  <bruno@clisp.org>
128577         * m4/utf-ucs4.m4: New file.
128578         * m4/ucs4-utf.m4: New file.
128580 2003-04-03  Bruno Haible  <bruno@clisp.org>
128582         * lib/utf8-ucs4.h: New file, from GNU gettext.
128583         * lib/utf16-ucs4.h: New file, from GNU gettext.
128584         * lib/ucs4-utf8.h: New file, from GNU gettext.
128585         * lib/ucs4-utf16.h: New file, from GNU gettext.
128587 2003-04-02  Bruno Haible  <bruno@clisp.org>
128589         * modules/binary-io: New file.
128590         * MODULES.html.sh (func_all_modules): Add it.
128592 2003-04-02  Bruno Haible  <bruno@clisp.org>
128594         * lib/binary-io.h: New file, from GNU gettext.
128596 2003-04-01  Bruno Haible  <bruno@clisp.org>
128598         * modules/pathname: New file.
128599         * MODULES.html.sh (func_all_modules): Add it.
128601 2003-04-01  Bruno Haible  <bruno@clisp.org>
128603         * lib/pathname.h: New file, from GNU gettext.
128604         * lib/concatpath.c: New file, from GNU gettext.
128606 2003-03-30  Bruno Haible  <bruno@clisp.org>
128608         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
128610 2003-03-30  Bruno Haible  <bruno@clisp.org>
128612         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
128613         function chown() doesn't exist.
128615 2003-03-28  Bruno Haible  <bruno@clisp.org>
128617         * modules/copy-file: New file.
128618         * MODULES.html.sh (func_all_modules): Add it.
128620 2003-03-28  Bruno Haible  <bruno@clisp.org>
128622         * m4/copy-file.m4: New file.
128624 2003-03-28  Bruno Haible  <bruno@clisp.org>
128626         * lib/copy-file.h: New file, from GNU gettext.
128627         * lib/copy-file.c: New file, from GNU gettext.
128629 2003-03-18  Jim Meyering  <jim@meyering.net>
128631         * lib/quote.c (quote_n): Fix typo in comment.
128633 2003-03-18  Bruno Haible  <bruno@clisp.org>
128635         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
128636         checking.
128637         * m4/onceonly_2_57.m4: Likewise.
128639 2003-03-17  Bruno Haible  <bruno@clisp.org>
128641         * m4/onceonly.m4: Require autoconf 2.54 or newer.
128642         (m4_quote): Remove macro.
128643         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
128645 2003-03-14  Jim Meyering  <jim@meyering.net>
128647         Merge changes from Coreutils.
128648         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
128649         to be const, in order to avoid warnings.
128650         (obstack_room): Likewise.
128651         (obstack_empty_p): Likewise.
128653 2003-03-14  Bruno Haible  <bruno@clisp.org>
128655         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
128656         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
128658 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128660         Merge changes from Bison.
128661         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128662         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128663         when compiling Bison 1.875's `bitset bset = obstack_alloc
128664         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128665         * lib/hash.c: Include <stdbool.h> unconditionally.
128667 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128669         * m4/onceonly.m4 (m4_quote): New macro.
128670         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128671         Quote AC_FOREACH variable-expansions properly.
128673 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128675         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128677 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128679         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128680         Reported by Bruce Becker; see:
128681         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128683 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128684             Bruno Haible  <bruno@clisp.org>
128686         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128687         Reported by John Hughes, see
128688         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128690 2003-02-20  Bruno Haible  <bruno@clisp.org>
128692         * MODULES.html.sh (func_all_modules): Add poll.
128694 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128696         * modules/poll: New file.
128698 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128700         * lib/poll_.h: New file.
128701         * lib/poll.c: New file.
128703 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128705         * m4/poll.m4: New file.
128707 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128709         * modules/mathl: New file.
128711 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128713         * lib/mathl.h: New file.
128714         * lib/acosl.c: New file.
128715         * lib/asinl.c: New file.
128716         * lib/atanl.c: New file.
128717         * lib/ceill.c: New file.
128718         * lib/cosl.c: New file.
128719         * lib/expl.c: New file.
128720         * lib/floorl.c: New file.
128721         * lib/frexpl.c: New file.
128722         * lib/ldexpl.c: New file.
128723         * lib/logl.c: New file.
128724         * lib/sincosl.c: New file.
128725         * lib/sinl.c: New file.
128726         * lib/sqrtl.c: New file.
128727         * lib/tanl.c: New file.
128728         * lib/trigl.c: New file.
128729         * lib/trigl.h: New file.
128731 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128733         * m4/mathl.m4: New file.
128735 2003-02-18  Bruno Haible  <bruno@clisp.org>
128737         * MODULES.html.sh (func_all_modules): Add mathl.
128739 2003-02-17  Bruno Haible  <bruno@clisp.org>
128741         * modules/mkdtemp: New module.
128742         * MODULES.html.sh (func_all_modules): Add it.
128744 2003-02-17  Bruno Haible  <bruno@clisp.org>
128746         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128748 2003-02-17  Bruno Haible  <bruno@clisp.org>
128750         * lib/mkdtemp.h: New file, from GNU gettext.
128751         * lib/mkdtemp.c: New file, from GNU gettext.
128753 2003-02-02  Jim Meyering  <jim@meyering.net>
128755         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128756         e.g. glibc-2.2.93.
128758 2003-01-31  Bruno Haible  <bruno@clisp.org>
128760         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128761         'rpl_rename'.
128762         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128763         'rpl_strnlen'.
128764         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128765         'rpl_strtod'.
128766         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128767         'rpl_utime'.
128769 2003-01-31  Bruno Haible  <bruno@clisp.org>
128771         * lib/rename.c: #undef rename before defining rpl_rename.
128772         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128774 2003-01-30  Bruno Haible  <bruno@clisp.org>
128776         * modules/vasnprintf, modules/vasprintf: New modules.
128777         * MODULES.html.sh (func_all_modules): Add them.
128779 2003-01-30  Bruno Haible  <bruno@clisp.org>
128781         * m4/signed.m4: New file, from GNU gettext.
128782         * m4/longdouble.m4: New file, from GNU gettext.
128783         * m4/wchar_t.m4: New file, from GNU gettext.
128784         * m4/wint_t.m4: New file, from GNU gettext.
128785         * m4/vasnprintf.m4: New file.
128786         * m4/vasprintf.m4: New file.
128788 2003-01-30  Bruno Haible  <bruno@clisp.org>
128790         * lib/printf-args.h: New file, from GNU gettext.
128791         * lib/printf-args.c: New file, from GNU gettext.
128792         * lib/printf-parse.h: New file, from GNU gettext.
128793         * lib/printf-parse.c: New file, from GNU gettext.
128794         * lib/vasnprintf.h: New file, from GNU gettext.
128795         * lib/vasnprintf.c: New file, from GNU gettext.
128796         * lib/asnprintf.c: New file, from GNU gettext.
128797         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128798         * lib/vasprintf.c: New file, from GNU gettext.
128799         * lib/asprintf.c: New file, from GNU gettext.
128801 2003-01-29  Bruno Haible  <bruno@clisp.org>
128803         * modules/stpncpy: New module.
128804         * MODULES.html.sh (func_all_modules): Add it.
128806 2003-01-29  Bruno Haible  <bruno@clisp.org>
128808         * m4/stpncpy.m4: New file.
128810 2003-01-29  Bruno Haible  <bruno@clisp.org>
128812         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128813         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128815 2003-01-28  Bruno Haible  <bruno@clisp.org>
128817         * modules/c-ctype: New module.
128818         * MODULES.html.sh (func_all_modules): Add it.
128820 2003-01-28  Bruno Haible  <bruno@clisp.org>
128822         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128823         Paul Eggert.
128824         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128825         Paul Eggert.
128827 2003-01-27  Bruno Haible  <bruno@clisp.org>
128829         * modules/xsetenv: New module.
128830         * MODULES.html.sh (func_all_modules): Add it.
128832 2003-01-27  Bruno Haible  <bruno@clisp.org>
128834         * lib/xsetenv.h: New file, from GNU gettext.
128835         * lib/xsetenv.c: New file, from GNU gettext.
128837 2003-01-23  Jim Meyering  <jim@meyering.net>
128839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128840         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128842 2003-01-23  Bruno Haible  <bruno@clisp.org>
128844         * modules/minmax: New module.
128845         * MODULES.html.sh (func_all_modules): Add it.
128847 2003-01-23  Bruno Haible  <bruno@clisp.org>
128849         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128850         Eggert.
128852 2003-01-22  Bruno Haible  <bruno@clisp.org>
128854         * modules/exit: New module.
128855         * MODULES.html.sh (func_all_modules): Add it.
128857 2003-01-22  Bruno Haible  <bruno@clisp.org>
128859         * lib/exit.h: New file, from GNU gettext.
128861 2003-01-19  Bruno Haible  <bruno@clisp.org>
128863         * gnulib-tool: Recognize option --extract-maintainer.
128864         (func_get_maintainer): New function.
128865         * modules/*: Add Maintainer entry.
128867 2003-01-16  Jim Meyering  <jim@meyering.net>
128869         * m4/regex.m4: The `regex' struct is both input and output.
128870         Initialize it before each use.  Patch by Tim Waugh.
128872 2003-01-16  Bruno Haible  <bruno@clisp.org>
128874         * MODULES.html.sh: Add a table of contents. Add the module name as
128875         leftmost column. Add hyperlinks.
128877 2003-01-15  Bruno Haible  <bruno@clisp.org>
128879         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128881 2003-01-15  Bruno Haible  <bruno@clisp.org>
128883         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128884         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128885         suffix.
128887 2003-01-15  Bruno Haible  <bruno@clisp.org>
128889         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128891 2003-01-15  Bruno Haible  <bruno@clisp.org>
128893         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128894         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128896 2003-01-14  Jim Meyering  <jim@meyering.net>
128898         * lib/same.c (same_name): Tweak a comment.
128900 2003-01-14  Bruno Haible  <bruno@clisp.org>
128902         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128903         when a string comparison is sufficient.
128905 2003-01-14  Bruno Haible  <bruno@clisp.org>
128907         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128908         'unsigned int'.
128910 2003-01-14  Bruno Haible  <bruno@clisp.org>
128912         * lib/hash-pjw.c: Add comment about low quality of this function.
128914 2003-01-13  Bruno Haible  <bruno@clisp.org>
128916         * modules/stpcpy: Distribute lib/stpcpy.h.
128917         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128919 2003-01-13  Bruno Haible  <bruno@clisp.org>
128921         * modules/*: Add a description.
128922         * modules/strpbrk: Fix Makefile.am snippet.
128923         * modules/strtoimax: Fix dependencies.
128924         * modules/strtoumax: Likewise.
128926 2003-01-13  Bruno Haible  <bruno@clisp.org>
128928         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128929         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128930         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128932 2003-01-13  Bruno Haible  <bruno@clisp.org>
128934         * gnulib-tool (func_create_testdir): Store config/* files in the main
128935         directory.
128936         * config.rpath: Move to ...
128937         * config/config.rpath: ... here.
128938         * modules/gettext: Contains config/config.rpath, not config.rpath.
128939         * modules/iconv: Likewise.
128941 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128943         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128944         to avoid collisions with libcurses and libreadline.
128946         * m4/getstr.m4: Remove.
128947         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128949 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128951         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128952         to avoid collisions with libcurses and libreadline.
128954         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128955         * lib/getstr.h, getstr.c: Remove.
128956         * lib/getline.c: Include "getline.h", to check interface.
128957         Move body of old getstr.c here: this defines MIN_CHUNK and
128958         declares getdelim2, which is renamed from getstr.
128959         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128961         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128962         All uses changed.
128963         * lib/linebuffer.h: Likewise.
128964         (readline): Remove backward-compatibility macro.
128966 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128968         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128969         to avoid collisions with libcurses and libreadline.
128970         * getstr: Remove.
128971         * MODULES.html.sh: Remove getstr.
128972         * modules/getline: Depend on unlocked-io, not getstr.
128974 2003-01-12  Jim Meyering  <jim@meyering.net>
128976         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128978 2003-01-10  Bruno Haible  <bruno@clisp.org>
128980         * modules/alloca: Change Makefile.am requirements. Simplify Include
128981         requirements. Add lib/alloca_.h to file list.
128983 2003-01-10  Bruno Haible  <bruno@clisp.org>
128985         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128987 2003-01-10  Bruno Haible  <bruno@clisp.org>
128989         * lib/alloca_.h: New file.
128990         * lib/getdate.y: Unconditionally include alloca.h.
128991         * lib/makepath.c: Likewise.
128992         * lib/setenv.c: Likewise.
128993         * lib/userspec.c: Likewise.
128995 2003-01-09  Karl Berry  <karl@gnu.org>
128997         * MODULES.html.sh: include `dirname $0` in PATH, to find
128998         gnulib-tool.
129000 2003-01-09  Bruno Haible  <bruno@clisp.org>
129002         * modules/stdbool: Change configure.ac, Makefile.am requirements.
129003         Simplify Include requirements. Add lib/stdbool.h.in to file list.
129005 2003-01-09  Bruno Haible  <bruno@clisp.org>
129007         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
129009 2003-01-09  Bruno Haible  <bruno@clisp.org>
129011         * lib/stdbool.h.in: New file.
129013 2003-01-09  Bruno Haible  <bruno@clisp.org>
129015         * gnulib-tool (func_all_modules): Ignore files ending in ~.
129016         * MODULES.html.sh: Likewise.
129018 2003-01-08  Jim Meyering  <jim@meyering.net>
129020         * lib/full-write.c: Undefine and define-away `const' after inclusion
129021         of errno.h, not before.  Suggestion from Bruno Haible.
129023 2003-01-08  Bruno Haible  <bruno@clisp.org>
129025         * modules/full-read: Depend on full-write.
129027 2003-01-08  Bruno Haible  <bruno@clisp.org>
129029         * lib/safe-read.c: Include specification header first, to ensure its
129030         selfcontainedness.
129031         * lib/full-write.c: Likewise.
129033 2003-01-07  Jim Meyering  <jim@meyering.net>
129035         * lib/full-write.c: Rework so that it may serve to define full_read,
129036         too.
129037         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
129039 2003-01-07  Bruno Haible  <bruno@clisp.org>
129041         * lib/strtoimax.c: Include <stdint.h> as an alternative to
129042         <inttypes.h>.
129043         * lib/xstrtol.h: Likewise.
129044         * lib/xstrtoimax.c: Likewise.
129045         * lib/xstrtoumax.c: Likewise.
129046         * lib/human.h: Likewise.
129048         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
129049         on systems that have <inttypes.h> but not <stdint.h>.
129051 2003-01-07  Bruno Haible  <bruno@clisp.org>
129053         * MODULES.html.sh: Add copyright notice.
129054         (missed_files): Omit CVS directory entries.
129055         (func_module): Make it work with sed-3.02.
129056         * MODULES.txt: Remove file.
129058 2003-01-06  Jim Meyering  <jim@meyering.net>
129060         * lib/version-etc.c: Update year in translatable copyright string.
129062 2003-01-03  Karl Berry  <karl@gnu.org>
129064         * config/config.{guess,sub}: update from prep.
129066 2003-01-02  Karl Berry  <karl@gnu.org>
129068         * doc/COPYING.DOC: belatedly updated to 1.2.
129070 2003-01-01  Karl Berry  <karl@gnu.org>
129072         * gnulib-tool (func_verify_module): report module name $module in
129073         error message, not $1.
129074         * gnulib-tool (create-testdir): don't complain if destdir couldn't
129075         be created, only if it doesn't exist.
129076         * gnulib-tool (last_checkin_date): don't expand the $Date here.
129078 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129080         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
129082 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129084         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
129085         memcmp if strcoll doesn't work.
129087 2002-12-31  Bruno Haible  <bruno@clisp.org>
129089         * lib/utime.c (utime_null): No need to call ftruncate if the file was
129090         nonempty.
129092 2002-12-31  Bruno Haible  <bruno@clisp.org>
129094         * lib/memcoll.c (STRCOLL): New macro.
129095         (memcoll): Use it.
129097 2002-12-31  Bruno Haible  <bruno@clisp.org>
129099         * lib/localcharset.h: New file.
129100         * lib/localcharset.c: Include it.
129101         * lib/unicodeio.c: Likewise.
129103 2002-12-31  Bruno Haible  <bruno@clisp.org>
129105         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
129106         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
129108 2002-12-31  Bruno Haible  <bruno@clisp.org>
129110         * lib/getline.h: Include <stddef.h>, for size_t.
129112         * lib/unicodeio.h: Include <stddef.h>, for size_t.
129113         * lib/unicodeio.c: Don't include <stddef.h>.
129115 2002-12-31  Bruno Haible  <bruno@clisp.org>
129117         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
129118         HAVE_TM_ZONE.
129120 2002-12-24  Karl Berry  <karl@gnu.org>
129122         * config/config.guess: update from prep.
129124 2002-12-24  Bruno Haible  <bruno@clisp.org>
129126         General infrasructure.
129127         * m4/README: Rewritten.
129128         * m4/onceonly.m4: New file.
129129         * m4/onceonly_2_57.m4: New file.
129131         Module atexit.
129132         * m4/atexit.m4: New file.
129134         Module strtod.
129135         * m4/strtod.m4: New file.
129137         Module strtol.
129138         * m4/strtol.m4: New file.
129140         Module strtoul.
129141         * m4/strtoul.m4: New file.
129143         Module memchr.
129144         * m4/memchr.m4: New file.
129146         Module memcmp.
129147         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
129148         (jm_FUNC_MEMCMP): Invoke it.
129150         Module memcpy.
129151         * m4/memcpy.m4: New file.
129153         Module memmove.
129154         * m4/memmove.m4: New file.
129156         Module memset.
129157         * m4/memset.m4: New file.
129159         Module strcspn.
129160         * m4/strcspn.m4: New file.
129162         Module strpbrk.
129163         * m4/strpbrk.m4: New file.
129165         Module strstr.
129166         * m4/strstr.m4: New file.
129168         Module strerror.
129169         * m4/strerror.m4: New file.
129171         Module mktime.
129172         * m4/mktime.m4: Renamed from jm-mktime.m4.
129173         (gl_PREREQ_MKTIME): New macro.
129174         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129176         Module malloc.
129177         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
129178         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
129179         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
129181         Module realloc.
129182         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
129183         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
129184         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
129186         Module strftime.
129187         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
129188         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
129189         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
129190         gl_TM_GMTOFF.
129191         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
129193         Module xalloc.
129194         * m4/xalloc.m4: New file.
129196         Module alloca.
129197         * m4/alloca.m4: New file.
129199         Module putenv.
129200         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
129201         (jm_FUNC_PUTENV): Invoke it.
129203         Module setenv.
129204         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
129205         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
129206         when invoked twice.
129207         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
129208         gt_FUNC_SETENV.
129210         Module memrchr.
129211         * m4/memrchr.m4: New file.
129213         Module stpcpy.
129214         * m4/stpcpy.m4: New file.
129216         Module strcase.
129217         * m4/strcase.m4: New file.
129219         Module strdup.
129220         * m4/strdup.m4: New file.
129222         Module strnlen.
129223         * m4/strnlen.m4: New file.
129225         Module strndup.
129226         * m4/strndup.m4: New file.
129228         Module xstrtod.
129229         * m4/xstrtod.m4: New file.
129231         Module xstrtol.
129232         * m4/xstrtol.m4: New file.
129234         Module getdate.
129235         * m4/getdate.m4: New file.
129237         Module unlocked-io.
129238         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
129239         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
129240         * m4/jm-glibc-io.m4n: Remove file.
129242         Module long-options.
129243         * m4/long-options.m4: New file.
129245         Module md5.
129246         * m4/md5.m4: New file.
129248         Module sha.
129249         * m4/sha.m4: New file.
129251         Module getstr.
129252         * m4/getstr.m4: New file.
129254         Module getline.
129255         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
129256         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
129257         <sys/types.h>, for size_t. Use the function name gnu_getline, not
129258         simply getline. Infoke gl_PREREQ_GETLINE.
129260         Module obstack.
129261         * m4/obstack.m4: New file.
129263         Module hash.
129264         * m4/hash.m4: New file.
129266         Module readtokens.
129267         * m4/readtokens.m4: New file.
129269         Module strverscmp.
129270         * m4/strverscmp.m4: New file.
129272         Module stdbool.
129273         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
129274         OSF/1.
129276         Module strtoll.
129277         * m4/strtoll.m4: New file.
129279         Module strtoull.
129280         * m4/strtoull.m4: New file.
129282         Module strtoimax.
129283         * m4/strtoimax.m4: New file.
129285         Module strtoumax.
129286         * m4/strtoumax.m4: New file.
129288         Module xstrtoimax.
129289         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
129290         jm_AC_PREREQ_XSTRTOIMAX.
129291         Moved the strtol prerequisites to strtol.m4.
129292         Moved the strtoll prerequisites to strtoll.m4.
129293         Moved the strtoimax prerequisites to strtoimax.m4.
129295         Module xstrtoumax.
129296         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
129297         jm_AC_PREREQ_XSTRTOUMAX.
129298         Moved the strtoul prerequisites to strtoul.m4.
129299         Moved the strtoull prerequisites to strtoull.m4.
129300         Moved the strtoumax prerequisites to strtoumax.m4.
129302         Module chown.
129303         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
129304         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
129306         Module dup2.
129307         * m4/dup2.m4: New file.
129309         Module ftruncate.
129310         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
129311         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
129313         Module getgroups.
129314         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
129315         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
129317         Module gettimeofday.
129318         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
129319         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
129320         gl_PREREQ_GETTIMEOFDAY.
129322         Module mkdir.
129323         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
129324         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
129326         Module mkstemp.
129327         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
129328         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
129329         jm_AC_TYPE_UINTMAX_T.
129330         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
129332         Module stat.
129333         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
129334         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
129336         Module lstat.
129337         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
129338         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
129340         Module timespec.
129341         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129342         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129343         * m4/st_mtim.m4: Indentation.
129345         Module nanosleep.
129346         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129347         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129348         gl_PREREQ_NANOSLEEP.
129350         Module regex.
129351         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129352         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129353         (gl_REGEX): New macro.
129355         Module rename.
129356         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129357         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129359         Module rmdir.
129360         * m4/rmdir.m4: New file.
129362         Module utime.
129363         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129364         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129365         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129367         Module dirname.
129368         * m4/dirname.m4: New file.
129370         Module getopt.
129371         * m4/getopt.m4: New file.
129373         Module unistd-safer.
129374         * m4/unistd-safer.m4: New file.
129376         Module fnmatch.
129377         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129378         declaration.
129379         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129380         (gl_FUNC_FNMATCH_POSIX): New macro.
129381         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129382         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129383         simply fnmatch.
129385         Module exclude.
129386         * m4/exclude.m4: New file.
129388         Module human.
129389         * m4/human.m4: New file.
129391         Module acl.
129392         * m4/acl.m4: Nop.
129394         Module backupfile.
129395         * m4/backupfile.m4: New file.
129396         * m4/d-ino.m4: Indentation.
129398         Module fsusage.
129399         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129400         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129401         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129403         Module dirfd.
129404         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129405         requirements.
129407         Module euidaccess.
129408         * m4/euidaccess.m4: New file.
129410         Module file-type.
129411         * m4/file-type.m4: New file.
129413         Module fileblocks.
129414         * m4/fileblocks.m4: New file.
129416         Module filemode.
129417         * m4/filemode.m4: New file.
129419         Module isdir.
129420         * m4/isdir.m4: New file.
129422         Module lchown.
129423         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129424         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129426         Module makepath.
129427         * m4/makepath.m4: New file.
129429         Module modechange.
129430         * m4/modechange.m4: New file.
129432         Module mountlist.
129433         * m4/mountlist.m4: New file.
129434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129435         Indentation.
129437         Module path-concat.
129438         * m4/path-concat.m4: New file.
129440         Module pathmax.
129441         * m4/pathmax.m4: New file.
129443         Module same.
129444         * m4/same.m4: New file.
129446         Module save-cwd.
129447         * m4/save-cwd.m4: New file.
129449         Module savedir.
129450         * m4/savedir.m4: New file.
129452         Module xgetcwd.
129453         * m4/xgetcwd.m4: New file.
129454         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
129456         Module xreadlink.
129457         * m4/xreadlink.m4: New file.
129459         Module safe-read.
129460         * m4/safe-read.m4: New file.
129462         Module safe-write.
129463         * m4/safe-write.m4: New file.
129465         Module closeout.
129466         * m4/closeout.m4: New file.
129468         Module stdio-safer.
129469         * m4/stdio-safer.m4: New file.
129471         Module getpass.
129472         * m4/getpass.m4: New file.
129474         Module getugroups.
129475         * m4/getugroups.m4: New file.
129477         Module group-member.
129478         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
129479         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
129481         Module idcache.
129482         * m4/idcache.m4: New file.
129484         Module userspec.
129485         * m4/userspec.m4: New file.
129487         Module gettime.
129488         * m4/clock_time.m4: New file.
129489         * m4/gettime.m4: New file.
129491         Module settime.
129492         * m4/settime.m4: New file.
129494         Module posixtm.
129495         * m4/posixtm.m4: New file.
129497         Module gethostname.
129498         * m4/gethostname.m4: New file.
129500         Module canon-host.
129501         * m4/canon-host.m4: New file.
129503         Module gettext.
129504         * m4/codeset.m4: New file, from gettext-0.11.5.
129505         * m4/gettext.m4: New file, from gettext-0.11.5.
129506         * m4/glibc21.m4: New file, from gettext-0.11.5.
129507         * m4/iconv.m4: New file, from gettext-0.11.5.
129508         * m4/intdiv0.m4: New file, from gettext-0.11.5.
129509         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
129510         * m4/inttypes.m4: New file, from gettext-0.11.5.
129511         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
129512         * m4/isc-posix.m4: New file, from gettext-0.11.5.
129513         * m4/lcmessage.m4: New file, from gettext-0.11.5.
129514         * m4/lib-ld.m4: New file, from gettext-0.11.5.
129515         * m4/lib-link.m4: New file, from gettext-0.11.5.
129516         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
129517         * m4/progtest.m4: New file, from gettext-0.11.5.
129518         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
129519         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
129520         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
129522         Module localcharset.
129523         * m4/localcharset.m4: New file.
129525         Module hard-locale.
129526         * m4/hard-locale.m4: New file.
129528         Module mbswidth.
129529         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
129530         onceonly macros.
129531         * m4/mbrtowc.m4: Add comment.
129533         Module memcasecmp.
129534         * m4/memcasecmp.m4: New file.
129536         Module memcoll.
129537         * m4/memcoll.m4: New file.
129539         Module unicodeio.
129540         * m4/unicodeio.m4: New file.
129542         Module rpmatch.
129543         * m4/rpmatch.m4: New file.
129545         Module yesno.
129546         * m4/yesno.m4: New file.
129548         Module exitfail.
129549         * m4/exitfail.m4: New file.
129551         Module c-stack.
129552         * m4/c-stack.m4 (gl_C_STACK): New macro.
129553         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
129555         Module error.
129556         * m4/error.m4 (gl_ERROR): New macro.
129557         (jm_PREREQ_ERROR): Use onceonly macros.
129559         Module fatal.
129560         * m4/fatal.m4: New file.
129562         Module getloadavg.
129563         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
129564         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
129566         Module getpagesize.
129567         * m4/getpagesize.m4: New file.
129569         Module getusershell.
129570         * m4/getusershell.m4: New file.
129572         Module physmem.
129573         * m4/physmem.m4: New file.
129575         Module posixver.
129576         * m4/posixver.m4: New file.
129578         Module quotearg.
129579         * m4/quotearg.m4: New file.
129581         Module quote.
129582         * m4/quote.m4: New file.
129584         Module readutmp.
129585         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
129587         Module sig2str.
129588         * m4/sig2str.m4: New file.
129590         Other.
129591         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129592         ulonglong.m4.
129593         * m4/intmax_t.m4: New file.
129594         * m4/d-type.m4: Indentation.
129595         * m4/jm-macros.m4: Update.
129596         * m4/prereq.m4 (jm_PREREQ): Update.
129597         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
129598         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
129599         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
129600         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
129601         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
129602         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
129603         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
129604         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
129605         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
129606         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
129607         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
129608         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
129609         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
129610         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
129611         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
129612         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
129613         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
129614         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
129615         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
129617 2002-12-24  Bruno Haible  <bruno@clisp.org>
129619         * MODULES.txt: Update according to m4/ changes.
129621         Module gettext.
129622         * config.rpath: New file, from gettext-0.11.5.
129624         * modules/*: New module descriptions.
129625         * gnulib-tool: New file.
129626         * MODULES.html.sh: New file.
129628 2002-12-21  Karl Berry  <karl@gnu.org>
129630         * doc/fdl.texi: update to version 1.2.
129632 2002-12-19  Karl Berry  <karl@gnu.org>
129634         * config/config.guess: update from prep.
129636 2002-12-18  Bruno Haible  <bruno@clisp.org>
129638         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
129639         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
129641 2002-12-17  Bruno Haible  <bruno@clisp.org>
129643         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
129644         stdlib.h, string.h.
129646 2002-12-17  Bruno Haible  <bruno@clisp.org>
129648         * lib/canon-host.c (strdup): Remove unused declaration.
129650         * lib/fsusage.c: Include full_read.h.
129651         (get_fs_usage): Use full_read instead of safe_read.
129653         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
129655 2002-12-12  Karl Berry  <karl@gnu.org>
129657         * config/config.guess: update from prep.
129659 2002-12-11  Bruno Haible  <bruno@clisp.org>
129661         * m4/setenv.m4: New file, from gettext-0.11.5.
129663 2002-12-11  Bruno Haible  <bruno@clisp.org>
129665         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129666         not unsetenv().
129667         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129668         modifications:
129670         2002-12-11  Bruno Haible  <bruno@clisp.org>
129672                 * setenv.c (alloca): Fall back to malloc.
129673                 (freea): New macro.
129674                 (setenv): Use freea() to free memory allocated with alloca().
129676         2002-11-13  Bruno Haible  <bruno@clisp.org>
129678                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129679                 function declarations.
129680                 * unsetenv.c (unsetenv): Likewise.
129682         2002-03-04  Bruno Haible  <bruno@clisp.org>
129684                 Portability to AIX 4.3.3.
129685                 * unsetenv.c: New file, extracted from setenv.c.
129686                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129688         2001-12-20  Bruno Haible  <bruno@clisp.org>
129690                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129691                 use malloc instead. For SunOS 4.
129693         2001-12-11  Bruno Haible  <bruno@clisp.org>
129695                 * setenv.c: Declare alloca.
129696                 (compar_fn_t): New typedef.
129697                 (KNOWN_VALUE, STORE_VALUE): Use it.
129699         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129700         setenv.h.
129702 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129704         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129705         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129706         Choose values that are less likely to collide with system fnmatch
129707         options.
129708         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129709         defined (e.g., a pure POSIX system).
129710         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129711         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129713 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129715         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129716         a pain in practice to deal with generated m4 files.  This change
129717         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129719         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129720         and jm-glibc-io.m4, as they are no longer a special case.
129721         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129722         kludge and the auto-generation stuff.  Check only whether the
129723         functions are declared, not whether they exist, since older hosts
129724         that don't declare the functions can't use the optimization anyway.
129726 2002-12-06  Jim Meyering  <jim@meyering.net>
129728         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129730         Merge in changes from libc's misc/error.c, in preparation
129731         for the merge of gnulib's changes back into libc.
129733         * lib/error.c (_): Define only if not already defined.
129734         Move definition to follow all #include directives.
129735         Include unlocked-io.h only if !_LIBC.
129736         [_LIBC]: Include <libio/libioP.h>.
129737         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129738         (fflush): Tweak definition to use INTUSE.
129739         (putc): Define.
129741 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129743         * lib/alloca.c [defined emacs]: Include "lisp.h".
129744         (xalloc_die) [defined emacs]: New macro.
129745         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129746         [! defined emacs]: Include <xalloc.h>.
129747         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129748         (pointer): Typedef to POINTER_TYPE *.
129749         (malloc): Remove decl; we now always use xmalloc.
129750         (alloca): Use old-style definition, since Emacs needs this.
129751         Check for arithmetic overflow when computing combined size.
129753 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129755         Do not generate unlocked-io.h automatically, since it's easier to
129756         maintain it by hand.
129758         * lib/unlocked-io.h: New file, from GNU diffutils,
129759         but with proper copyright notice and attribution.
129760         * lib/gen-uio: Remove.
129761         * lib/Makefile.am: Add copyright notice.
129762         (libfetish_a_SOURCES): Add unlocked-io.h.
129763         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129764         (DISTCLEANFILES, io_functions): Remove macros.
129765         (EXTRA_DIST): Remove gen_uio.
129766         (unlocked-io.h): Remove rule.
129768 2002-12-04  Jim Meyering  <jim@meyering.net>
129770         Reflect the fact that stat.c and lstat.c are no longer generated.
129771         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129772         (DISTCLEANFILES): Likewise.
129773         (EXTRA_DIST): Likewise.
129774         (all_local): Don't depend on stat.c or lstat.c.
129775         (stat.c, lstat.c): Remove rules.
129776         (EXTRA_DIST): Remove xstat.in.
129778         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129779         * lib/stat.c: New file.  Contents mostly from xstat.in.
129780         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129781         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129783         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129784         too.
129785         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129787 2002-12-03  Jim Meyering  <jim@meyering.net>
129789         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129790         but not semantics, to minimize the differences between these two files.
129791         (safe_read): Change comment to mention SAFE_READ_ERROR.
129793         * lib/safe-read.c (IS_EINTR): Define.
129794         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129796 2002-12-02  Jim Meyering  <jim@meyering.net>
129798         * lib/safe-read.c (EINTR): Define.
129799         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129800         (INT_MAX): Provide fallback.
129801         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129803         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129805 2002-12-02  Bruno Haible  <bruno@clisp.org>
129807         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129808         Define, taken from safe-read.c.
129809         (INT_MAX): Provide fallback.
129810         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129811         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129813         * lib/safe-read.c (EINTR): Remove definition.
129814         (safe_read): Don't use EINTR if it is absent.
129816 2002-12-01  Jim Meyering  <jim@meyering.net>
129818         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129819         zero.
129820         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129822 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129824         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129825         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129826         with `if (! (value < limit)) abort ();', for readability.
129828 2002-11-26  Karl Berry  <karl@gnu.org>
129830         * lib/strdup.c: copy from libc again, with jim's ok.
129831         * lib/.cppi-disable: re-add strdup.c
129833 2002-11-25  Karl Berry  <karl@gnu.org>
129835         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129836         instead of "strtol.c".
129838 2002-11-25  Karl Berry  <karl@gnu.org>
129840         * config/install-sh: update from automake for variable quoting, $0 in
129841         error msgs, etc.
129843         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129844         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129845         entry.
129847 2002-11-25  Jim Meyering  <jim@meyering.net>
129849         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129851 2002-11-24  Karl Berry  <karl@gnu.org>
129853         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129854         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129856 2002-11-24  Jim Meyering  <jim@meyering.net>
129858         Update from coreutils:
129860         * lib/mktime.c: Merge in changes from libc.
129862         Avoid a link-time failure on some Linux systems.
129863         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129864         (otherwise).
129865         (__mon_yday): Declare with the STATIC attribute.
129866         (__mktime_internal): Likewise.
129867         Based on a report from Greg Schafer.
129869 2002-11-23  Jim Meyering  <jim@meyering.net>
129871         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129872         Use `unsigned', not `int', as type of index.
129874         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129876         * lib/fsusage.c: Remove unneeded parentheses around operands of
129877         `defined'.
129879 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129881         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129882         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129883         so that we can be included first.
129884         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129885         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129886         No need to include stddef.h or sys/types.h any more.
129887         Surround local include files with "", not "<>".
129888         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129889         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129890         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129891         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129892         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129893         (ISPRINT): Remove; no longer needed now that we assume C89.
129895         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129896         Preserve errno.
129898         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129899         quotearg_char): Use SIZE_MAX rather than
129900         (size_t) -1 when we are talking about "infinity".
129902         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129904 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129906         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129907         hint that one should use `if (! x) abort ();' rather than `assert
129908         (x);', and anyway it's one less thing to worry about configuring.
129909         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129910         hash_rehash, hash_insert): Use abort rather than assert.
129912 2002-11-22  Bruno Haible  <bruno@clisp.org>
129914         * lib/safe-read.h: Assume C89. Add comments.
129915         (safe_read): Change return type to size_t.
129916         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129917         byte counts > SSIZE_MAX correctly.
129918         * lib/safe-write.h: New file.
129919         * lib/safe-write.c: New file.
129920         * lib/full-read.h: New file.
129921         * lib/full-read.c: New file.
129922         * lib/full-write.h: Assume C89. Add comments.
129923         * lib/full-write.c: Include safe-write.h.
129924         (full_write): Rewritten to use safe_write.
129925         Suggested by Jim Meyering and Paul Eggert.
129927 2002-11-21  Jim Meyering  <jim@meyering.net>
129929         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129931         Merge in changes from the coreutils.
129933         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129934         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129935         <stdint.h>.
129936         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129937         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129938         int.  Work more efficiently if X is the same width as uintmax_t.
129939         Do not compare X to -1, to avoid bogus compiler warning.
129940         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129941         Don't assume that f_frsize and f_bsize are the same type.
129943         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129944         warning on FreeBSD.
129946         * lib/makepath.c (make_path): Restore umask *before* creating the final
129947         component.
129948         (make_path): Minor reformatting.
129950         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129951         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129952         HAVE_MALLOC/HAVE_REALLOC.
129954         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129955         dummy ones.  At least on GNU/Linux systems, `auto' means something
129956         else.
129957         From Michael Stone.
129959 2002-11-21  Bruno Haible  <bruno@clisp.org>
129961         Remove case insensitive option matching.
129962         * lib/argmatch.h (argcasematch): Remove declaration.
129963         (ARGCASEMATCH): Remove macro.
129964         (__xargmatch_internal): Remove case_sensitive argument.
129965         (XARGMATCH): Update.
129966         (XARGCASEMATCH): Remove macro.
129967         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129968         case_sensitive argument.
129969         (argcasematch): Remove function.
129970         (__xargmatch_internal): Remove case_sensitive argument.
129971         (main): Use XARGMATCH instead of XARGCASEMATCH.
129973         * lib/xmalloc.c: Change compile-time error message. Add comment about
129974         required autoconf version.
129976 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129978         Merge argmatch cleanups from Bison.  Assume C89.
129980         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129981         Include stdlib.h, for EXIT_FAILURE.
129982         Always include <string.h>, since we assume C89.
129983         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129984         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129985         Include <stddef.h> instead, since it's all we need for size_t.
129986         (PARAMS): Remove.  All uses removed.
129987         (ARRAY_CARDINALITY): Do not bother to #undef.
129988         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129989         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129990         Remove unnecessary parentheses.
129991         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129992         Insert necessary parentheses.
129993         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129994         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129996 2002-11-19  Bruno Haible  <bruno@clisp.org>
129998         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129999         * lib/mbswidth.h: Include <stddef.h>, for size_t.
130001         * lib/mbswidth.h (PARAMS): Remove macro.
130002         (mbswidth, mbsnwidth): Use ANSI C function declarations.
130003         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
130005         * lib/gcd.h (PARAMS): Remove macro.
130006         (gcd): Use ANSI C function declarations.
130007         * lib/gcd.c (gcd): Likewise.
130009 2002-11-15  Bruno Haible  <bruno@clisp.org>
130011         * lib/strcspn.c: Include <stddef.h>.
130012         (strcspn): Use ANSI C function declaration. Change return type to
130013         size_t. Use NULL.
130014         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
130015         (strpbrk): Use NULL.
130016         * lib/strpbrk.h (PARAMS): Remove macro.
130017         (strpbrk): Use ANSI C function declaration.
130018         * lib/strstr.c: Don't include <sys/types.h>.
130019         * lib/strstr.h (PARAMS): Remove macro.
130020         (strstr): Use ANSI C function declarations.
130022 2002-11-14  Karl Berry  <karl@gnu.org>
130024         * config/mkinstalldirs: `do' on separate line, instead of
130025         `for var; do'.
130027 2002-11-06  Bruno Haible  <bruno@clisp.org>
130029         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
130030         * lib/gcd.c (gcd): Likewise.
130032 2002-11-05  Bruno Haible  <bruno@clisp.org>
130034         * lib/gcd.h: New file, from gettext-0.11.5.
130035         * lib/gcd.c: New file, from gettext-0.11.5.
130037 2002-11-05  Bruno Haible  <bruno@clisp.org>
130039         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130040         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130041         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130042         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130044         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
130045         <libintl.h>.
130046         * lib/makepath.c: Include gettext.h instead of <locale.h> and
130047         <libintl.h>.
130049         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
130050         * lib/human.c: Include gettext.h instead of <libintl.h>.
130051         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
130052         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
130053         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
130054         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
130055         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
130056         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
130057         (textdomain): Remove definition.
130058         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
130060         * lib/long-options.c: Remove include of <libintl.h> and definition of
130061         _.
130062         * lib/same.c: Remove include of <libintl.h> and definition of _.
130064 2002-11-04  Owen Taylor  <otaylor@redhat.com>
130066         * lib/config.charset: A few additions for Solaris.
130068 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130070         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
130071         * lib/localcharset.c (locale_charset): Declare as extern "C".
130073 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130075         * lib/config.charset: msdos in uk_UA uses CP1125.
130077 2002-11-04  Bruno Haible  <bruno@clisp.org>
130079         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
130080         * lib/strcase.h: New file, from GNU gettext-0.11.5.
130081         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
130082         * lib/strstr.h: New file, from GNU gettext-0.11.5.
130083         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
130085 2002-11-04  Bruno Haible  <bruno@clisp.org>
130087         * lib/localcharset.c (locale_charset): Don't return an empty string.
130089 2002-11-04  Bruno Haible  <bruno@clisp.org>
130091         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
130092         aliases.
130094 2002-11-04  Bruno Haible  <bruno@clisp.org>
130096         * lib/config.charset: Update for newest glibc. Add canonical names
130097         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
130099 2002-11-04  Bruno Haible  <bruno@clisp.org>
130101         * lib/config.charset: Add support for NetBSD.
130103 2002-11-04  Bruno Haible  <bruno@clisp.org>
130105         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
130107 2002-11-01  Bruno Haible  <bruno@clisp.org>
130109         * configure.in: Add AC_CONFIG_AUX_DIR call.
130110         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
130111         test/Makefile.
130112         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
130114 2002-09-28  Karl Berry  <karl@gnu.org>
130116         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
130117         installed automake until the next release, since changes have been
130118         made.
130120 2002-09-25  Karl Berry  <karl@gnu.org>
130122         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
130123         * lib/getopt*: copy from libc/posix.
130124         * lib/gettext.h: copy from gettext.
130125         * lib/.cppi-disable: add strdup.c, gettext.h.
130127 2002-09-25  Karl Berry  <karl@gnu.org>
130129         * config/srclist.txt: enable gettext.h check.
130130         * config/config.{guess,sub}: update from prep.
130131         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
130132                 from automake 1.6.3.
130133         See srclist*.
130135 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
130137         * regex.c (PATFETCH): Remove the translating fetch.
130138         (PATFETCH_RAW): Rename to PATFETCH.
130139         (set_image_of_range): New fun.
130140         (SET_RANGE_TABLE_WORK_AREA): Use it.
130141         (regex_compile): Don't translate the pattern chars so eagerly.
130142         Only do it when inserting an `exactn' bytecode or when handling
130143         a char-range.
130144         (mutually_exclusive_p): Avoid empty statement.
130146 2002-07-06  Jim Meyering  <meyering@lucent.com>
130148         * m4/README: Don't mention Makefile.am.in.
130149         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
130151 2002-07-01  Jim Meyering  <meyering@lucent.com>
130153         * lib/c-stack.c: Include sys/time.h.
130154         From Volker Borchert.
130156 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
130160 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130162         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
130163         New macro.  Use it uniformly instead of
130164         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
130165         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
130166         reported by Vin Shelton.
130168 2002-06-22  Paul Eggert  <eggert@twinsun.com>
130170         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
130171         Do not assume SA_SIGINFO behavior.
130172         Bug reported by Jim Meyering on NetBSD 1.5.2.
130174 2002-06-22  Jim Meyering  <meyering@lucent.com>
130176         * m4/c-stack.m4: New file, from diffutils-2.8.2.
130177         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
130179         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
130180         now that configure.ac uses AC_GNU_SOURCE.
130181         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
130182         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
130184         Update to latest tools.  Suggestions from Paul Eggert.
130185         * m4/stdbool.m4: New file, from diffutils-2.8.2.
130186         * m4/gnu-source.m4: Update from diffutils-2.8.2.
130187         * m4/fnmatch.m4: Likewise.
130188         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
130189         to AC_HEADER_STDBOOL
130191 2002-06-22  Jim Meyering  <meyering@lucent.com>
130193         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
130194         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
130196 2002-06-22  Jim Meyering  <meyering@lucent.com>
130198         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
130200         * lib/exitfail.c, exitfail.h: Likewise.
130201         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
130203         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
130204         of fnmatch.h.
130205         (EXTRA_DIST): Add fnmatch_loop.c.
130206         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
130208         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
130209         * lib/fnmatch.c: Update from diffutils-2.8.2.
130210         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
130211         * lib/fnmatch.h: Remove file.
130213 2002-06-21  Jim Meyering  <meyering@lucent.com>
130215         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
130216         * m4/mbrtowc.m4: Likewise.
130218         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
130219         * m4/mbswidth.m4: Reflect name change:
130220         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
130221         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130223         * m4/lib-link.m4: Update from gettext-0.11.2.
130224         * m4/gettext.m4: Likewise.
130226         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
130227         From Alfred M. Szmidt.
130229 2002-06-18  Paul Eggert  <eggert@twinsun.com>
130231         * lib/file-type.h: Report an error if neither S_ISREG nor
130232         S_IFREG is defined, instead of using a test specific to glibc
130233         2.2.  This should be safe, since POSIX requires S_ISREG and
130234         Unix Version 7 had S_IFREG.  We don't need to check for
130235         <sys/types.h> since we don't use any symbols that it defines.
130237 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
130239         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
130240         $@-t, so that each temporary file name is unique and valid in the first
130241         8 characters, for operation under DOS.
130243 2002-06-15  Paul Eggert  <eggert@twinsun.com>
130245         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
130247 2002-06-15  Jim Meyering  <meyering@lucent.com>
130249         Work even with DJGPP 2.03, which lacks support for symlinks.
130250         From Richard Dawe.
130251         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
130252         is defined.
130253         * lib/lchown.c (S_ISLNK): Likewise.
130255 2002-06-15  Jim Meyering  <meyering@lucent.com>
130257         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
130258         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
130259         have been included before this file.
130261 2002-06-14  Jim Meyering  <meyering@lucent.com>
130263         * lib/file-type.h: Use the version from diffutils-2.8.2.
130264         * lib/file-type.c: Likewise.
130266 2002-06-07  Jim Meyering  <meyering@lucent.com>
130268         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
130269         They're needed at least for NetBSD 1.5.2.
130270         ($statxfs_includes): Include those same headers.
130271         ($statxfs_includes): Include sys/vfs.h if available.
130272         ($statxfs_includes): Likewise for sys/statvfs.h.
130273         Check for the following members in both structs statfs and statvfs:
130274         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
130276 2002-06-01  Jim Meyering  <meyering@lucent.com>
130278         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
130279         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
130281 2002-05-28  Jim Meyering  <meyering@lucent.com>
130283         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
130284         Reported by Volker Borchert.
130286 2002-05-27  Jim Meyering  <meyering@lucent.com>
130288         Fix a problem seen only on nonconforming systems whereby ls.c's
130289         use of localtime, and then of gettimeofday would cause trouble:
130290         the localtime call used to initialize rpl_gettimeofday's save
130291         mechanism would clobber ls's current local time information so
130292         that in any long listing the first file would always be listed
130293         with date 1970-01-01.  Analysis by Volker Borchert.
130295         * lib/gettimeofday.c (localtime): Undefine.
130296         (rpl_localtime): New function.
130298 2002-05-27  Jim Meyering  <meyering@lucent.com>
130300         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
130301         localtime.
130303         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
130304         use the replacement function; it wouldn't resolve at link time.
130305         Reported by Volker Borchert.
130307 2002-05-22  Jim Meyering  <meyering@lucent.com>
130309         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
130310         file-type.h.
130311         * lib/file-type.h: New file.
130312         * lib/file-type.c (file_type): New file/function.  Extracted from
130313         diffutils.
130315 2002-04-30  Jim Meyering  <meyering@lucent.com>
130317         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
130319 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130321         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
130323 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130325         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
130326         Do not check for alloca.h (no longer used) or stdbool.h (was never
130327         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
130329 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130331         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
130333 2002-04-29  Jim Meyering  <meyering@lucent.com>
130335         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
130336         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
130337         Use AC_FUNC_STRNLEN here instead.
130339         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
130340         With autoconf-2.53a, it's part of AC_PROG_CC.
130342 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130344         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130345         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130347 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130349         * lib/sig2str.h, lib/sig2str.c: New files.
130350         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130352 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130354         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130355         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130356         of 127, since 64 is the largest conceivable number for ancient
130357         nonstandard hosts.
130358         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130360 2002-04-28  Jim Meyering  <meyering@lucent.com>
130362         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130364 2002-04-24  Jim Meyering  <meyering@lucent.com>
130366         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130367         (jm_PREREQ): Use it.
130369         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130370         mach/mach.h fcntl.h.
130371         Check for this function: setlocale.
130373 2002-04-24  Jim Meyering  <meyering@lucent.com>
130375         * lib/gettext.h: New file, from Gettext.
130376         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130377         (libfetish_a_SOURCES): Add gettext.h.
130379 2002-04-16  Jim Meyering  <meyering@lucent.com>
130381         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130382         ut_pid, ut_id, ut_exit.
130384 2002-04-16  Jim Meyering  <meyering@lucent.com>
130386         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130387         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130388         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130390 2002-04-12  Jim Meyering  <meyering@lucent.com>
130392         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130393         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130394         existence of the getmntinfo function.  Needed for Darwin 5.3.
130396         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130397         This is necessary at least on Darwin 5.3.
130399         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130400         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130401         strnlen.o in the library, and that makes some versions of ranlib
130402         object.
130404 2002-04-12  Jim Meyering  <meyering@lucent.com>
130406         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130408 2002-04-09  Jim Meyering  <meyering@lucent.com>
130410         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130411         to be more precise.  Rather than saying we're checking whether the
130412         function `works', say what we're testing.
130413         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130414         Reported by Bruno Haible.
130416 2002-03-10  Jim Meyering  <meyering@lucent.com>
130418         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130419         Suggestion from Santiago Vila.
130421 2002-03-08  Jim Meyering  <meyering@lucent.com>
130423         * lib/rename.c: Mention that this wrapper is needed also on
130424         mips-dec-ultrix4.4 systems.
130426 2002-03-02  Jim Meyering  <meyering@lucent.com>
130428         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130429         not HAVE_CLOCK_SETTIME.
130431 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130433         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130434         Check for clock_settime.
130436 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130438         * lib/nanosleep.h: Rename to....
130439         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130441         * lib/gettime.c: New file.
130442         * lib/settime.c: New file.
130443         * lib/stime.c: Remove.
130445         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130446         timespec.h.  Remove nanosleep.h.
130448 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130450         * m4/acl.m4: New file.
130451         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130452         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
130454 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130456         * lib/acl.c, lib/acl.h: New files.
130457         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
130459 2002-02-24  Jim Meyering  <meyering@lucent.com>
130461         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
130462         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
130463         cause trouble.  Reported by Nelson Beebe.
130465 2002-02-23  Paul Eggert  <eggert@twinsun.com>
130467         * lib/path-concat.c (xpath_concat): Reorder code to pacify
130468         compilers that don't know that xalloc_die never returns.
130470 2002-02-20  Jim Meyering  <meyering@lucent.com>
130472         * lib/getdate.c: Regenerate using bison-1.33.
130474 2002-02-17  Jim Meyering  <meyering@lucent.com>
130476         * config/config.guess (main): Don't use `head -1'; it's no longer
130477         portable. Use `sed 1q' instead.
130479 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
130481         * m4/codeset.m4: Upgrade to gettext-0.11.
130482         * m4/gettext.m4: Upgrade to gettext-0.11.
130483         * m4/glibc21.m4: Upgrade to gettext-0.11.
130484         * m4/iconv.m4: Upgrade to gettext-0.11.
130485         * m4/isc-posix.m4: Upgrade to gettext-0.11.
130486         * m4/lcmessage.m4: Upgrade to gettext-0.11.
130487         * m4/lib-ld.m4: New file, from gettext-0.11.
130488         * m4/lib-link.m4: New file, from gettext-0.11.
130489         * m4/lib-prefix.m4: New file, from gettext-0.11.
130490         * m4/progtest.m4: Upgrade to gettext-0.11.
130492 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130494         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
130495         (jm_PREREQ): Use it.
130497 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130499         * lib/posixver.c, lib/posixver.h: New files.
130500         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130502 2002-02-02  Paul Eggert  <eggert@twinsun.com>
130503             Bruno Haible  <bruno@clisp.org>
130505         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
130506         (fwrite_success_callback): New declaration.
130507         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
130508         print_unicode_char. Call failure callback instead of error.
130509         (fwrite_success_callback): New function.
130510         (exit_failure_callback): New function.
130511         (fallback_failure_callback): New function.
130512         (print_unicode_char): Call unicode_to_mb.
130514 2002-01-26  Jim Meyering  <meyering@lucent.com>
130516         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
130517         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
130519 2002-01-26  Jim Meyering  <meyering@lucent.com>
130521         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
130523 2002-01-22  Paul Eggert  <eggert@twinsun.com>
130525         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
130527 2002-01-22  Jim Meyering  <meyering@lucent.com>
130529         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
130530         Otherwise, some versions of automake would omit the rule that makes
130531         Makefile from Makefile.in.
130533 2002-01-21  Paul Eggert  <eggert@twinsun.com>
130535         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
130536         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130537         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
130538         (memcoll): Set errno to zero if there is no error.
130540         * lib/quotearg.c (quotearg_buffer_restyled):
130541         Fix bug with quoting buffers containing NUL when backslashing escapes.
130542         This bug was exposed by the other changes in this patch.
130543         (quotearg_n_options): New arg ARGSIZE.
130544         All callers changed.
130545         (quoting_options_from_style): New function.
130546         (quotearg_n_style): Use it.
130547         (quotearg_n_style_mem): New function.
130549         * lib/quotearg.h (quotearg_n_style_mem): New function.
130551 2002-01-19  Jim Meyering  <meyering@lucent.com>
130553         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
130554         Remove useless quotes: DF_PROG="df".
130555         * m4/strnlen.m4: New file.
130557 2002-01-16  Paul Eggert  <eggert@twinsun.com>
130559         * lib/backupfile.c (ISDIGIT): Comment fix.
130560         * lib/getdate.y (ISDIGIT): Likewise.
130561         * lib/posixtm.c (ISDIGIT, year): Likewise.
130562         * lib/strverscmp.c (ISDIGIT): Likewise.
130563         * lib/userspec.c (ISDIGIT): Likewise.
130565 2002-01-16  Jim Meyering  <meyering@lucent.com>
130567         * lib/getdate.y: Add three semicolons, each just before a closing
130568         brace. Bison (as of version 1.31) no longer papers over that mistake.
130570 2002-01-05  Jim Meyering  <meyering@lucent.com>
130572         * lib/version-etc.c (version_etc_copyright): Update copyright year.
130574 2001-12-19  Paul Eggert  <eggert@twinsun.com>
130576         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
130577         not silently exit merely because the output buffer happens to
130578         have nothing pending.
130580 2001-12-18  Paul Eggert  <eggert@twinsun.com>
130582         See the big note in ../ChangeLog.
130583         * lib/human.c (suffixes): Prefer K to k for 1024.
130584         (generate_suffix_backwards): New function.
130585         (human_readable_inexact): Use it.
130586         * lib/xstrtol.c (__xstrtol): If there is no number but there
130587         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
130588         Accept 'K' as well as 'k'.
130590 2001-12-15  Jim Meyering  <meyering@lucent.com>
130592         * lib/regex.h (__restrict_arr): Update from libc.
130594         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130595         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130596         (STREQ): Define.
130598 2001-12-14  Jim Meyering  <meyering@lucent.com>
130600         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
130601         Suggestion from Bruno Haible.
130603 2001-12-10  Jim Meyering  <meyering@lucent.com>
130605         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
130606         xrealloc, Instead, include "xalloc.h".
130607         (initbuffer): Don't cast xmalloc return value to char*.
130608         (readline): Reword comment.
130609         Don't cast xrealloc return value to char*
130610         Return NULL, not 0.
130612 2001-12-09  Jim Meyering  <meyering@lucent.com>
130614         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
130615         about `signed and unsigned type in conditional expression'.
130616         * lib/posixtm.c (posix_time_parse): Likewise.
130618         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
130620         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
130621         to avoid a pedantic warning.
130623         * lib/getstr.c: Don't include assert.h.
130624         (getstr): Remove warning-evoking assertions.
130625         Return -1 if offset parameter is out of bounds.
130626         Change the type of a local from int to size_t.
130628         * lib/strftime.c (my_strftime_localtime_r): Include this function
130629         definition in the `#if ! HAVE_TM_GMTOFF' block.
130631         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
130632         Include xalloc.h instead.
130634 2001-12-02  Jim Meyering  <meyering@lucent.com>
130636         * lib/tempname.c: Don't declare getenv, thus reverting the change of
130637         2001-11-18.  It's no longer necessary, now that stdlib.h is always
130638         included.
130640         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
130641         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
130643 2001-11-30  Akim Demaille  <akim@epita.fr>
130645         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
130646         before being defined.
130648 2001-11-27  Paul Eggert  <eggert@twinsun.com>
130650         * lib/quotearg.h (quotearg_n, quotearg_n_style):
130651         First arg is int, not unsigned.
130652         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
130653         (SIZE_MAX, UINT_MAX): New macros.
130654         (quotearg_n_options): Abort if N is negative.
130655         Avoid overflow check on hosts where size_t is 64 bits and int
130656         is 32 bits, as overflow is impossible there.
130657         Fix off-by-one typo that caused unnecessary reallocation.
130659 2001-11-27  Jim Meyering  <meyering@lucent.com>
130661         * lib/tempname.c: Merge with version from libc.
130662         * lib/regex.c: Likewise.
130664         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130665         systems for which STDC_HEADERS is 0, it was not included, resulting in
130666         a warning about an integer-to-pointer conversion problem with getenv.
130667         Reported by Volker Borchert.
130669 2001-11-26  Jim Meyering  <meyering@lucent.com>
130671         * lib/gtod.h: Remove file.
130672         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130673         * lib/gettimeofday.c: Don't include gtod.h.
130674         (GTOD_init): Remove function.
130675         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130676         Suggestion from Volker Borchert.
130678 2001-11-23  Jim Meyering  <meyering@lucent.com>
130680         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130681         it.
130682         * lib/hash.c (struct hash_table): Define it here instead.
130684 2001-11-22  Jim Meyering  <meyering@lucent.com>
130686         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130688 2001-11-20  Jim Meyering  <meyering@lucent.com>
130690         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130691         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130693 2001-11-19  Jim Meyering  <meyering@lucent.com>
130695         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130696         directory.  Use "conftestXXXXXX" as the template.
130697         Suggestion from Paul Eggert.
130699         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130700         immediately, so the test doesn't mistakenly hit the max-open-files
130701         limit.
130703 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130705         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130706         (TEMPORARIES): New macro.
130707         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130708         removes an artificial limitation (e.g. HP-UX 10.20, where
130709         TMP_MAX is 17576).
130711 2001-11-18  Jim Meyering  <meyering@lucent.com>
130713         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130715 2001-11-18  Jim Meyering  <meyering@lucent.com>
130717         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130718         on SunOS 4.
130720         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130721         files will be created before anything else.
130723 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130725         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130726         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130728 2001-11-17  Jim Meyering  <meyering@lucent.com>
130730         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130731         Prompted by a report from Bob Proulx.
130733         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130734         Instead, require UTILS_FUNC_MKSTEMP.
130736 2001-11-17  Jim Meyering  <meyering@lucent.com>
130738         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130739         Now, that's done as part of AC_FUNC_STRTOD.
130741 2001-11-17  Jim Meyering  <meyering@lucent.com>
130743         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130744         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130745         rather than group writable.  Patch by Juan F. Codagnone.
130747         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130748         xrealloc, Instead, include "xalloc.h".
130750         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130751         Remove explicit declarations of xmalloc, xrealloc,
130752         and xstrdup.  Instead, include "xalloc.h".
130754         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130755         unlocked-io.h.
130756         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130757         Likewise.
130758         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130760         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130761         Reported by Padraig Brady.
130763         * lib/mkstemp.c: #undef mkstemp.
130764         Include config.h.
130765         (rpl_mkstemp): Rename from mkstemp.
130766         Protoize.
130768 2001-11-16  Jim Meyering  <meyering@lucent.com>
130770         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130771         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130772         determine the amount of total physical memory, use pstat_getstatic.
130773         HPUX-11 doesn't define _SC_PHYS_PAGES.
130774         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130775         If sysconf couldn't be used to determine the amount of available
130776         physical memory, use both pstat_getstatic and pstat_getdynamic.
130777         Based on a patch from Bob Proulx.
130779 2001-11-10  Jim Meyering  <meyering@lucent.com>
130781         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130782         (jm_PREREQ): Use it.
130784 2001-11-09  Jim Meyering  <meyering@lucent.com>
130786         * m4/jm-macros.m4: Require autoconf-2.52f.
130787         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130788         Use these AC_-prefixed names, not the AM_-prefixed ones.
130790         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130792 2001-11-05  Jim Meyering  <meyering@lucent.com>
130794         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130796 2001-11-04  Jim Meyering  <meyering@lucent.com>
130798         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130799         $DEFS.
130801 2001-11-03  Jim Meyering  <meyering@lucent.com>
130803         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130804         of AC_DEFUN.
130806         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130807         know the name of the variable in the macro definition.
130809 2001-11-03  Jim Meyering  <meyering@lucent.com>
130811         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130812         in argmatch_to_argument call.
130814         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130815         argument.
130817         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130818         e.g., a fault due to an attempt to free a NULL pointer.
130820 2001-11-01  Jim Meyering  <meyering@lucent.com>
130822         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130823         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130825 2001-11-01  Jim Meyering  <meyering@lucent.com>
130827         * lib/dirfd.c, lib/dirfd.h: New files.
130828         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130830         * lib/hash.c (hash_print) [TESTING]: Clean up.
130832 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130834         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130835         to avoid a warning if -Wall.
130837 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130839         * README: New file
130840         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130841         (per RMS's instructions, this is now the canonical source)
130842         * lgpl/, gpl/: New directories.
130844 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130846         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130848 2001-10-21  Jim Meyering  <meyering@lucent.com>
130850         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130851         this code would end up calling gettext even in packages built
130852         with --disable-nls.
130853         * lib/getopt.c (_): Likewise.
130854         * lib/regex.c (_): Likewise.
130856 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130858         * m4/error.m4 (jm_PREREQ_ERROR):
130859         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130860         AC_FUNC_STRERROR_R does that.
130861         Check for strerror declaration.
130863         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130864         are supposed to have them these days.
130865         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130866         Merge changes from latest Autoconf CVS.
130867         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130868         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130869         POSIX decided to standardize on the int flavor of strerror_r.
130871 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130873         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130874         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130875         Use strerror_r that is only a macro, even if it is not a function.
130876         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130877         (private_strerror): Use prototypes, not old-style function definition.
130878         (print_errno_message): New function.
130879         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130880         char*-flavored one.
130881         (error_tail, error, error_at_line): Use it.
130883 2001-10-11  Jim Meyering  <meyering@lucent.com>
130885         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130886         and quote_n (1, ... to avoid clobbering a buffer.
130888 2001-10-05  Jim Meyering  <meyering@lucent.com>
130890         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130891         hash-pjw.h.
130892         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130893         * lib/hash-pjw.h: New file.
130895 2001-09-30  Jim Meyering  <meyering@lucent.com>
130897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130898         `struct fsstat' has the `f_fstypename' member.
130899         Use that to define FS_TYPE, which is now used to make
130900         the getfsstat link test tighter.
130902 2001-09-30  Jim Meyering  <meyering@lucent.com>
130904         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130905         Include <sys/ucred.h>, for Apple Darwin.
130906         Include sys/mount.h and sys/fs_types.h only if available.
130907         (FS_TYPE): Define.
130908         (read_filesystem_list): Use FS_TYPE.
130910 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130912         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130913         a boolean context.
130915 2001-09-29  Jim Meyering  <meyering@lucent.com>
130917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130918         [one-argument getmntent function]): Include stdio.h before mntent.h.
130919         SunOS 4.1.x needs it for the declaration of `FILE'.
130920         Patch by Volker Borchert.
130922         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130923         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130924         sys/fs_types.h, and make the link-test for getfsstat guard #include
130925         directives with appropriate #if HAVE_*_H tests so that we can
130926         detect getfsstat on Apple Darwin1.3.7 systems.
130927         Reported by Nelson Beebe.
130928         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130930 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130932         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130933         #defines strtoimax.  Also treat the other strto* functions
130934         like strtoimax.
130936         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130937         Check for strtoul and strtoumax,
130938         as those declarations are made even in the signed case.
130939         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130940         Likewise, for strtol and strtoimax.
130942 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130944         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130945         #defines strtoimax.  Also treat the other strto* functions
130946         like strtoimax.
130948         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130949         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130950         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130952 2001-09-26  Jim Meyering  <meyering@lucent.com>
130954         Most macros in unlocked-io.h had the wrong number of arguments.
130955         * lib/gen-uio: New script.
130956         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130957         * lib/unlocked-io.hin: Remove file.
130958         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130959         rather than trying to embed it here.
130960         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130961         Reported by Padraig Brady.
130963 2001-09-25  Volker Borchert  <bt@teknon.de>
130965         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130966         `result'.
130968 2001-09-24  Jim Meyering  <meyering@lucent.com>
130970         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130972 2001-09-23  Jim Meyering  <meyering@lucent.com>
130974         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130975         instead of the mere test for existence of mntent.h.  The latter
130976         would get a false-positive on AIX 3.4 systems.
130977         In the outer getmntent if-block, don't die if neither of the getmntent
130978         tests succeeds.  Instead, just fall through and continue with the
130979         remaining tests.
130981 2001-09-23  Jim Meyering  <meyering@lucent.com>
130983         * lib/mountlist.c: Remove useless parentheses in #if directives.
130984         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130985         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130987 2001-09-22  Jim Meyering  <meyering@lucent.com>
130989         * m4/gettext.m4: New file.  From gettext.
130990         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130991         * m4/progtest.m4: Likewise
130992         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130993         * m4/glibc21.m4: Likewise.
130995         * m4/libintl.m4: Remove.  No longer used.
130997 2001-09-22  Jim Meyering  <meyering@lucent.com>
130999         * lib/localcharset.c: Update from latest gettext.
131000         * lib/config.charset: Likewise.
131002 2001-09-20  Jim Meyering  <meyering@lucent.com>
131004         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
131005         strtoimax.
131006         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
131007         strtoumax.
131009 2001-09-20  Jim Meyering  <meyering@lucent.com>
131011         * lib/xstrtol.c (strtoimax): Guard declaration with
131012         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
131013         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
131014         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
131015         (strtoumax): Likewise, for completeness (it wasn't necessary).
131017 2001-09-17  Paul Eggert  <eggert@twinsun.com>
131019         * lib/strtoimax.c (HAVE_LONG_LONG):
131020         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
131021         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
131022         to work around bug in IBM C compiler.
131024 2001-09-17  Jim Meyering  <meyering@lucent.com>
131026         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
131027         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
131028         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
131029         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
131030         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
131031         whenever the right hand side need not be expanded by the shell.
131033 2001-09-16  Paul Eggert  <eggert@twinsun.com>
131035         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
131036         library.  It's not correct, as some older glibcs are buggy.
131037         fnmatch wasn't fixed until glibc 2.2.
131039         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
131040         special shell magic here.
131042 2001-09-16  Jim Meyering  <meyering@lucent.com>
131044         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
131045         * m4/jm-macros.m4: Require it.
131047 2001-09-16  Jim Meyering  <meyering@lucent.com>
131049         * lib/mkdir.c: New file.
131051 2001-09-15  Jim Meyering  <meyering@lucent.com>
131053         * m4/jm-macros.m4: Check for help2man.
131055 2001-09-11  Jim Meyering  <meyering@lucent.com>
131057         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
131058         The body, by Paul Eggert, was moved here from configure.in.
131059         * m4/jm-macros.m4: Require UTILS_HOST_OS.
131061 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131063         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
131064         (jm_PREREQ): Use it.
131066 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131068         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
131069         Use ssize_t, not int, to store result of readlink.
131070         Check for ssize_t overflow as well as size_t overflow,
131071         as POSIX says the result of readlink is implementation-defined
131072         when ssize_t overflows.
131073         Remove unnecessary cast to char*.
131074         Use free+malloc instead of realloc, as the storage doesn't need
131075         to be preserved and it's clearer and can be more efficient that way.
131076         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
131077         * lib/xreadlink.h (xreadlink): Update prototype.
131079 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131081         * lib/xgetcwd.c: Revert some of the previous change; intead,
131082         fix the HAVE_GETCWD_NULL code to behave more like the
131083         !HAVE_GETCWD_NULL code used to.
131085         Include "xalloc.h".
131086         (xgetcwd): Do not return NULL when memory is exhausted; instead,
131087         invoke xalloc_die.
131089 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131091         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
131092         sys/param.h, as pathmax.h includes them.
131094 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131096         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
131097         (jm_PREREQ_XGETCWD): New macro.
131099         * m4/getcwd.m4: New file.
131101 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131103         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
131104         like the HAVE_GETCWD_NULL code.
131105         Include pathmax.h if not HAVE_GETCWD.
131106         Do not include xalloc.h.
131107         (INITIAL_BUFFER_SIZE): New symbol.
131108         Do not use xmalloc / xrealloc, since the caller is responsible for
131109         handling errors.  Preserve errno around `free' during failure.
131110         Do not overrun buffer when using getwd.
131112 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131114         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
131115         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
131116         getcwd (NULL, 0).
131118 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131120         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
131121         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
131122         spotted by Jim Meyering.
131124 2001-09-03  Jim Meyering  <meyering@lucent.com>
131126         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
131127         failure.
131129 2001-09-02  Jim Meyering  <meyering@lucent.com>
131131         * lib/error.c: Update from GNU libc.
131133 2001-09-01  Jim Meyering  <meyering@lucent.com>
131135         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
131136         Used by df.
131138 2001-09-01  Jim Meyering  <meyering@lucent.com>
131140         * lib/xreadlink.c: New file.
131141         * lib/xreadlink.h: New file.
131142         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
131143         xreadlink.h.
131145         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
131146         doesn't conflict with sparc Solaris 7's definition in
131147         /usr/include/sys/int_types.h.
131149         * lib/exclude.c: Use `""', not `<>' to #include non-system header
131150         files.
131151         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
131152         and strncasecmp as r-values.  Unixware didn't have declarations.
131154 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131156         * lib/xstrtol.h: Add copyright notice.
131157         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
131158         LONGINT_INVALID_SUFFIX_CHAR.
131160 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131162         * lib/xstrtol.c (strtoimax): New decl.
131164 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131166         * lib/xgetcwd.c: Don't include pathmax.h.
131167         Include stdlib.h and unistd.h if available.
131168         Include xalloc.h.
131169         (xmalloc, xstrdup, free): Remove decls.
131170         (xgetcwd): Don't assume sizes fit in unsigned.
131171         Check for overflow when computing sizes.
131172         Simplify reallocation code.
131174 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131176         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
131177         a directory's st_size can have an arbitrary value, so the old
131178         usage could waste an arbitrary amount of memory.  All uses
131179         changed.
131180         * lib/savedir.h: Update prototype.
131182 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131184         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
131186         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
131187         old strtoimax.c.
131189         Also, make the following further changes to make this file's
131190         configuration more similar to that of strtol.c:
131191         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
131192         (strtoumax, uintmax_t, strtoull, strtol): Remove.
131193         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
131194         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
131195         changed to signed values.
131197         And make the following changes as well:
131198         Fix copyright notice, as 1999 was missing.
131199         (verify): New macro.
131200         (strtoimax): Check sizes at compile-time, not run-time.
131201         Prefer strtol to strtoll if both work.
131202         (main): Remove; it was not that useful and was a pain to maintain.
131204         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
131206 2001-08-31  Jim Meyering  <meyering@lucent.com>
131208         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
131209         Use an initial, malloc'd, buffer of length 128 rather than
131210         a statically allocated one of length 1024.
131212 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131214         Simplify code, partly by assuming autoconf 2.52 semantics.
131216         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
131218         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
131219         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
131220         All uses removed.
131221         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
131222         Move AC_REQUIRE to next-to-top level, to avoid confusion.
131223         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
131224         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
131225         jm_AC_HEADER_INTTYPES_H.
131226         * m4/jm-macros.m4 (jm_MACROS): Likewise.
131228         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
131230         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131231         Quote first arg of AC_DEFUN.
131232         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
131233         since they are needed to parse the include file even if we need
131234         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
131235         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
131236         but with opposite signedness.
131238 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131240         Merge 'exclude' changes from tar 1.13.22.
131241         This fixes one or two unlikely storage allocation overflow bugs,
131242         but doesn't change user-visible behavior otherwise.
131244 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131246         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
131247         (jm_PREREQ_EXCLUDE): New macro.
131249 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131251         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
131252         tm to be declared.
131254 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131256         * lib/hash.c: Remove '2001' from copyright notice.
131258 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131260         * lib/full-write.h: New file.
131261         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
131262         * lib/full-write.c: Correct credits, as cccp.c no longer
131263         exists and anyway it was so heavily changed from the old cccp
131264         code as to be unrecognizable.  Include full-write.h.
131265         (full_write): Return size_t, with short writes meaning failure.
131266         All callers changed.  This fixes a bug with large buffers
131267         on 64-bit hosts.
131268         * lib/utime.c: Include full-write.h.
131270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131272         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
131273         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
131274         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
131275         Include if available.
131276         (<xalloc.h>): Include
131277         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
131278         (verify): New macro.  Use it to verify that EXCLUDE macros do not
131279         collide with FNM macros.
131280         (struct patopts): New struct.
131281         (struct exclude): Use it, as exclude patterns now come with options.
131282         (new_exclude): Support above changes.
131283         (new_exclude, add_exclude_file):
131284         Initial size must now be a power of two to simplify overflow checking.
131285         (free_exclude, fnmatch_no_wildcards): New function.
131286         (excluded_filename): No longer requires options arg, as the options
131287         are determined by add_exclude.  Now returns bool, not int.
131288         (excluded_filename, add_exclude):
131289         Add support for the fancy new exclusion options.
131290         (add_exclude, add_exclude_file): Now takes int options arg.
131291         Check for arithmetic overflow when computing sizes.
131292         (add_exclude_file): xrealloc might modify errno, so don't
131293         realloc until after errno might be used.
131295         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
131296         New macros.
131297         (free_exclude): New decl.
131298         (add_exclude, add_exclude_file): Now takes int options arg.
131299         (excluded_filename): No longer requires options arg, as the options
131300         are determined by add_exclude.  Now returns bool, not int.
131302 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131304         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
131306 2001-08-27  Jim Meyering  <meyering@lucent.com>
131308         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
131310         * lib/version-etc.c (N_): Remove definition.
131311         Revert most of last change.
131312         Instead, simply don't mark the `Copyright...' string for translation.
131313         Based on advice from Paul Eggert.
131315         * lib/strtoxmax.c: Tweak comment.
131317 2001-08-26  Jim Meyering  <meyering@lucent.com>
131319         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
131321         * m4/xstrtoimax.m4: New file.
131322         * m4/xstrtoumax.m4: Add comments explaining why we
131323         AC_REPLACE_FUNCS(strtol).
131325 2001-08-26  Jim Meyering  <meyering@lucent.com>
131327         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
131328         of copyright with `%s' so translators don't get an untranslated
131329         message in 2002.
131330         (COPYRIGHT_YEAR): Define.
131331         (version_etc): Use fprintf rather than fputs.
131332         Suggestion from Ulrich Drepper.
131334         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
131336         * lib/strtoll.c: New file, from GNU libc.
131337         * lib/xstrtoimax.c: New file.
131339         * lib/xstrtol.h: Add xstrtoimax.
131340         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
131341         * lib/strtoimax.c: New file.  Likewise, but first define
131342         STRTOUXMAX_SIGNED.
131344         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131345         ...
131346         * lib/strtoxmax.c: ... then renamed to this.
131348 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131350         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131351         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131352         (jm_AC_TYPE_INTMAX_T): New macro.
131353         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131355         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131357         * m4/longlong.m4: Renamed from ulonglong.m4.
131358         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131359         * m4/uintmax_t.m4: Removed.
131361 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131363         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131364         Port to Solaris 8, where 'sed' requires a space after the 'r'
131365         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131366         Redirect output to $tmp just once.
131368 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131370         * lib/addext.c (<errno.h>): Include.
131371         (errno): Declare if not defined.
131372         (addext): Work correctly when pathconf returns -1 and leaves
131373         errno alone because there is no limit.  Also, work even if
131374         pathconf returns a value greater than SIZE_MAX.
131376 2001-08-12  Jim Meyering  <meyering@lucent.com>
131378         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131379         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131380         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131381         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131382         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131383         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131384         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131385         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131386         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131387         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131388         utime.m4, utimes.m4, xstrtoumax.m4:
131389         Quote the first argument in each use of AC_DEFUN.
131391 2001-08-12  Jim Meyering  <meyering@lucent.com>
131393         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131394         Simply `return getcwd (NULL, 0);'.
131395         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131396         Use 1300 as initial value for length, not PATH_MAX.
131398         * lib/pathmax.h: Clean up cpp syntax.
131400 2001-08-12  Jim Meyering  <meyering@lucent.com>
131402         * lib/gettimeofday.c: New file.
131403         * lib/gtod.h: New file.
131404         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131406 2001-08-05  Jim Meyering  <meyering@lucent.com>
131408         * m4/jm-macros.m4: Require autoconf-2.52.
131410 2001-08-04  Jim Meyering  <meyering@lucent.com>
131412         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131413         stmt, to get in sync with glibc.
131415 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131417         The following changes are from gettext 0.10.39 as maintained by
131418         Bruno Haible.
131420         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131421         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131422         with inverted sense.  All uses changed.
131424         * lib/mbswidth.c: Don't include <limits.h>.
131425         Include <stdlib.h> and <string.h> unconditionally.
131426         (iswcntrl, mbsinit, ISCNTRL): New macros.
131427         (mbsnwidth): Use K&R style function declarations.
131428         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131429         can optimize it when MB_CUR_MAX == 1.
131430         The width of control characters is zero, not 1.
131432 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131434         The following changes are from gettext 0.10.39 as maintained by
131435         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131437         * m4/codeset.m4: Upgrade to serial AM1.
131438         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131439         all uses changed.  Quote first arg of AC_DEFUN.
131440         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131442         * m4/iconv.m4: Upgrade to serial AM2.
131443         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131444         Add --with-libconv-prefix.
131445         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131446         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131447         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131448         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131449         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131451         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131452         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
131453         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
131454         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
131455         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
131456         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
131457         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
131458         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
131459         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
131461         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
131462         string.h any more.
131464         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
131465         not the default value.
131467         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
131468         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
131469         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
131470         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
131471         Also check for iswcntrl, used for wcwidth fallback.
131472         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
131473         to Autoconf 2.13.
131475 2001-08-03  Jim Meyering  <meyering@lucent.com>
131477         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
131478         as it was in the original.  Reported by Paul Eggert.
131480 2001-07-16  Jim Meyering  <meyering@lucent.com>
131482         * m4/gettimeofday.m4: New file.
131483         Prompted by a report from Bernhard Baehr.
131485 2001-07-15  Jim Meyering  <meyering@lucent.com>
131487         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
131488         stuff. Now it's in ../Makefile.cfg.
131490 2001-07-15  Jim Meyering  <meyering@lucent.com>
131492         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
131493         (BUILT_SOURCES): Add unlocked-io.h.
131494         (io_functions): Define.
131495         (unlocked-io.h): New rule.
131496         (DISTCLEANFILES): Add unlocked-io.h.
131497         (all-local): Depend on unlocked-io.h, to ensure it is created.
131499         * lib/unlocked-io.hin: New file
131501         * lib/regex.c: Update from glibc.
131503 2001-07-05  Jim Meyering  <meyering@lucent.com>
131505         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
131506         recommendation.
131507         (libfetish_a_SOURCES): Put all .h files here instead.
131508         Remove a thus-exposed (better checks in automake) duplicate and
131509         two unnecessary .h files.
131511 2001-07-04  Jim Meyering  <meyering@lucent.com>
131513         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
131514         that generates jm-glibc-io.m4 so that it doesn't trigger any make
131515         distcheck failure.
131517 2001-07-02  Jim Meyering  <meyering@lucent.com>
131519         The following changes were prompted by suggestions from Bruno Haible.
131521         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
131522         is now generated.
131523         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
131524         definition of EXTRA_DIST.
131525         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
131526         ensure that the generated file is created/updated whenever the list
131527         of $(unlocked_functions) is changed.
131528         (jm-glibc-io.m4): New rule.
131529         (unlocked-io.h): New rule -- currently unused.
131531 2001-06-24  Jim Meyering  <meyering@lucent.com>
131533         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
131534         unmatched right bracket, rather than kludging it with an extra,
131535         falsely-matching quote in a comment.  Patch by Akim Demaille.
131537 2001-06-11  Jim Meyering  <meyering@lucent.com>
131539         * lib/regex.c: Update from GNU libc.
131541 2001-05-27  Jim Meyering  <meyering@lucent.com>
131543         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
131544         Check for ut_type in struct utmp.
131546 2001-05-27  Jim Meyering  <meyering@lucent.com>
131548         * lib/readutmp.h (UT_TYPE): Define.
131550 2001-05-24  Jim Meyering  <meyering@lucent.com>
131552         * lib/argmatch.c: Include "quote.h".
131553         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
131554         quote function.  Reported by Göran Uddeborg.
131556 2001-05-22  Jim Meyering  <meyering@lucent.com>
131558         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
131559         now that we use the package-supplied version unconditionally.
131560         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
131562 2001-05-21  Jim Meyering  <meyering@lucent.com>
131564         * m4/regex.m4: Change a couple backticks to single quotes to avoid
131565         shell syntax errors.
131567 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131569         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
131571 2001-05-20  Paul Eggert  <eggert@twinsun.com>
131573         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
131574         Don't bother to check library strftime, since
131575         we'll be using our own my_strftime function anyway.
131576         Define my_strftime instead of strftime.
131578 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
131580         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
131581         which is not yet declared.
131583 2001-05-15  Jim Meyering  <meyering@lucent.com>
131585         * m4/regex.m4: Use proper quoting so brackets appear in the test
131586         program.
131587         Reported by, and with help from, Bruno Haible.
131589 2001-05-13  Jim Meyering  <meyering@lucent.com>
131591         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131592         undefined.
131594 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131596         dirname code cleanup.  base_name now behaves more compatibly
131597         with POSIX basename when given file names that have trailing
131598         slashes, and similarly for dir_name.  Add new primitives
131599         base_len and dir_len.  Put the directory-name-related decls
131600         into dirname.h.
131602         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
131603         * lib/backupfile.c (base_name): Likewise.
131604         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
131605         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
131606         * lib/makepath.c (strip_trailing_slashes): Likewise.
131607         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
131608         ISSLASH): Likewise.
131609         * lib/rename.c (strip_trailing_slashes): Likewise.
131610         * lib/same.c (base_name): Likewise.
131611         * lib/stripslash.c (ISSLASH): Likewise.
131613         * lib/addext.c: Include <dirname.h> after size_t is defined.
131614         * lib/backupfile.c: Likewise.
131616         * lib/addext.c (addext): Use base_len to trim redundant
131617         trailing slashes instead of doing it ourselves.
131618         But do not trim the last slash if it is not redundant.
131620         * lib/backupfile.c (find_backup_file_name,
131621         max_backup_version): Use base_len instead of rolling it ourselves.
131622         Handle the case of "" and (on DOS) "C:" correctly.
131624         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
131625         needed. Include <string.h>, <dirname.h>.
131626         (base_name): Allow file names ending in slashes, other than names
131627         that are all slashes.  In this case, return the basename followed
131628         by the slashes.  This is more general, and can be used in places
131629         where the original base_name purposely had an assertion failure.
131630         (base_len): New function.
131632         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
131633         Do not include <assert.h>; no longer needed.
131634         Include xalloc.h.
131635         (memrchr): Remove decl.
131636         (dir_name_r): Remove.
131637         (dir_len): Renamed from dirlen.  All callers changed.
131638         Rewrite in terms of base_name, for simplicity and consistency.
131639         (dir_name): Never return NULL.  All callers changed.
131640         Do not include <stdlib.h> in test program; no longer needed.
131641         return 0; is fine for test program.
131643         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
131644         New macros.
131645         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
131647         * lib/path-concat.c (path_concat): Use base_len to compute
131648         base length, not strlen; this means we cannot rely on memcpy
131649         to null-terminate.
131651         * lib/same.c (STREQ): Remove.
131652         (same_name): Handle the case where the basename ends in trailing '/'.
131654         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
131655         a slash was stripped.  Do not strip the last slash after a
131656         file system prefix.
131658 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131660         * lib/Makefile.am (libfetish_a_SOURCES):
131661         Add strftime.c, since we now compile it on all hosts.
131663         * lib/strftime.c (my_strftime):
131664         Define to nstrftime if emacs, but only if my_strftime is not defined.
131665         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131666         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131667         Add one more extra argument: a nanoseconds value.
131668         All uses changed.
131669         (ns): New macro.
131670         (my_strftime function): Add %N format.
131671         (emacs_strftimeu): Renamed from emacs_strftime,
131672         with extra ut argument.
131674 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131676         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131678 2001-04-21  Jim Meyering  <meyering@lucent.com>
131680         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131681         doesn't interfere.
131683 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131685         * m4/ftruncate.m4: Check for chsize.
131686         Link with ftruncate.o unconditionally if ftruncate is missing.
131687         This was required when cross-compiling to i586-mingw32msvc.
131689 2001-04-08  Jim Meyering  <meyering@lucent.com>
131691         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131692         recomputed; that's necessary when the offset spans a DST transition.
131693         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131695 2001-04-02  Jim Meyering  <meyering@lucent.com>
131697         * lib/regex.h, regex.c: Update from GNU libc.
131699 2001-03-24  Jim Meyering  <meyering@lucent.com>
131701         * m4/jm-macros.m4: Require autoconf-2.49d.
131703 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131705         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131707 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131709         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131711 2001-03-17  Jim Meyering  <meyering@lucent.com>
131713         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131714         now that the version in autoconf is equivalent.
131715         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131717         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131718         Suggestion from Akim Demaille.
131720         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131721         (jm_PREREQ_TEMPNAME): New function.
131723 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131725         * lib/tempname.c (uint64_t): Define to uintmax_t if
131726         not defined, and if UINT64_MAX is not defined.
131727         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131728         Reported by John David Anglin.
131730 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131732         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131733         resolve alias if codeset is empty.
131734         * lib/config.charset (BeOS): Use wildcard syntax.
131736 2001-03-13  Jim Meyering  <meyering@lucent.com>
131738         * lib/path-concat.c (path_concat)
131739         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131740         concatenating e.g., `C:' and `foo'.
131741         From Bruno Haible.
131743 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131745         * lib/localcharset.c (locale_charset): Don't use
131746         setlocale(LC_CTYPE,NULL). Don't return NULL.
131747         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131749 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131751         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131752         support for DOS/DJGPP.
131754 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131756         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131757         lacks mkstemp.  Compile our own tempname.c if we compile our own
131758         mkstemp.c, as mkstemp relies on tempname.
131760 2001-03-01  Jim Meyering  <meyering@lucent.com>
131762         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131763         AH_VERBATIM really does output its argument verbatim.
131765 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131767         * lib/Makefile.am (libfetish_a_SOURCES):
131768         Add dup-safer.c, fopen-safer.c.
131769         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131771         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131772         * lib/unistd-safer.h: New files.
131774 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131776         The mkstemp replacement is taken from glibc 2.2.2, with some
131777         portability fixes for use outside glibc, as follows:
131779         * lib/tempname.c (struct_stat64): New macro.
131780         (direxists, __gen_tempname): Use it.
131781         This avoids a portability problem with Solaris 8.
131783         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131784         (<stddef.h>, <stdint.h>, <string.h>):
131785         Include only if STDC_HEADERS || _LIBC.
131786         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131787         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131788         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131789         (__set_errno): Define this macro if <errno.h> doesn't.
131790         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131791         Define these macros if <stdio.h> doesn't.
131792         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131793         Define these macros if <sys/stat.h>
131794         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131795         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131796         __xstat64): Define if not _LIBC.
131797         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131798         (__gen_tempname): Invoke gettimeofday only if
131799         HAVE_GETTIMEOFDAY || _LIBC;
131800         otherwise, fall back on plain "time".
131801         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131803         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131805         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131807 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131809         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131811 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131813         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131814         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131815         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131816         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131818 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131820         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131821         Remove workaround macros for hosts that have mbrtowc but not
131822         mbstate_t, as we now insist on proper declarations for both
131823         before using mbrtowc.
131825 2001-02-17  Jim Meyering  <meyering@lucent.com>
131827         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131828         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131829         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131830         UnixWare 7.1.1.
131832         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131833         rather than AC_CACHE_VAL.
131835 2001-02-17  Jim Meyering  <meyering@lucent.com>
131837         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131838         around included file name.
131840         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131842         * lib/strftime.c: Update from GNU libc (the only changes were to
131843         comments).
131845 2001-02-17  Jim Meyering  <meyering@lucent.com>
131847         * lib/regex.c: Update from libc.
131849 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131851         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131852         clash.
131854 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131856         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131857         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131858         Reported by Mark Hounschell via Paul Eggert.
131860 2001-02-07  Jim Meyering  <meyering@lucent.com>
131862         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131864 2001-02-05  Jim Meyering  <meyering@lucent.com>
131866         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131867         it includes the patch required for `large file' support with at least
131868         HP-UX's 10.20 /bin/cc.
131870 2001-02-03  Jim Meyering  <meyering@lucent.com>
131872         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131873         AS_IF, now that it works once again (mysteriously).
131874         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131876 2001-01-30  Jim Meyering  <meyering@lucent.com>
131878         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131879         * m4/chown.m4: Rename conftestchown to conftest.chown.
131880         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131881         s/conftestdir2/conftest.d2/.
131882         * m4/utimes.m4: s/conftestdata/conftest.data/
131883         Inspired by Pavel Roskin's change in autoconf.
131885 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131887         * lib/config.charset: Update for FreeBSD 4.2.
131889 2001-01-27  Jim Meyering  <meyering@lucent.com>
131891         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131892         a use of AS_IF.
131893         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131895 2001-01-26  Jim Meyering  <meyering@lucent.com>
131897         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131898         quotearg.c includes it.
131900 2001-01-26  Jim Meyering  <meyering@lucent.com>
131902         * lib/quotearg.c: Include stddef.h.
131903         * lib/quote.c: Include stddef.h.
131904         Reported by Axel Kittenberger.
131906         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131907         line in double quotes so that it evokes a better diagnostic.
131908         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131909         Reported by Axel Kittenberger.
131911 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131913         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131914         as if it was a `charset'.
131916 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131918         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131919         has const.
131921 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131923         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131924         to avoid a warning.  Add back 'const' to inptr.
131926 2001-01-20  Jim Meyering  <meyering@lucent.com>
131928         Be sure that headers are checked before used in code compiled
131929         for the type checks.
131930         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131931         In place of that, invoke jm_CHECK_ALL_TYPES.
131932         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131933         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131934         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131935         The check for ssize_t was mistakenly run before the test for unistd.h.
131937         The configure-time check for stdbool.h was missing.
131938         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131939         (jm_PREREQ_HASH): New function.
131941 2001-01-17  Jim Meyering  <meyering@lucent.com>
131943         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131944         for autoconf-2.49c.
131945         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131947 2001-01-16  Jim Meyering  <meyering@lucent.com>
131949         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131950         From Bruno Haible.
131952 2001-01-14  Jim Meyering  <meyering@lucent.com>
131954         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131955         foo and bar.  Create conftestdir/ in the script, not in the C code.
131956         Remove directories in the script, not in the C code.
131957         Remove conftestdir{,2} before trying to create the directory.
131958         Make the entire configure script fail if the mkdir fails.
131960 2001-01-14  Jim Meyering  <meyering@lucent.com>
131962         * lib/rename.c: New file.  From Volker Borchert.
131963         Include stdlib.h, string.h or strings.h, and xalloc.h.
131964         Use strip_trailing_slashes rather than open-coding it.
131966 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131968         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131970 2001-01-03  Jim Meyering  <meyering@lucent.com>
131972         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131973         of local `inptr' to avoid warning with some system declarations of
131974         iconv.
131976 2001-01-02  Volker Borchert  <bt@teknon.de>
131978         * m4/rename.m4: New file.
131979         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131981 2001-01-01  Jim Meyering  <meyering@lucent.com>
131983         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131984         even on systems with utmpx.h.  It's necessary for the declaration of
131985         utmp's ut_user member.  Reported by Andreas Jaeger.
131987         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131988         available. They are required for the declarations of getgrgid and
131989         getpwuid resp.
131990         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131991         Reported by Andreas Jaeger.
131993 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131995         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131996         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131997         so `make install' also works in VPATH builds.
131999 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
132001         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
132002         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
132003         can be used in subdirectories.
132005 2000-12-29  Paul Eggert  <eggert@twinsun.com>
132007         * lib/modechange.c: Do not assume that mode_t uses the
132008         traditional octal encoding.  E.g. "chmod 1 FOO" should set
132009         the other-execute bit of FOO even if S_IXOTH != 1.
132011         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
132012         WOTH, XOTH, ALLM): New macros.
132013         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
132014          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
132015         Use them.
132016         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
132017         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
132018         (mode_compile):
132019         No need to use uintmax_t; unsigned long is long enough.
132020         Don't bother to get suffix since we don't use it.
132022 2000-12-26  Jim Meyering  <meyering@lucent.com>
132024         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
132025         better with autoheader.
132027 2000-12-24  Jim Meyering  <meyering@lucent.com>
132029         * lib/hash.c (is_prime): Return explicit boolean values.
132030         (hash_get_first): Return NULL to appease Irix5.6's 89.
132031         Reported by Nelson Beebe.
132033 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
132035         * lib/localcharset.c (locale_charset): Add support for Win32.
132037 2000-12-18  Paul Eggert  <eggert@twinsun.com>
132039         * lib/physmem.h, lib/physmem.c: New files.
132041         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
132042         (noinst_HEADERS): Add physmem.h.
132044         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
132045         't' for compatibility with Solaris 8 sort.
132047 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
132049         * lib/config.charset: Add support for BeOS.
132051 2000-12-17  Jim Meyering  <meyering@lucent.com>
132053         * m4/dos.m4 (jm_AC_DOS): New file and macro.
132054         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
132056 2000-12-16  Jim Meyering  <meyering@lucent.com>
132058         This bug had a serious impact on chown: `chown N:M FILE' (for integer
132059         N and M) would have treated it like `chown N:N FILE'.
132061         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
132063 2000-12-16  Jim Meyering  <meyering@lucent.com>
132065         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
132066         SHELLS_FILE to a file name that's useful on djgpp systems.
132067         Include stdlib.h.
132068         (ADDITIONAL_DEFAULT_SHELLS): Define.
132069         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
132070         Based mostly on a patch from Prashant TR.
132072 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
132074         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
132075         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
132076         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
132078 2000-12-08  Andreas Schwab  <schwab@suse.de>
132080         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
132081         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
132083 2000-12-07  Jim Meyering  <meyering@lucent.com>
132085         * lib/stripslash.c (ISSLASH): Define.
132086         (strip_trailing_slashes): Use ISSLASH rather than comparing against
132087         `/'.
132088         From Prashant TR.
132090         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
132091         (dir_name_r): Declare this function as static.
132092         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
132093         manifest itself on a name containing a mix of slashes and
132094         backslashes.
132095         Make this function work with names starting with a DOS-style
132096         drive letter and colon prefix.
132097         (dir_name): Append `.' if necessary.
132098         Based mostly on patches from Prashant TR and Eli Zaretskii.
132100         * lib/dirname.h (dir_name_r): Remove prototype.
132102 2000-12-06  Paul Eggert  <eggert@twinsun.com>
132104         * m4/off_t-format.m4: Remove this file.
132105         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
132107 2000-12-06  Jim Meyering  <meyering@lucent.com>
132109         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
132110         replacement strtoull, we may well need the replacement strtoul, too.
132111         Check for declarations of strtoul and strtoull.
132112         Check for strtol.  Mainly as a cue to cause automake to include
132113         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
132114         Check for limits.h -- strtol.c needs it.
132116 2000-12-05  Jim Meyering  <meyering@lucent.com>
132118         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
132120 2000-12-04  Jim Meyering  <meyering@lucent.com>
132122         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
132123         Also include memory.h, stdlib.h, unistd.h if appropriate.
132124         Reported by Andreas Jaeger (conflicting declaration of malloc).
132126 2000-12-02  Jim Meyering  <meyering@lucent.com>
132128         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
132129         * m4/jm-macros.m4 (jm_MACROS): require it.
132131 2000-12-02  Jim Meyering  <meyering@lucent.com>
132133         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
132135 2000-12-01  Paul Eggert  <eggert@twinsun.com>
132137         * lib/memrchr.c: Include <config.h> before any system include file.
132139 2000-11-30  Jim Meyering  <meyering@lucent.com>
132141         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
132143 2000-11-30  Jim Meyering  <meyering@lucent.com>
132145         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
132147 2000-11-29  Paul Eggert  <eggert@twinsun.com>
132149         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
132151 2000-11-26  Jim Meyering  <meyering@lucent.com>
132153         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
132155 2000-11-22  Paul Eggert  <eggert@twinsun.com>
132157         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
132158         size of (size_t) -1; it's not portable.
132160 2000-11-17  Jim Meyering  <meyering@lucent.com>
132162         * lib/strstr.c: Update from GNU libc.
132164 2000-11-17  Akim Demaille  <akim@epita.fr>
132166         * lib/obstack.h: Formatting changes.
132167         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
132168         prevent type checking.
132169         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
132170         cast the value to (void *): assigning a `foo *' to a `void *'
132171         variable is valid.
132172         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132174 2000-11-16  Jim Meyering  <meyering@lucent.com>
132176         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
132178 2000-11-11  Jim Meyering  <meyering@lucent.com>
132180         * lib/error.c: Add a couple #includes, merging from GNU libc version.
132182 2000-11-10  Jim Meyering  <meyering@lucent.com>
132184         * lib/obstack.h: Update from GNU libc.
132185         * lib/obstack.c: Likewise.
132187 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
132189         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
132191 2000-11-06  Paul Eggert  <eggert@twinsun.com>
132193         * lib/getusershell.c (setusershell): Use rewind rather than
132194         fseek/fseeko, to avoid configuration hassles with fseeko.
132195         Don't bother opening SHELLS_FILE if shellstream is NULL;
132196         it's not necessary.
132198 2000-11-05  Jim Meyering  <meyering@lucent.com>
132200         * lib/makepath.h (make_dir): Declare.
132201         * lib/makepath.c (make_dir): Remove `static' attribute.
132202         Tweak a comment.
132204 2000-11-04  Jim Meyering  <meyering@lucent.com>
132206         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
132208 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
132210         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
132211         last one in a bucket, advance to the next bucket.
132213 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
132215         * lib/fnmatch.c: Do not comment out all the code if we are using
132216         the GNU C library, because in some cases we are replacing buggy
132217         code in the GNU C library itself.
132219 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
132221         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
132222         (regex_compile): Catch bogus \(\1\).
132224 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132226         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
132227         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
132228         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
132230 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132232         * lib/error.h, getline.h, modechange.h:
132233         Remove "2000" from Copyright line, as the file hasn't been
132234         changed this year other than in the copyright notice.
132236         * lib/xalloc.h: Add "2000" to Copyright line, as this file
132237         was changed this year.
132239 2000-10-29  Jim Meyering  <meyering@lucent.com>
132241         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
132242         renaming.
132243         * m4/ls-mntd-fs.m4: Likewise
132245 2000-10-29  Jim Meyering  <meyering@lucent.com>
132247         * lib/xstat.in: Fix grammar in comment.
132249 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
132251         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
132252         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
132253         doesn't define __restrict_arr.
132255 2000-10-28  Jim Meyering  <meyering@lucent.com>
132257         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
132258         (jm_PREREQ_MEMCHR): New function.
132260 2000-10-28  Jim Meyering  <meyering@lucent.com>
132262         * lib/memchr.c: Update from libc.
132263         Adjust for portability:
132264         [HAVE_STDLIB_H]: Include stdlib.h.
132265         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
132266         Undef __memchr, too.
132267         [!weak_alias]: Define __memchr to memchr.
132269         * lib/regex.c: Update from libc.
132270         * lib/regex.h: Likewise.
132271         * lib/getopt1.c: Likewise.
132272         * lib/memcmp.c: Likewise.
132274         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
132275         Avoid using fseek, when possible -- it's broken by design.
132276         Patch by Ulrich Drepper.
132278 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
132280         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
132281         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
132282         Giving in to popular pressure to shut up the compiler with casts.
132284 2000-10-26  Jim Meyering  <meyering@lucent.com>
132286         * lib/strftime.c: Update from libc.
132288 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
132290         * regex.c: More `unsigned char' -> `re_char' changes.
132291         Also change several `int' into `re_wchar_t'.
132292         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
132293         (PUSH_FAILURE_POINTER): Don't cast any more.
132294         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
132295         We want GCC to complain, since this piece of code makes
132296         re_match non-reentrant, which *should* be fixed.
132297         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
132298         (EXTEND_BUFFER): Use RETALLOC.
132299         (SET_LIST_BIT): Don't cast.
132300         (re_wchar_t): New type.
132301         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
132302         that those two functions will always properly return.
132303         (IMMEDIATE_QUIT_CHECK): Cast to void.
132304         (analyse_first): Use recursion rather than an explicit stack.
132305         (re_compile_fastmap): Can't fail anymore.
132306         (re_search_2): Don't check re_compile_fastmap for failure.
132307         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
132308         Now also sets the new value (passed in a new argument).
132309         (re_match_2_internal): Use it.
132310         Also, use a new var `reg' of type size_t when looping through regs
132311         rather than reuse the inappropriate `mcnt'.
132313 2000-10-25  Jim Meyering  <meyering@lucent.com>
132315         * lib/obstack.c: Update from libc.
132317 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
132319         * regex.c (regex_compile): Change the way of handling a range from
132320         a char less than 256 to a char not less than 256.
132322 2000-10-24  Andrew Innes  <andrewi@gnu.org>
132324         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
132325         NT-Emacs only.
132326         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
132327         so that re_search functions only quit when callers expect them to.
132329 2000-10-23  Jim Meyering  <meyering@lucent.com>
132331         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
132332         wrong.  That set_locale call must not have any side effects.
132333         From Paul Eggert.
132335 2000-10-22  Jim Meyering  <meyering@lucent.com>
132337         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
132338         [CYCLIC]: Remove now-unused definition.
132340         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
132341         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132342         Suggestion from Ulrich Drepper.
132344 2000-10-21  Jim Meyering  <meyering@lucent.com>
132346         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132347         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132348         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132350 2000-10-21  Jim Meyering  <meyering@lucent.com>
132352         * lib/dirname.c (memrchr): Declare if necessary.
132353         (dir_name): Remove the restriction that there be no
132354         trailing slashes.  Now, this code skips past them, effectively
132355         ignoring them.
132356         [TEST_DIRNAME] (main): New unit tests.
132358         * lib/memrchr.c: New file from GNU libc.
132359         Undef __memrchr, too.
132360         [!weak_alias]: Define __memrchr to memrchr.
132361         Guard weak_alias use with `#ifdef weak_alias'.
132363 2000-10-21  Jim Meyering  <meyering@lucent.com>
132365         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132366         (dir_name): Use dir_name_r.
132367         * lib/dirname.h (dir_name_r): Declare it.
132369 2000-10-17  Jim Meyering  <meyering@lucent.com>
132371         * lib/quote.h (PARAMS): Define and use.
132372         Reported by Akim Demaille.
132374         * lib/getopt.c: Update from libc.
132376 2000-10-16  Jim Meyering  <meyering@lucent.com>
132378         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132379         setlocale.
132380         From Jan Fedak.
132382 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132384         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132386 2000-09-25  Jim Meyering  <meyering@lucent.com>
132388         * lib/md5.h (rol): Define (from GnuPG).
132390         * lib/sha.c: Give credit (GnuPG) where due.
132391         (M): Use rol rather than open-coding it.
132392         Add a FIXME comment.
132394 2000-09-21  Jim Meyering  <meyering@lucent.com>
132396         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132397         Reported by Michael Stone.
132399 2000-09-20  Jim Meyering  <meyering@lucent.com>
132401         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132402         (noinst_HEADERS): Add sha.h.
132403         Based on code from Scott G. Miller and from GnuPG.
132405 2000-09-18  Jim Meyering  <meyering@lucent.com>
132407         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132408         LIBS. Otherwise, everyone ends up linking with -lelf for some
132409         configurations.
132410         Reported by Mike Stone.
132412 2000-09-15  Jim Meyering  <meyering@lucent.com>
132414         * lib/regex.c: Update from libc.
132416 2000-09-10  Jim Meyering  <meyering@lucent.com>
132418         * lib/getopt.c (_getopt_internal): Update from glibc.
132420 2000-09-09  Jim Meyering  <meyering@lucent.com>
132422         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132423         think it should be used as a general replacement for isascii.
132424         * lib/fnmatch.c: Likewise.
132425         * lib/mbswidth.c: Likewise
132426         * lib/regex.c: Likewise.
132428         Don't use atoi.
132429         * lib/userspec.c: Include sys/param.h and limits.h.
132430         Include xstrtol.h.
132431         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132432         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132433         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132434         UID, GID.  Check range.
132436 2000-09-06  Jim Meyering  <meyering@lucent.com>
132438         * lib/getopt.c (_getopt_internal): Update from glibc.
132440 2000-08-30  Jim Meyering  <meyering@lucent.com>
132442         * lib/strftime.c: Merge in changes from GNU libc.
132444 2000-08-26  Jim Meyering  <meyering@lucent.com>
132446         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132447         * m4/fpending.m4: New file.
132449 2000-08-26  Jim Meyering  <meyering@lucent.com>
132451         * lib/closeout.c: Include "__fpending.h".
132452         (close_stdout_status): Return right away if there's nothing to flush.
132454         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
132455         * lib/__fpending.c: New file.
132456         * lib/__fpending.h: New file.
132458 2000-08-20  Jim Meyering  <meyering@lucent.com>
132460         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
132461         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
132462         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
132464 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
132466         Improve fileutils installation on systems where running
132467         programs (like install) can't be unlinked.
132468         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
132469         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
132471 2000-08-07  Paul Eggert  <eggert@twinsun.com>
132473         Standardize on "memory exhausted" instead of "Memory exhausted"
132474         or "virtual memory exhausted".
132475         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
132476         "virtual memory exhausted".
132477         * lib/same.c (same_name): Invoke xalloc_die instead of printing
132478         our own message.
132479         * lib/userspec.c (parse_user_spec): Likewise.
132480         * lib/bumpalloc.h: comment fix
132481         * lib/same.c, userspec.c: Include xalloc.h.
132483         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
132484         not char *const and pointing to a constant array.
132485         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
132486         (xrealloc): Comment fix.
132488         * lib/userspec.c (parse_user_spec):
132489         Don't translate a message until just before returning,
132490         to avoid unnecessary translation.
132492 2000-08-07  Jim Meyering  <meyering@lucent.com>
132494         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
132495         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
132496         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
132497         getgroups.c, gethostname.c, getopt.h, group-member.c,
132498         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
132499         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
132500         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
132501         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
132502         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
132503         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
132504         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
132505         yesno.c: Back out Copyright date changes for each file with no change
132506         this year.  This eases coordination with other programs using the same
132507         source code modules.  From Paul Eggert.
132509 2000-08-06  Paul Eggert  <eggert@twinsun.com>
132511         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
132512         not char, for compatibility with glibc 2.1.3 strftime.c.
132514 2000-08-03  Greg McGary  <greg@mcgary.org>
132516         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
132517         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
132518         (EXTEND_BUFFER): Use them.
132520 2000-08-01  Jim Meyering  <meyering@lucent.com>
132522         * lib/dirname.c (ISSLASH): Define.
132523         (BACKSLASH_IS_PATH_SEPARATOR): Define.
132524         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
132525         both `\' and `/' may be use as path separators.
132526         Based on a patch from Prashant TR.
132528 2000-07-31  Paul Eggert  <eggert@twinsun.com>
132530         * lib/quotearg.c (quotearg_n_options): Don't make the initial
132531         slot vector a constant, since it might get modified.
132533 2000-07-31  Jim Meyering  <meyering@lucent.com>
132535         * lib/xmalloc.c: Use `virtual memory exhausted', not
132536         `Memory exhausted'.
132537         * lib/obstack.c (print_and_abort): Likewise.
132539 2000-07-30  Paul Eggert  <eggert@twinsun.com>
132541         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
132542         buffer, so that the caller can always quote one small
132543         component of a "memory exhausted" message in slot 0.
132544         From a suggestion by Jim Meyering.
132546 2000-07-30  Jim Meyering  <meyering@lucent.com>
132548         * lib/makepath.c (make_path): Quote the other instance, too.
132550         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
132551         (STATIC_BUF_SIZE): Define.
132552         (quotearg_n_options): Use only statically allocated storage when
132553         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
132554         than STATIC_BUF_SIZE.
132556 2000-07-29  Jim Meyering  <meyering@lucent.com>
132558         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
132559         * lib/dirname.c (dir_name): Likewise.
132561         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
132562         `/'.
132564         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
132565         (dir_name): Assert that there are no trailing slashes.
132567 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
132569         * lib/mbswidth.h (mbswidth): Add a flags argument.
132570         (mbswidth): New declaration.
132571         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
132572         * lib/mbswidth.c (mbswidth): Add a flags argument.
132573         (mbsnwidth): New function.
132575 2000-07-24  Jim Meyering  <meyering@lucent.com>
132577         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
132579 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132581         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
132583 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132585         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
132586         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
132587         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
132588         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132589         invoke multibyte primitives.
132591 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132593         * lib/quotearg.c:
132594         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132595         so that mbstate_t is always defined.
132597         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
132598         be 1 in at least one GCC installation, and this configuration
132599         error is likely to be common.  Ignoring MB_LEN_MAX hurts
132600         performance on hosts that have mbrtowc but have only unibyte
132601         locales, but I assume these hosts are rare.
132603 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132605         * lib/mbswidth.c (_XOPEN_SOURCE):
132606         Don't define; this causes problems on Solaris 7.
132607         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
132609 2000-07-23  Jim Meyering  <meyering@lucent.com>
132611         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
132612         too: getgrgid, getpwuid, getuid.
132614 2000-07-23  Jim Meyering  <meyering@lucent.com>
132616         * lib/basename.c (base_name): Add an assertion.
132618 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
132620         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
132621         shadow its mbsinit function.
132623 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132625         * lib/mbswidth.h: New file.
132626         * lib/mbswidth.c: New file.
132627         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
132628         (noinst_HEADERS): Add mbswidth.h.
132630 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132632         * lib/config.charset: Add support for FreeBSD. Improve support for
132633         HP-UX and IRIX 6.
132635 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
132637         * m4/mbswidth.m4: New file.
132638         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
132640 2000-07-15  Jim Meyering  <meyering@lucent.com>
132642         * lib/makepath.c: Include quote.h.
132643         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
132644         corresponding argument in a `quote (...)' call.
132645         Give better diagnostics.
132647         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
132648         (noinst_HEADERS): Add quote.h.
132650         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
132651         from tar's src/misc.c.
132652         * lib/quote.h: New file.  Prototypes for same.
132654 2000-07-14  Paul Eggert  <eggert@twinsun.com>
132656         From a suggestion by Bruno Haible.
132657         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
132658         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
132659         to decide whether to define the BeOS workaround macro;
132660         this adjusts to the change to AC_MBSTATE_T.
132662 2000-07-14  Jim Meyering  <meyering@lucent.com>
132664         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132665         jm_AC_TYPE_UINTMAX_T.
132667 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132669         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132671         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132672         quotearg_buffer_restyled): Add support for
132673         clocale_quoting_style.  Undo previous change to
132674         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132675         and "{RIGHT QUOTATION MARK}" msgids.
132677 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132679         From a suggestion by Bruno Haible.
132680         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132681         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132682         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132683         and mbstate_t, to a single-part test that simply defines mbstate_t.
132684         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132685         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132687 2000-07-10  Jim Meyering  <meyering@lucent.com>
132689         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132691         * m4/gnu-source.m4: Output to confdefs.h directly.
132692         Suggestion from Akim Demaille.
132694 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132696         The old behavior of quoting `like this' doesn't look good with
132697         newer, ISO-style fonts.  See:
132698         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132700         Instead, quote "like this" by default.  Let the translator
132701         tailor the locale-specific quoting behavior by providing
132702         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132704         * lib/quotearg.c (N_): New macro.
132705         (gettext_default): New function.
132706         (quotearg_buffer_restyled): Use
132707         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132708         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132710 2000-07-09  Jim Meyering  <meyering@lucent.com>
132712         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132713         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132715         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132716         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132718 2000-07-09  Jim Meyering  <meyering@lucent.com>
132720         * lib/Most files: Update copyright dates to include 2000.
132722 2000-07-08  Jim Meyering  <meyering@lucent.com>
132724         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132725         if not defined.
132726         (xgethostname): Remove now-unnecessary #ifdef.
132727         Move declaration of `err' into loop where it's used.
132729 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132730         and Bruno Haible  <haible@clisp.cons.org>
132732         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132733         only if the test for an object-type mbstate_t fails.  This
132734         prevents us from mistakenly reporting that mbstate_t is a
132735         system object type after we "#define mbstate_t int" to work
132736         around its lack.
132738 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132739         and Bruno Haible  <haible@clisp.cons.org>
132741         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132743 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132745         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132746         to strerror_r.
132747         Include <ctype.h> for use of isalpha.
132749 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132751         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132752         by allocating a larger buffer. Test the gethostname return value for
132753         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132754         returns an error and ENAMETOOLONG isn't defined.
132756 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132758         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132759         dimension.
132761 2000-07-04  Jim Meyering  <meyering@lucent.com>
132763         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132764         of the deprecated AC_CHECKING.
132766 2000-07-04  Jim Meyering  <meyering@lucent.com>
132768         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132769         Reported by Bruno Haible.
132771 2000-07-04  Jim Meyering  <meyering@lucent.com>
132773         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132774         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132775         lacks mbrtowc.
132777 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132779         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132780         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132782 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132783         and Bruno Haible  <haible@clisp.cons.org>
132785         * lib/quotearg.c (mbrtowc):
132786         Assign to *pwc, and return 1 only if result is nonzero.
132787         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132789 2000-07-03  Jim Meyering  <meyering@lucent.com>
132791         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132793 2000-07-03  Jim Meyering  <meyering@lucent.com>
132795         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132796         This is necessary to get a definition of e.g., UTMP_FILE on
132797         HP-UX 10.20.
132798         From Bob Proulx.
132800 2000-07-02  Jim Meyering  <meyering@lucent.com>
132802         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132804         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132805         AC_LIBOBJ(function_name).
132806         * m4/chown.m4: Likewise.
132807         * m4/fnmatch.m4: Likewise.
132808         * m4/ftruncate.m4: Likewise.
132809         * m4/getgroups.m4: Likewise.
132810         * m4/getline.m4: Likewise.
132811         * m4/group-member.m4: Likewise.
132812         * m4/jm-macros.m4: Likewise.
132813         * m4/lstat.m4: Likewise.
132814         * m4/malloc.m4: Likewise.
132815         * m4/memcmp.m4: Likewise.
132816         * m4/nanosleep.m4: Likewise.
132817         * m4/putenv.m4: Likewise.
132818         * m4/realloc.m4: Likewise.
132819         * m4/regex.m4: Likewise.
132820         * m4/stat.m4: Likewise.
132821         * m4/strftime.m4: Likewise.
132823 2000-07-02  Jim Meyering  <meyering@lucent.com>
132825         * lib/quotearg.c (mbstate_t): Don't define here.
132827 2000-07-02  Jim Meyering  <meyering@lucent.com>
132829         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132831 2000-07-01  Jim Meyering  <meyering@lucent.com>
132833         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132835 2000-07-01  Jim Meyering  <meyering@lucent.com>
132837         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132838         problem.
132840 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132842         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132843         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132845 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132847         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132848         per change in ../m4/ls-mntd-fs.m4.
132849         (read_filesystem_list): Ignore symbolic links.
132851 2000-06-29  Jim Meyering  <meyering@lucent.com>
132853         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132854         for declaration of strcmp.
132856         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132858         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132859         Avoid warning by casting result to `char *' to remove `const'.
132861 2000-06-28  Jim Meyering  <meyering@lucent.com>
132863         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132864         included by quotearg.c, for which we perform this test.  From
132865         Bruno Haible.
132867 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132869         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132870         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132871         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132873 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132875         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132877 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132879         savedir now sets errno on failure and invokes xmalloc to get memory.
132880         Fix a couple of other minor bugs while we're at it.
132882         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132883         (NAMLEN): Remove macro.
132884         (malloc, realloc): Remove decls.
132885         (stpcpy): Likewise.
132886         ("xalloc.h"): Include.
132887         (NAME_SIZE_DEFAULT): New macro.
132888         (savedir): Use xmalloc / xrealloc to allocate memory.
132889         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132890         Skip "" directory entries.
132891         Use strlen to calculate directory entry length, since the old method
132892         is rarely used these days and isn't worth supporting.
132893         Don't use a pointer after freeing it.
132894         Check for integer overflow when calculating allocation size.
132895         Use memcpy to copy entries, instead of stpcpy.
132896         Set errno properly when returning NULL.
132897         Check for readdir error.
132899 2000-06-26  Jim Meyering  <meyering@lucent.com>
132901         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132903 2000-06-25  Jim Meyering  <meyering@lucent.com>
132905         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132906         Linux header bug when _XOPEN_SOURCE is defined to 500.
132908 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132910         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132911         deficiency.
132913 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132915         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132916         Include xalloc.h.
132917         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132919 2000-06-24  Jim Meyering  <meyering@lucent.com>
132921         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132922         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132923         for which strerror does return char*, but which lacks a conveniently
132924         accessible declaration of the function.  If the compile-test says
132925         strerror_r doesn't work, then resort to a `run'-test that works on
132926         BeOS and segfaults on DEC Unix.
132928 2000-06-24  Jim Meyering  <meyering@lucent.com>
132930         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132932 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132934         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132935         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132937 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132939         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132940         (mbrtowc, mbstate_t): Define substitutes if
132941         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132942         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132943         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132945 2000-06-23  Jim Meyering  <meyering@lucent.com>
132947         * m4/afs.m4: Add missing AC_MSG_RESULT.
132948         Reported by Bruno Haible.
132950         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132951         Suggestion from Bruno Haible.
132953 2000-06-23  Jim Meyering  <meyering@lucent.com>
132955         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132957 2000-06-21  Jim Meyering  <meyering@lucent.com>
132959         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132961 2000-06-21  Jim Meyering  <meyering@lucent.com>
132963         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132964         (noinst_HEADERS): Add getstr.h.
132966         * lib/getline.c (getstr): Move into a separate file.
132967         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132968         the following changes: new parameter, delim2; both delim[12]
132969         parameters have type `int', not `char'.  The latter would lose
132970         with 8-bit delimiters.
132971         * lib/getstr.h: New file.
132973 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132975         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132976         than 1024, return a memory chunk of least possible size, instead
132977         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132978         Use free/xmalloc instead of xrealloc to avoid copying for very long
132979         paths.
132981 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132983         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132984         the empty string.
132986 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132988         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132989         address, not strdup.  Include <stdlib.h> and don't declare free().
132991 2000-06-19  Jim Meyering  <meyering@lucent.com>
132993         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132995 2000-06-18  Jim Meyering  <meyering@lucent.com>
132997         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132999         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
133000         `checking whether...' message to be consistent with that of the
133001         lstat test.
133003 2000-06-18  Jim Meyering  <meyering@lucent.com>
133005         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
133006         Besides, these days every porting target provides a mkdir function.
133008         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
133009         needed. (this snippet comes from src/system.h).
133011 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
133013         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
133015 2000-06-15  Paul Eggert  <eggert@twinsun.com>
133017         * lib/human.c (adjust_value): New function.
133018         (human_readable_inexact): Apply rounding style even when
133019         printing approximate values.
133021 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133023         * lib/human.c (human_readable_inexact): Allow an input block
133024         size that is not a multiple of the output block size, and vice versa.
133025         Reported by Piergiorgio Sartor.
133027 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133029         * lib/getdate.y (get_date): Apply relative times after time
133030         zone indicator, not before.  Reported by Todd A. Jacobs.
133032 2000-06-13  Jim Meyering  <meyering@lucent.com>
133034         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
133036         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
133038 2000-06-12  Paul Eggert  <eggert@twinsun.com>
133040         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
133042 2000-06-12  Jim Meyering  <meyering@lucent.com>
133044         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
133045         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
133046         optional argument.
133047         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
133048         the optional argument, `lib'.
133050 2000-06-08  Jim Meyering  <meyering@lucent.com>
133052         * m4/largefile.m4: Remove file (now that it's part of autoconf).
133054 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133056         Rewrite largefile configuration so that we don't need to run
133057         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
133058         AC_CANONICAL_HOST in configure.in -- jmm]
133060         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
133061         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
133062         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
133063         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
133064         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
133065         All uses changed.
133066         Instead of inspecting the output of getconf, try to compile the
133067         test program without and with the macro definition.
133068         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
133069         for getconf.  Instead, check for the needed flags by compiling
133070         test programs.
133072 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133074         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
133076 2000-06-04  Jim Meyering  <meyering@lucent.com>
133078         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
133079         SunOS 4.1.4 for which gid_t is an unsigned type.
133081 2000-06-03  Jim Meyering  <meyering@lucent.com>
133083         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
133084         now that autoconf requires that.
133086         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
133087         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
133088         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
133090 2000-06-03  Jim Meyering  <meyering@lucent.com>
133092         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
133094 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133096         * m4/glibc21.m4: New file.
133097         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
133099 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133101         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
133102         newer, don't install charset.alias.
133103         * lib/config.charset: Change the Linux/glibc rules so they become empty
133104         on glibc-2.1 or newer.
133106 2000-06-02  Jim Meyering  <meyering@lucent.com>
133108         * lib/mountlist.c: Back out last change.  Instead, do this...
133109         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
133110         me_dummy member using the same `ignore'-testing code.
133111         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
133112         fs_type strings.
133113         From Mark D. Roth.
133115 2000-05-29  Jim Meyering  <meyering@lucent.com>
133117         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
133118         mounts with the `ignore' attribute.  Based on a patch from
133119         Mark D. Roth.
133121 2000-05-28  Jim Meyering  <meyering@lucent.com>
133123         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
133124         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133125         * m4/stat.m4: Likewise.
133126         * m4/lstat.m4: Likewise.
133127         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
133129         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
133130         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
133132 2000-05-26  Jim Meyering  <meyering@lucent.com>
133134         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
133136 2000-05-24  Jim Meyering  <meyering@lucent.com>
133138         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
133139         autoconf requires that.
133140         * m4/lib-check.m4: Likewise.
133141         * m4/jm-macros.m4: Likewise.
133142         * m4/strftime.m4: Likewise.
133144         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
133145         AC_CHECK_DECLS, now that autoconf requires that.
133147 2000-05-22  Jim Meyering  <meyering@lucent.com>
133149         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133150         * m4/lstat.m4: Likewise.
133152 2000-05-22  Jim Meyering  <meyering@lucent.com>
133154         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
133156 2000-05-20  Jim Meyering  <meyering@lucent.com>
133158         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
133159         (jm_PREREQ): Use it.
133161 2000-05-18  Jim Meyering  <meyering@lucent.com>
133163         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
133164         back, too, since it may have been modified by allocate_entry.
133165         (hash_delete): Rewrite to use neither the assignment operator
133166         nor the comma operator in an if-expression.
133168 2000-05-15  Paul Eggert  <eggert@twinsun.com>
133170         * lib/closeout.c:
133171         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133172         Remove; no longer needed.
133173         "quotearg.h": Add include.
133174         (file_name): Do not bother to explicitly initialize to NULL; it's less
133175         efficient on some hosts.
133176         (close_stdout_status): Remove test as to whether stdout was already
133177         closed; it breaks for the case "echo x | sort >&-".
133178         Quote file name colons.
133179         Do not assume that _("write error") lacks format strings.
133181 2000-05-15  Jim Meyering  <meyering@lucent.com>
133183         * lib/version-etc.c (version_etc_copyright): Update the copyright
133184         string used in all --version output.
133186 2000-05-14  Jim Meyering  <meyering@lucent.com>
133188         * lib/closeout.c (close_stdout_set_file_name): New function.
133189         (close_stdout_status): Use new file-scoped global.
133190         Return right away if fstat says the stdout file descriptor is invalid.
133191         * lib/closeout.h (close_stdout_set_file_name): Declare.
133193 2000-05-10  Jim Meyering  <meyering@lucent.com>
133195         * lib/closeout.c [default_exit_status]: New file-scoped variable.
133196         (close_stdout_set_status): New function.
133197         * lib/closeout.h (close_stdout_set_status): Declare.
133199 2000-05-09  Jim Meyering  <meyering@lucent.com>
133201         * m4/gettext.m4: Rename this...
133202         * m4/libintl.m4: ...to this.
133204 2000-05-08  Jim Meyering  <meyering@lucent.com>
133206         * lib/long-options.c: Don't include closeout.h.
133207         (parse_long_options): Don't call close_stdout for --version.
133209 2000-05-06  Paul Eggert  <eggert@twinsun.com>
133211         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
133212         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
133213         2.1.3 bug.  This avoids a clash when files like regex.c define
133214         _GNU_SOURCE.
133216 2000-05-06  Jim Meyering  <meyering@lucent.com>
133218         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
133219         (AC_REPLACE_FUNCS): Add strnlen.
133221         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
133222         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
133224         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
133225         AC_SEARCH_LIBS call for nanosleep.
133226         (LIB_NANOSLEEP): Set and AC_SUBST.
133228 2000-05-06  Jim Meyering  <meyering@lucent.com>
133230         * lib/strnlen.c: Undefine __strnlen and strnlen.
133231         [!weak_alias]: Define __strnlen to strnlen.
133233         * lib/atexit.c: New file, from libiberty.
133235 2000-05-06  Jim Meyering  <meyering@lucent.com>
133237         * lib/closeout.c (close_stdout_status): Also check for errors on the
133238         stderr stream.
133240 2000-05-05  Jim Meyering  <meyering@lucent.com>
133242         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
133243         AC_SEARCH_LIBS call for clock_gettime.
133244         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
133246         * m4/search-libs.m4: Update from autoconf.
133248         su doesn't work on Solaris 2.6.
133249         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
133250         <shadow.h>.  Reported by Dragos Harabor.
133252 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
133254         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
133255         memcpy instead of xmalloc, xrealloc, path_concat.
133256         (locale_charset): Treat empty environment variables as absent.
133257         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
133259 2000-05-04  Jim Meyering  <meyering@lucent.com>
133261         * lib/getopt.c: Update from glibc.
133262         * lib/obstack.c: Likewise.
133263         * lib/obstack.h: Likewise.
133264         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
133265         file
133267         * lib/regex.h: Likewise.
133268         * lib/strndup.c: Likewise.
133269         * lib/strnlen.c: New file, from glibc.
133271 2000-05-03  Jim Meyering  <meyering@lucent.com>
133273         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
133275 2000-05-02  Paul Eggert  <eggert@twinsun.com>
133277         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
133278         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
133279         compile-time test, rather than inspecting host and OS, to
133280         decide whether to define _LARGEFILE_SOURCE.
133282 2000-05-01  Jim Meyering  <meyering@lucent.com>
133284         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
133286         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
133287         Based on a patch from Bruno Haible.
133289 2000-05-01  Jim Meyering  <meyering@lucent.com>
133291         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
133293 2000-04-29  Jim Meyering  <meyering@lucent.com>
133295         * lib/path-concat.c: Declare strdup only if it's not defined.
133296         * lib/canon-host.c: Likewise.
133298 2000-04-28  Jim Meyering  <meyering@lucent.com>
133300         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
133301         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
133302         is included first, then limits.h is included by locale.h by libintl.h.
133303         From John David Anglin.
133305 2000-04-25  Jim Meyering  <meyering@lucent.com>
133307         * lib/makepath.c (S_IRWXUGO): Define.
133308         (make_path): Always perform explicit chmod if MODE specifies any
133309         of the `special' permission bits.  Prompted by a bug report against
133310         install from Mate Wierdl and Joost van Baal.
133312 2000-04-18  Jim Meyering  <meyering@lucent.com>
133314         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
133315         (jm_PREREQ): Use it.
133317 2000-04-18  Jim Meyering  <meyering@lucent.com>
133319         * lib/README: New file.
133321         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
133322         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
133324 2000-04-17  Jim Meyering  <meyering@lucent.com>
133326         Get it right :-)
133327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
133328         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
133329         Suggestion from Akim Demaille.
133331 2000-04-17  Jim Meyering  <meyering@lucent.com>
133333         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
133334         the definition of it to rpl_strftime also defined-away the system's
133335         declaration.
133337 2000-04-15  Jim Meyering  <meyering@lucent.com>
133339         Use `C' to denote so-called `contiguous' files, the same way
133340         that tar does.
133341         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133342         (ftypelet): Use S_ISCTG.
133343         From Michael Deutschmann.
133345 2000-04-14  Jim Meyering  <meyering@lucent.com>
133347         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133348         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133349         clobbered.
133351 2000-04-14  Jim Meyering  <meyering@lucent.com>
133353         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133355 2000-04-13  Jim Meyering  <meyering@lucent.com>
133357         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133358         AH_VERBATIM to insert required #ifndef into config.h.in.
133359         Suggestion from Akim Demaille.
133361 2000-04-12  Jim Meyering  <meyering@lucent.com>
133363         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133364         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133365         Christian Krackowizer.
133367         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133368         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133369         (AC_SYS_LARGEFILE): Require.
133370         (AM_C_PROTOTYPES): Require.
133372 2000-04-08  Jim Meyering  <meyering@lucent.com>
133374         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133375         names don't conflict.  Reported by Eli Zaretskii.
133377 2000-04-07  Jim Meyering  <meyering@lucent.com>
133379         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133380         sys/types.h, to work around system header problems on AIX 3.2.5.
133381         From Bruno Haible.
133383 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133385         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133386         bug.  Deal with the different error behavior of Irix iconv.
133388 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133390         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133391         IRIX if the installer said otherwise.
133393 2000-04-05  Jim Meyering  <meyering@lucent.com>
133395         Portability tweaks required for ultrix4.3.
133396         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133397         (jm_CHECK_DECLS): Add getutent to the list of functions.
133398         (_jm_DECL_HEADERS): Add utmpx.h.
133399         From John David Anglin.
133401         * m4/strftime.m4: Back out the 2000-04-02 change.
133402         Instead of that change, simply undefine putenv in the test program.
133404 2000-04-05  Jim Meyering  <meyering@lucent.com>
133406         Portability tweaks required for ultrix4.3.
133407         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133408         getutent.
133409         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133410         * lib/canon-host.c: Declare strdup.
133411         * lib/path-concat.c: Likewise.
133412         From John David Anglin.
133414 2000-04-04  Jim Meyering  <meyering@lucent.com>
133416         Be more DOS 8.3-friendly.
133417         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133418         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133419         * lib/Makefile.am: Reflect renaming.
133420         Reported by Eli Zaretskii.
133422         Use a temporary file name that won't clash with `charset.alias'
133423         in the DOS 8.3 name space.
133424         * lib/Makefile.am (charset_tmp): Define.
133425         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133426         (uninstall-local): Likewise.
133427         Reported by Eli Zaretskii.
133429 2000-04-03  Jim Meyering  <meyering@lucent.com>
133431         * m4/gettext.m4: Fix typo in comment.
133433         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133434         textutils/configure.in).  Suggestion from Paul Eggert.
133435         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133437 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133439         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133440         variable in the shell rather than using putenv, which isn't
133441         portable.  This avoids the configure-time inter-test dependency
133442         on the potentially-renamed putenv function.
133444 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133447         before checking struct stat.st_blksize, so that
133448         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133450 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133452         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
133453         since strftime.c uses HAVE_STRFTIME to decide whether to use
133454         the underlying strftime.
133456 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133458         * lib/time/strftime.c (my_strftime): Make sure we call the system
133459         strftime, not ourselves, when invoking the underlying strftime.
133461 2000-03-24  Jim Meyering  <meyering@lucent.com>
133463         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
133464         (charset_alias): Define.
133465         (install-exec-local): Factor out common code.
133466         (uninstall-local): Split lines longer than 80.
133467         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
133468         (SUFFIXES): Define.
133469         (.sed.in.sed): New rule.  Don't redirect directly to $@.
133470         (CLEANFILES): Add ref-add.sed and ref-del.sed.
133472 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
133474         * lib/config.charset: Output a line containing "Packages using this
133475         file".
133476         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
133477         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
133478         ref-del.sed): New rules.
133480 2000-03-17  Jim Meyering  <meyering@lucent.com>
133482         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
133483         Otherwise, include <strings.h>
133485 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
133487         * lib/unicodeio.c (utf8_wctomb): New function.
133488         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
133489         format instead of in UCS-4 with platform dependent endianness.
133491 2000-03-10  Jim Meyering  <meyering@lucent.com>
133493         * m4/lib-check.m4: Look for getspnam in -lgen, too.
133494         From Marco Franzen.
133496 2000-03-07  Paul Eggert  <eggert@twinsun.com>
133498         * lib/savedir.c (savedir): Work even if directory size is
133499         negative; this can happen with some screwy NFS configurations.
133501 2000-03-06  Jim Meyering  <meyering@lucent.com>
133503         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
133504         if it's NULL (because we ran out of memory).  From Bruno Haible.
133506 2000-03-05  Jim Meyering  <meyering@lucent.com>
133508         * lib/localcharset.c ("path-concat.h"): Include.
133509         (get_charset_aliases): Use path_concat instead of ANSI string
133510         concatenation.
133512         * lib/unicodeio.h (PARAMS): Define.
133513         Use it to guard prototype.
133515 2000-03-04  Jim Meyering  <meyering@lucent.com>
133517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
133518         for lib/localcharset.c.
133520 2000-03-04  Jim Meyering  <meyering@lucent.com>
133522         * lib/Makefile.am (install-exec-local): Create $(libdir) before
133523         installing into it.
133524         (uninstall-local): Uncomment this rule so `make distcheck' works
133525         once again.
133527         * lib/unicodeio.c (<errno.h>): Include it.
133528         (errno): Declare if not defined.
133530         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
133532         * lib/config.charset: New version, incorporating remarks from a linux
133533         i18n mailing list.  From Bruno Haible.
133535 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
133537         * m4/codeset.m4: New file.
133538         * m4/iconv.m4: New file.
133539         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
133541 2000-03-03  Jim Meyering  <meyering@lucent.com>
133543         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
133545 2000-03-02  Jim Meyering  <meyering@lucent.com>
133547         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
133548         the messages come out on separate lines.
133550         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
133551         rather than jm_CHECK_DECLARATIONS.
133552         * m4/decl.m4: Remove now-unused file.
133554         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
133555         geteuid.
133557 2000-03-02  Jim Meyering  <meyering@lucent.com>
133559         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
133561 2000-03-01  Jim Meyering  <meyering@lucent.com>
133563         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
133564         * lib/unicodeio.c: Likewise.
133566 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
133568         * lib/config.charset: New file.
133569         * lib/localcharset.c: New file.
133570         * lib/unicodeio.h, lib/unicodeio.c: New files.
133571         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
133572         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
133573         (noinst_HEADERS): Add unicodeio.h.
133574         (all-local, install-exec-local, charset.alias): New targets.
133576 2000-02-28  Paul Eggert  <eggert@twinsun.com>
133578         * lib/quotearg.c (ALERT_CHAR): New macro.
133579         (quotearg_buffer_restyled): Use it.
133581 2000-02-27  Jim Meyering  <meyering@lucent.com>
133583         * m4/check-decl.m4: Add getenv to the list.
133585 2000-02-27  Jim Meyering  <meyering@lucent.com>
133587         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
133588         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133590         * lib/backupfile.c: Guard inclusion of stdlib.h with
133591         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133592         Declare malloc if needed.
133594         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133595         `#ifndef HAVE_DECL..'
133596         now that autoconf always defines the HAVE_DECL_ symbols.
133597         * lib/human.c: Likewise.
133598         * lib/same.c: Likewise.
133599         * lib/strtoumax.c: Likewise.
133601         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
133602         declaration check was not run.
133603         * lib/hash.c: Likewise.
133604         * lib/human.c: Likewise.
133605         * lib/same.c: Likewise.
133606         * lib/strtoumax.c: Likewise.
133608         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
133609         `.', then first look up the entire `.'-containing string as a login
133610         name.
133612 2000-02-23  Jim Meyering  <meyering@lucent.com>
133614         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
133615         in place of my hack.
133617 2000-02-18  Paul Eggert  <eggert@twinsun.com>
133619         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
133620         (textint): New typedef.
133621         (parser_control): Member year changed from int to textint.
133622         All uses changed.
133623         (YYSTYPE): Removed; replaced by %union with int and textint members.
133624         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
133625         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
133626         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
133627         (tSNUMBER, tUNUMBER): Now of type <textintval>.
133628         (date, number, to_year): Use width of number in digits, not its value,
133629         to determine whether it's a 2-digit year, or a 2-digit time.
133630         (yylex): Store number of digits of numeric tokens.
133631         Reported by John Kendall.
133633         (parser_control): Changed from struct parser_control to typedef (for
133634         consistency).  All uses changed.
133636         (tID): Removed; not used.
133637         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
133639 2000-02-14  Paul Eggert  <eggert@twinsun.com>
133641         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
133642         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
133644 2000-02-12  Jim Meyering  <meyering@lucent.com>
133646         * lib/userspec.c (ISDIGIT): Define it.
133647         (isdigit): Remove definition.
133648         (is_number): Use ISDIGIT, not isdigit.
133649         <libintl.h>: Include.
133650         (_ and N_): Define.
133651         (parse_user_spec): Mark translatable strings.
133653 2000-02-10  Jim Meyering  <meyering@lucent.com>
133655         With these changes, nanosleep.[ch] are finally enough like the other
133656         lib/* replacement files to compile on a few more losing systems.
133658         * lib/nanosleep.h: Don't include config.h.
133659         Remove prototype from declaration of nanosleep.
133660         (PARAMS): Remove now-unneeded definition.
133661         * lib/nanosleep.c: #undef nanosleep.
133662         (rpl_nanosleep): Rename from nanosleep.
133664 2000-02-10  Jim Meyering  <meyering@lucent.com>
133666         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133667         gnu_nanosleep to rpl_nanosleep.
133669 2000-02-09  Jim Meyering  <meyering@lucent.com>
133671         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133672         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133674 2000-02-08  Akim Demaille  <akim@epita.fr>
133676         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133677         `[' and `]' and remove uses of `changequote'.
133678         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133679         (AC_SYS_LARGEFILE): Likewise.
133680         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133681         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133682         of changequote.
133683         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133684         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133685         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133686         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133688 2000-02-05  Jim Meyering  <meyering@lucent.com>
133690         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133691         Remove explicit use of AC_HEADER_TIME.  It is required by
133692         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133693         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133694         in autoconf whereby the expansion of the latter ended up preceding
133695         the expansion of its prerequisite, AC_HEADER_TIME.
133696         Reported by Volker Borchert.
133698 2000-02-03  Jim Meyering  <meyering@lucent.com>
133700         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133702 2000-02-03  Jim Meyering  <meyering@lucent.com>
133704         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133705         rather than with `#if HAVE_UTMPNAME'.
133707 2000-02-02  Jim Meyering  <meyering@lucent.com>
133709         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133710         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133711         Reported by Eli Zaretskii.
133713 2000-02-01  Jim Meyering  <meyering@lucent.com>
133715         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133717 2000-01-31  Jim Meyering  <meyering@lucent.com>
133719         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133720         functions.  Add the time.h and sys/time.h headers along with the
133721         AC_REQUIRE'ment of AC_HEADER_TIME.
133723 2000-01-31  Jim Meyering  <meyering@lucent.com>
133725         * lib/nanosleep.h (nanosleep): Guard declaration with
133726         `#if ! HAVE_DECL_NANOSLEEP'.
133727         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133728         the declaration in that vendor's sys/timers.h.
133729         Reported by Christian Krackowizer.
133731         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133732         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133733         (ISPRINT): Likewise.
133734         Reported by Tom Tromey.
133736 2000-01-30  Jim Meyering  <meyering@lucent.com>
133738         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133740         * m4/prereq.m4 (utmp_includes): Define.
133741         Check for ut_user and ut_name members in both struct utmpx
133742         and struct utmp.
133744 2000-01-30  Jim Meyering  <meyering@lucent.com>
133746         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133747         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133748         header files where only utmpx.ut_user is declared.
133750         * lib/readutmp.h (UT_USER): Define.
133752 2000-01-29  Jim Meyering  <meyering@lucent.com>
133754         * m4/lib-check.m4: New file containing library-related checks from
133755         fileutils and sh-utils (textutils had none).
133757 2000-01-28  Jim Meyering  <meyering@lucent.com>
133759         * m4/perl.m4: Change format of warning message to look more like that
133760         from the missing script.  Suggestion from François Pinard.
133762 2000-01-25  Jim Meyering  <meyering@lucent.com>
133764         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133765         well as time.h in the compile check.
133766         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133767         Fix typo in cross-compiling case: s/yes/no/.
133769 2000-01-23  Jim Meyering  <meyering@lucent.com>
133771         * m4/jm-macros.m4: Move df-related tests here from
133772         fileutils/configure.in
133774         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133775         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133777         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133778         s/space/ac_fsusage_space/.
133779         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133781         * m4/ftruncate.m4: New file (derived from part of
133782         fileutils/configure.in).
133783         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133784         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133786         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133787         AC_SUBST these here, rather than just in sh-util/configure.in, so
133788         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133789         all the same.
133790         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133791         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133792         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133793         (AC_SUBST(POW_LIBM)): Likewise.
133794         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133796 2000-01-23  Jim Meyering  <meyering@lucent.com>
133798         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133799         obstack.c.
133801 2000-01-22  Jim Meyering  <meyering@lucent.com>
133803         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133805         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133807         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133808         configure.in
133809         (AC_CHECK_HEADERS): Likewise for sh-utils.
133810         (AC_CHECK_HEADERS): Likewise for textutils.
133811         Merge the three lists of headers.
133813         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133814         from fileutils' configure.in.
133816         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133817         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133818         check-decl.m4.
133820         * m4/check-decl.m4: Use #if rather than #ifdef.
133821         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133822         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133823         (_jm_DECL_HEADERS): Define new function.
133824         (jm_CHECK_DECLARATIONS): Require it.
133826 2000-01-22  Jim Meyering  <meyering@lucent.com>
133828         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133829         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133830         Required for some AIX systems.  Reported by Christian Krackowizer.
133831         [TESTING] (main): New function.
133833         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133834         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133835         letters.
133837         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133838         iswprint.
133840         * lib/strverscmp.c (ISDIGIT): Define.
133841         (strverscmp): Use ISDIGIT, not isdigit.
133843 2000-01-19  Jim Meyering  <meyering@lucent.com>
133845         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133846         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133847         defines `struct timespec' in <sys/time.h>
133849         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133850         Thanks to Akim for explaining.
133852 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133854         * lib/nanosleep.c (nanosleep):
133855         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133856         POSIX.1 doesn't require SA_INTERRUPT and some systems
133857         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133858         it's been part of POSIX.1 since day 1 (in 1988).
133860 2000-01-17  Jim Meyering  <meyering@lucent.com>
133862         * lib/interlock: Remove unused file.  Reported by François Pinard.
133864 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133866         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133867         alert, backslash, formfeed, and vertical tab unnecessarily in
133868         shell quoting style.
133870 2000-01-16  Jim Meyering  <meyering@lucent.com>
133872         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133873         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133874         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133875         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133877 2000-01-16  Jim Meyering  <meyering@lucent.com>
133879         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133880         because the latter didn't work.
133882 2000-01-15  Jim Meyering  <meyering@lucent.com>
133884         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133885         (AC_REPLACE_FUNCS): Add memcpy and memset.
133886         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133887         Add strpbrk.
133888         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133890 2000-01-12  Jim Meyering  <meyering@lucent.com>
133892         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133893         (jm_PREREQ): Use it.
133894         (jm_PREREQ_READUTMP): New macro.
133895         (jm_PREREQ): Use it.
133897 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133899         Quote multibyte characters correctly.
133900         * m4/c-bs-a.m4: New file.
133901         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133902         (jm_PREREQ): Use it.
133904 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133906         * m4/uintmax_t.m4: Port to autoconf 2.13.
133908 2000-01-08  Jim Meyering  <meyering@ascend.com>
133910         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133911         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133913 2000-01-04  Jim Meyering  <meyering@ascend.com>
133915         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133916         jm_STRUCT_DIRENT_D_TYPE.
133917         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133918         jm_STRUCT_DIRENT_D_INO.
133919         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133920         jm_STRUCT_UTIMBUF.
133921         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133922         renamings.
133923         * m4/utime.m4: Likewise.
133925         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133926         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133928 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133930         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133931         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133933 2000-01-02  Jim Meyering  <meyering@ascend.com>
133935         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133936         remember if this is necessary.
133938 1999-12-26  Jim Meyering  <meyering@ascend.com>
133940         * m4/jm-macros.m4: Use it here.
133941         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133943 1999-12-23  Jim Meyering  <meyering@ascend.com>
133945         * m4/jm-macros.m4: Check for clock_gettime (moved from
133946         fileutils/configure.in)
133947         Check for gettimeofday.
133949 1999-12-20  Jim Meyering  <meyering@ascend.com>
133951         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133952         autoconf-2.14a-1999-12-20.
133954 1999-12-19  Jim Meyering  <meyering@ascend.com>
133956         * m4/lstat-slash.m4: New file.
133957         * m4/jm-macros.m4: Use the new macro:
133958         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133960 1999-12-07  Jim Meyering  <meyering@ascend.com>
133962         * m4/perl.m4: Require that File::Compare be available, too.
133963         Too many systems seem to lack it.
133965         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133966         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133968 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133970         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133971         problem with the QNX 4.25 shell, which doesn't propagate exit
133972         status of failed commands inside shell assignments.
133974 1999-11-17  Jim Meyering  <meyering@ascend.com>
133976         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133978 1999-11-07  Jim Meyering  <meyering@ascend.com>
133980         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133982 1999-11-06  Jim Meyering  <meyering@ascend.com>
133984         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133985         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133987 1999-11-05  Jim Meyering  <meyering@ascend.com>
133989         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133990         configure.in of textutils, fileutils, and sh-utils into this one
133991         (shared between those packages) file.
133992         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133993         AC_STRUCT_ST_BLKSIZE.
133995 1999-11-03  Jim Meyering  <meyering@ascend.com>
133997         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133998         of AC_CHECK_TYPE checks includes unistd.h.
133999         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
134000         Suggestion from Akim Demaille.
134002 1999-10-30  Jim Meyering  <meyering@ascend.com>
134004         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
134005         m4-quoted string.
134006         * m4/ls-mntd-fs.m4: Likewise.
134007         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
134008         * m4/jm-winsz1.m4: Likewise.
134010         * m4/const.m4: Remove file, since the fix made it into the experimental
134011         version of autoconf.
134012         * m4/mktime.m4: Likewise.
134014         * m4/check-type.m4: Remove file, now that the latest version of
134015         AC_CHECK_TYPE takes a third arg to specify additional #includes.
134017         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
134018         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
134019         AC_CHECK_TYPE.
134021 1999-10-04  Jim Meyering  <meyering@ascend.com>
134023         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
134025 1999-09-22  Paul Eggert  <eggert@twinsun.com>
134027         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
134028         2.95.1 bug with HP-UX 10.20.
134030 1999-09-17  Jim Meyering  <meyering@ascend.com>
134032         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
134033         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
134034         due to missing strdup (against sh-utils-2.0).
134036 1999-08-29  Jim Meyering  <meyering@ascend.com>
134038         * m4/jm-macros.m4: Require jm_BISON.
134039         * m4/bison.m4: New file.
134041 1999-08-17  Paul Eggert  <eggert@twinsun.com>
134043         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
134044         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
134046 1999-08-05  Jim Meyering  <meyering@ascend.com>
134048         * m4/getline.m4: Rename test file from conftestdata to conftest.data
134049         to avoid conflicts with `conftest' on 8+3 filesystems.
134050         Suggestion from Eli Zaretskii.
134052 1999-08-04  Jim Meyering  <meyering@ascend.com>
134054         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
134055         fileutils and sh-utils (textutils's getline test was inadequate).
134056         (AM_FUNC_GETLINE): Run this test.
134057         (AC_CHECK_FUNCS): Check for getdelim.
134058         Reported by Bob Proulx.
134060 1999-08-02  Jim Meyering  <meyering@ascend.com>
134062         * m4/jm-macros.m4: Add a comment.
134064 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134066         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
134067         <inttypes.h> defines strtoumax as a macro (and not as a
134068         function).
134070 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134072         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
134073         that we can shift, multiply and divide unsigned long long
134074         values; Ultrix cc can't do it.
134076 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134078         * m4/mktime.m4: New file, which is a preview of what should appear
134079         in the next public autoconf release.
134081 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134083         * m4/lfs.m4: Remove this file.
134084         * m4/largefile.m4: New file.  It contains the old contents of
134085         lfs.m4, except that all names with prefix AC_LFS have been
134086         changed to use the prefix AC_SYS_LARGEFILE instead, to be
134087         compatible with future autoconf versions.  Also, some minor m4
134088         quoting problems have been fixed.
134090 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134092         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
134093         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
134094         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
134095         and simplify the shell code.
134097 1999-08-01  Jim Meyering  <meyering@ascend.com>
134099         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
134100         m4.
134102 1999-07-20  Jim Meyering  <meyering@ascend.com>
134104         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
134106 1999-07-15  Jim Meyering  <meyering@ascend.com>
134108         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
134110 1999-05-22  Jim Meyering  <meyering@ascend.com>
134112         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
134114 1999-05-20  Jim Meyering  <meyering@ascend.com>
134116         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
134117         Add a colon after each `then' in case $4 is empty.
134119 1999-05-16  Jim Meyering  <meyering@ascend.com>
134121         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
134123 1999-05-10  Jim Meyering  <meyering@ascend.com>
134125         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
134127         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
134128         AC_FUNC_MKTIME.
134130 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
134132         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
134134 1999-05-04  Paul Eggert  <eggert@twinsun.com>
134136         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
134137         not CPPFLAGS, so that linking works correctly in IRIX.
134139 1999-04-30  Paul Eggert  <eggert@twinsun.com>
134141         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
134143 1999-04-20  Paul Eggert  <eggert@twinsun.com>
134145         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
134146         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
134147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
134148         jm_AC_TYPE_UNSIGNED_LONG_LONG.
134149         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
134151         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
134153 1999-04-20  Jim Meyering  <meyering@ascend.com>
134155         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
134156         AC_REPLACE xstroull if necessary.  From Paul Eggert.
134157         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
134159 1999-04-18  Jim Meyering  <meyering@ascend.com>
134161         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
134162         * m4/jm-macros.m4: Use it.
134164 1999-04-06  Jim Meyering  <meyering@ascend.com>
134166         * m4/strftime.m4: Remove test for %f.
134168 1999-03-29  Jim Meyering  <meyering@ascend.com>
134170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
134171         superset of the AC_TYPE_* checks in the textutils, fileutils,
134172         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134173         AC_TYPE_PID_T.
134175 1999-03-28  Jim Meyering  <meyering@ascend.com>
134177         * m4/jm-macros.m4: Define GNU_PACKAGE here.
134178         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
134179         replaced e.g., in the *.sh files of the sh-utils.
134181 1999-03-20  Jim Meyering  <meyering@ascend.com>
134183         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
134184         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
134185         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
134187 1999-03-19  Jim Meyering  <meyering@ascend.com>
134189         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
134191 1999-03-12  Jim Meyering  <meyering@ascend.com>
134193         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
134195 1999-03-07  Jim Meyering  <meyering@ascend.com>
134197         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
134198         declared.
134200 1999-02-17  Jim Meyering  <meyering@ascend.com>
134202         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
134203         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
134205 1999-02-07  Jim Meyering  <meyering@ascend.com>
134207         * m4/group-member.m4: New file -- extracted from sh-utils'
134208         configure.in.
134210         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
134211         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
134213 1999-02-06  Jim Meyering  <meyering@ascend.com>
134215         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
134216         * m4/fnmatch.m4: Likewise.
134217         * m4/getgroups.m4: Likewise.
134218         * m4/lstat.m4: Likewise.
134219         * m4/malloc.m4: Likewise.
134220         * m4/putenv.m4: Likewise.
134221         * m4/realloc.m4: Likewise.
134222         * m4/regex.m4: Likewise.
134223         * m4/stat.m4: Likewise.
134224         * m4/strftime.m4: Likewise.
134225         Suggestion from Alain Magloire.
134227         * m4/chown.m4: Use `.$ac_objext', not `.o'.
134228         * m4/fnmatch.m4: Likewise.
134229         * m4/getgroups.m4: Likewise.
134230         * m4/getline.m4: Likewise.
134231         * m4/lstat.m4: Likewise.
134232         * m4/malloc.m4: Likewise.
134233         * m4/memcmp.m4: Likewise.
134234         * m4/putenv.m4: Likewise.
134235         * m4/realloc.m4: Likewise.
134236         * m4/regex.m4: Likewise.
134237         * m4/stat.m4: Likewise.
134238         * m4/strftime.m4: Likewise.
134239         Suggestion from Alain Magloire.
134241         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
134242         an argument.
134244         * m4/regex.m4: Add a run-time Test for proper operation of
134245         re_compile_pattern.
134247 1999-01-31  Jim Meyering  <meyering@ascend.com>
134249         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
134251 1999-01-30  Jim Meyering  <meyering@ascend.com>
134253         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
134255         * m4/jm-mktime.m4: Make this a wrapper around the official
134256         AM_FUNC_MKTIME rather than my private copy, now that the official one
134257         is up to date.
134258         * m4/mktime.m4: Remove file.
134260         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
134261         * m4/uptime.m4: Likewise.
134262         * m4/uintmax_t.m4: Likewise.
134264 1999-01-28  Jim Meyering  <meyering@ascend.com>
134266         * m4/jm-macros.m4: Use jm_AFS.
134267         * m4/afs.m4: New file (from fileutils' configure.in).
134269         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
134270         * m4/chown.m4: Likewise.
134271         * m4/d-ino.m4: Likewise.
134272         * m4/d-type.m4: Likewise.
134273         * m4/fnmatch.m4: Likewise.
134274         * m4/getgroups.m4: Likewise.
134275         * m4/gettext.m4: Likewise.
134276         * m4/jm-mktime.m4: Likewise.
134277         * m4/jm-winsz2.m4: Likewise.
134278         * m4/lcmessage.m4: Likewise.
134279         * m4/ls-mntd-fs.m4: Likewise.
134280         * m4/malloc.m4: Likewise.
134281         * m4/memcmp.m4: Likewise.
134282         * m4/putenv.m4: Likewise.
134283         * m4/realloc.m4: Likewise.
134284         * m4/st_mtim.m4: Likewise.
134285         * m4/strftime.m4: Likewise.
134287 1999-01-16  Jim Meyering  <meyering@ascend.com>
134289         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
134290         (ARGMATCH_DIE_DECL): Define.
134292 1999-01-12  Jim Meyering  <meyering@ascend.com>
134294         * m4/Makefile.am.in: Rewrite to avoid using fmt.
134295         Reported by Lars Hecking.
134297 1999-01-10  Jim Meyering  <meyering@ascend.com>
134299         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
134300         gross kludge.
134301         * m4/inttypes_h.m4: Likewise.
134302         * m4/lstat.m4: Likewise.
134303         * m4/malloc.m4: Likewise.
134304         * m4/readdir.m4: Likewise.
134305         * m4/realloc.m4: Likewise.
134306         * m4/st_dm_mode.m4: Likewise.
134307         * m4/stat.m4: Likewise.
134308         * m4/utimbuf.m4: Likewise.
134309         * m4/utimes.m4: Likewise.
134311         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
134312         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
134313         comments in config.h.in are meaningful.
134315         * m4/jm-macros.m4: Require autoconf-2.13 here.
134317         * m4/regex.m4: By default, don't use the included regex.c on systems
134318         with glibc 2.  Suggestion from Uli Drepper.
134320 1999-01-02  Jim Meyering  <meyering@ascend.com>
134322         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
134324 1998-12-18  Jim Meyering  <meyering@ascend.com>
134326         * m4/Makefile.am.in (Makefile.am): Simplify rule.
134327         Based on a suggestion from Lars Hecking.
134329 1998-11-16  Paul Eggert  <eggert@twinsun.com>
134331         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
134333 1998-11-16  Jim Meyering  <meyering@ascend.com>
134335         * m4/lfs.m4: Double-quote the `uname...` expression.
134337 1998-11-14  Jim Meyering  <meyering@ascend.com>
134339         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
134340         * m4/stat.m4: Likewise.
134342 1998-11-03  Jim Meyering  <meyering@ascend.com>
134344         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134345         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134347 1998-10-18  Jim Meyering  <meyering@ascend.com>
134349         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134351 1998-10-17  Jim Meyering  <meyering@ascend.com>
134353         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134354         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134355         calls for those previously hard-coded headers.  Instead, take a new
134356         parameter.
134357         (jm_CHECK_DECLARATIONS): Reflect interface change.
134358         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134359         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134361         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134363 1998-10-14  Jim Meyering  <meyering@ascend.com>
134365         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134366         instead of "TZ=America/Vancouver".  From Paul Eggert.
134368 1998-10-11  Jim Meyering  <meyering@ascend.com>
134370         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134371         This adds a test for a recently added compatibility fix for mktime.c.
134372         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134374 1998-09-27  Jim Meyering  <meyering@ascend.com>
134376         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134378         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134379         ../configure.in, including a change from Gordon Matzigkeit to allow
134380         cross-compiling for the Hurd.
134382         * m4/glibc.m4: New file/macro to test for the GNU C Library
134383         versions 1 and 2.  From Gordon Matzigkeit.
134384         Indent.
134386 1998-09-21  Jim Meyering  <meyering@ascend.com>
134388         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134390 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134392         Port nanosecond-resolution times to UnixWare 2.1.2 and
134393         pedantic Solaris 2.6.
134395         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134396         AC_STRUCT_ST_MTIM.
134397         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134398         Generate name of ns member, instead of just 1 or undef.
134399         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134401 1998-08-15  Jim Meyering  <meyering@ascend.com>
134403         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134404         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134405         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134406         instead of jm_TYPE_SSIZE_T.
134408 1998-08-12  Jim Meyering  <meyering@ascend.com>
134410         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134412 1998-08-02  Jim Meyering  <meyering@ascend.com>
134414         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134415         in acconfig.h manually.
134417 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134419         * m4/st_mtim.m4: New file.
134421 1998-07-28  Jim Meyering  <meyering@ascend.com>
134423         * m4/utimes.m4: Undef stat.
134425 1998-07-25  Jim Meyering  <meyering@ascend.com>
134427         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134428         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134430 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134432         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134433         uid and gid actually remain unchanged.
134435 1998-07-07  Jim Meyering  <meyering@ascend.com>
134437         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134439 1998-07-04  Jim Meyering  <meyering@ascend.com>
134441         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134442         to prove that this macro can be used in packages without regex.c.
134444 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134446         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134447         is to be used.
134449 1998-07-03  Jim Meyering  <meyering@ascend.com>
134451         * m4/gettext.m4: Add -lintl if it's found to be necessary.
134453         * m4/gettext.m4: New file -- from gettext-0.10.35.
134454         * m4/lcmessage.m4: Likewise.
134455         * m4/progtest.m4: Likewise.
134457         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
134458         * m4/jm-macros.m4: Require the new macro.
134460 1998-06-29  Jim Meyering  <meyering@ascend.com>
134462         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
134463         for the definition of NGROUPS (used in a system header included
134464         by sys/mount.h).
134466 1998-06-28  Jim Meyering  <meyering@ascend.com>
134468         * m4/ls-mntd-fs.m4: New file.
134469         * m4/fstypename.m4: New file.
134471         * m4/jm-macros.m4: Require the new macro.
134472         * m4/jm-glibc-io.m4: New file.
134474 1998-05-19  Jim Meyering  <meyering@ascend.com>
134476         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
134477         * m4/lchown.m4: New file.
134479         * m4/Makefile.am.in: New file.
134480         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
134482 1998-05-14  Jim Meyering  <meyering@ascend.com>
134484         * m4/Makefile.am (EXTRA_DIST): Add them.
134485         * m4/jm-macros.m4: New file.
134486         * m4/utimbuf.m4: New file.
134488 1998-05-12  Jim Meyering  <meyering@ascend.com>
134490         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
134492 1998-05-11  Jim Meyering  <meyering@ascend.com>
134494         * m4/isc-posix.m4: New file.
134496 1998-05-10  Jim Meyering  <meyering@ascend.com>
134498         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
134500 1998-05-09  Jim Meyering  <meyering@ascend.com>
134502         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
134503         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
134504         with automake.
134506         * m4/ssize_t.m4: New file.
134507         * m4/mktime.m4: Remove file -- the new automake has this now.
134509 1998-04-26  Jim Meyering  <meyering@ascend.com>
134511         * m4/assert.m4: New file.
134512         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
134514 1998-04-05  Jim Meyering  <meyering@ascend.com>
134516         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
134517         (jm_PREREQ): Use it here.
134519 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
134521         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
134522         in acconfig.h.
134524 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
134526         * m4/prereq.m4: New file.
134527         * m4/error.m4: New file.
134528         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
134530 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
134532         * m4/getline.m4: Don't set am_cv_func_working_getline before the
134533         cache-check for the same variable -- that defeated the purpose of
134534         the test; the test program was never run.  This was a problem only
134535         on systems with losing getline functions -- HP-UX 10.20 is one.
134536         Reported by Bjorn Helgaas.
134538 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
134540         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
134542 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
134544         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
134546         * m4/const.m4: New file.  Use an initializer in this declaration
134547         typedef int charset[2]; const charset x;
134548         Reported by Bob Glickstein.
134550 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
134552         * m4/chown.m4: Fix reversed types on -1 args to chown.
134553         From Kaveh Ghazi.
134555 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
134557         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
134558         Add lseek and memchr.
134560         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
134561         T.E.Dickey <dickey@clark.net> said that some older preprocessors
134562         have a 20-character limit on names.
134564 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
134566         * m4/inttypes_h.m4: New file.
134567         * m4/uintmax_t.m4: New file.
134568         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
134571         -----
134573         Local Variables:
134574         coding: utf-8
134575         End:
134577         Copyright (C) 1997-2020 Free Software Foundation, Inc.
134579         Copying and distribution of this file, with or without
134580         modification, are permitted provided the copyright notice
134581         and this notice are preserved.